/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./node_modules/@babel/runtime-corejs2/core-js/array/from.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/array/from.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/array/from */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/from.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/array/is-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/is-array.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/assign.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/assign.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/create.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/create.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/create.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/define-property */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/define-property.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/entries.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/entries */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/entries.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/get-own-property-descriptor */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/get-own-property-descriptor.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js":
/*!********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/keys.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/object/values.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/object/values */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/values.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/parse-int.js":
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/parse-int.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/parse-int */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/parse-int.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/symbol.js":
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/symbol.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/index.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js":
/*!************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/iterator.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/core-js/weak-map.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/core-js/weak-map.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! core-js/library/fn/weak-map */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/weak-map.js");

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }

  return self;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js":
/*!********************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
/* harmony import */ var _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/assign */ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js");
/* harmony import */ var _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_assign__WEBPACK_IMPORTED_MODULE_0__);

function _extends() {
  _extends = _core_js_object_assign__WEBPACK_IMPORTED_MODULE_0___default.a || 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);
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
/* harmony import */ var _core_js_object_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/create */ "./node_modules/@babel/runtime-corejs2/core-js/object/create.js");
/* harmony import */ var _core_js_object_create__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_create__WEBPACK_IMPORTED_MODULE_0__);

function _inheritsLoose(subClass, superClass) {
  subClass.prototype = _core_js_object_create__WEBPACK_IMPORTED_MODULE_0___default()(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
/* harmony import */ var _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core-js/object/keys */ "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js");
/* harmony import */ var _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_core_js_object_keys__WEBPACK_IMPORTED_MODULE_0__);

function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};

  var sourceKeys = _core_js_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(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;
}

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/extends.js":
/*!****************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/extends.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _Object$assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js");

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;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    "default": obj
  };
}

module.exports = _interopRequireDefault;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _Object$getOwnPropertyDescriptor = __webpack_require__(/*! ../core-js/object/get-own-property-descriptor */ "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js");

var _Object$defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js");

var _typeof = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/@babel/runtime-corejs2/helpers/typeof.js");

var _WeakMap = __webpack_require__(/*! ../core-js/weak-map */ "./node_modules/@babel/runtime-corejs2/core-js/weak-map.js");

function _getRequireWildcardCache() {
  if (typeof _WeakMap !== "function") return null;
  var cache = new _WeakMap();

  _getRequireWildcardCache = function _getRequireWildcardCache() {
    return cache;
  };

  return cache;
}

function _interopRequireWildcard(obj) {
  if (obj && obj.__esModule) {
    return obj;
  }

  if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
    return {
      "default": obj
    };
  }

  var cache = _getRequireWildcardCache();

  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }

  var newObj = {};
  var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;

  for (var key in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;

      if (desc && (desc.get || desc.set)) {
        _Object$defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }

  newObj["default"] = obj;

  if (cache) {
    cache.set(obj, newObj);
  }

  return newObj;
}

module.exports = _interopRequireWildcard;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/helpers/typeof.js":
/*!***************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/helpers/typeof.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var _Symbol$iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js");

var _Symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/@babel/runtime-corejs2/core-js/symbol.js");

function _typeof(obj) {
  "@babel/helpers - typeof";

  if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
    module.exports = _typeof = function _typeof(obj) {
      return typeof obj;
    };
  } else {
    module.exports = _typeof = function _typeof(obj) {
      return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
    };
  }

  return _typeof(obj);
}

module.exports = _typeof;

/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/from.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/from.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/es6.array.from */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.from.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Array.from;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/is-array.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/array/is-array.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.array.is-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.is-array.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Array.isArray;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/assign.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/assign.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.assign.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object.assign;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/create.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/create.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.create.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object;
module.exports = function create(P, D) {
  return $Object.create(P, D);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/define-property.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/define-property.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.define-property */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.define-property.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object;
module.exports = function defineProperty(it, key, desc) {
  return $Object.defineProperty(it, key, desc);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/entries.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/entries.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es7.object.entries */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.entries.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object.entries;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/get-own-property-descriptor.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/get-own-property-descriptor.js ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.get-own-property-descriptor */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object;
module.exports = function getOwnPropertyDescriptor(it, key) {
  return $Object.getOwnPropertyDescriptor(it, key);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/keys.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/keys.js ***!
  \********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.keys.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object.keys;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/values.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/object/values.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es7.object.values */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.values.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Object.values;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/parse-int.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/parse-int.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../modules/es6.parse-int */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.parse-int.js");
module.exports = __webpack_require__(/*! ../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").parseInt;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/index.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/index.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.symbol.js");
__webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.to-string.js");
__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
__webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.observable.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").Symbol;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/iterator.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/symbol/iterator.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/web.dom.iterable.js");
module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-ext.js").f('iterator');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/weak-map.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/fn/weak-map.js ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../modules/es6.object.to-string */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.to-string.js");
__webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/web.dom.iterable.js");
__webpack_require__(/*! ../modules/es6.weak-map */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.weak-map.js");
__webpack_require__(/*! ../modules/es7.weak-map.of */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.of.js");
__webpack_require__(/*! ../modules/es7.weak-map.from */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.from.js");
module.exports = __webpack_require__(/*! ../modules/_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").WeakMap;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_a-function.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_a-function.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  return it;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_add-to-unscopables.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_add-to-unscopables.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function () { /* empty */ };


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-instance.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-instance.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it, Constructor, name, forbiddenField) {
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
    throw TypeError(name + ': incorrect invocation!');
  } return it;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
module.exports = function (it) {
  if (!isObject(it)) throw TypeError(it + ' is not an object!');
  return it;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-includes.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-includes.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// false -> Array#indexOf
// true  -> Array#includes
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js");
var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-absolute-index.js");
module.exports = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIObject($this);
    var length = toLength(O.length);
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare
    if (IS_INCLUDES && el != el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare
      if (value != value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
      if (O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-methods.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-methods.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js");
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iobject.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js");
var asc = __webpack_require__(/*! ./_array-species-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-create.js");
module.exports = function (TYPE, $create) {
  var IS_MAP = TYPE == 1;
  var IS_FILTER = TYPE == 2;
  var IS_SOME = TYPE == 3;
  var IS_EVERY = TYPE == 4;
  var IS_FIND_INDEX = TYPE == 6;
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  var create = $create || asc;
  return function ($this, callbackfn, that) {
    var O = toObject($this);
    var self = IObject(O);
    var f = ctx(callbackfn, that, 3);
    var length = toLength(self.length);
    var index = 0;
    var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
    var val, res;
    for (;length > index; index++) if (NO_HOLES || index in self) {
      val = self[index];
      res = f(val, index, O);
      if (TYPE) {
        if (IS_MAP) result[index] = res;   // map
        else if (res) switch (TYPE) {
          case 3: return true;             // some
          case 5: return val;              // find
          case 6: return index;            // findIndex
          case 2: result.push(val);        // filter
        } else if (IS_EVERY) return false; // every
      }
    }
    return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-constructor.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-constructor.js ***!
  \****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array.js");
var SPECIES = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('species');

module.exports = function (original) {
  var C;
  if (isArray(original)) {
    C = original.constructor;
    // cross-realm fallback
    if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
    if (isObject(C)) {
      C = C[SPECIES];
      if (C === null) C = undefined;
    }
  } return C === undefined ? Array : C;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-create.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-create.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var speciesConstructor = __webpack_require__(/*! ./_array-species-constructor */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-species-constructor.js");

module.exports = function (original, length) {
  return new (speciesConstructor(original))(length);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_classof.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_classof.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_cof.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';

// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
  try {
    return it[key];
  } catch (e) { /* empty */ }
};

module.exports = function (it) {
  var O, T, B;
  return it === undefined ? 'Undefined' : it === null ? 'Null'
    // @@toStringTag case
    : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
    // builtinTag case
    : ARG ? cof(O)
    // ES3 arguments fallback
    : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_cof.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_cof.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = function (it) {
  return toString.call(it).slice(8, -1);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection-weak.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection-weak.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var redefineAll = __webpack_require__(/*! ./_redefine-all */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine-all.js");
var getWeak = __webpack_require__(/*! ./_meta */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js").getWeak;
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var anInstance = __webpack_require__(/*! ./_an-instance */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-instance.js");
var forOf = __webpack_require__(/*! ./_for-of */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_for-of.js");
var createArrayMethod = __webpack_require__(/*! ./_array-methods */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-methods.js");
var $has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var validate = __webpack_require__(/*! ./_validate-collection */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_validate-collection.js");
var arrayFind = createArrayMethod(5);
var arrayFindIndex = createArrayMethod(6);
var id = 0;

// fallback for uncaught frozen keys
var uncaughtFrozenStore = function (that) {
  return that._l || (that._l = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
  this.a = [];
};
var findUncaughtFrozen = function (store, key) {
  return arrayFind(store.a, function (it) {
    return it[0] === key;
  });
};
UncaughtFrozenStore.prototype = {
  get: function (key) {
    var entry = findUncaughtFrozen(this, key);
    if (entry) return entry[1];
  },
  has: function (key) {
    return !!findUncaughtFrozen(this, key);
  },
  set: function (key, value) {
    var entry = findUncaughtFrozen(this, key);
    if (entry) entry[1] = value;
    else this.a.push([key, value]);
  },
  'delete': function (key) {
    var index = arrayFindIndex(this.a, function (it) {
      return it[0] === key;
    });
    if (~index) this.a.splice(index, 1);
    return !!~index;
  }
};

module.exports = {
  getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
    var C = wrapper(function (that, iterable) {
      anInstance(that, C, NAME, '_i');
      that._t = NAME;      // collection type
      that._i = id++;      // collection id
      that._l = undefined; // leak store for uncaught frozen objects
      if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
    });
    redefineAll(C.prototype, {
      // 23.3.3.2 WeakMap.prototype.delete(key)
      // 23.4.3.3 WeakSet.prototype.delete(value)
      'delete': function (key) {
        if (!isObject(key)) return false;
        var data = getWeak(key);
        if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
        return data && $has(data, this._i) && delete data[this._i];
      },
      // 23.3.3.4 WeakMap.prototype.has(key)
      // 23.4.3.4 WeakSet.prototype.has(value)
      has: function has(key) {
        if (!isObject(key)) return false;
        var data = getWeak(key);
        if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
        return data && $has(data, this._i);
      }
    });
    return C;
  },
  def: function (that, key, value) {
    var data = getWeak(anObject(key), true);
    if (data === true) uncaughtFrozenStore(that).set(key, value);
    else data[that._i] = value;
    return that;
  },
  ufstore: uncaughtFrozenStore
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var meta = __webpack_require__(/*! ./_meta */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js");
var fails = __webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");
var redefineAll = __webpack_require__(/*! ./_redefine-all */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine-all.js");
var forOf = __webpack_require__(/*! ./_for-of */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_for-of.js");
var anInstance = __webpack_require__(/*! ./_an-instance */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-instance.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js");
var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js").f;
var each = __webpack_require__(/*! ./_array-methods */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-methods.js")(0);
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js");

module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
  var Base = global[NAME];
  var C = Base;
  var ADDER = IS_MAP ? 'set' : 'add';
  var proto = C && C.prototype;
  var O = {};
  if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
    new C().entries().next();
  }))) {
    // create collection constructor
    C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
    redefineAll(C.prototype, methods);
    meta.NEED = true;
  } else {
    C = wrapper(function (target, iterable) {
      anInstance(target, C, NAME, '_c');
      target._c = new Base();
      if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
    });
    each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
      var IS_ADDER = KEY == 'add' || KEY == 'set';
      if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
        anInstance(this, C, KEY);
        if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
        var result = this._c[KEY](a === 0 ? 0 : a, b);
        return IS_ADDER ? this : result;
      });
    });
    IS_WEAK || dP(C.prototype, 'size', {
      get: function () {
        return this._c.size;
      }
    });
  }

  setToStringTag(C, NAME);

  O[NAME] = C;
  $export($export.G + $export.W + $export.F, O);

  if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);

  return C;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var core = module.exports = { version: '2.6.11' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_create-property.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_create-property.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js");

module.exports = function (object, index, value) {
  if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  else object[index] = value;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// optional / simple context binding
var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_a-function.js");
module.exports = function (fn, that, length) {
  aFunction(fn);
  if (that === undefined) return fn;
  switch (length) {
    case 1: return function (a) {
      return fn.call(that, a);
    };
    case 2: return function (a, b) {
      return fn.call(that, a, b);
    };
    case 3: return function (a, b, c) {
      return fn.call(that, a, b, c);
    };
  }
  return function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
  if (it == undefined) throw TypeError("Can't call method on  " + it);
  return it;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_dom-create.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_dom-create.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var document = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js").document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
  return is ? document.createElement(it) : {};
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-bug-keys.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-bug-keys.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
module.exports = (
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-keys.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-keys.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js");
module.exports = function (it) {
  var result = getKeys(it);
  var getSymbols = gOPS.f;
  if (getSymbols) {
    var symbols = getSymbols(it);
    var isEnum = pIE.f;
    var i = 0;
    var key;
    while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  } return result;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js");
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var IS_WRAP = type & $export.W;
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE];
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  var key, own, out;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    if (own && has(exports, key)) continue;
    // export native or passed
    out = own ? target[key] : source[key];
    // prevent global pollution for namespaces
    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
    // bind timers to global for call from export context
    : IS_BIND && own ? ctx(out, global)
    // wrap global constructors for prevent change them in library
    : IS_WRAP && target[key] == out ? (function (C) {
      var F = function (a, b, c) {
        if (this instanceof C) {
          switch (arguments.length) {
            case 0: return new C();
            case 1: return new C(a);
            case 2: return new C(a, b);
          } return new C(a, b, c);
        } return C.apply(this, arguments);
      };
      F[PROTOTYPE] = C[PROTOTYPE];
      return F;
    // make static versions for prototype methods
    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
    if (IS_PROTO) {
      (exports.virtual || (exports.virtual = {}))[key] = out;
      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
      if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
    }
  }
};
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js ***!
  \********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_for-of.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_for-of.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js");
var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-call.js");
var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array-iter.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js");
var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/core.get-iterator-method.js");
var BREAK = {};
var RETURN = {};
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
  var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
  var f = ctx(fn, that, entries ? 2 : 1);
  var index = 0;
  var length, step, iterator, result;
  if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
  // fast case for arrays with default iterator
  if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
    result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
    if (result === BREAK || result === RETURN) return result;
  } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
    result = call(iterator, f, step.value, entries);
    if (result === BREAK || result === RETURN) return result;
  }
};
exports.BREAK = BREAK;
exports.RETURN = RETURN;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
  ? window : typeof self != 'undefined' && self.Math == Math ? self
  // eslint-disable-next-line no-new-func
  : Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
  return hasOwnProperty.call(it, key);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js");
module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
  return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_html.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_html.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var document = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js").document;
module.exports = document && document.documentElement;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ie8-dom-define.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ie8-dom-define.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iobject.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iobject.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_cof.js");
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  return cof(it) == 'String' ? it.split('') : Object(it);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array-iter.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array-iter.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// check on default Array iterator
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('iterator');
var ArrayProto = Array.prototype;

module.exports = function (it) {
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.2.2 IsArray(argument)
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_cof.js");
module.exports = Array.isArray || function isArray(arg) {
  return cof(arg) == 'Array';
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  return typeof it === 'object' ? it !== null : typeof it === 'function';
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-call.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-call.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// call something on iterator step with safe closing on error
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
module.exports = function (iterator, fn, value, entries) {
  try {
    return entries ? fn(anObject(value)[0], value[1]) : fn(value);
  // 7.4.6 IteratorClose(iterator, completion)
  } catch (e) {
    var ret = iterator['return'];
    if (ret !== undefined) anObject(ret.call(iterator));
    throw e;
  }
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-create.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-create.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var create = __webpack_require__(/*! ./_object-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-create.js");
var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js");
var IteratorPrototype = {};

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });

module.exports = function (Constructor, NAME, next) {
  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  setToStringTag(Constructor, NAME + ' Iterator');
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-define.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-define.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js");
var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-create.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js");
var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gpo.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';

var returnThis = function () { return this; };

module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  $iterCreate(Constructor, NAME, next);
  var getMethod = function (kind) {
    if (!BUGGY && kind in proto) return proto[kind];
    switch (kind) {
      case KEYS: return function keys() { return new Constructor(this, kind); };
      case VALUES: return function values() { return new Constructor(this, kind); };
    } return function entries() { return new Constructor(this, kind); };
  };
  var TAG = NAME + ' Iterator';
  var DEF_VALUES = DEFAULT == VALUES;
  var VALUES_BUG = false;
  var proto = Base.prototype;
  var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  var $default = $native || getMethod(DEFAULT);
  var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  var methods, key, IteratorPrototype;
  // Fix native
  if ($anyNative) {
    IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
    if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
      // Set @@toStringTag to native iterators
      setToStringTag(IteratorPrototype, TAG, true);
      // fix for some old engines
      if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
    }
  }
  // fix Array#{values, @@iterator}.name in V8 / FF
  if (DEF_VALUES && $native && $native.name !== VALUES) {
    VALUES_BUG = true;
    $default = function values() { return $native.call(this); };
  }
  // Define iterator
  if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
    hide(proto, ITERATOR, $default);
  }
  // Plug for library
  Iterators[NAME] = $default;
  Iterators[TAG] = returnThis;
  if (DEFAULT) {
    methods = {
      values: DEF_VALUES ? $default : getMethod(VALUES),
      keys: IS_SET ? $default : getMethod(KEYS),
      entries: $entries
    };
    if (FORCED) for (key in methods) {
      if (!(key in proto)) redefine(proto, key, methods[key]);
    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  }
  return methods;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-detect.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-detect.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('iterator');
var SAFE_CLOSING = false;

try {
  var riter = [7][ITERATOR]();
  riter['return'] = function () { SAFE_CLOSING = true; };
  // eslint-disable-next-line no-throw-literal
  Array.from(riter, function () { throw 2; });
} catch (e) { /* empty */ }

module.exports = function (exec, skipClosing) {
  if (!skipClosing && !SAFE_CLOSING) return false;
  var safe = false;
  try {
    var arr = [7];
    var iter = arr[ITERATOR]();
    iter.next = function () { return { done: safe = true }; };
    arr[ITERATOR] = function () { return iter; };
    exec(arr);
  } catch (e) { /* empty */ }
  return safe;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-step.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-step.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (done, value) {
  return { value: value, done: !!done };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = true;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(/*! ./_uid */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js")('meta');
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js").f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
  return true;
};
var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js")(function () {
  return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
  setDesc(it, META, { value: {
    i: 'O' + ++id, // object ID
    w: {}          // weak collections IDs
  } });
};
var fastKey = function (it, create) {
  // return primitive with prefix
  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return 'F';
    // not necessary to add metadata
    if (!create) return 'E';
    // add missing metadata
    setMeta(it);
  // return object ID
  } return it[META].i;
};
var getWeak = function (it, create) {
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return true;
    // not necessary to add metadata
    if (!create) return false;
    // add missing metadata
    setMeta(it);
  // return hash weak collections IDs
  } return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
  if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  return it;
};
var meta = module.exports = {
  KEY: META,
  NEED: false,
  fastKey: fastKey,
  getWeak: getWeak,
  onFreeze: onFreeze
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-assign.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-assign.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.2.1 Object.assign(target, source, ...)
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iobject.js");
var $assign = Object.assign;

// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js")(function () {
  var A = {};
  var B = {};
  // eslint-disable-next-line no-undef
  var S = Symbol();
  var K = 'abcdefghijklmnopqrst';
  A[S] = 7;
  K.split('').forEach(function (k) { B[k] = k; });
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  var T = toObject(target);
  var aLen = arguments.length;
  var index = 1;
  var getSymbols = gOPS.f;
  var isEnum = pIE.f;
  while (aLen > index) {
    var S = IObject(arguments[index++]);
    var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) {
      key = keys[j++];
      if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
    }
  } return T;
} : $assign;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-create.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-create.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dps.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-bug-keys.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';

// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
  // Thrash, waste and sodomy: IE GC bug
  var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_dom-create.js")('iframe');
  var i = enumBugKeys.length;
  var lt = '<';
  var gt = '>';
  var iframeDocument;
  iframe.style.display = 'none';
  __webpack_require__(/*! ./_html */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_html.js").appendChild(iframe);
  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  // createDict = iframe.contentWindow.Object;
  // html.removeChild(iframe);
  iframeDocument = iframe.contentWindow.document;
  iframeDocument.open();
  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  iframeDocument.close();
  createDict = iframeDocument.F;
  while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  return createDict();
};

module.exports = Object.create || function create(O, Properties) {
  var result;
  if (O !== null) {
    Empty[PROTOTYPE] = anObject(O);
    result = new Empty();
    Empty[PROTOTYPE] = null;
    // add "__proto__" for Object.getPrototypeOf polyfill
    result[IE_PROTO] = O;
  } else result = createDict();
  return Properties === undefined ? result : dPs(result, Properties);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ie8-dom-define.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-primitive.js");
var dP = Object.defineProperty;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPrimitive(P, true);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return dP(O, P, Attributes);
  } catch (e) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dps.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dps.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");

module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var keys = getKeys(Properties);
  var length = keys.length;
  var i = 0;
  var P;
  while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  return O;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopd.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopd.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-primitive.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ie8-dom-define.js");
var gOPD = Object.getOwnPropertyDescriptor;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  O = toIObject(O);
  P = toPrimitive(P, true);
  if (IE8_DOM_DEFINE) try {
    return gOPD(O, P);
  } catch (e) { /* empty */ }
  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn-ext.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn-ext.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn.js").f;
var toString = {}.toString;

var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  ? Object.getOwnPropertyNames(window) : [];

var getWindowNames = function (it) {
  try {
    return gOPN(it);
  } catch (e) {
    return windowNames.slice();
  }
};

module.exports.f = function getOwnPropertyNames(it) {
  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys-internal.js");
var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');

exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  return $keys(O, hiddenKeys);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gops.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gops.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gpo.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gpo.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var ObjectProto = Object.prototype;

module.exports = Object.getPrototypeOf || function (O) {
  O = toObject(O);
  if (has(O, IE_PROTO)) return O[IE_PROTO];
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
    return O.constructor.prototype;
  } return O instanceof Object ? ObjectProto : null;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys-internal.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys-internal.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-includes.js")(false);
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');

module.exports = function (object, names) {
  var O = toIObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (has(O, key = names[i++])) {
    ~arrayIndexOf(result, key) || result.push(key);
  }
  return result;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys-internal.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-bug-keys.js");

module.exports = Object.keys || function keys(O) {
  return $keys(O, enumBugKeys);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = {}.propertyIsEnumerable;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-sap.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-sap.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js");
var fails = __webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js");
module.exports = function (KEY, exec) {
  var fn = (core.Object || {})[KEY] || Object[KEY];
  var exp = {};
  exp[KEY] = exec(fn);
  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-to-array.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-to-array.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var isEnum = __webpack_require__(/*! ./_object-pie */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js").f;
module.exports = function (isEntries) {
  return function (it) {
    var O = toIObject(it);
    var keys = getKeys(O);
    var length = keys.length;
    var i = 0;
    var result = [];
    var key;
    while (length > i) {
      key = keys[i++];
      if (!DESCRIPTORS || isEnum.call(O, key)) {
        result.push(isEntries ? [key, O[key]] : O[key]);
      }
    }
    return result;
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_parse-int.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_parse-int.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $parseInt = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js").parseInt;
var $trim = __webpack_require__(/*! ./_string-trim */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-trim.js").trim;
var ws = __webpack_require__(/*! ./_string-ws */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-ws.js");
var hex = /^[-+]?0[xX]/;

module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
  var string = $trim(String(str), 3);
  return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
} : $parseInt;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine-all.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine-all.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var hide = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");
module.exports = function (target, src, safe) {
  for (var key in src) {
    if (safe && target[key]) target[key] = src[key];
    else hide(target, key, src[key]);
  } return target;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-from.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-from.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_a-function.js");
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js");
var forOf = __webpack_require__(/*! ./_for-of */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_for-of.js");

module.exports = function (COLLECTION) {
  $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
    var mapFn = arguments[1];
    var mapping, A, n, cb;
    aFunction(this);
    mapping = mapFn !== undefined;
    if (mapping) aFunction(mapFn);
    if (source == undefined) return new this();
    A = [];
    if (mapping) {
      n = 0;
      cb = ctx(mapFn, arguments[2], 2);
      forOf(source, false, function (nextItem) {
        A.push(cb(nextItem, n++));
      });
    } else {
      forOf(source, false, A.push, A);
    }
    return new this(A);
  } });
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-of.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-of.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");

module.exports = function (COLLECTION) {
  $export($export.S, COLLECTION, { of: function of() {
    var length = arguments.length;
    var A = new Array(length);
    while (length--) A[length] = arguments[length];
    return new this(A);
  } });
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js").f;
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('toStringTag');

module.exports = function (it, tag, stat) {
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared-key.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared-key.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var shared = __webpack_require__(/*! ./_shared */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared.js")('keys');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js");
module.exports = function (key) {
  return shared[key] || (shared[key] = uid(key));
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var core = __webpack_require__(/*! ./_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});

(module.exports = function (key, value) {
  return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
  version: core.version,
  mode: __webpack_require__(/*! ./_library */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-at.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-at.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-integer.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js");
// true  -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
  return function (that, pos) {
    var s = String(defined(that));
    var i = toInteger(pos);
    var l = s.length;
    var a, b;
    if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
    a = s.charCodeAt(i);
    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
      ? TO_STRING ? s.charAt(i) : a
      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  };
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-trim.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-trim.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js");
var fails = __webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js");
var spaces = __webpack_require__(/*! ./_string-ws */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-ws.js");
var space = '[' + spaces + ']';
var non = '\u200b\u0085';
var ltrim = RegExp('^' + space + space + '*');
var rtrim = RegExp(space + space + '*$');

var exporter = function (KEY, exec, ALIAS) {
  var exp = {};
  var FORCE = fails(function () {
    return !!spaces[KEY]() || non[KEY]() != non;
  });
  var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  if (ALIAS) exp[ALIAS] = fn;
  $export($export.P + $export.F * FORCE, 'String', exp);
};

// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
  string = String(defined(string));
  if (TYPE & 1) string = string.replace(ltrim, '');
  if (TYPE & 2) string = string.replace(rtrim, '');
  return string;
};

module.exports = exporter;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-ws.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-ws.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-absolute-index.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-absolute-index.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-integer.js");
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
  index = toInteger(index);
  return index < 0 ? max(index + length, 0) : min(index, length);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-integer.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-integer.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iobject.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return IObject(defined(it));
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.15 ToLength
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-integer.js");
var min = Math.min;
module.exports = function (it) {
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.13 ToObject(argument)
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return Object(defined(it));
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-primitive.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-primitive.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
  if (!isObject(it)) return it;
  var fn, val;
  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  throw TypeError("Can't convert object to primitive value");
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_validate-collection.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_validate-collection.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
module.exports = function (it, TYPE) {
  if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
  return it;
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-define.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-define.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js");
var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-ext.js");
var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js").f;
module.exports = function (name) {
  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-ext.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-ext.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js");


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var store = __webpack_require__(/*! ./_shared */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared.js")('wks');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js");
var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js").Symbol;
var USE_SYMBOL = typeof Symbol == 'function';

var $exports = module.exports = function (name) {
  return store[name] || (store[name] =
    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};

$exports.store = store;


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/core.get-iterator-method.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/core.get-iterator-method.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var classof = __webpack_require__(/*! ./_classof */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_classof.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('iterator');
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js");
module.exports = __webpack_require__(/*! ./_core */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) {
  if (it != undefined) return it[ITERATOR]
    || it['@@iterator']
    || Iterators[classof(it)];
};


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.from.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.from.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_ctx.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-call.js");
var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array-iter.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-length.js");
var createProperty = __webpack_require__(/*! ./_create-property */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_create-property.js");
var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/core.get-iterator-method.js");

$export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { Array.from(iter); }), 'Array', {
  // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
    var O = toObject(arrayLike);
    var C = typeof this == 'function' ? this : Array;
    var aLen = arguments.length;
    var mapfn = aLen > 1 ? arguments[1] : undefined;
    var mapping = mapfn !== undefined;
    var index = 0;
    var iterFn = getIterFn(O);
    var length, result, step, iterator;
    if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
    // if object isn't iterable or it's array with default iterator - use simple case
    if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
      for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
        createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
      }
    } else {
      length = toLength(O.length);
      for (result = new C(length); length > index; index++) {
        createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
      }
    }
    result.length = index;
    return result;
  }
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.is-array.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.is-array.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");

$export($export.S, 'Array', { isArray: __webpack_require__(/*! ./_is-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array.js") });


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.iterator.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.iterator.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_add-to-unscopables.js");
var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-step.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");

// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
  this._t = toIObject(iterated); // target
  this._i = 0;                   // next index
  this._k = kind;                // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var kind = this._k;
  var index = this._i++;
  if (!O || index >= O.length) {
    this._t = undefined;
    return step(1);
  }
  if (kind == 'keys') return step(0, index);
  if (kind == 'values') return step(0, O[index]);
  return step(0, [index, O[index]]);
}, 'values');

// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;

addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.assign.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.assign.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");

$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-assign.js") });


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.create.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.create.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', { create: __webpack_require__(/*! ./_object-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-create.js") });


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.define-property.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.define-property.js ***!
  \****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js").f });


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js ***!
  \****************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var $getOwnPropertyDescriptor = __webpack_require__(/*! ./_object-gopd */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopd.js").f;

__webpack_require__(/*! ./_object-sap */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-sap.js")('getOwnPropertyDescriptor', function () {
  return function getOwnPropertyDescriptor(it, key) {
    return $getOwnPropertyDescriptor(toIObject(it), key);
  };
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.keys.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.keys.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");

__webpack_require__(/*! ./_object-sap */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-sap.js")('keys', function () {
  return function keys(it) {
    return $keys(toObject(it));
  };
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.to-string.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.object.to-string.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {



/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.parse-int.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.parse-int.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var $parseInt = __webpack_require__(/*! ./_parse-int */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_parse-int.js");
// 18.2.5 parseInt(string, radix)
$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.string.iterator.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.string.iterator.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_string-at.js")(true);

// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(/*! ./_iter-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
  this._t = String(iterated); // target
  this._i = 0;                // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var index = this._i;
  var point;
  if (index >= O.length) return { value: undefined, done: true };
  point = $at(O, index);
  this._i += point.length;
  return { value: point, done: false };
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.symbol.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.symbol.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// ECMAScript 6 symbols shim
var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_has.js");
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_descriptors.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine.js");
var META = __webpack_require__(/*! ./_meta */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js").KEY;
var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_fails.js");
var shared = __webpack_require__(/*! ./_shared */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_shared.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-to-string-tag.js");
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_uid.js");
var wks = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-ext.js");
var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-define.js");
var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_enum-keys.js");
var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-array.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_an-object.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-object.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_to-primitive.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_property-desc.js");
var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-create.js");
var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn-ext.js");
var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopd.js");
var $GOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gops.js");
var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-dp.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-keys.js");
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
  return _create(dP({}, 'a', {
    get: function () { return dP(this, 'a', { value: 7 }).a; }
  })).a != 7;
}) ? function (it, key, D) {
  var protoDesc = gOPD(ObjectProto, key);
  if (protoDesc) delete ObjectProto[key];
  dP(it, key, D);
  if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;

var wrap = function (tag) {
  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  sym._k = tag;
  return sym;
};

var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  return it instanceof $Symbol;
};

var $defineProperty = function defineProperty(it, key, D) {
  if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  anObject(it);
  key = toPrimitive(key, true);
  anObject(D);
  if (has(AllSymbols, key)) {
    if (!D.enumerable) {
      if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
      it[HIDDEN][key] = true;
    } else {
      if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
      D = _create(D, { enumerable: createDesc(0, false) });
    } return setSymbolDesc(it, key, D);
  } return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
  anObject(it);
  var keys = enumKeys(P = toIObject(P));
  var i = 0;
  var l = keys.length;
  var key;
  while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  return it;
};
var $create = function create(it, P) {
  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  var E = isEnum.call(this, key = toPrimitive(key, true));
  if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  it = toIObject(it);
  key = toPrimitive(key, true);
  if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  var D = gOPD(it, key);
  if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  var names = gOPN(toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  } return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  var IS_OP = it === ObjectProto;
  var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  } return result;
};

// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
  $Symbol = function Symbol() {
    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
    var $set = function (value) {
      if (this === ObjectProto) $set.call(OPSymbols, value);
      if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
      setSymbolDesc(this, tag, createDesc(1, value));
    };
    if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
    return wrap(tag);
  };
  redefine($Symbol[PROTOTYPE], 'toString', function toString() {
    return this._k;
  });

  $GOPD.f = $getOwnPropertyDescriptor;
  $DP.f = $defineProperty;
  __webpack_require__(/*! ./_object-gopn */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
  __webpack_require__(/*! ./_object-pie */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
  $GOPS.f = $getOwnPropertySymbols;

  if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_library.js")) {
    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  }

  wksExt.f = function (name) {
    return wrap(wks(name));
  };
}

$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });

for (var es6Symbols = (
  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);

for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);

$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  // 19.4.2.1 Symbol.for(key)
  'for': function (key) {
    return has(SymbolRegistry, key += '')
      ? SymbolRegistry[key]
      : SymbolRegistry[key] = $Symbol(key);
  },
  // 19.4.2.5 Symbol.keyFor(sym)
  keyFor: function keyFor(sym) {
    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
    for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  },
  useSetter: function () { setter = true; },
  useSimple: function () { setter = false; }
});

$export($export.S + $export.F * !USE_NATIVE, 'Object', {
  // 19.1.2.2 Object.create(O [, Properties])
  create: $create,
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  defineProperty: $defineProperty,
  // 19.1.2.3 Object.defineProperties(O, Properties)
  defineProperties: $defineProperties,
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  // 19.1.2.7 Object.getOwnPropertyNames(O)
  getOwnPropertyNames: $getOwnPropertyNames,
  // 19.1.2.8 Object.getOwnPropertySymbols(O)
  getOwnPropertySymbols: $getOwnPropertySymbols
});

// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });

$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
  getOwnPropertySymbols: function getOwnPropertySymbols(it) {
    return $GOPS.f(toObject(it));
  }
});

// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  var S = $Symbol();
  // MS Edge converts symbol values to JSON as {}
  // WebKit converts symbol values to JSON as null
  // V8 throws on boxed symbols
  return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
  stringify: function stringify(it) {
    var args = [it];
    var i = 1;
    var replacer, $replacer;
    while (arguments.length > i) args.push(arguments[i++]);
    $replacer = replacer = args[1];
    if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
    if (!isArray(replacer)) replacer = function (key, value) {
      if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
      if (!isSymbol(value)) return value;
    };
    args[1] = replacer;
    return _stringify.apply($JSON, args);
  }
});

// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.weak-map.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.weak-map.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var each = __webpack_require__(/*! ./_array-methods */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_array-methods.js")(0);
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_redefine.js");
var meta = __webpack_require__(/*! ./_meta */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_meta.js");
var assign = __webpack_require__(/*! ./_object-assign */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-assign.js");
var weak = __webpack_require__(/*! ./_collection-weak */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection-weak.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_is-object.js");
var validate = __webpack_require__(/*! ./_validate-collection */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_validate-collection.js");
var NATIVE_WEAK_MAP = __webpack_require__(/*! ./_validate-collection */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_validate-collection.js");
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var WEAK_MAP = 'WeakMap';
var getWeak = meta.getWeak;
var isExtensible = Object.isExtensible;
var uncaughtFrozenStore = weak.ufstore;
var InternalMap;

var wrapper = function (get) {
  return function WeakMap() {
    return get(this, arguments.length > 0 ? arguments[0] : undefined);
  };
};

var methods = {
  // 23.3.3.3 WeakMap.prototype.get(key)
  get: function get(key) {
    if (isObject(key)) {
      var data = getWeak(key);
      if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
      return data ? data[this._i] : undefined;
    }
  },
  // 23.3.3.5 WeakMap.prototype.set(key, value)
  set: function set(key, value) {
    return weak.def(validate(this, WEAK_MAP), key, value);
  }
};

// 23.3 WeakMap Objects
var $WeakMap = module.exports = __webpack_require__(/*! ./_collection */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_collection.js")(WEAK_MAP, wrapper, methods, weak, true, true);

// IE11 WeakMap frozen keys fix
if (NATIVE_WEAK_MAP && IS_IE11) {
  InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
  assign(InternalMap.prototype, methods);
  meta.NEED = true;
  each(['delete', 'has', 'get', 'set'], function (key) {
    var proto = $WeakMap.prototype;
    var method = proto[key];
    redefine(proto, key, function (a, b) {
      // store frozen objects on internal weakmap shim
      if (isObject(a) && !isExtensible(a)) {
        if (!this._f) this._f = new InternalMap();
        var result = this._f[key](a, b);
        return key == 'set' ? this : result;
      // store all the rest on native weakmap
      } return method.call(this, a, b);
    });
  });
}


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.entries.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.entries.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var $entries = __webpack_require__(/*! ./_object-to-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-to-array.js")(true);

$export($export.S, 'Object', {
  entries: function entries(it) {
    return $entries(it);
  }
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.values.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.object.values.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(/*! ./_export */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_export.js");
var $values = __webpack_require__(/*! ./_object-to-array */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_object-to-array.js")(false);

$export($export.S, 'Object', {
  values: function values(it) {
    return $values(it);
  }
});


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.observable.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.symbol.observable.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks-define.js")('observable');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.from.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.from.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
__webpack_require__(/*! ./_set-collection-from */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-from.js")('WeakMap');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.of.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es7.weak-map.of.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
__webpack_require__(/*! ./_set-collection-of */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_set-collection-of.js")('WeakMap');


/***/ }),

/***/ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/web.dom.iterable.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/web.dom.iterable.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./es6.array.iterator */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/es6.array.iterator.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_global.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_iterators.js");
var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/@babel/runtime-corejs2/node_modules/core-js/library/modules/_wks.js")('toStringTag');

var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
  'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
  'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
  'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
  'TextTrackList,TouchList').split(',');

for (var i = 0; i < DOMIterables.length; i++) {
  var NAME = DOMIterables[i];
  var Collection = global[NAME];
  var proto = Collection && Collection.prototype;
  if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  Iterators[NAME] = Iterators.Array;
}


/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
/*!************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];

      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }

    return target;
  };

  return _extends.apply(this, arguments);
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
/*!******************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
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;
}

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/extends.js":
/*!********************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/extends.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (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;

/***/ }),

/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}

module.exports = _interopRequireDefault;

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/contains.js":
/*!***************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/contains.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
function contains(parent, child) {
  // $FlowFixMe: hasOwnProperty doesn't seem to work in tests
  var isShadow = Boolean(child.getRootNode && child.getRootNode().host); // First, attempt with faster native method

  if (parent.contains(child)) {
    return true;
  } // then fallback to custom implementation with Shadow DOM support
  else if (isShadow) {
      var next = child;

      do {
        if (next && parent.isSameNode(next)) {
          return true;
        } // $FlowFixMe: need a better way to handle this...


        next = next.parentNode || next.host;
      } while (next);
    } // Give up, the result is false


  return false;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getBorders.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getBorders.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBorders; });
/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");



function toNumber(cssValue) {
  return parseFloat(cssValue) || 0;
}

function getBorders(element) {
  var computedStyle = Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__["isHTMLElement"])(element) ? Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element) : {};
  return {
    top: toNumber(computedStyle.borderTopWidth),
    right: toNumber(computedStyle.borderRightWidth),
    bottom: toNumber(computedStyle.borderBottomWidth),
    left: toNumber(computedStyle.borderLeftWidth)
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBoundingClientRect; });
function getBoundingClientRect(element) {
  var rect = element.getBoundingClientRect();
  return {
    width: rect.width,
    height: rect.height,
    top: rect.top,
    right: rect.right,
    bottom: rect.bottom,
    left: rect.left,
    x: rect.left,
    y: rect.top
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getClippingRect; });
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getViewportRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js");
/* harmony import */ var _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js");
/* harmony import */ var _listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js");
/* harmony import */ var _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getDecorations_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getDecorations.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDecorations.js");
/* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js");
/* harmony import */ var _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js");













function getClientRectFromMixedType(element, clippingParent) {
  return clippingParent === _enums_js__WEBPACK_IMPORTED_MODULE_0__["viewport"] ? Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_11__["default"])(Object(_getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)) : Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isHTMLElement"])(clippingParent) ? Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__["default"])(clippingParent) : Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_11__["default"])(Object(_getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(element)));
} // A "clipping parent" is an overflowable container with the characteristic of
// clipping (or hiding) overflowing elements with a position different from
// `initial`


function getClippingParents(element) {
  var clippingParents = Object(_listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element);
  var canEscapeClipping = ['absolute', 'fixed'].indexOf(Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(element).position) >= 0;
  var clipperElement = canEscapeClipping && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isHTMLElement"])(element) ? Object(_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__["default"])(element) : element;

  if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isElement"])(clipperElement)) {
    return [];
  } // $FlowFixMe: https://github.com/facebook/flow/issues/1414


  return clippingParents.filter(function (clippingParent) {
    return Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isElement"])(clippingParent) && Object(_contains_js__WEBPACK_IMPORTED_MODULE_10__["default"])(clippingParent, clipperElement);
  });
} // Gets the maximum area that the element is visible in due to any number of
// clipping parents


function getClippingRect(element, boundary, rootBoundary) {
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
  var firstClippingParent = clippingParents[0];
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
    var rect = getClientRectFromMixedType(element, clippingParent);
    var decorations = Object(_getDecorations_js__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isHTMLElement"])(clippingParent) ? clippingParent : Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(element));
    accRect.top = Math.max(rect.top + decorations.top, accRect.top);
    accRect.right = Math.min(rect.right - decorations.right, accRect.right);
    accRect.bottom = Math.min(rect.bottom - decorations.bottom, accRect.bottom);
    accRect.left = Math.max(rect.left + decorations.left, accRect.left);
    return accRect;
  }, getClientRectFromMixedType(element, firstClippingParent));
  clippingRect.width = clippingRect.right - clippingRect.left;
  clippingRect.height = clippingRect.bottom - clippingRect.top;
  clippingRect.x = clippingRect.left;
  clippingRect.y = clippingRect.top;
  return clippingRect;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getCompositeRect; });
/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js");
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js");
/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");





 // Returns the composite rect of an element relative to its offsetParent.
// Composite means it takes into account transforms as well as layout.

function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
  if (isFixed === void 0) {
    isFixed = false;
  }

  var documentElement;
  var rect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(elementOrVirtualElement);
  var scroll = {
    scrollLeft: 0,
    scrollTop: 0
  };
  var offsets = {
    x: 0,
    y: 0
  };

  if (!isFixed) {
    if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent) !== 'body') {
      scroll = Object(_getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent);
    }

    if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(offsetParent)) {
      offsets = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(offsetParent);
      offsets.x += offsetParent.clientLeft;
      offsets.y += offsetParent.clientTop;
    } else if (documentElement = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(offsetParent)) {
      offsets.x = Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__["default"])(documentElement);
    }
  }

  return {
    x: rect.left + scroll.scrollLeft - offsets.x,
    y: rect.top + scroll.scrollTop - offsets.y,
    width: rect.width,
    height: rect.height
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getComputedStyle; });
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");

function getComputedStyle(element) {
  return Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element).getComputedStyle(element);
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDecorations.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getDecorations.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDecorations; });
/* harmony import */ var _getBorders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBorders.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBorders.js");
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js");



 // Borders + scrollbars

function getDecorations(element) {
  var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element);
  var borders = Object(_getBorders_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
  var isHTML = Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element) === 'html';
  var winScrollBarX = Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element);
  var x = element.clientWidth + borders.right;
  var y = element.clientHeight + borders.bottom; // HACK:
  // document.documentElement.clientHeight on iOS reports the height of the
  // viewport including the bottom bar, even if the bottom bar isn't visible.
  // If the difference between window innerHeight and html clientHeight is more
  // than 50, we assume it's a mobile bottom bar and ignore scrollbars.
  // * A 50px thick scrollbar is likely non-existent (macOS is 15px and Windows
  //   is about 17px)
  // * The mobile bar is 114px tall

  if (isHTML && win.innerHeight - element.clientHeight > 50) {
    y = win.innerHeight - borders.bottom;
  }

  return {
    top: isHTML ? 0 : element.clientTop,
    right: // RTL scrollbar (scrolling containers only)
    element.clientLeft > borders.left ? borders.right : // LTR scrollbar
    isHTML ? win.innerWidth - x - winScrollBarX : element.offsetWidth - x,
    bottom: isHTML ? win.innerHeight - y : element.offsetHeight - y,
    left: isHTML ? winScrollBarX : element.clientLeft
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDocumentElement; });
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");

function getDocumentElement(element) {
  // $FlowFixMe: assume body is always available
  return (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__["isElement"])(element) ? element.ownerDocument : element.document).documentElement;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDocumentRect; });
/* harmony import */ var _getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getCompositeRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js");
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");




function getDocumentRect(element) {
  var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
  var winScroll = Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element);
  var documentRect = Object(_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element), win);
  documentRect.height = Math.max(documentRect.height, win.innerHeight);
  documentRect.width = Math.max(documentRect.width, win.innerWidth);
  documentRect.x = -winScroll.scrollLeft;
  documentRect.y = -winScroll.scrollTop;
  return documentRect;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getHTMLElementScroll; });
function getHTMLElementScroll(element) {
  return {
    scrollLeft: element.scrollLeft,
    scrollTop: element.scrollTop
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getLayoutRect; });
// Returns the layout rect of an element relative to its offsetParent. Layout
// means it doesn't take into account transforms.
function getLayoutRect(element) {
  return {
    x: element.offsetLeft,
    y: element.offsetTop,
    width: element.offsetWidth,
    height: element.offsetHeight
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":
/*!******************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getNodeName; });
function getNodeName(element) {
  return element ? (element.nodeName || '').toLowerCase() : null;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getNodeScroll; });
/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getHTMLElementScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");




function getNodeScroll(node) {
  if (node === Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node) || !Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_2__["isHTMLElement"])(node)) {
    return Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node);
  } else {
    return Object(_getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__["default"])(node);
  }
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOffsetParent; });
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _isTableElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isTableElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js");






function getTrueOffsetParent(element) {
  if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(element) || // https://github.com/popperjs/popper-core/issues/837
  Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element).position === 'fixed') {
    return null;
  }

  return element.offsetParent;
}

function getOffsetParent(element) {
  var window = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
  var offsetParent = getTrueOffsetParent(element); // Find the nearest non-table offsetParent

  while (offsetParent && Object(_isTableElement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent)) {
    offsetParent = getTrueOffsetParent(offsetParent);
  }

  if (offsetParent && Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent) === 'body' && Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent).position === 'static') {
    return window;
  }

  return offsetParent || window;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getParentNode; });
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");


function getParentNode(element) {
  if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element) === 'html') {
    return element;
  }

  return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
    element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
    element.parentNode || // DOM Element detected
    // $FlowFixMe: need a better way to handle this...
    element.host || // ShadowRoot detected
    // $FlowFixMe: HTMLElement is a Node
    Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element) // fallback

  );
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollParent; });
/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");




function getScrollParent(node) {
  if (['html', 'body', '#document'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(node)) >= 0) {
    // $FlowFixMe: assume body is always available
    return node.ownerDocument.body;
  }

  if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(node)) {
    // Firefox wants us to check `-x` and `-y` variations as well
    var _getComputedStyle = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node),
        overflow = _getComputedStyle.overflow,
        overflowX = _getComputedStyle.overflowX,
        overflowY = _getComputedStyle.overflowY;

    if (/auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX)) {
      return node;
    }
  }

  return getScrollParent(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node));
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getViewportRect; });
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");

function getViewportRect(element) {
  var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
  var visualViewport = win.visualViewport;
  var width = win.innerWidth;
  var height = win.innerHeight; // We don't know which browsers have buggy or odd implementations of this, so
  // for now we're only applying it to iOS to fix the keyboard issue.
  // Investigation required

  if (visualViewport && /iPhone|iPod|iPad/.test(navigator.platform)) {
    width = visualViewport.width;
    height = visualViewport.height;
  }

  return {
    width: width,
    height: height,
    x: 0,
    y: 0
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":
/*!****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindow; });
/*:: import type { Window } from '../types'; */

/*:: declare function getWindow(node: Node | Window): Window; */
function getWindow(node) {
  if (node.toString() !== '[object Window]') {
    var ownerDocument = node.ownerDocument;
    return ownerDocument ? ownerDocument.defaultView : window;
  }

  return node;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindowScroll; });
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");

function getWindowScroll(node) {
  var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node);
  var scrollLeft = win.pageXOffset;
  var scrollTop = win.pageYOffset;
  return {
    scrollLeft: scrollLeft,
    scrollTop: scrollTop
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindowScrollBarX; });
/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");



function getWindowScrollBarX(element) {
  // If <html> has a CSS width greater than the viewport, then this will be
  // incorrect for RTL.
  // Popper 1 is broken in this case and never had a bug report so let's assume
  // it's not an issue. I don't think anyone ever specifies width on <html>
  // anyway.
  // Browsers where the left scrollbar doesn't cause an issue report `0` for
  // this (e.g. Edge 2019, IE11, Safari)
  return Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)).left + Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element).scrollLeft;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js ***!
  \*****************************************************************/
/*! exports provided: isElement, isHTMLElement */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isElement", function() { return isElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isHTMLElement", function() { return isHTMLElement; });
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");

/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
  Element); */

function isElement(node) {
  var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).Element;
  return node instanceof OwnElement || node instanceof Element;
}
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
  HTMLElement); */


function isHTMLElement(node) {
  var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).HTMLElement;
  return node instanceof OwnElement || node instanceof HTMLElement;
}



/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isTableElement; });
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");

function isTableElement(element) {
  return ['table', 'td', 'th'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) >= 0;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":
/*!************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return listScrollParents; });
/* harmony import */ var _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js");
/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js");
/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");
/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");




function listScrollParents(element, list) {
  if (list === void 0) {
    list = [];
  }

  var scrollParent = Object(_getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
  var isBody = Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(scrollParent) === 'body';
  var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_3__["default"])(scrollParent);
  var target = isBody ? [win].concat(win.visualViewport || []) : scrollParent;
  var updatedList = list.concat(target);
  return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
  updatedList.concat(listScrollParents(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_1__["default"])(target)));
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/enums.js":
/*!**************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/enums.js ***!
  \**************************************************/
/*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "top", function() { return top; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bottom", function() { return bottom; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "right", function() { return right; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "left", function() { return left; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "auto", function() { return auto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basePlacements", function() { return basePlacements; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "start", function() { return start; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "end", function() { return end; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clippingParents", function() { return clippingParents; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "viewport", function() { return viewport; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popper", function() { return popper; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reference", function() { return reference; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "variationPlacements", function() { return variationPlacements; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeRead", function() { return beforeRead; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "read", function() { return read; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterRead", function() { return afterRead; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeMain", function() { return beforeMain; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "main", function() { return main; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterMain", function() { return afterMain; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeWrite", function() { return beforeWrite; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "write", function() { return write; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterWrite", function() { return afterWrite; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "modifierPhases", function() { return modifierPhases; });
var top = 'top';
var bottom = 'bottom';
var right = 'right';
var left = 'left';
var auto = 'auto';
var basePlacements = [top, bottom, right, left];
var start = 'start';
var end = 'end';
var clippingParents = 'clippingParents';
var viewport = 'viewport';
var popper = 'popper';
var reference = 'reference';
var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
  return acc.concat([placement + "-" + start, placement + "-" + end]);
}, []);
var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
  return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
}, []); // modifiers that need to read the DOM

var beforeRead = 'beforeRead';
var read = 'read';
var afterRead = 'afterRead'; // pure-logic modifiers

var beforeMain = 'beforeMain';
var main = 'main';
var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)

var beforeWrite = 'beforeWrite';
var write = 'write';
var afterWrite = 'afterWrite';
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/index.js":
/*!**************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/index.js ***!
  \**************************************************/
/*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases, popperGenerator, createPopper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return popperGenerator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return createPopper; });
/* harmony import */ var _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-utils/getCompositeRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js");
/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom-utils/listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js");
/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/orderModifiers.js */ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js");
/* harmony import */ var _utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/debounce.js */ "./node_modules/@popperjs/core/lib/utils/debounce.js");
/* harmony import */ var _utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/validateModifiers.js */ "./node_modules/@popperjs/core/lib/utils/validateModifiers.js");
/* harmony import */ var _utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/uniqueBy.js */ "./node_modules/@popperjs/core/lib/utils/uniqueBy.js");
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/mergeByName.js */ "./node_modules/@popperjs/core/lib/utils/mergeByName.js");
/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "top", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["top"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bottom", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["bottom"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "right", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["right"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "left", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["left"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "auto", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["auto"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "basePlacements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["basePlacements"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "start", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["start"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "end", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["end"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clippingParents", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["clippingParents"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "viewport", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["viewport"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popper", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["popper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reference", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["reference"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variationPlacements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["variationPlacements"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["placements"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeRead", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["beforeRead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "read", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["read"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterRead", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["afterRead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeMain", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["beforeMain"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "main", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["main"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterMain", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["afterMain"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeWrite", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["beforeWrite"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "write", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["write"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterWrite", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["afterWrite"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "modifierPhases", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_12__["modifierPhases"]; });















var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
var DEFAULT_OPTIONS = {
  placement: 'bottom',
  modifiers: [],
  strategy: 'absolute'
};

function areValidElements() {
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }

  return !args.some(function (element) {
    return !(element && typeof element.getBoundingClientRect === 'function');
  });
}

function popperGenerator(generatorOptions) {
  if (generatorOptions === void 0) {
    generatorOptions = {};
  }

  var _generatorOptions = generatorOptions,
      _generatorOptions$def = _generatorOptions.defaultModifiers,
      defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
      _generatorOptions$def2 = _generatorOptions.defaultOptions,
      defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
  return function createPopper(reference, popper, options) {
    if (options === void 0) {
      options = defaultOptions;
    }

    var state = {
      placement: 'bottom',
      orderedModifiers: [],
      options: Object.assign({}, DEFAULT_OPTIONS, {}, defaultOptions),
      modifiersData: {},
      elements: {
        reference: reference,
        popper: popper
      },
      attributes: {},
      styles: {}
    };
    var effectCleanupFns = [];
    var isDestroyed = false;
    var instance = {
      state: state,
      setOptions: function setOptions(options) {
        cleanupModifierEffects();
        state.options = Object.assign({}, defaultOptions, {}, state.options, {}, options);
        state.scrollParents = {
          reference: Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_11__["isElement"])(reference) ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(reference) : reference.contextElement ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(reference.contextElement) : [],
          popper: Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(popper)
        }; // Orders the modifiers based on their dependencies and `phase`
        // properties

        var orderedModifiers = Object(_utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__["default"])([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers

        state.orderedModifiers = orderedModifiers.filter(function (m) {
          return m.enabled;
        }); // Validate the provided modifiers so that the consumer will get warned
        // if one of the modifiers is invalid for any reason

        if (true) {
          var modifiers = Object(_utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__["default"])([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
            var name = _ref.name;
            return name;
          });
          Object(_utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__["default"])(modifiers);

          if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__["default"])(state.options.placement) === _enums_js__WEBPACK_IMPORTED_MODULE_12__["auto"]) {
            var flipModifier = state.orderedModifiers.find(function (_ref2) {
              var name = _ref2.name;
              return name === 'flip';
            });

            if (!flipModifier) {
              console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
            }
          }

          var _getComputedStyle = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(popper),
              marginTop = _getComputedStyle.marginTop,
              marginRight = _getComputedStyle.marginRight,
              marginBottom = _getComputedStyle.marginBottom,
              marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
          // cause bugs with positioning, so we'll warn the consumer


          if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
            return parseFloat(margin);
          })) {
            console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
          }
        }

        runModifierEffects();
        return instance.update();
      },
      // Sync update – it will always be executed, even if not necessary. This
      // is useful for low frequency updates where sync behavior simplifies the
      // logic.
      // For high frequency updates (e.g. `resize` and `scroll` events), always
      // prefer the async Popper#update method
      forceUpdate: function forceUpdate() {
        if (isDestroyed) {
          return;
        }

        var _state$elements = state.elements,
            reference = _state$elements.reference,
            popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
        // anymore

        if (!areValidElements(reference, popper)) {
          if (true) {
            console.error(INVALID_ELEMENT_ERROR);
          }

          return;
        } // Store the reference and popper rects to be read by modifiers


        state.rects = {
          reference: Object(_dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(reference, Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper), state.options.strategy === 'fixed'),
          popper: Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(popper)
        }; // Modifiers have the ability to reset the current update cycle. The
        // most common use case for this is the `flip` modifier changing the
        // placement, which then needs to re-run all the modifiers, because the
        // logic was previously ran for the previous placement and is therefore
        // stale/incorrect

        state.reset = false;
        state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
        // is filled with the initial data specified by the modifier. This means
        // it doesn't persist and is fresh on each update.
        // To ensure persistent data, use `${name}#persistent`

        state.orderedModifiers.forEach(function (modifier) {
          return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
        });
        var __debug_loops__ = 0;

        for (var index = 0; index < state.orderedModifiers.length; index++) {
          if (true) {
            __debug_loops__ += 1;

            if (__debug_loops__ > 100) {
              console.error(INFINITE_LOOP_ERROR);
              break;
            }
          }

          if (state.reset === true) {
            state.reset = false;
            index = -1;
            continue;
          }

          var _state$orderedModifie = state.orderedModifiers[index],
              fn = _state$orderedModifie.fn,
              _state$orderedModifie2 = _state$orderedModifie.options,
              _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
              name = _state$orderedModifie.name;

          if (typeof fn === 'function') {
            state = fn({
              state: state,
              options: _options,
              name: name,
              instance: instance
            }) || state;
          }
        }
      },
      // Async and optimistically optimized update – it will not be executed if
      // not necessary (debounced to run at most once-per-tick)
      update: Object(_utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function () {
        return new Promise(function (resolve) {
          instance.forceUpdate();
          resolve(state);
        });
      }),
      destroy: function destroy() {
        cleanupModifierEffects();
        isDestroyed = true;
      }
    };

    if (!areValidElements(reference, popper)) {
      if (true) {
        console.error(INVALID_ELEMENT_ERROR);
      }

      return instance;
    }

    instance.setOptions(options).then(function (state) {
      if (!isDestroyed && options.onFirstUpdate) {
        options.onFirstUpdate(state);
      }
    }); // Modifiers have the ability to execute arbitrary code before the first
    // update cycle runs. They will be executed in the same order as the update
    // cycle. This is useful when a modifier adds some persistent data that
    // other modifiers need to use, but the modifier is run after the dependent
    // one.

    function runModifierEffects() {
      state.orderedModifiers.forEach(function (_ref3) {
        var name = _ref3.name,
            _ref3$options = _ref3.options,
            options = _ref3$options === void 0 ? {} : _ref3$options,
            effect = _ref3.effect;

        if (typeof effect === 'function') {
          var cleanupFn = effect({
            state: state,
            name: name,
            instance: instance,
            options: options
          });

          var noopFn = function noopFn() {};

          effectCleanupFns.push(cleanupFn || noopFn);
        }
      });
    }

    function cleanupModifierEffects() {
      effectCleanupFns.forEach(function (fn) {
        return fn();
      });
      effectCleanupFns = [];
    }

    return instance;
  };
}
var createPopper = /*#__PURE__*/popperGenerator();

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/arrow.js":
/*!************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/arrow.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js");
/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js");
/* harmony import */ var _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js");
/* harmony import */ var _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");










function arrow(_ref) {
  var _state$modifiersData$;

  var state = _ref.state,
      name = _ref.name;
  var arrowElement = state.elements.arrow;
  var popperOffsets = state.modifiersData.popperOffsets;
  var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(state.placement);
  var axis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(basePlacement);
  var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_8__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_8__["right"]].indexOf(basePlacement) >= 0;
  var len = isVertical ? 'height' : 'width';

  if (!arrowElement || !popperOffsets) {
    return;
  }

  var paddingObject = state.modifiersData[name + "#persistent"].padding;
  var arrowRect = Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arrowElement);
  var minProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__["left"];
  var maxProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__["right"];
  var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
  var startDiff = popperOffsets[axis] - state.rects.reference[axis];
  var arrowOffsetParent = state.elements.arrow && Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state.elements.arrow);
  var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
  var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
  // outside of the popper bounds

  var min = paddingObject[minProp];
  var max = clientSize - arrowRect[len] - paddingObject[maxProp];
  var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
  var offset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_5__["default"])(min, center, max); // Prevents breaking syntax highlighting...

  var axisProp = axis;
  state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
}

function effect(_ref2) {
  var state = _ref2.state,
      options = _ref2.options,
      name = _ref2.name;
  var _options$element = options.element,
      arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
      _options$padding = options.padding,
      padding = _options$padding === void 0 ? 0 : _options$padding;

  if (arrowElement == null) {
    return;
  } // CSS selector


  if (typeof arrowElement === 'string') {
    arrowElement = state.elements.popper.querySelector(arrowElement);

    if (!arrowElement) {
      return;
    }
  }

  if (!Object(_dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state.elements.popper, arrowElement)) {
    if (true) {
      console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
    }

    return;
  }

  state.elements.arrow = arrowElement;
  state.modifiersData[name + "#persistent"] = {
    padding: Object(_utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__["default"])(typeof padding !== 'number' ? padding : Object(_utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__["default"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_8__["basePlacements"]))
  };
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'arrow',
  enabled: true,
  phase: 'main',
  fn: arrow,
  effect: effect,
  requires: ['popperOffsets'],
  requiresIfExists: ['preventOverflow']
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js ***!
  \********************************************************************/
/*! exports provided: mapToStyles, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapToStyles", function() { return mapToStyles; });
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");
/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");






var unsetSides = {
  top: 'auto',
  right: 'auto',
  bottom: 'auto',
  left: 'auto'
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
// Zooming can change the DPR, but it seems to report a value that will
// cleanly divide the values into the appropriate subpixels.

function roundOffsets(_ref) {
  var x = _ref.x,
      y = _ref.y;
  var win = window;
  var dpr = win.devicePixelRatio || 1;
  return {
    x: Math.round(x * dpr) / dpr || 0,
    y: Math.round(y * dpr) / dpr || 0
  };
}

function mapToStyles(_ref2) {
  var _Object$assign2;

  var popper = _ref2.popper,
      popperRect = _ref2.popperRect,
      placement = _ref2.placement,
      offsets = _ref2.offsets,
      position = _ref2.position,
      gpuAcceleration = _ref2.gpuAcceleration,
      adaptive = _ref2.adaptive;

  var _roundOffsets = roundOffsets(offsets),
      x = _roundOffsets.x,
      y = _roundOffsets.y;

  var hasX = offsets.hasOwnProperty('x');
  var hasY = offsets.hasOwnProperty('y');
  var sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"];
  var sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"];
  var win = window;

  if (adaptive) {
    var offsetParent = Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__["default"])(popper);

    if (offsetParent === Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(popper)) {
      offsetParent = Object(_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper);
    } // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it

    /*:: offsetParent = (offsetParent: Element); */


    if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"]) {
      sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"];
      y -= offsetParent.clientHeight - popperRect.height;
      y *= gpuAcceleration ? 1 : -1;
    }

    if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]) {
      sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"];
      x -= offsetParent.clientWidth - popperRect.width;
      x *= gpuAcceleration ? 1 : -1;
    }
  }

  var commonStyles = Object.assign({
    position: position
  }, adaptive && unsetSides);

  if (gpuAcceleration) {
    var _Object$assign;

    return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
  }

  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
}

function computeStyles(_ref3) {
  var state = _ref3.state,
      options = _ref3.options;
  var _options$gpuAccelerat = options.gpuAcceleration,
      gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
      _options$adaptive = options.adaptive,
      adaptive = _options$adaptive === void 0 ? true : _options$adaptive;

  if (true) {
    var transitionProperty = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(state.elements.popper).transitionProperty || '';

    if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
      return transitionProperty.indexOf(property) >= 0;
    })) {
      console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
    }
  }

  var commonStyles = {
    placement: Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(state.placement),
    popper: state.elements.popper,
    popperRect: state.rects.popper,
    gpuAcceleration: gpuAcceleration
  };

  if (state.modifiersData.popperOffsets != null) {
    state.styles.popper = Object.assign({}, state.styles.popper, {}, mapToStyles(Object.assign({}, commonStyles, {
      offsets: state.modifiersData.popperOffsets,
      position: state.options.strategy,
      adaptive: adaptive
    })));
  }

  if (state.modifiersData.arrow != null) {
    state.styles.arrow = Object.assign({}, state.styles.arrow, {}, mapToStyles(Object.assign({}, commonStyles, {
      offsets: state.modifiersData.arrow,
      position: 'absolute',
      adaptive: false
    })));
  }

  state.attributes.popper = Object.assign({}, state.attributes.popper, {
    'data-popper-placement': state.placement
  });
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'computeStyles',
  enabled: true,
  phase: 'beforeWrite',
  fn: computeStyles,
  data: {}
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");

var passive = {
  passive: true
};

function effect(_ref) {
  var state = _ref.state,
      instance = _ref.instance,
      options = _ref.options;
  var _options$scroll = options.scroll,
      scroll = _options$scroll === void 0 ? true : _options$scroll,
      _options$resize = options.resize,
      resize = _options$resize === void 0 ? true : _options$resize;
  var window = Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(state.elements.popper);
  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);

  if (scroll) {
    scrollParents.forEach(function (scrollParent) {
      scrollParent.addEventListener('scroll', instance.update, passive);
    });
  }

  if (resize) {
    window.addEventListener('resize', instance.update, passive);
  }

  return function () {
    if (scroll) {
      scrollParents.forEach(function (scrollParent) {
        scrollParent.removeEventListener('scroll', instance.update, passive);
      });
    }

    if (resize) {
      window.removeEventListener('resize', instance.update, passive);
    }
  };
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'eventListeners',
  enabled: true,
  phase: 'write',
  fn: function fn() {},
  effect: effect,
  data: {}
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/flip.js":
/*!***********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/flip.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getOppositePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js");
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getOppositeVariationPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js");
/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
/* harmony import */ var _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/computeAutoPlacement.js */ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");








function getExpandedFallbackPlacements(placement) {
  if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["auto"]) {
    return [];
  }

  var oppositePlacement = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
  return [Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(placement), oppositePlacement, Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(oppositePlacement)];
}

function flip(_ref) {
  var state = _ref.state,
      options = _ref.options,
      name = _ref.name;

  if (state.modifiersData[name]._skip) {
    return;
  }

  var specifiedFallbackPlacements = options.fallbackPlacements,
      padding = options.padding,
      boundary = options.boundary,
      rootBoundary = options.rootBoundary,
      altBoundary = options.altBoundary,
      _options$flipVariatio = options.flipVariations,
      flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
      allowedAutoPlacements = options.allowedAutoPlacements;
  var preferredPlacement = state.options.placement;
  var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(preferredPlacement);
  var isBasePlacement = basePlacement === preferredPlacement;
  var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
  var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
    return acc.concat(Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["auto"] ? Object(_utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(state, {
      placement: placement,
      boundary: boundary,
      rootBoundary: rootBoundary,
      padding: padding,
      flipVariations: flipVariations,
      allowedAutoPlacements: allowedAutoPlacements
    }) : placement);
  }, []);
  var referenceRect = state.rects.reference;
  var popperRect = state.rects.popper;
  var checksMap = new Map();
  var makeFallbackChecks = true;
  var firstFittingPlacement = placements[0];

  for (var i = 0; i < placements.length; i++) {
    var placement = placements[i];

    var _basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement);

    var isStartVariation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["start"];
    var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(_basePlacement) >= 0;
    var len = isVertical ? 'width' : 'height';
    var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state, {
      placement: placement,
      boundary: boundary,
      rootBoundary: rootBoundary,
      altBoundary: altBoundary,
      padding: padding
    });
    var mainVariationSide = isVertical ? isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["right"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["left"] : isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["top"];

    if (referenceRect[len] > popperRect[len]) {
      mainVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(mainVariationSide);
    }

    var altVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(mainVariationSide);
    var checks = [overflow[_basePlacement] <= 0, overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0];

    if (checks.every(function (check) {
      return check;
    })) {
      firstFittingPlacement = placement;
      makeFallbackChecks = false;
      break;
    }

    checksMap.set(placement, checks);
  }

  if (makeFallbackChecks) {
    // `2` may be desired in some cases – research later
    var numberOfChecks = flipVariations ? 3 : 1;

    var _loop = function _loop(_i) {
      var fittingPlacement = placements.find(function (placement) {
        var checks = checksMap.get(placement);

        if (checks) {
          return checks.slice(0, _i).every(function (check) {
            return check;
          });
        }
      });

      if (fittingPlacement) {
        firstFittingPlacement = fittingPlacement;
        return "break";
      }
    };

    for (var _i = numberOfChecks; _i > 0; _i--) {
      var _ret = _loop(_i);

      if (_ret === "break") break;
    }
  }

  if (state.placement !== firstFittingPlacement) {
    state.modifiersData[name]._skip = true;
    state.placement = firstFittingPlacement;
    state.reset = true;
  }
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'flip',
  enabled: true,
  phase: 'main',
  fn: flip,
  requiresIfExists: ['offset'],
  data: {
    _skip: false
  }
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/hide.js":
/*!***********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/hide.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");



function getSideOffsets(overflow, rect, preventedOffsets) {
  if (preventedOffsets === void 0) {
    preventedOffsets = {
      x: 0,
      y: 0
    };
  }

  return {
    top: overflow.top - rect.height - preventedOffsets.y,
    right: overflow.right - rect.width + preventedOffsets.x,
    bottom: overflow.bottom - rect.height + preventedOffsets.y,
    left: overflow.left - rect.width - preventedOffsets.x
  };
}

function isAnySideFullyClipped(overflow) {
  return [_enums_js__WEBPACK_IMPORTED_MODULE_0__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]].some(function (side) {
    return overflow[side] >= 0;
  });
}

function hide(_ref) {
  var state = _ref.state,
      name = _ref.name;
  var referenceRect = state.rects.reference;
  var popperRect = state.rects.popper;
  var preventedOffsets = state.modifiersData.preventOverflow;
  var referenceOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
    elementContext: 'reference'
  });
  var popperAltOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
    altBoundary: true
  });
  var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
  var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
  var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
  var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
  state.modifiersData[name] = {
    referenceClippingOffsets: referenceClippingOffsets,
    popperEscapeOffsets: popperEscapeOffsets,
    isReferenceHidden: isReferenceHidden,
    hasPopperEscaped: hasPopperEscaped
  };
  state.attributes.popper = Object.assign({}, state.attributes.popper, {
    'data-popper-reference-hidden': isReferenceHidden,
    'data-popper-escaped': hasPopperEscaped
  });
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'hide',
  enabled: true,
  phase: 'main',
  requiresIfExists: ['preventOverflow'],
  fn: hide
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/offset.js":
/*!*************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/offset.js ***!
  \*************************************************************/
/*! exports provided: distanceAndSkiddingToXY, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distanceAndSkiddingToXY", function() { return distanceAndSkiddingToXY; });
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");


function distanceAndSkiddingToXY(placement, rects, offset) {
  var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
  var invertDistance = [_enums_js__WEBPACK_IMPORTED_MODULE_1__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_1__["top"]].indexOf(basePlacement) >= 0 ? -1 : 1;

  var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
    placement: placement
  })) : offset,
      skidding = _ref[0],
      distance = _ref[1];

  skidding = skidding || 0;
  distance = (distance || 0) * invertDistance;
  return [_enums_js__WEBPACK_IMPORTED_MODULE_1__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_1__["right"]].indexOf(basePlacement) >= 0 ? {
    x: distance,
    y: skidding
  } : {
    x: skidding,
    y: distance
  };
}

function offset(_ref2) {
  var state = _ref2.state,
      options = _ref2.options,
      name = _ref2.name;
  var _options$offset = options.offset,
      offset = _options$offset === void 0 ? [0, 0] : _options$offset;
  var data = _enums_js__WEBPACK_IMPORTED_MODULE_1__["placements"].reduce(function (acc, placement) {
    acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
    return acc;
  }, {});
  var _data$state$placement = data[state.placement],
      x = _data$state$placement.x,
      y = _data$state$placement.y;

  if (state.modifiersData.popperOffsets != null) {
    state.modifiersData.popperOffsets.x += x;
    state.modifiersData.popperOffsets.y += y;
  }

  state.modifiersData[name] = data;
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'offset',
  enabled: true,
  phase: 'main',
  requires: ['popperOffsets'],
  fn: offset
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js");


function popperOffsets(_ref) {
  var state = _ref.state,
      name = _ref.name;
  // Offsets are the actual position the popper needs to have to be
  // properly positioned near its reference element
  // This is the most basic placement, and will be adjusted by
  // the modifiers in the next step
  state.modifiersData[name] = Object(_utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
    reference: state.rects.reference,
    element: state.rects.popper,
    strategy: 'absolute',
    placement: state.placement
  });
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'popperOffsets',
  enabled: true,
  phase: 'read',
  fn: popperOffsets,
  data: {}
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getAltAxis.js */ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js");
/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js");
/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js");
/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");
/* harmony import */ var _utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");











function preventOverflow(_ref) {
  var state = _ref.state,
      options = _ref.options,
      name = _ref.name;
  var _options$mainAxis = options.mainAxis,
      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
      _options$altAxis = options.altAxis,
      checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
      boundary = options.boundary,
      rootBoundary = options.rootBoundary,
      altBoundary = options.altBoundary,
      padding = options.padding,
      _options$tether = options.tether,
      tether = _options$tether === void 0 ? true : _options$tether,
      _options$tetherOffset = options.tetherOffset,
      tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
  var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__["default"])(state, {
    boundary: boundary,
    rootBoundary: rootBoundary,
    padding: padding,
    altBoundary: altBoundary
  });
  var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state.placement);
  var variation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__["default"])(state.placement);
  var isBasePlacement = !variation;
  var mainAxis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(basePlacement);
  var altAxis = Object(_utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__["default"])(mainAxis);
  var popperOffsets = state.modifiersData.popperOffsets;
  var referenceRect = state.rects.reference;
  var popperRect = state.rects.popper;
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
    placement: state.placement
  })) : tetherOffset;
  var data = {
    x: 0,
    y: 0
  };

  if (!popperOffsets) {
    return;
  }

  if (checkMainAxis) {
    var mainSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"];
    var altSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"];
    var len = mainAxis === 'y' ? 'height' : 'width';
    var offset = popperOffsets[mainAxis];
    var min = popperOffsets[mainAxis] + overflow[mainSide];
    var max = popperOffsets[mainAxis] - overflow[altSide];
    var additive = tether ? -popperRect[len] / 2 : 0;
    var minLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["start"] ? referenceRect[len] : popperRect[len];
    var maxLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["start"] ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
    // outside the reference bounds

    var arrowElement = state.elements.arrow;
    var arrowRect = tether && arrowElement ? Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__["default"])(arrowElement) : {
      width: 0,
      height: 0
    };
    var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : Object(_utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__["default"])();
    var arrowPaddingMin = arrowPaddingObject[mainSide];
    var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
    // to include its full size in the calculation. If the reference is small
    // and near the edge of a boundary, the popper can overflow even if the
    // reference is not overflowing as well (e.g. virtual elements with no
    // width or height)

    var arrowLen = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["default"])(0, referenceRect[len], arrowRect[len]);
    var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
    var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
    var arrowOffsetParent = state.elements.arrow && Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__["default"])(state.elements.arrow);
    var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
    var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
    var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
    var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
    var preventedOffset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["default"])(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
    popperOffsets[mainAxis] = preventedOffset;
    data[mainAxis] = preventedOffset - offset;
  }

  if (checkAltAxis) {
    var _mainSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"];

    var _altSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"];

    var _offset = popperOffsets[altAxis];

    var _min = _offset + overflow[_mainSide];

    var _max = _offset - overflow[_altSide];

    var _preventedOffset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["default"])(_min, _offset, _max);

    popperOffsets[altAxis] = _preventedOffset;
    data[altAxis] = _preventedOffset - _offset;
  }

  state.modifiersData[name] = data;
} // eslint-disable-next-line import/no-unused-modules


/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'preventOverflow',
  enabled: true,
  phase: 'main',
  fn: preventOverflow,
  requiresIfExists: ['offset']
});

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/popper-base.js":
/*!********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/popper-base.js ***!
  \********************************************************/
/*! exports provided: createPopper, popperGenerator, detectOverflow */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.js */ "./node_modules/@popperjs/core/lib/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return _index_js__WEBPACK_IMPORTED_MODULE_0__["createPopper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return _index_js__WEBPACK_IMPORTED_MODULE_0__["popperGenerator"]; });

/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectOverflow", function() { return _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });



// eslint-disable-next-line import/no-unused-modules


/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return computeAutoPlacement; });
/* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js");
/* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");





/*:: type OverflowsMap = { [ComputedPlacement]: number }; */

/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
function computeAutoPlacement(state, options) {
  if (options === void 0) {
    options = {};
  }

  var _options = options,
      placement = _options.placement,
      boundary = _options.boundary,
      rootBoundary = _options.rootBoundary,
      padding = _options.padding,
      flipVariations = _options.flipVariations,
      _options$allowedAutoP = _options.allowedAutoPlacements,
      allowedAutoPlacements = _options$allowedAutoP === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_1__["placements"] : _options$allowedAutoP;
  var variation = Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
  var placements = (variation ? flipVariations ? _enums_js__WEBPACK_IMPORTED_MODULE_1__["variationPlacements"] : _enums_js__WEBPACK_IMPORTED_MODULE_1__["variationPlacements"].filter(function (placement) {
    return Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === variation;
  }) : _enums_js__WEBPACK_IMPORTED_MODULE_1__["basePlacements"]).filter(function (placement) {
    return allowedAutoPlacements.indexOf(placement) >= 0;
  }); // $FlowFixMe: Flow seems to have problems with two array unions...

  var overflows = placements.reduce(function (acc, placement) {
    acc[placement] = Object(_detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state, {
      placement: placement,
      boundary: boundary,
      rootBoundary: rootBoundary,
      padding: padding
    })[Object(_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(placement)];
    return acc;
  }, {});
  return Object.keys(overflows).sort(function (a, b) {
    return overflows[a] - overflows[b];
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/computeOffsets.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return computeOffsets; });
/* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");
/* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js");
/* harmony import */ var _getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");




function computeOffsets(_ref) {
  var reference = _ref.reference,
      element = _ref.element,
      placement = _ref.placement;
  var basePlacement = placement ? Object(_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) : null;
  var variation = placement ? Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) : null;
  var commonX = reference.x + reference.width / 2 - element.width / 2;
  var commonY = reference.y + reference.height / 2 - element.height / 2;
  var offsets;

  switch (basePlacement) {
    case _enums_js__WEBPACK_IMPORTED_MODULE_3__["top"]:
      offsets = {
        x: commonX,
        y: reference.y - element.height
      };
      break;

    case _enums_js__WEBPACK_IMPORTED_MODULE_3__["bottom"]:
      offsets = {
        x: commonX,
        y: reference.y + reference.height
      };
      break;

    case _enums_js__WEBPACK_IMPORTED_MODULE_3__["right"]:
      offsets = {
        x: reference.x + reference.width,
        y: commonY
      };
      break;

    case _enums_js__WEBPACK_IMPORTED_MODULE_3__["left"]:
      offsets = {
        x: reference.x - element.width,
        y: commonY
      };
      break;

    default:
      offsets = {
        x: reference.x,
        y: reference.y
      };
  }

  var mainAxis = basePlacement ? Object(_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(basePlacement) : null;

  if (mainAxis != null) {
    var len = mainAxis === 'y' ? 'height' : 'width';

    switch (variation) {
      case _enums_js__WEBPACK_IMPORTED_MODULE_3__["start"]:
        offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
        break;

      case _enums_js__WEBPACK_IMPORTED_MODULE_3__["end"]:
        offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
        break;

      default:
    }
  }

  return offsets;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/debounce.js":
/*!***********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/debounce.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return debounce; });
function debounce(fn) {
  var pending;
  return function () {
    if (!pending) {
      pending = new Promise(function (resolve) {
        Promise.resolve().then(function () {
          pending = undefined;
          resolve(fn());
        });
      });
    }

    return pending;
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/detectOverflow.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return detectOverflow; });
/* harmony import */ var _dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getClippingRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js");
/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js");
/* harmony import */ var _computeOffsets_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js");
/* harmony import */ var _rectToClientRect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");
/* harmony import */ var _mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js");
/* harmony import */ var _expandToHashMap_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");









function detectOverflow(state, options) {
  if (options === void 0) {
    options = {};
  }

  var _options = options,
      _options$placement = _options.placement,
      placement = _options$placement === void 0 ? state.placement : _options$placement,
      _options$boundary = _options.boundary,
      boundary = _options$boundary === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["clippingParents"] : _options$boundary,
      _options$rootBoundary = _options.rootBoundary,
      rootBoundary = _options$rootBoundary === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["viewport"] : _options$rootBoundary,
      _options$elementConte = _options.elementContext,
      elementContext = _options$elementConte === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] : _options$elementConte,
      _options$altBoundary = _options.altBoundary,
      altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
      _options$padding = _options.padding,
      padding = _options$padding === void 0 ? 0 : _options$padding;
  var paddingObject = Object(_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_7__["default"])(typeof padding !== 'number' ? padding : Object(_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_8__["default"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_5__["basePlacements"]));
  var altContext = elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["reference"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"];
  var referenceElement = state.elements.reference;
  var popperRect = state.rects.popper;
  var element = state.elements[altBoundary ? altContext : elementContext];
  var clippingClientRect = Object(_dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_6__["isElement"])(element) ? element : element.contextElement || Object(_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state.elements.popper), boundary, rootBoundary);
  var referenceClientRect = Object(_dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(referenceElement);
  var popperOffsets = Object(_computeOffsets_js__WEBPACK_IMPORTED_MODULE_3__["default"])({
    reference: referenceClientRect,
    element: popperRect,
    strategy: 'absolute',
    placement: placement
  });
  var popperClientRect = Object(_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object.assign({}, popperRect, {}, popperOffsets));
  var elementClientRect = elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
  // 0 or negative = within the clipping rect

  var overflowOffsets = {
    top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
    bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
    left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
    right: elementClientRect.right - clippingClientRect.right + paddingObject.right
  };
  var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element

  if (elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] && offsetData) {
    var offset = offsetData[placement];
    Object.keys(overflowOffsets).forEach(function (key) {
      var multiply = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["right"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(key) >= 0 ? 1 : -1;
      var axis = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(key) >= 0 ? 'y' : 'x';
      overflowOffsets[key] += offset[axis] * multiply;
    });
  }

  return overflowOffsets;
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":
/*!******************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return expandToHashMap; });
function expandToHashMap(value, keys) {
  return keys.reduce(function (hashMap, key) {
    hashMap[key] = value;
    return hashMap;
  }, {});
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/format.js":
/*!*********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/format.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return format; });
function format(str) {
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  return [].concat(args).reduce(function (p, c) {
    return p.replace(/%s/, c);
  }, str);
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js":
/*!*************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getAltAxis.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getAltAxis; });
function getAltAxis(axis) {
  return axis === 'x' ? 'y' : 'x';
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBasePlacement; });
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");

function getBasePlacement(placement) {
  return placement.split('-')[0];
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getFreshSideObject; });
function getFreshSideObject() {
  return {
    top: 0,
    right: 0,
    bottom: 0,
    left: 0
  };
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getMainAxisFromPlacement; });
function getMainAxisFromPlacement(placement) {
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":
/*!***********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOppositePlacement; });
var hash = {
  left: 'right',
  right: 'left',
  bottom: 'top',
  top: 'bottom'
};
function getOppositePlacement(placement) {
  return placement.replace(/left|right|bottom|top/g, function (matched) {
    return hash[matched];
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOppositeVariationPlacement; });
var hash = {
  start: 'end',
  end: 'start'
};
function getOppositeVariationPlacement(placement) {
  return placement.replace(/start|end/g, function (matched) {
    return hash[matched];
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/getVariation.js":
/*!***************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/getVariation.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getVariation; });
function getVariation(placement) {
  return placement.split('-')[1];
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/mergeByName.js":
/*!**************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/mergeByName.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mergeByName; });
function mergeByName(modifiers) {
  var merged = modifiers.reduce(function (merged, current) {
    var existing = merged[current.name];
    merged[current.name] = existing ? Object.assign({}, existing, {}, current, {
      options: Object.assign({}, existing.options, {}, current.options),
      data: Object.assign({}, existing.data, {}, current.data)
    }) : current;
    return merged;
  }, {}); // IE11 does not support Object.values

  return Object.keys(merged).map(function (key) {
    return merged[key];
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mergePaddingObject; });
/* harmony import */ var _getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");

function mergePaddingObject(paddingObject) {
  return Object.assign({}, Object(_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), {}, paddingObject);
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/orderModifiers.js ***!
  \*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return orderModifiers; });
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");
 // source: https://stackoverflow.com/questions/49875255

function order(modifiers) {
  var map = new Map();
  var visited = new Set();
  var result = [];
  modifiers.forEach(function (modifier) {
    map.set(modifier.name, modifier);
  }); // On visiting object, check for its dependencies and visit them recursively

  function sort(modifier) {
    visited.add(modifier.name);
    var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
    requires.forEach(function (dep) {
      if (!visited.has(dep)) {
        var depModifier = map.get(dep);

        if (depModifier) {
          sort(depModifier);
        }
      }
    });
    result.push(modifier);
  }

  modifiers.forEach(function (modifier) {
    if (!visited.has(modifier.name)) {
      // check for visited object
      sort(modifier);
    }
  });
  return result;
}

function orderModifiers(modifiers) {
  // order based on dependencies
  var orderedModifiers = order(modifiers); // order based on phase

  return _enums_js__WEBPACK_IMPORTED_MODULE_0__["modifierPhases"].reduce(function (acc, phase) {
    return acc.concat(orderedModifiers.filter(function (modifier) {
      return modifier.phase === phase;
    }));
  }, []);
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":
/*!*******************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rectToClientRect; });
function rectToClientRect(rect) {
  return Object.assign({}, rect, {
    left: rect.x,
    top: rect.y,
    right: rect.x + rect.width,
    bottom: rect.y + rect.height
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/uniqueBy.js":
/*!***********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/uniqueBy.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uniqueBy; });
function uniqueBy(arr, fn) {
  var identifiers = new Set();
  return arr.filter(function (item) {
    var identifier = fn(item);

    if (!identifiers.has(identifier)) {
      identifiers.add(identifier);
      return true;
    }
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/validateModifiers.js":
/*!********************************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/validateModifiers.js ***!
  \********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return validateModifiers; });
/* harmony import */ var _format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./format.js */ "./node_modules/@popperjs/core/lib/utils/format.js");
/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js");


var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
function validateModifiers(modifiers) {
  modifiers.forEach(function (modifier) {
    Object.keys(modifier).forEach(function (key) {
      switch (key) {
        case 'name':
          if (typeof modifier.name !== 'string') {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
          }

          break;

        case 'enabled':
          if (typeof modifier.enabled !== 'boolean') {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
          }

        case 'phase':
          if (_enums_js__WEBPACK_IMPORTED_MODULE_1__["modifierPhases"].indexOf(modifier.phase) < 0) {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + _enums_js__WEBPACK_IMPORTED_MODULE_1__["modifierPhases"].join(', '), "\"" + String(modifier.phase) + "\""));
          }

          break;

        case 'fn':
          if (typeof modifier.fn !== 'function') {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
          }

          break;

        case 'effect':
          if (typeof modifier.effect !== 'function') {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
          }

          break;

        case 'requires':
          if (!Array.isArray(modifier.requires)) {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
          }

          break;

        case 'requiresIfExists':
          if (!Array.isArray(modifier.requiresIfExists)) {
            console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
          }

          break;

        case 'options':
        case 'data':
          break;

        default:
          console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
            return "\"" + s + "\"";
          }).join(', ') + "; but \"" + key + "\" was provided.");
      }

      modifier.requires && modifier.requires.forEach(function (requirement) {
        if (modifiers.find(function (mod) {
          return mod.name === requirement;
        }) == null) {
          console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
        }
      });
    });
  });
}

/***/ }),

/***/ "./node_modules/@popperjs/core/lib/utils/within.js":
/*!*********************************************************!*\
  !*** ./node_modules/@popperjs/core/lib/utils/within.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return within; });
function within(min, value, max) {
  return Math.max(min, Math.min(value, max));
}

/***/ }),

/***/ "./node_modules/@restart/context/forwardRef.js":
/*!*****************************************************!*\
  !*** ./node_modules/@restart/context/forwardRef.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = forwardRef;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function forwardRef(renderFn, _temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      propTypes = _ref.propTypes,
      defaultProps = _ref.defaultProps,
      _ref$allowFallback = _ref.allowFallback,
      allowFallback = _ref$allowFallback === void 0 ? false : _ref$allowFallback,
      _ref$displayName = _ref.displayName,
      displayName = _ref$displayName === void 0 ? renderFn.name || renderFn.displayName : _ref$displayName;

  var render = function render(props, ref) {
    return renderFn(props, ref);
  };

  return Object.assign(_react.default.forwardRef || !allowFallback ? _react.default.forwardRef(render) : function (props) {
    return render(props, null);
  }, {
    displayName: displayName,
    propTypes: propTypes,
    defaultProps: defaultProps
  });
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useCallbackRef.js":
/*!***********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useCallbackRef.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useCallbackRef; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * A convenience hook around `useState` designed to be paired with
 * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
 * Callback refs are useful over `useRef()` when you need to respond to the ref being set
 * instead of lazily accessing it in an effect.
 *
 * ```ts
 * const [element, attachRef] = useCallbackRef<HTMLDivElement>()
 *
 * useEffect(() => {
 *   if (!element) return
 *
 *   const calendar = new FullCalendar.Calendar(element)
 *
 *   return () => {
 *     calendar.destroy()
 *   }
 * }, [element])
 *
 * return <div ref={attachRef} />
 * ```
 *
 * @category refs
 */

function useCallbackRef() {
  return Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useCommittedRef.js":
/*!************************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useCommittedRef.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
 * value is the one rendered with. Generally only required for Concurrent mode usage
 * where previous work in `render()` may be discarded befor being used.
 *
 * This is safe to access in an event handler.
 *
 * @param value The `Ref` value
 */

function useCommittedRef(value) {
  var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value);
  Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
    ref.current = value;
  }, [value]);
  return ref;
}

/* harmony default export */ __webpack_exports__["default"] = (useCommittedRef);

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useEventCallback.js":
/*!*************************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useEventCallback.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useEventCallback; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _useCommittedRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useCommittedRef */ "./node_modules/@restart/hooks/esm/useCommittedRef.js");


function useEventCallback(fn) {
  var ref = Object(_useCommittedRef__WEBPACK_IMPORTED_MODULE_1__["default"])(fn);
  return Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function () {
    return ref.current && ref.current.apply(ref, arguments);
  }, [ref]);
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useForceUpdate.js":
/*!***********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useForceUpdate.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useForceUpdate; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Returns a function that triggers a component update. the hook equivalent to
 * `this.forceUpdate()` in a class component. In most cases using a state value directly
 * is preferable but may be required in some advanced usages of refs for interop or
 * when direct DOM manipulation is required.
 *
 * ```ts
 * const forceUpdate = useForceUpdate();
 *
 * const updateOnClick = useCallback(() => {
 *  forceUpdate()
 * }, [forceUpdate])
 *
 * return <button type="button" onClick={updateOnClick}>Hi there</button>
 * ```
 */

function useForceUpdate() {
  // The toggling state value is designed to defeat React optimizations for skipping
  // updates when they are stricting equal to the last state value
  var _useReducer = Object(react__WEBPACK_IMPORTED_MODULE_0__["useReducer"])(function (state) {
    return !state;
  }, false),
      dispatch = _useReducer[1];

  return dispatch;
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useMergedRefs.js":
/*!**********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useMergedRefs.js ***!
  \**********************************************************/
/*! exports provided: mergeRefs, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeRefs", function() { return mergeRefs; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);


var toFnRef = function toFnRef(ref) {
  return !ref || typeof ref === 'function' ? ref : function (value) {
    ref.current = value;
  };
};

function mergeRefs(refA, refB) {
  var a = toFnRef(refA);
  var b = toFnRef(refB);
  return function (value) {
    if (a) a(value);
    if (b) b(value);
  };
}
/**
 * Create and returns a single callback ref composed from two other Refs.
 *
 * ```tsx
 * const Button = React.forwardRef((props, ref) => {
 *   const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
 *   const mergedRef = useMergedRefs(ref, attachRef);
 *
 *   return <button ref={mergedRef} {...props}/>
 * })
 * ```
 *
 * @param refA A Callback or mutable Ref
 * @param refB A Callback or mutable Ref
 * @category refs
 */

function useMergedRefs(refA, refB) {
  return Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
    return mergeRefs(refA, refB);
  }, [refA, refB]);
}

/* harmony default export */ __webpack_exports__["default"] = (useMergedRefs);

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useMounted.js":
/*!*******************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useMounted.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useMounted; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Track whether a component is current mounted. Generally less preferable than
 * properlly canceling effects so they don't run after a component is unmounted,
 * but helpful in cases where that isn't feasible, such as a `Promise` resolution.
 *
 * @returns a function that returns the current isMounted state of the component
 *
 * ```ts
 * const [data, setData] = useState(null)
 * const isMounted = useMounted()
 *
 * useEffect(() => {
 *   fetchdata().then((newData) => {
 *      if (isMounted()) {
 *        setData(newData);
 *      }
 *   })
 * })
 * ```
 */

function useMounted() {
  var mounted = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(true);
  var isMounted = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(function () {
    return mounted.current;
  });
  Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
    return function () {
      mounted.current = false;
    };
  }, []);
  return isMounted.current;
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/usePrevious.js":
/*!********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/usePrevious.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return usePrevious; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Store the last of some value. Tracked via a `Ref` only updating it
 * after the component renders.
 *
 * Helpful if you need to compare a prop value to it's previous value during render.
 *
 * ```ts
 * function Component(props) {
 *   const lastProps = usePrevious(props)
 *
 *   if (lastProps.foo !== props.foo)
 *     resetValueFromProps(props.foo)
 * }
 * ```
 *
 * @param value the value to track
 */

function usePrevious(value) {
  var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
  Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
    ref.current = value;
  });
  return ref.current;
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useSafeState.js":
/*!*********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useSafeState.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _useMounted__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useMounted */ "./node_modules/@restart/hooks/esm/useMounted.js");



function useSafeState(state) {
  var isMounted = Object(_useMounted__WEBPACK_IMPORTED_MODULE_1__["default"])();
  return [state[0], Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (nextState) {
    if (!isMounted()) return;
    return state[1](nextState);
  }, [isMounted, state[1]])];
}

/* harmony default export */ __webpack_exports__["default"] = (useSafeState);

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useTimeout.js":
/*!*******************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useTimeout.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useTimeout; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _useMounted__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useMounted */ "./node_modules/@restart/hooks/esm/useMounted.js");
/* harmony import */ var _useWillUnmount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useWillUnmount */ "./node_modules/@restart/hooks/esm/useWillUnmount.js");



/*
 * Browsers including Internet Explorer, Chrome, Safari, and Firefox store the
 * delay as a 32-bit signed integer internally. This causes an integer overflow
 * when using delays larger than 2,147,483,647 ms (about 24.8 days),
 * resulting in the timeout being executed immediately.
 *
 * via: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
 */

var MAX_DELAY_MS = Math.pow(2, 31) - 1;

function setChainedTimeout(handleRef, fn, timeoutAtMs) {
  var delayMs = timeoutAtMs - Date.now();
  handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(function () {
    return setChainedTimeout(handleRef, fn, timeoutAtMs);
  }, MAX_DELAY_MS);
}
/**
 * Returns a controller object for setting a timeout that is properly cleaned up
 * once the component unmounts. New timeouts cancel and replace existing ones.
 */


function useTimeout() {
  var isMounted = Object(_useMounted__WEBPACK_IMPORTED_MODULE_1__["default"])(); // types are confused between node and web here IDK

  var handleRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
  Object(_useWillUnmount__WEBPACK_IMPORTED_MODULE_2__["default"])(function () {
    return clearTimeout(handleRef.current);
  });
  return Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
    var clear = function clear() {
      return clearTimeout(handleRef.current);
    };

    function set(fn, delayMs) {
      if (delayMs === void 0) {
        delayMs = 0;
      }

      if (!isMounted()) return;
      clear();

      if (delayMs <= MAX_DELAY_MS) {
        // For simplicity, if the timeout is short, just set a normal timeout.
        handleRef.current = setTimeout(fn, delayMs);
      } else {
        setChainedTimeout(handleRef, fn, Date.now() + delayMs);
      }
    }

    return {
      set: set,
      clear: clear
    };
  }, []);
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useUpdateEffect.js":
/*!************************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useUpdateEffect.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Runs an effect only when the dependencies have changed, skipping the
 * initial "on mount" run. Caution, if the dependency list never changes,
 * the effect is **never run**
 *
 * ```ts
 *  const ref = useRef<HTMLInput>(null);
 *
 *  // focuses an element only if the focus changes, and not on mount
 *  useUpdateEffect(() => {
 *    const element = ref.current?.children[focusedIdx] as HTMLElement
 *
 *    element?.focus()
 *
 *  }, [focusedIndex])
 * ```
 * @param effect An effect to run on mount
 *
 * @category effects
 */

function useUpdateEffect(fn, deps) {
  var isFirst = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(true);
  Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
    if (isFirst.current) {
      isFirst.current = false;
      return;
    }

    return fn();
  }, deps);
}

/* harmony default export */ __webpack_exports__["default"] = (useUpdateEffect);

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useUpdatedRef.js":
/*!**********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useUpdatedRef.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useUpdatedRef; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Returns a ref that is immediately updated with the new value
 *
 * @param value The Ref value
 * @category refs
 */

function useUpdatedRef(value) {
  var valueRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value);
  valueRef.current = value;
  return valueRef;
}

/***/ }),

/***/ "./node_modules/@restart/hooks/esm/useWillUnmount.js":
/*!***********************************************************!*\
  !*** ./node_modules/@restart/hooks/esm/useWillUnmount.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useWillUnmount; });
/* harmony import */ var _useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useUpdatedRef */ "./node_modules/@restart/hooks/esm/useUpdatedRef.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);


/**
 * Attach a callback that fires when a component unmounts
 *
 * @param fn Handler to run when the component unmounts
 * @category effects
 */

function useWillUnmount(fn) {
  var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__["default"])(fn);
  Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
    return function () {
      return onUnmount.current();
    };
  }, []);
}

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/assign.js":
/*!*************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/create.js":
/*!*************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/create.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/create */ "./node_modules/core-js/library/fn/object/create.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/object/set-prototype-of.js":
/*!***********************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/object/set-prototype-of.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/set-prototype-of */ "./node_modules/core-js/library/fn/object/set-prototype-of.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/symbol.js":
/*!******************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/symbol.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
/*!***************************************************************!*\
  !*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/classCallCheck.js":
/*!**************************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/classCallCheck.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/extends.js":
/*!*******************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/extends.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");

var _assign2 = _interopRequireDefault(_assign);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _assign2.default || 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;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/inherits.js":
/*!********************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/inherits.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _setPrototypeOf = __webpack_require__(/*! ../core-js/object/set-prototype-of */ "./node_modules/babel-runtime/core-js/object/set-prototype-of.js");

var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);

var _create = __webpack_require__(/*! ../core-js/object/create */ "./node_modules/babel-runtime/core-js/object/create.js");

var _create2 = _interopRequireDefault(_create);

var _typeof2 = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");

var _typeof3 = _interopRequireDefault(_typeof2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
  }

  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      enumerable: false,
      writable: true,
      configurable: true
    }
  });
  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js":
/*!*************************************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _typeof2 = __webpack_require__(/*! ../helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");

var _typeof3 = _interopRequireDefault(_typeof2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = function (self, call) {
  if (!self) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }

  return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
};

/***/ }),

/***/ "./node_modules/babel-runtime/helpers/typeof.js":
/*!******************************************************!*\
  !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");

var _iterator2 = _interopRequireDefault(_iterator);

var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");

var _symbol2 = _interopRequireDefault(_symbol);

var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
  return typeof obj === "undefined" ? "undefined" : _typeof(obj);
} : function (obj) {
  return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
};

/***/ }),

/***/ "./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/*! =======================================================
                      VERSION  10.0.0
========================================================= */


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; };

/*! =========================================================
 * bootstrap-slider.js
 *
 * Maintainers:
 *		Kyle Kemp
 *			- Twitter: @seiyria
 *			- Github:  seiyria
 *		Rohit Kalkur
 *			- Twitter: @Rovolutionary
 *			- Github:  rovolution
 *
 * =========================================================
 *
 * bootstrap-slider is released under the MIT License
 * Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * ========================================================= */

/**
 * Bridget makes jQuery widgets
 * v1.0.1
 * MIT license
 */
var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object";

(function (factory) {
	var jQuery = null;
	if (( false ? undefined : _typeof(module)) === "object" && module.exports) {
		module.exports = factory(jQuery);
	}
})(function ($) {
	// Constants
	var NAMESPACE_MAIN = 'slider';
	var NAMESPACE_ALTERNATE = 'bootstrapSlider';

	// Polyfill console methods
	if (windowIsDefined && !window.console) {
		window.console = {};
	}
	if (windowIsDefined && !window.console.log) {
		window.console.log = function () {};
	}
	if (windowIsDefined && !window.console.warn) {
		window.console.warn = function () {};
	}

	// Reference to Slider constructor
	var Slider;

	(function ($) {

		'use strict';

		// -------------------------- utils -------------------------- //

		var slice = Array.prototype.slice;

		function noop() {}

		// -------------------------- definition -------------------------- //

		function defineBridget($) {

			// bail if no jQuery
			if (!$) {
				return;
			}

			// -------------------------- addOptionMethod -------------------------- //

			/**
    * adds option method -> $().plugin('option', {...})
    * @param {Function} PluginClass - constructor class
    */
			function addOptionMethod(PluginClass) {
				// don't overwrite original option method
				if (PluginClass.prototype.option) {
					return;
				}

				// option setter
				PluginClass.prototype.option = function (opts) {
					// bail out if not an object
					if (!$.isPlainObject(opts)) {
						return;
					}
					this.options = $.extend(true, this.options, opts);
				};
			}

			// -------------------------- plugin bridge -------------------------- //

			// helper function for logging errors
			// $.error breaks jQuery chaining
			var logError = typeof console === 'undefined' ? noop : function (message) {
				console.error(message);
			};

			/**
    * jQuery plugin bridge, access methods like $elem.plugin('method')
    * @param {String} namespace - plugin name
    * @param {Function} PluginClass - constructor class
    */
			function bridge(namespace, PluginClass) {
				// add to jQuery fn namespace
				$.fn[namespace] = function (options) {
					if (typeof options === 'string') {
						// call plugin method when first argument is a string
						// get arguments for method
						var args = slice.call(arguments, 1);

						for (var i = 0, len = this.length; i < len; i++) {
							var elem = this[i];
							var instance = $.data(elem, namespace);
							if (!instance) {
								logError("cannot call methods on " + namespace + " prior to initialization; " + "attempted to call '" + options + "'");
								continue;
							}
							if (!$.isFunction(instance[options]) || options.charAt(0) === '_') {
								logError("no such method '" + options + "' for " + namespace + " instance");
								continue;
							}

							// trigger method with arguments
							var returnValue = instance[options].apply(instance, args);

							// break look and return first value if provided
							if (returnValue !== undefined && returnValue !== instance) {
								return returnValue;
							}
						}
						// return this if no return value
						return this;
					} else {
						var objects = this.map(function () {
							var instance = $.data(this, namespace);
							if (instance) {
								// apply options & init
								instance.option(options);
								instance._init();
							} else {
								// initialize new instance
								instance = new PluginClass(this, options);
								$.data(this, namespace, instance);
							}
							return $(this);
						});

						if (!objects || objects.length > 1) {
							return objects;
						} else {
							return objects[0];
						}
					}
				};
			}

			// -------------------------- bridget -------------------------- //

			/**
    * converts a Prototypical class into a proper jQuery plugin
    *   the class must have a ._init method
    * @param {String} namespace - plugin name, used in $().pluginName
    * @param {Function} PluginClass - constructor class
    */
			$.bridget = function (namespace, PluginClass) {
				addOptionMethod(PluginClass);
				bridge(namespace, PluginClass);
			};

			return $.bridget;
		}

		// get jquery from browser global
		defineBridget($);
	})($);

	/*************************************************
 			BOOTSTRAP-SLIDER SOURCE CODE
 	**************************************************/

	(function ($) {

		var ErrorMsgs = {
			formatInvalidInputErrorMsg: function formatInvalidInputErrorMsg(input) {
				return "Invalid input value '" + input + "' passed in";
			},
			callingContextNotSliderInstance: "Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"
		};

		var SliderScale = {
			linear: {
				toValue: function toValue(percentage) {
					var rawValue = percentage / 100 * (this.options.max - this.options.min);
					var shouldAdjustWithBase = true;
					if (this.options.ticks_positions.length > 0) {
						var minv,
						    maxv,
						    minp,
						    maxp = 0;
						for (var i = 1; i < this.options.ticks_positions.length; i++) {
							if (percentage <= this.options.ticks_positions[i]) {
								minv = this.options.ticks[i - 1];
								minp = this.options.ticks_positions[i - 1];
								maxv = this.options.ticks[i];
								maxp = this.options.ticks_positions[i];

								break;
							}
						}
						var partialPercentage = (percentage - minp) / (maxp - minp);
						rawValue = minv + partialPercentage * (maxv - minv);
						shouldAdjustWithBase = false;
					}

					var adjustment = shouldAdjustWithBase ? this.options.min : 0;
					var value = adjustment + Math.round(rawValue / this.options.step) * this.options.step;
					if (value < this.options.min) {
						return this.options.min;
					} else if (value > this.options.max) {
						return this.options.max;
					} else {
						return value;
					}
				},
				toPercentage: function toPercentage(value) {
					if (this.options.max === this.options.min) {
						return 0;
					}

					if (this.options.ticks_positions.length > 0) {
						var minv,
						    maxv,
						    minp,
						    maxp = 0;
						for (var i = 0; i < this.options.ticks.length; i++) {
							if (value <= this.options.ticks[i]) {
								minv = i > 0 ? this.options.ticks[i - 1] : 0;
								minp = i > 0 ? this.options.ticks_positions[i - 1] : 0;
								maxv = this.options.ticks[i];
								maxp = this.options.ticks_positions[i];

								break;
							}
						}
						if (i > 0) {
							var partialPercentage = (value - minv) / (maxv - minv);
							return minp + partialPercentage * (maxp - minp);
						}
					}

					return 100 * (value - this.options.min) / (this.options.max - this.options.min);
				}
			},

			logarithmic: {
				/* Based on http://stackoverflow.com/questions/846221/logarithmic-slider */
				toValue: function toValue(percentage) {
					var min = this.options.min === 0 ? 0 : Math.log(this.options.min);
					var max = Math.log(this.options.max);
					var value = Math.exp(min + (max - min) * percentage / 100);
					if (Math.round(value) === this.options.max) {
						return this.options.max;
					}
					value = this.options.min + Math.round((value - this.options.min) / this.options.step) * this.options.step;
					/* Rounding to the nearest step could exceed the min or
      * max, so clip to those values. */
					if (value < this.options.min) {
						return this.options.min;
					} else if (value > this.options.max) {
						return this.options.max;
					} else {
						return value;
					}
				},
				toPercentage: function toPercentage(value) {
					if (this.options.max === this.options.min) {
						return 0;
					} else {
						var max = Math.log(this.options.max);
						var min = this.options.min === 0 ? 0 : Math.log(this.options.min);
						var v = value === 0 ? 0 : Math.log(value);
						return 100 * (v - min) / (max - min);
					}
				}
			}
		};

		/*************************************************
  						CONSTRUCTOR
  	**************************************************/
		Slider = function Slider(element, options) {
			createNewSlider.call(this, element, options);
			return this;
		};

		function createNewSlider(element, options) {

			/*
   	The internal state object is used to store data about the current 'state' of slider.
   	This includes values such as the `value`, `enabled`, etc...
   */
			this._state = {
				value: null,
				enabled: null,
				offset: null,
				size: null,
				percentage: null,
				inDrag: false,
				over: false
			};

			// The objects used to store the reference to the tick methods if ticks_tooltip is on
			this.ticksCallbackMap = {};
			this.handleCallbackMap = {};

			if (typeof element === "string") {
				this.element = document.querySelector(element);
			} else if (element instanceof HTMLElement) {
				this.element = element;
			}

			/*************************************************
   					Process Options
   	**************************************************/
			options = options ? options : {};
			var optionTypes = Object.keys(this.defaultOptions);

			for (var i = 0; i < optionTypes.length; i++) {
				var optName = optionTypes[i];

				// First check if an option was passed in via the constructor
				var val = options[optName];
				// If no data attrib, then check data atrributes
				val = typeof val !== 'undefined' ? val : getDataAttrib(this.element, optName);
				// Finally, if nothing was specified, use the defaults
				val = val !== null ? val : this.defaultOptions[optName];

				// Set all options on the instance of the Slider
				if (!this.options) {
					this.options = {};
				}
				this.options[optName] = val;
			}

			// Check options.rtl
			if (this.options.rtl === 'auto') {
				this.options.rtl = window.getComputedStyle(this.element).direction === 'rtl';
			}

			/*
   	Validate `tooltip_position` against 'orientation`
   	- if `tooltip_position` is incompatible with orientation, swith it to a default compatible with specified `orientation`
   		-- default for "vertical" -> "right", "left" if rtl
   		-- default for "horizontal" -> "top"
   */
			if (this.options.orientation === "vertical" && (this.options.tooltip_position === "top" || this.options.tooltip_position === "bottom")) {
				if (this.options.rtl) {
					this.options.tooltip_position = "left";
				} else {
					this.options.tooltip_position = "right";
				}
			} else if (this.options.orientation === "horizontal" && (this.options.tooltip_position === "left" || this.options.tooltip_position === "right")) {

				this.options.tooltip_position = "top";
			}

			function getDataAttrib(element, optName) {
				var dataName = "data-slider-" + optName.replace(/_/g, '-');
				var dataValString = element.getAttribute(dataName);

				try {
					return JSON.parse(dataValString);
				} catch (err) {
					return dataValString;
				}
			}

			/*************************************************
   					Create Markup
   	**************************************************/

			var origWidth = this.element.style.width;
			var updateSlider = false;
			var parent = this.element.parentNode;
			var sliderTrackSelection;
			var sliderTrackLow, sliderTrackHigh;
			var sliderMinHandle;
			var sliderMaxHandle;

			if (this.sliderElem) {
				updateSlider = true;
			} else {
				/* Create elements needed for slider */
				this.sliderElem = document.createElement("div");
				this.sliderElem.className = "slider";

				/* Create slider track elements */
				var sliderTrack = document.createElement("div");
				sliderTrack.className = "slider-track";

				sliderTrackLow = document.createElement("div");
				sliderTrackLow.className = "slider-track-low";

				sliderTrackSelection = document.createElement("div");
				sliderTrackSelection.className = "slider-selection";

				sliderTrackHigh = document.createElement("div");
				sliderTrackHigh.className = "slider-track-high";

				sliderMinHandle = document.createElement("div");
				sliderMinHandle.className = "slider-handle min-slider-handle";
				sliderMinHandle.setAttribute('role', 'slider');
				sliderMinHandle.setAttribute('aria-valuemin', this.options.min);
				sliderMinHandle.setAttribute('aria-valuemax', this.options.max);

				sliderMaxHandle = document.createElement("div");
				sliderMaxHandle.className = "slider-handle max-slider-handle";
				sliderMaxHandle.setAttribute('role', 'slider');
				sliderMaxHandle.setAttribute('aria-valuemin', this.options.min);
				sliderMaxHandle.setAttribute('aria-valuemax', this.options.max);

				sliderTrack.appendChild(sliderTrackLow);
				sliderTrack.appendChild(sliderTrackSelection);
				sliderTrack.appendChild(sliderTrackHigh);

				/* Create highlight range elements */
				this.rangeHighlightElements = [];
				var rangeHighlightsOpts = this.options.rangeHighlights;
				if (Array.isArray(rangeHighlightsOpts) && rangeHighlightsOpts.length > 0) {
					for (var j = 0; j < rangeHighlightsOpts.length; j++) {
						var rangeHighlightElement = document.createElement("div");
						var customClassString = rangeHighlightsOpts[j].class || "";
						rangeHighlightElement.className = "slider-rangeHighlight slider-selection " + customClassString;
						this.rangeHighlightElements.push(rangeHighlightElement);
						sliderTrack.appendChild(rangeHighlightElement);
					}
				}

				/* Add aria-labelledby to handle's */
				var isLabelledbyArray = Array.isArray(this.options.labelledby);
				if (isLabelledbyArray && this.options.labelledby[0]) {
					sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby[0]);
				}
				if (isLabelledbyArray && this.options.labelledby[1]) {
					sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby[1]);
				}
				if (!isLabelledbyArray && this.options.labelledby) {
					sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby);
					sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby);
				}

				/* Create ticks */
				this.ticks = [];
				if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {
					this.ticksContainer = document.createElement('div');
					this.ticksContainer.className = 'slider-tick-container';

					for (i = 0; i < this.options.ticks.length; i++) {
						var tick = document.createElement('div');
						tick.className = 'slider-tick';
						if (this.options.ticks_tooltip) {
							var tickListenerReference = this._addTickListener();
							var enterCallback = tickListenerReference.addMouseEnter(this, tick, i);
							var leaveCallback = tickListenerReference.addMouseLeave(this, tick);

							this.ticksCallbackMap[i] = {
								mouseEnter: enterCallback,
								mouseLeave: leaveCallback
							};
						}
						this.ticks.push(tick);
						this.ticksContainer.appendChild(tick);
					}

					sliderTrackSelection.className += " tick-slider-selection";
				}

				this.tickLabels = [];
				if (Array.isArray(this.options.ticks_labels) && this.options.ticks_labels.length > 0) {
					this.tickLabelContainer = document.createElement('div');
					this.tickLabelContainer.className = 'slider-tick-label-container';

					for (i = 0; i < this.options.ticks_labels.length; i++) {
						var label = document.createElement('div');
						var noTickPositionsSpecified = this.options.ticks_positions.length === 0;
						var tickLabelsIndex = this.options.reversed && noTickPositionsSpecified ? this.options.ticks_labels.length - (i + 1) : i;
						label.className = 'slider-tick-label';
						label.innerHTML = this.options.ticks_labels[tickLabelsIndex];

						this.tickLabels.push(label);
						this.tickLabelContainer.appendChild(label);
					}
				}

				var createAndAppendTooltipSubElements = function createAndAppendTooltipSubElements(tooltipElem) {
					var arrow = document.createElement("div");
					arrow.className = "tooltip-arrow";

					var inner = document.createElement("div");
					inner.className = "tooltip-inner";

					tooltipElem.appendChild(arrow);
					tooltipElem.appendChild(inner);
				};

				/* Create tooltip elements */
				var sliderTooltip = document.createElement("div");
				sliderTooltip.className = "tooltip tooltip-main";
				sliderTooltip.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltip);

				var sliderTooltipMin = document.createElement("div");
				sliderTooltipMin.className = "tooltip tooltip-min";
				sliderTooltipMin.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltipMin);

				var sliderTooltipMax = document.createElement("div");
				sliderTooltipMax.className = "tooltip tooltip-max";
				sliderTooltipMax.setAttribute('role', 'presentation');
				createAndAppendTooltipSubElements(sliderTooltipMax);

				/* Append components to sliderElem */
				this.sliderElem.appendChild(sliderTrack);
				this.sliderElem.appendChild(sliderTooltip);
				this.sliderElem.appendChild(sliderTooltipMin);
				this.sliderElem.appendChild(sliderTooltipMax);

				if (this.tickLabelContainer) {
					this.sliderElem.appendChild(this.tickLabelContainer);
				}
				if (this.ticksContainer) {
					this.sliderElem.appendChild(this.ticksContainer);
				}

				this.sliderElem.appendChild(sliderMinHandle);
				this.sliderElem.appendChild(sliderMaxHandle);

				/* Append slider element to parent container, right before the original <input> element */
				parent.insertBefore(this.sliderElem, this.element);

				/* Hide original <input> element */
				this.element.style.display = "none";
			}
			/* If JQuery exists, cache JQ references */
			if ($) {
				this.$element = $(this.element);
				this.$sliderElem = $(this.sliderElem);
			}

			/*************************************************
   						Setup
   	**************************************************/
			this.eventToCallbackMap = {};
			this.sliderElem.id = this.options.id;

			this.touchCapable = 'ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch;

			this.touchX = 0;
			this.touchY = 0;

			this.tooltip = this.sliderElem.querySelector('.tooltip-main');
			this.tooltipInner = this.tooltip.querySelector('.tooltip-inner');

			this.tooltip_min = this.sliderElem.querySelector('.tooltip-min');
			this.tooltipInner_min = this.tooltip_min.querySelector('.tooltip-inner');

			this.tooltip_max = this.sliderElem.querySelector('.tooltip-max');
			this.tooltipInner_max = this.tooltip_max.querySelector('.tooltip-inner');

			if (SliderScale[this.options.scale]) {
				this.options.scale = SliderScale[this.options.scale];
			}

			if (updateSlider === true) {
				// Reset classes
				this._removeClass(this.sliderElem, 'slider-horizontal');
				this._removeClass(this.sliderElem, 'slider-vertical');
				this._removeClass(this.sliderElem, 'slider-rtl');
				this._removeClass(this.tooltip, 'hide');
				this._removeClass(this.tooltip_min, 'hide');
				this._removeClass(this.tooltip_max, 'hide');

				// Undo existing inline styles for track
				["left", "right", "top", "width", "height"].forEach(function (prop) {
					this._removeProperty(this.trackLow, prop);
					this._removeProperty(this.trackSelection, prop);
					this._removeProperty(this.trackHigh, prop);
				}, this);

				// Undo inline styles on handles
				[this.handle1, this.handle2].forEach(function (handle) {
					this._removeProperty(handle, 'left');
					this._removeProperty(handle, 'right');
					this._removeProperty(handle, 'top');
				}, this);

				// Undo inline styles and classes on tooltips
				[this.tooltip, this.tooltip_min, this.tooltip_max].forEach(function (tooltip) {
					this._removeProperty(tooltip, 'left');
					this._removeProperty(tooltip, 'right');
					this._removeProperty(tooltip, 'top');

					this._removeClass(tooltip, 'right');
					this._removeClass(tooltip, 'left');
					this._removeClass(tooltip, 'top');
				}, this);
			}

			if (this.options.orientation === 'vertical') {
				this._addClass(this.sliderElem, 'slider-vertical');
				this.stylePos = 'top';
				this.mousePos = 'pageY';
				this.sizePos = 'offsetHeight';
			} else {
				this._addClass(this.sliderElem, 'slider-horizontal');
				this.sliderElem.style.width = origWidth;
				this.options.orientation = 'horizontal';
				if (this.options.rtl) {
					this.stylePos = 'right';
				} else {
					this.stylePos = 'left';
				}
				this.mousePos = 'pageX';
				this.sizePos = 'offsetWidth';
			}
			// specific rtl class
			if (this.options.rtl) {
				this._addClass(this.sliderElem, 'slider-rtl');
			}
			this._setTooltipPosition();
			/* In case ticks are specified, overwrite the min and max bounds */
			if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {
				this.options.max = Math.max.apply(Math, this.options.ticks);
				this.options.min = Math.min.apply(Math, this.options.ticks);
			}

			if (Array.isArray(this.options.value)) {
				this.options.range = true;
				this._state.value = this.options.value;
			} else if (this.options.range) {
				// User wants a range, but value is not an array
				this._state.value = [this.options.value, this.options.max];
			} else {
				this._state.value = this.options.value;
			}

			this.trackLow = sliderTrackLow || this.trackLow;
			this.trackSelection = sliderTrackSelection || this.trackSelection;
			this.trackHigh = sliderTrackHigh || this.trackHigh;

			if (this.options.selection === 'none') {
				this._addClass(this.trackLow, 'hide');
				this._addClass(this.trackSelection, 'hide');
				this._addClass(this.trackHigh, 'hide');
			} else if (this.options.selection === 'after' || this.options.selection === 'before') {
				this._removeClass(this.trackLow, 'hide');
				this._removeClass(this.trackSelection, 'hide');
				this._removeClass(this.trackHigh, 'hide');
			}

			this.handle1 = sliderMinHandle || this.handle1;
			this.handle2 = sliderMaxHandle || this.handle2;

			if (updateSlider === true) {
				// Reset classes
				this._removeClass(this.handle1, 'round triangle');
				this._removeClass(this.handle2, 'round triangle hide');

				for (i = 0; i < this.ticks.length; i++) {
					this._removeClass(this.ticks[i], 'round triangle hide');
				}
			}

			var availableHandleModifiers = ['round', 'triangle', 'custom'];
			var isValidHandleType = availableHandleModifiers.indexOf(this.options.handle) !== -1;
			if (isValidHandleType) {
				this._addClass(this.handle1, this.options.handle);
				this._addClass(this.handle2, this.options.handle);

				for (i = 0; i < this.ticks.length; i++) {
					this._addClass(this.ticks[i], this.options.handle);
				}
			}

			this._state.offset = this._offset(this.sliderElem);
			this._state.size = this.sliderElem[this.sizePos];
			this.setValue(this._state.value);

			/******************************************
   				Bind Event Listeners
   	******************************************/

			// Bind keyboard handlers
			this.handle1Keydown = this._keydown.bind(this, 0);
			this.handle1.addEventListener("keydown", this.handle1Keydown, false);

			this.handle2Keydown = this._keydown.bind(this, 1);
			this.handle2.addEventListener("keydown", this.handle2Keydown, false);

			this.mousedown = this._mousedown.bind(this);
			this.touchstart = this._touchstart.bind(this);
			this.touchmove = this._touchmove.bind(this);

			if (this.touchCapable) {
				// Test for passive event support
				var supportsPassive = false;
				try {
					var opts = Object.defineProperty({}, 'passive', {
						get: function get() {
							supportsPassive = true;
						}
					});
					window.addEventListener("test", null, opts);
				} catch (e) {}
				// Use our detect's results. passive applied if supported, capture will be false either way.
				var eventOptions = supportsPassive ? { passive: true } : false;
				// Bind touch handlers
				this.sliderElem.addEventListener("touchstart", this.touchstart, eventOptions);
				this.sliderElem.addEventListener("touchmove", this.touchmove, eventOptions);
			}
			this.sliderElem.addEventListener("mousedown", this.mousedown, false);

			// Bind window handlers
			this.resize = this._resize.bind(this);
			window.addEventListener("resize", this.resize, false);

			// Bind tooltip-related handlers
			if (this.options.tooltip === 'hide') {
				this._addClass(this.tooltip, 'hide');
				this._addClass(this.tooltip_min, 'hide');
				this._addClass(this.tooltip_max, 'hide');
			} else if (this.options.tooltip === 'always') {
				this._showTooltip();
				this._alwaysShowTooltip = true;
			} else {
				this.showTooltip = this._showTooltip.bind(this);
				this.hideTooltip = this._hideTooltip.bind(this);

				if (this.options.ticks_tooltip) {
					var callbackHandle = this._addTickListener();
					//create handle1 listeners and store references in map
					var mouseEnter = callbackHandle.addMouseEnter(this, this.handle1);
					var mouseLeave = callbackHandle.addMouseLeave(this, this.handle1);
					this.handleCallbackMap.handle1 = {
						mouseEnter: mouseEnter,
						mouseLeave: mouseLeave
					};
					//create handle2 listeners and store references in map
					mouseEnter = callbackHandle.addMouseEnter(this, this.handle2);
					mouseLeave = callbackHandle.addMouseLeave(this, this.handle2);
					this.handleCallbackMap.handle2 = {
						mouseEnter: mouseEnter,
						mouseLeave: mouseLeave
					};
				} else {
					this.sliderElem.addEventListener("mouseenter", this.showTooltip, false);
					this.sliderElem.addEventListener("mouseleave", this.hideTooltip, false);
				}

				this.handle1.addEventListener("focus", this.showTooltip, false);
				this.handle1.addEventListener("blur", this.hideTooltip, false);

				this.handle2.addEventListener("focus", this.showTooltip, false);
				this.handle2.addEventListener("blur", this.hideTooltip, false);
			}

			if (this.options.enabled) {
				this.enable();
			} else {
				this.disable();
			}
		}

		/*************************************************
  				INSTANCE PROPERTIES/METHODS
  	- Any methods bound to the prototype are considered
  part of the plugin's `public` interface
  	**************************************************/
		Slider.prototype = {
			_init: function _init() {}, // NOTE: Must exist to support bridget

			constructor: Slider,

			defaultOptions: {
				id: "",
				min: 0,
				max: 10,
				step: 1,
				precision: 0,
				orientation: 'horizontal',
				value: 5,
				range: false,
				selection: 'before',
				tooltip: 'show',
				tooltip_split: false,
				handle: 'round',
				reversed: false,
				rtl: 'auto',
				enabled: true,
				formatter: function formatter(val) {
					if (Array.isArray(val)) {
						return val[0] + " : " + val[1];
					} else {
						return val;
					}
				},
				natural_arrow_keys: false,
				ticks: [],
				ticks_positions: [],
				ticks_labels: [],
				ticks_snap_bounds: 0,
				ticks_tooltip: false,
				scale: 'linear',
				focus: false,
				tooltip_position: null,
				labelledby: null,
				rangeHighlights: []
			},

			getElement: function getElement() {
				return this.sliderElem;
			},

			getValue: function getValue() {
				if (this.options.range) {
					return this._state.value;
				} else {
					return this._state.value[0];
				}
			},

			setValue: function setValue(val, triggerSlideEvent, triggerChangeEvent) {
				if (!val) {
					val = 0;
				}
				var oldValue = this.getValue();
				this._state.value = this._validateInputValue(val);
				var applyPrecision = this._applyPrecision.bind(this);

				if (this.options.range) {
					this._state.value[0] = applyPrecision(this._state.value[0]);
					this._state.value[1] = applyPrecision(this._state.value[1]);

					this._state.value[0] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[0]));
					this._state.value[1] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[1]));
				} else {
					this._state.value = applyPrecision(this._state.value);
					this._state.value = [Math.max(this.options.min, Math.min(this.options.max, this._state.value))];
					this._addClass(this.handle2, 'hide');
					if (this.options.selection === 'after') {
						this._state.value[1] = this.options.max;
					} else {
						this._state.value[1] = this.options.min;
					}
				}

				if (this.options.max > this.options.min) {
					this._state.percentage = [this._toPercentage(this._state.value[0]), this._toPercentage(this._state.value[1]), this.options.step * 100 / (this.options.max - this.options.min)];
				} else {
					this._state.percentage = [0, 0, 100];
				}

				this._layout();
				var newValue = this.options.range ? this._state.value : this._state.value[0];

				this._setDataVal(newValue);
				if (triggerSlideEvent === true) {
					this._trigger('slide', newValue);
				}
				if (oldValue !== newValue && triggerChangeEvent === true) {
					this._trigger('change', {
						oldValue: oldValue,
						newValue: newValue
					});
				}

				return this;
			},

			destroy: function destroy() {
				// Remove event handlers on slider elements
				this._removeSliderEventHandlers();

				// Remove the slider from the DOM
				this.sliderElem.parentNode.removeChild(this.sliderElem);
				/* Show original <input> element */
				this.element.style.display = "";

				// Clear out custom event bindings
				this._cleanUpEventCallbacksMap();

				// Remove data values
				this.element.removeAttribute("data");

				// Remove JQuery handlers/data
				if ($) {
					this._unbindJQueryEventHandlers();
					this.$element.removeData('slider');
				}
			},

			disable: function disable() {
				this._state.enabled = false;
				this.handle1.removeAttribute("tabindex");
				this.handle2.removeAttribute("tabindex");
				this._addClass(this.sliderElem, 'slider-disabled');
				this._trigger('slideDisabled');

				return this;
			},

			enable: function enable() {
				this._state.enabled = true;
				this.handle1.setAttribute("tabindex", 0);
				this.handle2.setAttribute("tabindex", 0);
				this._removeClass(this.sliderElem, 'slider-disabled');
				this._trigger('slideEnabled');

				return this;
			},

			toggle: function toggle() {
				if (this._state.enabled) {
					this.disable();
				} else {
					this.enable();
				}
				return this;
			},

			isEnabled: function isEnabled() {
				return this._state.enabled;
			},

			on: function on(evt, callback) {
				this._bindNonQueryEventHandler(evt, callback);
				return this;
			},

			off: function off(evt, callback) {
				if ($) {
					this.$element.off(evt, callback);
					this.$sliderElem.off(evt, callback);
				} else {
					this._unbindNonQueryEventHandler(evt, callback);
				}
			},

			getAttribute: function getAttribute(attribute) {
				if (attribute) {
					return this.options[attribute];
				} else {
					return this.options;
				}
			},

			setAttribute: function setAttribute(attribute, value) {
				this.options[attribute] = value;
				return this;
			},

			refresh: function refresh() {
				this._removeSliderEventHandlers();
				createNewSlider.call(this, this.element, this.options);
				if ($) {
					// Bind new instance of slider to the element
					$.data(this.element, 'slider', this);
				}
				return this;
			},

			relayout: function relayout() {
				this._resize();
				this._layout();
				return this;
			},

			/******************************+
   				HELPERS
   	- Any method that is not part of the public interface.
   - Place it underneath this comment block and write its signature like so:
   		_fnName : function() {...}
   	********************************/
			_removeSliderEventHandlers: function _removeSliderEventHandlers() {
				// Remove keydown event listeners
				this.handle1.removeEventListener("keydown", this.handle1Keydown, false);
				this.handle2.removeEventListener("keydown", this.handle2Keydown, false);

				//remove the listeners from the ticks and handles if they had their own listeners
				if (this.options.ticks_tooltip) {
					var ticks = this.ticksContainer.getElementsByClassName('slider-tick');
					for (var i = 0; i < ticks.length; i++) {
						ticks[i].removeEventListener('mouseenter', this.ticksCallbackMap[i].mouseEnter, false);
						ticks[i].removeEventListener('mouseleave', this.ticksCallbackMap[i].mouseLeave, false);
					}
					this.handle1.removeEventListener('mouseenter', this.handleCallbackMap.handle1.mouseEnter, false);
					this.handle2.removeEventListener('mouseenter', this.handleCallbackMap.handle2.mouseEnter, false);
					this.handle1.removeEventListener('mouseleave', this.handleCallbackMap.handle1.mouseLeave, false);
					this.handle2.removeEventListener('mouseleave', this.handleCallbackMap.handle2.mouseLeave, false);
				}

				this.handleCallbackMap = null;
				this.ticksCallbackMap = null;

				if (this.showTooltip) {
					this.handle1.removeEventListener("focus", this.showTooltip, false);
					this.handle2.removeEventListener("focus", this.showTooltip, false);
				}
				if (this.hideTooltip) {
					this.handle1.removeEventListener("blur", this.hideTooltip, false);
					this.handle2.removeEventListener("blur", this.hideTooltip, false);
				}

				// Remove event listeners from sliderElem
				if (this.showTooltip) {
					this.sliderElem.removeEventListener("mouseenter", this.showTooltip, false);
				}
				if (this.hideTooltip) {
					this.sliderElem.removeEventListener("mouseleave", this.hideTooltip, false);
				}
				this.sliderElem.removeEventListener("touchstart", this.touchstart, false);
				this.sliderElem.removeEventListener("touchmove", this.touchmove, false);
				this.sliderElem.removeEventListener("mousedown", this.mousedown, false);

				// Remove window event listener
				window.removeEventListener("resize", this.resize, false);
			},
			_bindNonQueryEventHandler: function _bindNonQueryEventHandler(evt, callback) {
				if (this.eventToCallbackMap[evt] === undefined) {
					this.eventToCallbackMap[evt] = [];
				}
				this.eventToCallbackMap[evt].push(callback);
			},
			_unbindNonQueryEventHandler: function _unbindNonQueryEventHandler(evt, callback) {
				var callbacks = this.eventToCallbackMap[evt];
				if (callbacks !== undefined) {
					for (var i = 0; i < callbacks.length; i++) {
						if (callbacks[i] === callback) {
							callbacks.splice(i, 1);
							break;
						}
					}
				}
			},
			_cleanUpEventCallbacksMap: function _cleanUpEventCallbacksMap() {
				var eventNames = Object.keys(this.eventToCallbackMap);
				for (var i = 0; i < eventNames.length; i++) {
					var eventName = eventNames[i];
					delete this.eventToCallbackMap[eventName];
				}
			},
			_showTooltip: function _showTooltip() {
				if (this.options.tooltip_split === false) {
					this._addClass(this.tooltip, 'in');
					this.tooltip_min.style.display = 'none';
					this.tooltip_max.style.display = 'none';
				} else {
					this._addClass(this.tooltip_min, 'in');
					this._addClass(this.tooltip_max, 'in');
					this.tooltip.style.display = 'none';
				}
				this._state.over = true;
			},
			_hideTooltip: function _hideTooltip() {
				if (this._state.inDrag === false && this.alwaysShowTooltip !== true) {
					this._removeClass(this.tooltip, 'in');
					this._removeClass(this.tooltip_min, 'in');
					this._removeClass(this.tooltip_max, 'in');
				}
				this._state.over = false;
			},
			_setToolTipOnMouseOver: function _setToolTipOnMouseOver(tempState) {
				var formattedTooltipVal = this.options.formatter(!tempState ? this._state.value[0] : tempState.value[0]);
				var positionPercentages = !tempState ? getPositionPercentages(this._state, this.options.reversed) : getPositionPercentages(tempState, this.options.reversed);
				this._setText(this.tooltipInner, formattedTooltipVal);

				this.tooltip.style[this.stylePos] = positionPercentages[0] + "%";

				function getPositionPercentages(state, reversed) {
					if (reversed) {
						return [100 - state.percentage[0], this.options.range ? 100 - state.percentage[1] : state.percentage[1]];
					}
					return [state.percentage[0], state.percentage[1]];
				}
			},
			_addTickListener: function _addTickListener() {
				return {
					addMouseEnter: function addMouseEnter(reference, tick, index) {
						var enter = function enter() {
							var tempState = reference._state;
							var idString = index >= 0 ? index : this.attributes['aria-valuenow'].value;
							var hoverIndex = parseInt(idString, 10);
							tempState.value[0] = hoverIndex;
							tempState.percentage[0] = reference.options.ticks_positions[hoverIndex];
							reference._setToolTipOnMouseOver(tempState);
							reference._showTooltip();
						};
						tick.addEventListener("mouseenter", enter, false);
						return enter;
					},
					addMouseLeave: function addMouseLeave(reference, tick) {
						var leave = function leave() {
							reference._hideTooltip();
						};
						tick.addEventListener("mouseleave", leave, false);
						return leave;
					}
				};
			},
			_layout: function _layout() {
				var positionPercentages;

				if (this.options.reversed) {
					positionPercentages = [100 - this._state.percentage[0], this.options.range ? 100 - this._state.percentage[1] : this._state.percentage[1]];
				} else {
					positionPercentages = [this._state.percentage[0], this._state.percentage[1]];
				}

				this.handle1.style[this.stylePos] = positionPercentages[0] + "%";
				this.handle1.setAttribute('aria-valuenow', this._state.value[0]);
				if (isNaN(this.options.formatter(this._state.value[0]))) {
					this.handle1.setAttribute('aria-valuetext', this.options.formatter(this._state.value[0]));
				}

				this.handle2.style[this.stylePos] = positionPercentages[1] + "%";
				this.handle2.setAttribute('aria-valuenow', this._state.value[1]);
				if (isNaN(this.options.formatter(this._state.value[1]))) {
					this.handle2.setAttribute('aria-valuetext', this.options.formatter(this._state.value[1]));
				}

				/* Position highlight range elements */
				if (this.rangeHighlightElements.length > 0 && Array.isArray(this.options.rangeHighlights) && this.options.rangeHighlights.length > 0) {
					for (var _i = 0; _i < this.options.rangeHighlights.length; _i++) {
						var startPercent = this._toPercentage(this.options.rangeHighlights[_i].start);
						var endPercent = this._toPercentage(this.options.rangeHighlights[_i].end);

						if (this.options.reversed) {
							var sp = 100 - endPercent;
							endPercent = 100 - startPercent;
							startPercent = sp;
						}

						var currentRange = this._createHighlightRange(startPercent, endPercent);

						if (currentRange) {
							if (this.options.orientation === 'vertical') {
								this.rangeHighlightElements[_i].style.top = currentRange.start + "%";
								this.rangeHighlightElements[_i].style.height = currentRange.size + "%";
							} else {
								if (this.options.rtl) {
									this.rangeHighlightElements[_i].style.right = currentRange.start + "%";
								} else {
									this.rangeHighlightElements[_i].style.left = currentRange.start + "%";
								}
								this.rangeHighlightElements[_i].style.width = currentRange.size + "%";
							}
						} else {
							this.rangeHighlightElements[_i].style.display = "none";
						}
					}
				}

				/* Position ticks and labels */
				if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) {

					var styleSize = this.options.orientation === 'vertical' ? 'height' : 'width';
					var styleMargin;
					if (this.options.orientation === 'vertical') {
						styleMargin = 'marginTop';
					} else {
						if (this.options.rtl) {
							styleMargin = 'marginRight';
						} else {
							styleMargin = 'marginLeft';
						}
					}
					var labelSize = this._state.size / (this.options.ticks.length - 1);

					if (this.tickLabelContainer) {
						var extraMargin = 0;
						if (this.options.ticks_positions.length === 0) {
							if (this.options.orientation !== 'vertical') {
								this.tickLabelContainer.style[styleMargin] = -labelSize / 2 + "px";
							}

							extraMargin = this.tickLabelContainer.offsetHeight;
						} else {
							/* Chidren are position absolute, calculate height by finding the max offsetHeight of a child */
							for (i = 0; i < this.tickLabelContainer.childNodes.length; i++) {
								if (this.tickLabelContainer.childNodes[i].offsetHeight > extraMargin) {
									extraMargin = this.tickLabelContainer.childNodes[i].offsetHeight;
								}
							}
						}
						if (this.options.orientation === 'horizontal') {
							this.sliderElem.style.marginBottom = extraMargin + "px";
						}
					}
					for (var i = 0; i < this.options.ticks.length; i++) {

						var percentage = this.options.ticks_positions[i] || this._toPercentage(this.options.ticks[i]);

						if (this.options.reversed) {
							percentage = 100 - percentage;
						}

						this.ticks[i].style[this.stylePos] = percentage + "%";

						/* Set class labels to denote whether ticks are in the selection */
						this._removeClass(this.ticks[i], 'in-selection');
						if (!this.options.range) {
							if (this.options.selection === 'after' && percentage >= positionPercentages[0]) {
								this._addClass(this.ticks[i], 'in-selection');
							} else if (this.options.selection === 'before' && percentage <= positionPercentages[0]) {
								this._addClass(this.ticks[i], 'in-selection');
							}
						} else if (percentage >= positionPercentages[0] && percentage <= positionPercentages[1]) {
							this._addClass(this.ticks[i], 'in-selection');
						}

						if (this.tickLabels[i]) {
							this.tickLabels[i].style[styleSize] = labelSize + "px";

							if (this.options.orientation !== 'vertical' && this.options.ticks_positions[i] !== undefined) {
								this.tickLabels[i].style.position = 'absolute';
								this.tickLabels[i].style[this.stylePos] = percentage + "%";
								this.tickLabels[i].style[styleMargin] = -labelSize / 2 + 'px';
							} else if (this.options.orientation === 'vertical') {
								if (this.options.rtl) {
									this.tickLabels[i].style['marginRight'] = this.sliderElem.offsetWidth + "px";
								} else {
									this.tickLabels[i].style['marginLeft'] = this.sliderElem.offsetWidth + "px";
								}
								this.tickLabelContainer.style[styleMargin] = this.sliderElem.offsetWidth / 2 * -1 + 'px';
							}
						}
					}
				}

				var formattedTooltipVal;

				if (this.options.range) {
					formattedTooltipVal = this.options.formatter(this._state.value);
					this._setText(this.tooltipInner, formattedTooltipVal);
					this.tooltip.style[this.stylePos] = (positionPercentages[1] + positionPercentages[0]) / 2 + "%";

					var innerTooltipMinText = this.options.formatter(this._state.value[0]);
					this._setText(this.tooltipInner_min, innerTooltipMinText);

					var innerTooltipMaxText = this.options.formatter(this._state.value[1]);
					this._setText(this.tooltipInner_max, innerTooltipMaxText);

					this.tooltip_min.style[this.stylePos] = positionPercentages[0] + "%";

					this.tooltip_max.style[this.stylePos] = positionPercentages[1] + "%";
				} else {
					formattedTooltipVal = this.options.formatter(this._state.value[0]);
					this._setText(this.tooltipInner, formattedTooltipVal);

					this.tooltip.style[this.stylePos] = positionPercentages[0] + "%";
				}

				if (this.options.orientation === 'vertical') {
					this.trackLow.style.top = '0';
					this.trackLow.style.height = Math.min(positionPercentages[0], positionPercentages[1]) + '%';

					this.trackSelection.style.top = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					this.trackSelection.style.height = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					this.trackHigh.style.bottom = '0';
					this.trackHigh.style.height = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';
				} else {
					if (this.stylePos === 'right') {
						this.trackLow.style.right = '0';
					} else {
						this.trackLow.style.left = '0';
					}
					this.trackLow.style.width = Math.min(positionPercentages[0], positionPercentages[1]) + '%';

					if (this.stylePos === 'right') {
						this.trackSelection.style.right = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					} else {
						this.trackSelection.style.left = Math.min(positionPercentages[0], positionPercentages[1]) + '%';
					}
					this.trackSelection.style.width = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					if (this.stylePos === 'right') {
						this.trackHigh.style.left = '0';
					} else {
						this.trackHigh.style.right = '0';
					}
					this.trackHigh.style.width = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%';

					var offset_min = this.tooltip_min.getBoundingClientRect();
					var offset_max = this.tooltip_max.getBoundingClientRect();

					if (this.options.tooltip_position === 'bottom') {
						if (offset_min.right > offset_max.left) {
							this._removeClass(this.tooltip_max, 'bottom');
							this._addClass(this.tooltip_max, 'top');
							this.tooltip_max.style.top = '';
							this.tooltip_max.style.bottom = 22 + 'px';
						} else {
							this._removeClass(this.tooltip_max, 'top');
							this._addClass(this.tooltip_max, 'bottom');
							this.tooltip_max.style.top = this.tooltip_min.style.top;
							this.tooltip_max.style.bottom = '';
						}
					} else {
						if (offset_min.right > offset_max.left) {
							this._removeClass(this.tooltip_max, 'top');
							this._addClass(this.tooltip_max, 'bottom');
							this.tooltip_max.style.top = 18 + 'px';
						} else {
							this._removeClass(this.tooltip_max, 'bottom');
							this._addClass(this.tooltip_max, 'top');
							this.tooltip_max.style.top = this.tooltip_min.style.top;
						}
					}
				}
			},
			_createHighlightRange: function _createHighlightRange(start, end) {
				if (this._isHighlightRange(start, end)) {
					if (start > end) {
						return { 'start': end, 'size': start - end };
					}
					return { 'start': start, 'size': end - start };
				}
				return null;
			},
			_isHighlightRange: function _isHighlightRange(start, end) {
				if (0 <= start && start <= 100 && 0 <= end && end <= 100) {
					return true;
				} else {
					return false;
				}
			},
			_resize: function _resize(ev) {
				/*jshint unused:false*/
				this._state.offset = this._offset(this.sliderElem);
				this._state.size = this.sliderElem[this.sizePos];
				this._layout();
			},
			_removeProperty: function _removeProperty(element, prop) {
				if (element.style.removeProperty) {
					element.style.removeProperty(prop);
				} else {
					element.style.removeAttribute(prop);
				}
			},
			_mousedown: function _mousedown(ev) {
				if (!this._state.enabled) {
					return false;
				}

				this._state.offset = this._offset(this.sliderElem);
				this._state.size = this.sliderElem[this.sizePos];

				var percentage = this._getPercentage(ev);

				if (this.options.range) {
					var diff1 = Math.abs(this._state.percentage[0] - percentage);
					var diff2 = Math.abs(this._state.percentage[1] - percentage);
					this._state.dragged = diff1 < diff2 ? 0 : 1;
					this._adjustPercentageForRangeSliders(percentage);
				} else {
					this._state.dragged = 0;
				}

				this._state.percentage[this._state.dragged] = percentage;
				this._layout();

				if (this.touchCapable) {
					document.removeEventListener("touchmove", this.mousemove, false);
					document.removeEventListener("touchend", this.mouseup, false);
				}

				if (this.mousemove) {
					document.removeEventListener("mousemove", this.mousemove, false);
				}
				if (this.mouseup) {
					document.removeEventListener("mouseup", this.mouseup, false);
				}

				this.mousemove = this._mousemove.bind(this);
				this.mouseup = this._mouseup.bind(this);

				if (this.touchCapable) {
					// Touch: Bind touch events:
					document.addEventListener("touchmove", this.mousemove, false);
					document.addEventListener("touchend", this.mouseup, false);
				}
				// Bind mouse events:
				document.addEventListener("mousemove", this.mousemove, false);
				document.addEventListener("mouseup", this.mouseup, false);

				this._state.inDrag = true;
				var newValue = this._calculateValue();

				this._trigger('slideStart', newValue);

				this._setDataVal(newValue);
				this.setValue(newValue, false, true);

				ev.returnValue = false;

				if (this.options.focus) {
					this._triggerFocusOnHandle(this._state.dragged);
				}

				return true;
			},
			_touchstart: function _touchstart(ev) {
				if (ev.changedTouches === undefined) {
					this._mousedown(ev);
					return;
				}

				var touch = ev.changedTouches[0];
				this.touchX = touch.pageX;
				this.touchY = touch.pageY;
			},
			_triggerFocusOnHandle: function _triggerFocusOnHandle(handleIdx) {
				if (handleIdx === 0) {
					this.handle1.focus();
				}
				if (handleIdx === 1) {
					this.handle2.focus();
				}
			},
			_keydown: function _keydown(handleIdx, ev) {
				if (!this._state.enabled) {
					return false;
				}

				var dir;
				switch (ev.keyCode) {
					case 37: // left
					case 40:
						// down
						dir = -1;
						break;
					case 39: // right
					case 38:
						// up
						dir = 1;
						break;
				}
				if (!dir) {
					return;
				}

				// use natural arrow keys instead of from min to max
				if (this.options.natural_arrow_keys) {
					var ifVerticalAndNotReversed = this.options.orientation === 'vertical' && !this.options.reversed;
					var ifHorizontalAndReversed = this.options.orientation === 'horizontal' && this.options.reversed; // @todo control with rtl

					if (ifVerticalAndNotReversed || ifHorizontalAndReversed) {
						dir = -dir;
					}
				}

				var val = this._state.value[handleIdx] + dir * this.options.step;
				var percentage = val / this.options.max * 100;
				this._state.keyCtrl = handleIdx;
				if (this.options.range) {
					this._adjustPercentageForRangeSliders(percentage);
					var val1 = !this._state.keyCtrl ? val : this._state.value[0];
					var val2 = this._state.keyCtrl ? val : this._state.value[1];
					val = [val1, val2];
				}

				this._trigger('slideStart', val);
				this._setDataVal(val);
				this.setValue(val, true, true);

				this._setDataVal(val);
				this._trigger('slideStop', val);
				this._layout();

				this._pauseEvent(ev);
				delete this._state.keyCtrl;

				return false;
			},
			_pauseEvent: function _pauseEvent(ev) {
				if (ev.stopPropagation) {
					ev.stopPropagation();
				}
				if (ev.preventDefault) {
					ev.preventDefault();
				}
				ev.cancelBubble = true;
				ev.returnValue = false;
			},
			_mousemove: function _mousemove(ev) {
				if (!this._state.enabled) {
					return false;
				}

				var percentage = this._getPercentage(ev);
				this._adjustPercentageForRangeSliders(percentage);
				this._state.percentage[this._state.dragged] = percentage;
				this._layout();

				var val = this._calculateValue(true);
				this.setValue(val, true, true);

				return false;
			},
			_touchmove: function _touchmove(ev) {
				if (ev.changedTouches === undefined) {
					return;
				}

				var touch = ev.changedTouches[0];

				var xDiff = touch.pageX - this.touchX;
				var yDiff = touch.pageY - this.touchY;

				if (!this._state.inDrag) {
					// Vertical Slider
					if (this.options.orientation === 'vertical' && xDiff <= 5 && xDiff >= -5 && (yDiff >= 15 || yDiff <= -15)) {
						this._mousedown(ev);
					}
					// Horizontal slider.
					else if (yDiff <= 5 && yDiff >= -5 && (xDiff >= 15 || xDiff <= -15)) {
							this._mousedown(ev);
						}
				}
			},
			_adjustPercentageForRangeSliders: function _adjustPercentageForRangeSliders(percentage) {
				if (this.options.range) {
					var precision = this._getNumDigitsAfterDecimalPlace(percentage);
					precision = precision ? precision - 1 : 0;
					var percentageWithAdjustedPrecision = this._applyToFixedAndParseFloat(percentage, precision);
					if (this._state.dragged === 0 && this._applyToFixedAndParseFloat(this._state.percentage[1], precision) < percentageWithAdjustedPrecision) {
						this._state.percentage[0] = this._state.percentage[1];
						this._state.dragged = 1;
					} else if (this._state.dragged === 1 && this._applyToFixedAndParseFloat(this._state.percentage[0], precision) > percentageWithAdjustedPrecision) {
						this._state.percentage[1] = this._state.percentage[0];
						this._state.dragged = 0;
					} else if (this._state.keyCtrl === 0 && this._state.value[1] / this.options.max * 100 < percentage) {
						this._state.percentage[0] = this._state.percentage[1];
						this._state.keyCtrl = 1;
						this.handle2.focus();
					} else if (this._state.keyCtrl === 1 && this._state.value[0] / this.options.max * 100 > percentage) {
						this._state.percentage[1] = this._state.percentage[0];
						this._state.keyCtrl = 0;
						this.handle1.focus();
					}
				}
			},
			_mouseup: function _mouseup() {
				if (!this._state.enabled) {
					return false;
				}
				if (this.touchCapable) {
					// Touch: Unbind touch event handlers:
					document.removeEventListener("touchmove", this.mousemove, false);
					document.removeEventListener("touchend", this.mouseup, false);
				}
				// Unbind mouse event handlers:
				document.removeEventListener("mousemove", this.mousemove, false);
				document.removeEventListener("mouseup", this.mouseup, false);

				this._state.inDrag = false;
				if (this._state.over === false) {
					this._hideTooltip();
				}
				var val = this._calculateValue(true);

				this._layout();
				this._setDataVal(val);
				this._trigger('slideStop', val);

				return false;
			},
			_calculateValue: function _calculateValue(snapToClosestTick) {
				var val;
				if (this.options.range) {
					val = [this.options.min, this.options.max];
					if (this._state.percentage[0] !== 0) {
						val[0] = this._toValue(this._state.percentage[0]);
						val[0] = this._applyPrecision(val[0]);
					}
					if (this._state.percentage[1] !== 100) {
						val[1] = this._toValue(this._state.percentage[1]);
						val[1] = this._applyPrecision(val[1]);
					}
				} else {
					val = this._toValue(this._state.percentage[0]);
					val = parseFloat(val);
					val = this._applyPrecision(val);
				}

				if (snapToClosestTick) {
					var min = [val, Infinity];
					for (var i = 0; i < this.options.ticks.length; i++) {
						var diff = Math.abs(this.options.ticks[i] - val);
						if (diff <= min[1]) {
							min = [this.options.ticks[i], diff];
						}
					}
					if (min[1] <= this.options.ticks_snap_bounds) {
						return min[0];
					}
				}

				return val;
			},
			_applyPrecision: function _applyPrecision(val) {
				var precision = this.options.precision || this._getNumDigitsAfterDecimalPlace(this.options.step);
				return this._applyToFixedAndParseFloat(val, precision);
			},
			_getNumDigitsAfterDecimalPlace: function _getNumDigitsAfterDecimalPlace(num) {
				var match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
				if (!match) {
					return 0;
				}
				return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));
			},
			_applyToFixedAndParseFloat: function _applyToFixedAndParseFloat(num, toFixedInput) {
				var truncatedNum = num.toFixed(toFixedInput);
				return parseFloat(truncatedNum);
			},
			/*
   	Credits to Mike Samuel for the following method!
   	Source: http://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number
   */
			_getPercentage: function _getPercentage(ev) {
				if (this.touchCapable && (ev.type === 'touchstart' || ev.type === 'touchmove')) {
					ev = ev.touches[0];
				}

				var eventPosition = ev[this.mousePos];
				var sliderOffset = this._state.offset[this.stylePos];
				var distanceToSlide = eventPosition - sliderOffset;
				if (this.stylePos === 'right') {
					distanceToSlide = -distanceToSlide;
				}
				// Calculate what percent of the length the slider handle has slid
				var percentage = distanceToSlide / this._state.size * 100;
				percentage = Math.round(percentage / this._state.percentage[2]) * this._state.percentage[2];
				if (this.options.reversed) {
					percentage = 100 - percentage;
				}

				// Make sure the percent is within the bounds of the slider.
				// 0% corresponds to the 'min' value of the slide
				// 100% corresponds to the 'max' value of the slide
				return Math.max(0, Math.min(100, percentage));
			},
			_validateInputValue: function _validateInputValue(val) {
				if (!isNaN(+val)) {
					return +val;
				} else if (Array.isArray(val)) {
					this._validateArray(val);
					return val;
				} else {
					throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(val));
				}
			},
			_validateArray: function _validateArray(val) {
				for (var i = 0; i < val.length; i++) {
					var input = val[i];
					if (typeof input !== 'number') {
						throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(input));
					}
				}
			},
			_setDataVal: function _setDataVal(val) {
				this.element.setAttribute('data-value', val);
				this.element.setAttribute('value', val);
				this.element.value = val;
			},
			_trigger: function _trigger(evt, val) {
				val = val || val === 0 ? val : undefined;

				var callbackFnArray = this.eventToCallbackMap[evt];
				if (callbackFnArray && callbackFnArray.length) {
					for (var i = 0; i < callbackFnArray.length; i++) {
						var callbackFn = callbackFnArray[i];
						callbackFn(val);
					}
				}

				/* If JQuery exists, trigger JQuery events */
				if ($) {
					this._triggerJQueryEvent(evt, val);
				}
			},
			_triggerJQueryEvent: function _triggerJQueryEvent(evt, val) {
				var eventData = {
					type: evt,
					value: val
				};
				this.$element.trigger(eventData);
				this.$sliderElem.trigger(eventData);
			},
			_unbindJQueryEventHandlers: function _unbindJQueryEventHandlers() {
				this.$element.off();
				this.$sliderElem.off();
			},
			_setText: function _setText(element, text) {
				if (typeof element.textContent !== "undefined") {
					element.textContent = text;
				} else if (typeof element.innerText !== "undefined") {
					element.innerText = text;
				}
			},
			_removeClass: function _removeClass(element, classString) {
				var classes = classString.split(" ");
				var newClasses = element.className;

				for (var i = 0; i < classes.length; i++) {
					var classTag = classes[i];
					var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)");
					newClasses = newClasses.replace(regex, " ");
				}

				element.className = newClasses.trim();
			},
			_addClass: function _addClass(element, classString) {
				var classes = classString.split(" ");
				var newClasses = element.className;

				for (var i = 0; i < classes.length; i++) {
					var classTag = classes[i];
					var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)");
					var ifClassExists = regex.test(newClasses);

					if (!ifClassExists) {
						newClasses += " " + classTag;
					}
				}

				element.className = newClasses.trim();
			},
			_offsetLeft: function _offsetLeft(obj) {
				return obj.getBoundingClientRect().left;
			},
			_offsetRight: function _offsetRight(obj) {
				return obj.getBoundingClientRect().right;
			},
			_offsetTop: function _offsetTop(obj) {
				var offsetTop = obj.offsetTop;
				while ((obj = obj.offsetParent) && !isNaN(obj.offsetTop)) {
					offsetTop += obj.offsetTop;
					if (obj.tagName !== 'BODY') {
						offsetTop -= obj.scrollTop;
					}
				}
				return offsetTop;
			},
			_offset: function _offset(obj) {
				return {
					left: this._offsetLeft(obj),
					right: this._offsetRight(obj),
					top: this._offsetTop(obj)
				};
			},
			_css: function _css(elementRef, styleName, value) {
				if ($) {
					$.style(elementRef, styleName, value);
				} else {
					var style = styleName.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function (all, letter) {
						return letter.toUpperCase();
					});
					elementRef.style[style] = value;
				}
			},
			_toValue: function _toValue(percentage) {
				return this.options.scale.toValue.apply(this, [percentage]);
			},
			_toPercentage: function _toPercentage(value) {
				return this.options.scale.toPercentage.apply(this, [value]);
			},
			_setTooltipPosition: function _setTooltipPosition() {
				var tooltips = [this.tooltip, this.tooltip_min, this.tooltip_max];
				if (this.options.orientation === 'vertical') {
					var tooltipPos;
					if (this.options.tooltip_position) {
						tooltipPos = this.options.tooltip_position;
					} else {
						if (this.options.rtl) {
							tooltipPos = 'left';
						} else {
							tooltipPos = 'right';
						}
					}
					var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, tooltipPos);
						tooltip.style[oppositeSide] = '100%';
					}.bind(this));
				} else if (this.options.tooltip_position === 'bottom') {
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, 'bottom');
						tooltip.style.top = 22 + 'px';
					}.bind(this));
				} else {
					tooltips.forEach(function (tooltip) {
						this._addClass(tooltip, 'top');
						tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
					}.bind(this));
				}
			}
		};

		/*********************************
  		Attach to global namespace
  	*********************************/
		if ($ && $.fn) {
			var autoRegisterNamespace = void 0;

			if (!$.fn.slider) {
				$.bridget(NAMESPACE_MAIN, Slider);
				autoRegisterNamespace = NAMESPACE_MAIN;
			} else {
				if (windowIsDefined) {
					window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.");
				}
				autoRegisterNamespace = NAMESPACE_ALTERNATE;
			}
			$.bridget(NAMESPACE_ALTERNATE, Slider);

			// Auto-Register data-provide="slider" Elements
			$(function () {
				$("input[data-provide=slider]")[autoRegisterNamespace]();
			});
		}
	})($);

	return Slider;
});

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/breakjs/dist/break.js":
/*!********************************************!*\
  !*** ./node_modules/breakjs/dist/break.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, '__esModule', {
  value: true
});
function find(array, cb) {
  for (var i = array.length - 1; i >= 0; i--) {
    if (cb(array[i])) {
      return array[i];
    }
  }
}

var mediaQueries = {
  between: function between(val1, val2) {
    return window.matchMedia('screen and (min-width: ' + val1 + 'px) and ' + ('(max-width: ' + (val2 - 1) + 'px)'));
  },
  atLeast: function atLeast(val) {
    return window.matchMedia('screen and (min-width: ' + val + 'px)');
  },
  atMost: function atMost(val) {
    return window.matchMedia('screen and (max-width: ' + (val - 1) + 'px)');
  }
};

var query = function query(bp, nextBp) {
  return {
    is: typeof nextBp === 'number' ? mediaQueries.between(bp, nextBp) : mediaQueries.atLeast(bp),
    atLeast: mediaQueries.atLeast(bp),
    atMost: mediaQueries.atMost(nextBp || Number.MAX_VALUE)
  };
};

var Breakjs = function Breakjs(bpEntries) {
  if (!bpEntries) {
    throw new Error('No breakpoints were defined!');
  }

  var bps = [];

  var _loop = function (key) {
    var entry = { name: key, value: bpEntries[key] };

    if (find(bps, function (bp) {
      return bp.value === entry.value;
    })) {
      throw new Error('Breakpoint values must be unique.');
    }

    bps.push(entry);
  };

  for (var key in bpEntries) {
    _loop(key);
  }

  var breakpoints = bps.sort(function (a, b) {
    return a.value > b.value;
  }).map(function (bp, index) {
    if (typeof bp.name !== 'string') {
      throw new Error('Invalid breakpoint name -- should be a string.');
    }

    if (typeof bp.value !== 'number' || bp.value < 0) {
      throw new Error('Invalid breakpoint value for ' + bp.name + ': ' + bp.value);
    }

    var breakpoint = { name: bp.name };

    // only query
    if (bps.length === 1) {
      breakpoint.query = query(0, null);
    }

    // last query
    else if (index === bps.length - 1) {
        breakpoint.query = query(bp.value, null);
      }

      // query inbetween
      else {
          breakpoint.query = query(bp.value, bps[index + 1].value);
        }

    return breakpoint;
  });

  function getBreakpoint(breakpointName) {
    var findObj = find(breakpoints, function (bp) {
      return bp.name === breakpointName;
    });

    if (!findObj) {
      throw new Error('invalid breakpoint name');
    }

    return findObj;
  }

  var changeListeners = [];

  return {
    breakpoints: bps,

    /**
     * Check if the current window size is the given size
     * @param  {String} size
     * @return {Boolean}
     */
    is: function is(name) {
      return getBreakpoint(name).query.is.matches;
    },

    /**
     * Check if the current window size at least the given size
     * @param  {String} size
     * @return {Boolean}
     */
    atLeast: function atLeast(name) {
      return getBreakpoint(name).query.atLeast.matches;
    },

    /**
     * Check if the current window size at most the given size
     * @param  {String} size
     * @return {Boolean}
     */
    atMost: function atMost(name) {
      return getBreakpoint(name).query.atMost.matches;
    },

    current: function current() {
      var findObj = find(breakpoints, function (bp) {
        return bp.query.is.matches;
      });

      if (findObj) {
        return findObj.name;
      }
    },

    addChangeListener: function addChangeListener(listener) {
      var _this = this;

      breakpoints.forEach(function (bp) {
        var changeListener = function changeListener() {
          var current = _this.current();
          if (current === bp.name) {
            listener(current);
          }
        };

        changeListeners.push({
          original: listener,
          created: changeListener
        });

        bp.query.is.addListener(changeListener);
      });
    },

    removeChangeListener: function removeChangeListener(listener) {
      breakpoints.forEach(function (bp) {
        var findObj = find(changeListeners, function (cl) {
          return cl.original === listener;
        });

        if (findObj) {
          bp.query.is.removeListener(findObj.created);
          changeListeners.splice(changeListeners.indexOf(findObj), 1);
        }
      });
    }
  };
};

if (typeof window !== 'undefined') {
  window.Breakjs = Breakjs;
}

exports['default'] = Breakjs;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/c3/c3.js":
/*!*******************************!*\
  !*** ./node_modules/c3/c3.js ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* @license C3.js v0.4.24 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
     true ? module.exports = factory() :
    undefined;
}(this, (function () { 'use strict';

    var CLASS = {
        target: 'c3-target',
        chart: 'c3-chart',
        chartLine: 'c3-chart-line',
        chartLines: 'c3-chart-lines',
        chartBar: 'c3-chart-bar',
        chartBars: 'c3-chart-bars',
        chartText: 'c3-chart-text',
        chartTexts: 'c3-chart-texts',
        chartArc: 'c3-chart-arc',
        chartArcs: 'c3-chart-arcs',
        chartArcsTitle: 'c3-chart-arcs-title',
        chartArcsBackground: 'c3-chart-arcs-background',
        chartArcsGaugeUnit: 'c3-chart-arcs-gauge-unit',
        chartArcsGaugeMax: 'c3-chart-arcs-gauge-max',
        chartArcsGaugeMin: 'c3-chart-arcs-gauge-min',
        selectedCircle: 'c3-selected-circle',
        selectedCircles: 'c3-selected-circles',
        eventRect: 'c3-event-rect',
        eventRects: 'c3-event-rects',
        eventRectsSingle: 'c3-event-rects-single',
        eventRectsMultiple: 'c3-event-rects-multiple',
        zoomRect: 'c3-zoom-rect',
        brush: 'c3-brush',
        focused: 'c3-focused',
        defocused: 'c3-defocused',
        region: 'c3-region',
        regions: 'c3-regions',
        title: 'c3-title',
        tooltipContainer: 'c3-tooltip-container',
        tooltip: 'c3-tooltip',
        tooltipName: 'c3-tooltip-name',
        shape: 'c3-shape',
        shapes: 'c3-shapes',
        line: 'c3-line',
        lines: 'c3-lines',
        bar: 'c3-bar',
        bars: 'c3-bars',
        circle: 'c3-circle',
        circles: 'c3-circles',
        arc: 'c3-arc',
        arcLabelLine: 'c3-arc-label-line',
        arcs: 'c3-arcs',
        area: 'c3-area',
        areas: 'c3-areas',
        empty: 'c3-empty',
        text: 'c3-text',
        texts: 'c3-texts',
        gaugeValue: 'c3-gauge-value',
        grid: 'c3-grid',
        gridLines: 'c3-grid-lines',
        xgrid: 'c3-xgrid',
        xgrids: 'c3-xgrids',
        xgridLine: 'c3-xgrid-line',
        xgridLines: 'c3-xgrid-lines',
        xgridFocus: 'c3-xgrid-focus',
        ygrid: 'c3-ygrid',
        ygrids: 'c3-ygrids',
        ygridLine: 'c3-ygrid-line',
        ygridLines: 'c3-ygrid-lines',
        axis: 'c3-axis',
        axisX: 'c3-axis-x',
        axisXLabel: 'c3-axis-x-label',
        axisY: 'c3-axis-y',
        axisYLabel: 'c3-axis-y-label',
        axisY2: 'c3-axis-y2',
        axisY2Label: 'c3-axis-y2-label',
        legendBackground: 'c3-legend-background',
        legendItem: 'c3-legend-item',
        legendItemEvent: 'c3-legend-item-event',
        legendItemTile: 'c3-legend-item-tile',
        legendItemHidden: 'c3-legend-item-hidden',
        legendItemFocused: 'c3-legend-item-focused',
        dragarea: 'c3-dragarea',
        EXPANDED: '_expanded_',
        SELECTED: '_selected_',
        INCLUDED: '_included_'
    };

    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 classCallCheck = function (instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    };

    var inherits = function (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 possibleConstructorReturn = function (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;
    };

    var isValue = function isValue(v) {
        return v || v === 0;
    };
    var isFunction = function isFunction(o) {
        return typeof o === 'function';
    };
    var isArray = function isArray(o) {
        return Array.isArray(o);
    };
    var isString = function isString(o) {
        return typeof o === 'string';
    };
    var isUndefined = function isUndefined(v) {
        return typeof v === 'undefined';
    };
    var isDefined = function isDefined(v) {
        return typeof v !== 'undefined';
    };
    var ceil10 = function ceil10(v) {
        return Math.ceil(v / 10) * 10;
    };
    var asHalfPixel = function asHalfPixel(n) {
        return Math.ceil(n) + 0.5;
    };
    var diffDomain = function diffDomain(d) {
        return d[1] - d[0];
    };
    var isEmpty = function isEmpty(o) {
        return typeof o === 'undefined' || o === null || isString(o) && o.length === 0 || (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && Object.keys(o).length === 0;
    };
    var notEmpty = function notEmpty(o) {
        return !c3_chart_internal_fn.isEmpty(o);
    };
    var getOption = function getOption(options, key, defaultValue) {
        return isDefined(options[key]) ? options[key] : defaultValue;
    };
    var hasValue = function hasValue(dict, value) {
        var found = false;
        Object.keys(dict).forEach(function (key) {
            if (dict[key] === value) {
                found = true;
            }
        });
        return found;
    };
    var sanitise = function sanitise(str) {
        return typeof str === 'string' ? str.replace(/</g, '&lt;').replace(/>/g, '&gt;') : str;
    };
    var getPathBox = function getPathBox(path) {
        var box = path.getBoundingClientRect(),
            items = [path.pathSegList.getItem(0), path.pathSegList.getItem(1)],
            minX = items[0].x,
            minY = Math.min(items[0].y, items[1].y);
        return { x: minX, y: minY, width: box.width, height: box.height };
    };

    var c3_axis_fn;
    var c3_axis_internal_fn;

    function AxisInternal(component, params) {
        var internal = this;
        internal.component = component;
        internal.params = params || {};

        internal.d3 = component.d3;
        internal.scale = internal.d3.scale.linear();
        internal.range;
        internal.orient = "bottom";
        internal.innerTickSize = 6;
        internal.outerTickSize = this.params.withOuterTick ? 6 : 0;
        internal.tickPadding = 3;
        internal.tickValues = null;
        internal.tickFormat;
        internal.tickArguments;

        internal.tickOffset = 0;
        internal.tickCulling = true;
        internal.tickCentered;
        internal.tickTextCharSize;
        internal.tickTextRotate = internal.params.tickTextRotate;
        internal.tickLength;

        internal.axis = internal.generateAxis();
    }
    c3_axis_internal_fn = AxisInternal.prototype;

    c3_axis_internal_fn.axisX = function (selection, x, tickOffset) {
        selection.attr("transform", function (d) {
            return "translate(" + Math.ceil(x(d) + tickOffset) + ", 0)";
        });
    };
    c3_axis_internal_fn.axisY = function (selection, y) {
        selection.attr("transform", function (d) {
            return "translate(0," + Math.ceil(y(d)) + ")";
        });
    };
    c3_axis_internal_fn.scaleExtent = function (domain) {
        var start = domain[0],
            stop = domain[domain.length - 1];
        return start < stop ? [start, stop] : [stop, start];
    };
    c3_axis_internal_fn.generateTicks = function (scale) {
        var internal = this;
        var i,
            domain,
            ticks = [];
        if (scale.ticks) {
            return scale.ticks.apply(scale, internal.tickArguments);
        }
        domain = scale.domain();
        for (i = Math.ceil(domain[0]); i < domain[1]; i++) {
            ticks.push(i);
        }
        if (ticks.length > 0 && ticks[0] > 0) {
            ticks.unshift(ticks[0] - (ticks[1] - ticks[0]));
        }
        return ticks;
    };
    c3_axis_internal_fn.copyScale = function () {
        var internal = this;
        var newScale = internal.scale.copy(),
            domain;
        if (internal.params.isCategory) {
            domain = internal.scale.domain();
            newScale.domain([domain[0], domain[1] - 1]);
        }
        return newScale;
    };
    c3_axis_internal_fn.textFormatted = function (v) {
        var internal = this,
            formatted = internal.tickFormat ? internal.tickFormat(v) : v;
        return typeof formatted !== 'undefined' ? formatted : '';
    };
    c3_axis_internal_fn.updateRange = function () {
        var internal = this;
        internal.range = internal.scale.rangeExtent ? internal.scale.rangeExtent() : internal.scaleExtent(internal.scale.range());
        return internal.range;
    };
    c3_axis_internal_fn.updateTickTextCharSize = function (tick) {
        var internal = this;
        if (internal.tickTextCharSize) {
            return internal.tickTextCharSize;
        }
        var size = {
            h: 11.5,
            w: 5.5
        };
        tick.select('text').text(function (d) {
            return internal.textFormatted(d);
        }).each(function (d) {
            var box = this.getBoundingClientRect(),
                text = internal.textFormatted(d),
                h = box.height,
                w = text ? box.width / text.length : undefined;
            if (h && w) {
                size.h = h;
                size.w = w;
            }
        }).text('');
        internal.tickTextCharSize = size;
        return size;
    };
    c3_axis_internal_fn.transitionise = function (selection) {
        return this.params.withoutTransition ? selection : this.d3.transition(selection);
    };
    c3_axis_internal_fn.isVertical = function () {
        return this.orient === 'left' || this.orient === 'right';
    };
    c3_axis_internal_fn.tspanData = function (d, i, ticks, scale) {
        var internal = this;
        var splitted = internal.params.tickMultiline ? internal.splitTickText(d, ticks, scale) : [].concat(internal.textFormatted(d));

        if (internal.params.tickMultiline && internal.params.tickMultilineMax > 0) {
            splitted = internal.ellipsify(splitted, internal.params.tickMultilineMax);
        }

        return splitted.map(function (s) {
            return { index: i, splitted: s, length: splitted.length };
        });
    };
    c3_axis_internal_fn.splitTickText = function (d, ticks, scale) {
        var internal = this,
            tickText = internal.textFormatted(d),
            maxWidth = internal.params.tickWidth,
            subtext,
            spaceIndex,
            textWidth,
            splitted = [];

        if (Object.prototype.toString.call(tickText) === "[object Array]") {
            return tickText;
        }

        if (!maxWidth || maxWidth <= 0) {
            maxWidth = internal.isVertical() ? 95 : internal.params.isCategory ? Math.ceil(scale(ticks[1]) - scale(ticks[0])) - 12 : 110;
        }

        function split(splitted, text) {
            spaceIndex = undefined;
            for (var i = 1; i < text.length; i++) {
                if (text.charAt(i) === ' ') {
                    spaceIndex = i;
                }
                subtext = text.substr(0, i + 1);
                textWidth = internal.tickTextCharSize.w * subtext.length;
                // if text width gets over tick width, split by space index or crrent index
                if (maxWidth < textWidth) {
                    return split(splitted.concat(text.substr(0, spaceIndex ? spaceIndex : i)), text.slice(spaceIndex ? spaceIndex + 1 : i));
                }
            }
            return splitted.concat(text);
        }

        return split(splitted, tickText + "");
    };
    c3_axis_internal_fn.ellipsify = function (splitted, max) {
        if (splitted.length <= max) {
            return splitted;
        }

        var ellipsified = splitted.slice(0, max);
        var remaining = 3;
        for (var i = max - 1; i >= 0; i--) {
            var available = ellipsified[i].length;

            ellipsified[i] = ellipsified[i].substr(0, available - remaining).padEnd(available, '.');

            remaining -= available;

            if (remaining <= 0) {
                break;
            }
        }

        return ellipsified;
    };
    c3_axis_internal_fn.updateTickLength = function () {
        var internal = this;
        internal.tickLength = Math.max(internal.innerTickSize, 0) + internal.tickPadding;
    };
    c3_axis_internal_fn.lineY2 = function (d) {
        var internal = this,
            tickPosition = internal.scale(d) + (internal.tickCentered ? 0 : internal.tickOffset);
        return internal.range[0] < tickPosition && tickPosition < internal.range[1] ? internal.innerTickSize : 0;
    };
    c3_axis_internal_fn.textY = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? 11.5 - 2.5 * (rotate / 15) * (rotate > 0 ? 1 : -1) : internal.tickLength;
    };
    c3_axis_internal_fn.textTransform = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? "rotate(" + rotate + ")" : "";
    };
    c3_axis_internal_fn.textTextAnchor = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? rotate > 0 ? "start" : "end" : "middle";
    };
    c3_axis_internal_fn.tspanDx = function () {
        var internal = this,
            rotate = internal.tickTextRotate;
        return rotate ? 8 * Math.sin(Math.PI * (rotate / 180)) : 0;
    };
    c3_axis_internal_fn.tspanDy = function (d, i) {
        var internal = this,
            dy = internal.tickTextCharSize.h;
        if (i === 0) {
            if (internal.isVertical()) {
                dy = -((d.length - 1) * (internal.tickTextCharSize.h / 2) - 3);
            } else {
                dy = ".71em";
            }
        }
        return dy;
    };

    c3_axis_internal_fn.generateAxis = function () {
        var internal = this,
            d3 = internal.d3,
            params = internal.params;
        function axis(g) {
            g.each(function () {
                var g = axis.g = d3.select(this);

                var scale0 = this.__chart__ || internal.scale,
                    scale1 = this.__chart__ = internal.copyScale();

                var ticks = internal.tickValues ? internal.tickValues : internal.generateTicks(scale1),
                    tick = g.selectAll(".tick").data(ticks, scale1),
                    tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", 1e-6),

                // MEMO: No exit transition. The reason is this transition affects max tick width calculation because old tick will be included in the ticks.
                tickExit = tick.exit().remove(),
                    tickUpdate = internal.transitionise(tick).style("opacity", 1),
                    tickTransform,
                    tickX,
                    tickY;

                if (params.isCategory) {
                    internal.tickOffset = Math.ceil((scale1(1) - scale1(0)) / 2);
                    tickX = internal.tickCentered ? 0 : internal.tickOffset;
                    tickY = internal.tickCentered ? internal.tickOffset : 0;
                } else {
                    internal.tickOffset = tickX = 0;
                }

                tickEnter.append("line");
                tickEnter.append("text");

                internal.updateRange();
                internal.updateTickLength();
                internal.updateTickTextCharSize(g.select('.tick'));

                var lineUpdate = tickUpdate.select("line"),
                    textUpdate = tickUpdate.select("text"),
                    tspanUpdate = tick.select("text").selectAll('tspan').data(function (d, i) {
                    return internal.tspanData(d, i, ticks, scale1);
                });

                tspanUpdate.enter().append('tspan');
                tspanUpdate.exit().remove();
                tspanUpdate.text(function (d) {
                    return d.splitted;
                });

                var path = g.selectAll(".domain").data([0]),
                    pathUpdate = (path.enter().append("path").attr("class", "domain"), internal.transitionise(path));

                // TODO: each attr should be one function and change its behavior by internal.orient, probably
                switch (internal.orient) {
                    case "bottom":
                        {
                            tickTransform = internal.axisX;
                            lineUpdate.attr("x1", tickX).attr("x2", tickX).attr("y2", function (d, i) {
                                return internal.lineY2(d, i);
                            });
                            textUpdate.attr("x", 0).attr("y", function (d, i) {
                                return internal.textY(d, i);
                            }).attr("transform", function (d, i) {
                                return internal.textTransform(d, i);
                            }).style("text-anchor", function (d, i) {
                                return internal.textTextAnchor(d, i);
                            });
                            tspanUpdate.attr('x', 0).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            }).attr('dx', function (d, i) {
                                return internal.tspanDx(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.range[0] + "," + internal.outerTickSize + "V0H" + internal.range[1] + "V" + internal.outerTickSize);
                            break;
                        }
                    case "top":
                        {
                            // TODO: rotated tick text
                            tickTransform = internal.axisX;
                            lineUpdate.attr("x1", tickX).attr("x2", tickX).attr("y2", function (d, i) {
                                return -1 * internal.lineY2(d, i);
                            });
                            textUpdate.attr("x", 0).attr("y", function (d, i) {
                                return -1 * internal.textY(d, i) - (params.isCategory ? 2 : internal.tickLength - 2);
                            }).attr("transform", function (d, i) {
                                return internal.textTransform(d, i);
                            }).style("text-anchor", function (d, i) {
                                return internal.textTextAnchor(d, i);
                            });
                            tspanUpdate.attr('x', 0).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            }).attr('dx', function (d, i) {
                                return internal.tspanDx(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.range[0] + "," + -internal.outerTickSize + "V0H" + internal.range[1] + "V" + -internal.outerTickSize);
                            break;
                        }
                    case "left":
                        {
                            tickTransform = internal.axisY;
                            lineUpdate.attr("x2", -internal.innerTickSize).attr("y1", tickY).attr("y2", tickY);
                            textUpdate.attr("x", -internal.tickLength).attr("y", internal.tickOffset).style("text-anchor", "end");
                            tspanUpdate.attr('x', -internal.tickLength).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            });
                            pathUpdate.attr("d", "M" + -internal.outerTickSize + "," + internal.range[0] + "H0V" + internal.range[1] + "H" + -internal.outerTickSize);
                            break;
                        }
                    case "right":
                        {
                            tickTransform = internal.axisY;
                            lineUpdate.attr("x2", internal.innerTickSize).attr("y1", tickY).attr("y2", tickY);
                            textUpdate.attr("x", internal.tickLength).attr("y", internal.tickOffset).style("text-anchor", "start");
                            tspanUpdate.attr('x', internal.tickLength).attr("dy", function (d, i) {
                                return internal.tspanDy(d, i);
                            });
                            pathUpdate.attr("d", "M" + internal.outerTickSize + "," + internal.range[0] + "H0V" + internal.range[1] + "H" + internal.outerTickSize);
                            break;
                        }
                }
                if (scale1.rangeBand) {
                    var x = scale1,
                        dx = x.rangeBand() / 2;
                    scale0 = scale1 = function scale1(d) {
                        return x(d) + dx;
                    };
                } else if (scale0.rangeBand) {
                    scale0 = scale1;
                } else {
                    tickExit.call(tickTransform, scale1, internal.tickOffset);
                }
                tickEnter.call(tickTransform, scale0, internal.tickOffset);
                tickUpdate.call(tickTransform, scale1, internal.tickOffset);
            });
        }
        axis.scale = function (x) {
            if (!arguments.length) {
                return internal.scale;
            }
            internal.scale = x;
            return axis;
        };
        axis.orient = function (x) {
            if (!arguments.length) {
                return internal.orient;
            }
            internal.orient = x in { top: 1, right: 1, bottom: 1, left: 1 } ? x + "" : "bottom";
            return axis;
        };
        axis.tickFormat = function (format) {
            if (!arguments.length) {
                return internal.tickFormat;
            }
            internal.tickFormat = format;
            return axis;
        };
        axis.tickCentered = function (isCentered) {
            if (!arguments.length) {
                return internal.tickCentered;
            }
            internal.tickCentered = isCentered;
            return axis;
        };
        axis.tickOffset = function () {
            return internal.tickOffset;
        };
        axis.tickInterval = function () {
            var interval, length;
            if (params.isCategory) {
                interval = internal.tickOffset * 2;
            } else {
                length = axis.g.select('path.domain').node().getTotalLength() - internal.outerTickSize * 2;
                interval = length / axis.g.selectAll('line').size();
            }
            return interval === Infinity ? 0 : interval;
        };
        axis.ticks = function () {
            if (!arguments.length) {
                return internal.tickArguments;
            }
            internal.tickArguments = arguments;
            return axis;
        };
        axis.tickCulling = function (culling) {
            if (!arguments.length) {
                return internal.tickCulling;
            }
            internal.tickCulling = culling;
            return axis;
        };
        axis.tickValues = function (x) {
            if (typeof x === 'function') {
                internal.tickValues = function () {
                    return x(internal.scale.domain());
                };
            } else {
                if (!arguments.length) {
                    return internal.tickValues;
                }
                internal.tickValues = x;
            }
            return axis;
        };
        return axis;
    };

    var Axis = function (_Component) {
        inherits(Axis, _Component);

        function Axis(owner) {
            classCallCheck(this, Axis);

            var fn = {
                fn: c3_axis_fn,
                internal: {
                    fn: c3_axis_internal_fn
                }
            };

            var _this = possibleConstructorReturn(this, (Axis.__proto__ || Object.getPrototypeOf(Axis)).call(this, owner, 'axis', fn));

            _this.d3 = owner.d3;
            _this.internal = AxisInternal;
            return _this;
        }

        return Axis;
    }(Component);

    c3_axis_fn = Axis.prototype;

    c3_axis_fn.init = function init() {
        var $$ = this.owner,
            config = $$.config,
            main = $$.main;
        $$.axes.x = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisX).attr("clip-path", config.axis_x_inner ? "" : $$.clipPathForXAxis).attr("transform", $$.getTranslate('x')).style("visibility", config.axis_x_show ? 'visible' : 'hidden');
        $$.axes.x.append("text").attr("class", CLASS.axisXLabel).attr("transform", config.axis_rotated ? "rotate(-90)" : "").style("text-anchor", this.textAnchorForXAxisLabel.bind(this));
        $$.axes.y = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY).attr("clip-path", config.axis_y_inner ? "" : $$.clipPathForYAxis).attr("transform", $$.getTranslate('y')).style("visibility", config.axis_y_show ? 'visible' : 'hidden');
        $$.axes.y.append("text").attr("class", CLASS.axisYLabel).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForYAxisLabel.bind(this));

        $$.axes.y2 = main.append("g").attr("class", CLASS.axis + ' ' + CLASS.axisY2)
        // clip-path?
        .attr("transform", $$.getTranslate('y2')).style("visibility", config.axis_y2_show ? 'visible' : 'hidden');
        $$.axes.y2.append("text").attr("class", CLASS.axisY2Label).attr("transform", config.axis_rotated ? "" : "rotate(-90)").style("text-anchor", this.textAnchorForY2AxisLabel.bind(this));
    };
    c3_axis_fn.getXAxis = function getXAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {
        var $$ = this.owner,
            config = $$.config,
            axisParams = {
            isCategory: $$.isCategorized(),
            withOuterTick: withOuterTick,
            tickMultiline: config.axis_x_tick_multiline,
            tickMultilineMax: config.axis_x_tick_multiline ? Number(config.axis_x_tick_multilineMax) : 0,
            tickWidth: config.axis_x_tick_width,
            tickTextRotate: withoutRotateTickText ? 0 : config.axis_x_tick_rotate,
            withoutTransition: withoutTransition
        },
            axis = new this.internal(this, axisParams).axis.scale(scale).orient(orient);

        if ($$.isTimeSeries() && tickValues && typeof tickValues !== "function") {
            tickValues = tickValues.map(function (v) {
                return $$.parseDate(v);
            });
        }

        // Set tick
        axis.tickFormat(tickFormat).tickValues(tickValues);
        if ($$.isCategorized()) {
            axis.tickCentered(config.axis_x_tick_centered);
            if (isEmpty(config.axis_x_tick_culling)) {
                config.axis_x_tick_culling = false;
            }
        }

        return axis;
    };
    c3_axis_fn.updateXAxisTickValues = function updateXAxisTickValues(targets, axis) {
        var $$ = this.owner,
            config = $$.config,
            tickValues;
        if (config.axis_x_tick_fit || config.axis_x_tick_count) {
            tickValues = this.generateTickValues($$.mapTargetsToUniqueXs(targets), config.axis_x_tick_count, $$.isTimeSeries());
        }
        if (axis) {
            axis.tickValues(tickValues);
        } else {
            $$.xAxis.tickValues(tickValues);
            $$.subXAxis.tickValues(tickValues);
        }
        return tickValues;
    };
    c3_axis_fn.getYAxis = function getYAxis(scale, orient, tickFormat, tickValues, withOuterTick, withoutTransition, withoutRotateTickText) {
        var $$ = this.owner,
            config = $$.config,
            axisParams = {
            withOuterTick: withOuterTick,
            withoutTransition: withoutTransition,
            tickTextRotate: withoutRotateTickText ? 0 : config.axis_y_tick_rotate
        },
            axis = new this.internal(this, axisParams).axis.scale(scale).orient(orient).tickFormat(tickFormat);
        if ($$.isTimeSeriesY()) {
            axis.ticks($$.d3.time[config.axis_y_tick_time_value], config.axis_y_tick_time_interval);
        } else {
            axis.tickValues(tickValues);
        }
        return axis;
    };
    c3_axis_fn.getId = function getId(id) {
        var config = this.owner.config;
        return id in config.data_axes ? config.data_axes[id] : 'y';
    };
    c3_axis_fn.getXAxisTickFormat = function getXAxisTickFormat() {
        var $$ = this.owner,
            config = $$.config,
            format = $$.isTimeSeries() ? $$.defaultAxisTimeFormat : $$.isCategorized() ? $$.categoryName : function (v) {
            return v < 0 ? v.toFixed(0) : v;
        };
        if (config.axis_x_tick_format) {
            if (isFunction(config.axis_x_tick_format)) {
                format = config.axis_x_tick_format;
            } else if ($$.isTimeSeries()) {
                format = function format(date) {
                    return date ? $$.axisTimeFormat(config.axis_x_tick_format)(date) : "";
                };
            }
        }
        return isFunction(format) ? function (v) {
            return format.call($$, v);
        } : format;
    };
    c3_axis_fn.getTickValues = function getTickValues(tickValues, axis) {
        return tickValues ? tickValues : axis ? axis.tickValues() : undefined;
    };
    c3_axis_fn.getXAxisTickValues = function getXAxisTickValues() {
        return this.getTickValues(this.owner.config.axis_x_tick_values, this.owner.xAxis);
    };
    c3_axis_fn.getYAxisTickValues = function getYAxisTickValues() {
        return this.getTickValues(this.owner.config.axis_y_tick_values, this.owner.yAxis);
    };
    c3_axis_fn.getY2AxisTickValues = function getY2AxisTickValues() {
        return this.getTickValues(this.owner.config.axis_y2_tick_values, this.owner.y2Axis);
    };
    c3_axis_fn.getLabelOptionByAxisId = function getLabelOptionByAxisId(axisId) {
        var $$ = this.owner,
            config = $$.config,
            option;
        if (axisId === 'y') {
            option = config.axis_y_label;
        } else if (axisId === 'y2') {
            option = config.axis_y2_label;
        } else if (axisId === 'x') {
            option = config.axis_x_label;
        }
        return option;
    };
    c3_axis_fn.getLabelText = function getLabelText(axisId) {
        var option = this.getLabelOptionByAxisId(axisId);
        return isString(option) ? option : option ? option.text : null;
    };
    c3_axis_fn.setLabelText = function setLabelText(axisId, text) {
        var $$ = this.owner,
            config = $$.config,
            option = this.getLabelOptionByAxisId(axisId);
        if (isString(option)) {
            if (axisId === 'y') {
                config.axis_y_label = text;
            } else if (axisId === 'y2') {
                config.axis_y2_label = text;
            } else if (axisId === 'x') {
                config.axis_x_label = text;
            }
        } else if (option) {
            option.text = text;
        }
    };
    c3_axis_fn.getLabelPosition = function getLabelPosition(axisId, defaultPosition) {
        var option = this.getLabelOptionByAxisId(axisId),
            position = option && (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' && option.position ? option.position : defaultPosition;
        return {
            isInner: position.indexOf('inner') >= 0,
            isOuter: position.indexOf('outer') >= 0,
            isLeft: position.indexOf('left') >= 0,
            isCenter: position.indexOf('center') >= 0,
            isRight: position.indexOf('right') >= 0,
            isTop: position.indexOf('top') >= 0,
            isMiddle: position.indexOf('middle') >= 0,
            isBottom: position.indexOf('bottom') >= 0
        };
    };
    c3_axis_fn.getXAxisLabelPosition = function getXAxisLabelPosition() {
        return this.getLabelPosition('x', this.owner.config.axis_rotated ? 'inner-top' : 'inner-right');
    };
    c3_axis_fn.getYAxisLabelPosition = function getYAxisLabelPosition() {
        return this.getLabelPosition('y', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');
    };
    c3_axis_fn.getY2AxisLabelPosition = function getY2AxisLabelPosition() {
        return this.getLabelPosition('y2', this.owner.config.axis_rotated ? 'inner-right' : 'inner-top');
    };
    c3_axis_fn.getLabelPositionById = function getLabelPositionById(id) {
        return id === 'y2' ? this.getY2AxisLabelPosition() : id === 'y' ? this.getYAxisLabelPosition() : this.getXAxisLabelPosition();
    };
    c3_axis_fn.textForXAxisLabel = function textForXAxisLabel() {
        return this.getLabelText('x');
    };
    c3_axis_fn.textForYAxisLabel = function textForYAxisLabel() {
        return this.getLabelText('y');
    };
    c3_axis_fn.textForY2AxisLabel = function textForY2AxisLabel() {
        return this.getLabelText('y2');
    };
    c3_axis_fn.xForAxisLabel = function xForAxisLabel(forHorizontal, position) {
        var $$ = this.owner;
        if (forHorizontal) {
            return position.isLeft ? 0 : position.isCenter ? $$.width / 2 : $$.width;
        } else {
            return position.isBottom ? -$$.height : position.isMiddle ? -$$.height / 2 : 0;
        }
    };
    c3_axis_fn.dxForAxisLabel = function dxForAxisLabel(forHorizontal, position) {
        if (forHorizontal) {
            return position.isLeft ? "0.5em" : position.isRight ? "-0.5em" : "0";
        } else {
            return position.isTop ? "-0.5em" : position.isBottom ? "0.5em" : "0";
        }
    };
    c3_axis_fn.textAnchorForAxisLabel = function textAnchorForAxisLabel(forHorizontal, position) {
        if (forHorizontal) {
            return position.isLeft ? 'start' : position.isCenter ? 'middle' : 'end';
        } else {
            return position.isBottom ? 'start' : position.isMiddle ? 'middle' : 'end';
        }
    };
    c3_axis_fn.xForXAxisLabel = function xForXAxisLabel() {
        return this.xForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.xForYAxisLabel = function xForYAxisLabel() {
        return this.xForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.xForY2AxisLabel = function xForY2AxisLabel() {
        return this.xForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.dxForXAxisLabel = function dxForXAxisLabel() {
        return this.dxForAxisLabel(!this.owner.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.dxForYAxisLabel = function dxForYAxisLabel() {
        return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.dxForY2AxisLabel = function dxForY2AxisLabel() {
        return this.dxForAxisLabel(this.owner.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.dyForXAxisLabel = function dyForXAxisLabel() {
        var $$ = this.owner,
            config = $$.config,
            position = this.getXAxisLabelPosition();
        if (config.axis_rotated) {
            return position.isInner ? "1.2em" : -25 - ($$.config.axis_x_inner ? 0 : this.getMaxTickWidth('x'));
        } else {
            return position.isInner ? "-0.5em" : config.axis_x_height ? config.axis_x_height - 10 : "3em";
        }
    };
    c3_axis_fn.dyForYAxisLabel = function dyForYAxisLabel() {
        var $$ = this.owner,
            position = this.getYAxisLabelPosition();
        if ($$.config.axis_rotated) {
            return position.isInner ? "-0.5em" : "3em";
        } else {
            return position.isInner ? "1.2em" : -10 - ($$.config.axis_y_inner ? 0 : this.getMaxTickWidth('y') + 10);
        }
    };
    c3_axis_fn.dyForY2AxisLabel = function dyForY2AxisLabel() {
        var $$ = this.owner,
            position = this.getY2AxisLabelPosition();
        if ($$.config.axis_rotated) {
            return position.isInner ? "1.2em" : "-2.2em";
        } else {
            return position.isInner ? "-0.5em" : 15 + ($$.config.axis_y2_inner ? 0 : this.getMaxTickWidth('y2') + 15);
        }
    };
    c3_axis_fn.textAnchorForXAxisLabel = function textAnchorForXAxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel(!$$.config.axis_rotated, this.getXAxisLabelPosition());
    };
    c3_axis_fn.textAnchorForYAxisLabel = function textAnchorForYAxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getYAxisLabelPosition());
    };
    c3_axis_fn.textAnchorForY2AxisLabel = function textAnchorForY2AxisLabel() {
        var $$ = this.owner;
        return this.textAnchorForAxisLabel($$.config.axis_rotated, this.getY2AxisLabelPosition());
    };
    c3_axis_fn.getMaxTickWidth = function getMaxTickWidth(id, withoutRecompute) {
        var $$ = this.owner,
            config = $$.config,
            maxWidth = 0,
            targetsToShow,
            scale,
            axis,
            dummy,
            svg;
        if (withoutRecompute && $$.currentMaxTickWidths[id]) {
            return $$.currentMaxTickWidths[id];
        }
        if ($$.svg) {
            targetsToShow = $$.filterTargetsToShow($$.data.targets);
            if (id === 'y') {
                scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y'));
                axis = this.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, false, true, true);
            } else if (id === 'y2') {
                scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2'));
                axis = this.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, false, true, true);
            } else {
                scale = $$.x.copy().domain($$.getXDomain(targetsToShow));
                axis = this.getXAxis(scale, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, false, true, true);
                this.updateXAxisTickValues(targetsToShow, axis);
            }
            dummy = $$.d3.select('body').append('div').classed('c3', true);
            svg = dummy.append("svg").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0), svg.append('g').call(axis).each(function () {
                $$.d3.select(this).selectAll('text').each(function () {
                    var box = this.getBoundingClientRect();
                    if (maxWidth < box.width) {
                        maxWidth = box.width;
                    }
                });
                dummy.remove();
            });
        }
        $$.currentMaxTickWidths[id] = maxWidth <= 0 ? $$.currentMaxTickWidths[id] : maxWidth;
        return $$.currentMaxTickWidths[id];
    };

    c3_axis_fn.updateLabels = function updateLabels(withTransition) {
        var $$ = this.owner;
        var axisXLabel = $$.main.select('.' + CLASS.axisX + ' .' + CLASS.axisXLabel),
            axisYLabel = $$.main.select('.' + CLASS.axisY + ' .' + CLASS.axisYLabel),
            axisY2Label = $$.main.select('.' + CLASS.axisY2 + ' .' + CLASS.axisY2Label);
        (withTransition ? axisXLabel.transition() : axisXLabel).attr("x", this.xForXAxisLabel.bind(this)).attr("dx", this.dxForXAxisLabel.bind(this)).attr("dy", this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this));
        (withTransition ? axisYLabel.transition() : axisYLabel).attr("x", this.xForYAxisLabel.bind(this)).attr("dx", this.dxForYAxisLabel.bind(this)).attr("dy", this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this));
        (withTransition ? axisY2Label.transition() : axisY2Label).attr("x", this.xForY2AxisLabel.bind(this)).attr("dx", this.dxForY2AxisLabel.bind(this)).attr("dy", this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this));
    };
    c3_axis_fn.getPadding = function getPadding(padding, key, defaultValue, domainLength) {
        var p = typeof padding === 'number' ? padding : padding[key];
        if (!isValue(p)) {
            return defaultValue;
        }
        if (padding.unit === 'ratio') {
            return padding[key] * domainLength;
        }
        // assume padding is pixels if unit is not specified
        return this.convertPixelsToAxisPadding(p, domainLength);
    };
    c3_axis_fn.convertPixelsToAxisPadding = function convertPixelsToAxisPadding(pixels, domainLength) {
        var $$ = this.owner,
            length = $$.config.axis_rotated ? $$.width : $$.height;
        return domainLength * (pixels / length);
    };
    c3_axis_fn.generateTickValues = function generateTickValues(values, tickCount, forTimeSeries) {
        var tickValues = values,
            targetCount,
            start,
            end,
            count,
            interval,
            i,
            tickValue;
        if (tickCount) {
            targetCount = isFunction(tickCount) ? tickCount() : tickCount;
            // compute ticks according to tickCount
            if (targetCount === 1) {
                tickValues = [values[0]];
            } else if (targetCount === 2) {
                tickValues = [values[0], values[values.length - 1]];
            } else if (targetCount > 2) {
                count = targetCount - 2;
                start = values[0];
                end = values[values.length - 1];
                interval = (end - start) / (count + 1);
                // re-construct unique values
                tickValues = [start];
                for (i = 0; i < count; i++) {
                    tickValue = +start + interval * (i + 1);
                    tickValues.push(forTimeSeries ? new Date(tickValue) : tickValue);
                }
                tickValues.push(end);
            }
        }
        if (!forTimeSeries) {
            tickValues = tickValues.sort(function (a, b) {
                return a - b;
            });
        }
        return tickValues;
    };
    c3_axis_fn.generateTransitions = function generateTransitions(duration) {
        var $$ = this.owner,
            axes = $$.axes;
        return {
            axisX: duration ? axes.x.transition().duration(duration) : axes.x,
            axisY: duration ? axes.y.transition().duration(duration) : axes.y,
            axisY2: duration ? axes.y2.transition().duration(duration) : axes.y2,
            axisSubX: duration ? axes.subx.transition().duration(duration) : axes.subx
        };
    };
    c3_axis_fn.redraw = function redraw(transitions, isHidden) {
        var $$ = this.owner;
        $$.axes.x.style("opacity", isHidden ? 0 : 1);
        $$.axes.y.style("opacity", isHidden ? 0 : 1);
        $$.axes.y2.style("opacity", isHidden ? 0 : 1);
        $$.axes.subx.style("opacity", isHidden ? 0 : 1);
        transitions.axisX.call($$.xAxis);
        transitions.axisY.call($$.yAxis);
        transitions.axisY2.call($$.y2Axis);
        transitions.axisSubX.call($$.subXAxis);
    };

    var c3 = { version: "0.4.24" };

    var c3_chart_fn;
    var c3_chart_internal_fn;

    function Component(owner, componentKey, fn) {
        this.owner = owner;
        c3.chart.internal[componentKey] = fn;
    }

    function Chart(config) {
        var $$ = this.internal = new ChartInternal(this);
        $$.loadConfig(config);

        $$.beforeInit(config);
        $$.init();
        $$.afterInit(config);

        // bind "this" to nested API
        (function bindThis(fn, target, argThis) {
            Object.keys(fn).forEach(function (key) {
                target[key] = fn[key].bind(argThis);
                if (Object.keys(fn[key]).length > 0) {
                    bindThis(fn[key], target[key], argThis);
                }
            });
        })(c3_chart_fn, this, this);
    }

    function ChartInternal(api) {
        var $$ = this;
        $$.d3 = window.d3 ? window.d3 :  true ? __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js") : undefined;
        $$.api = api;
        $$.config = $$.getDefaultConfig();
        $$.data = {};
        $$.cache = {};
        $$.axes = {};
    }

    c3.generate = function (config) {
        return new Chart(config);
    };

    c3.chart = {
        fn: Chart.prototype,
        internal: {
            fn: ChartInternal.prototype
        }
    };
    c3_chart_fn = c3.chart.fn;
    c3_chart_internal_fn = c3.chart.internal.fn;

    c3_chart_internal_fn.beforeInit = function () {
        // can do something
    };
    c3_chart_internal_fn.afterInit = function () {
        // can do something
    };
    c3_chart_internal_fn.init = function () {
        var $$ = this,
            config = $$.config;

        $$.initParams();

        if (config.data_url) {
            $$.convertUrlToData(config.data_url, config.data_mimeType, config.data_headers, config.data_keys, $$.initWithData);
        } else if (config.data_json) {
            $$.initWithData($$.convertJsonToData(config.data_json, config.data_keys));
        } else if (config.data_rows) {
            $$.initWithData($$.convertRowsToData(config.data_rows));
        } else if (config.data_columns) {
            $$.initWithData($$.convertColumnsToData(config.data_columns));
        } else {
            throw Error('url or json or rows or columns is required.');
        }
    };

    c3_chart_internal_fn.initParams = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;

        // MEMO: clipId needs to be unique because it conflicts when multiple charts exist
        $$.clipId = "c3-" + +new Date() + '-clip', $$.clipIdForXAxis = $$.clipId + '-xaxis', $$.clipIdForYAxis = $$.clipId + '-yaxis', $$.clipIdForGrid = $$.clipId + '-grid', $$.clipIdForSubchart = $$.clipId + '-subchart', $$.clipPath = $$.getClipPath($$.clipId), $$.clipPathForXAxis = $$.getClipPath($$.clipIdForXAxis), $$.clipPathForYAxis = $$.getClipPath($$.clipIdForYAxis);
        $$.clipPathForGrid = $$.getClipPath($$.clipIdForGrid), $$.clipPathForSubchart = $$.getClipPath($$.clipIdForSubchart), $$.dragStart = null;
        $$.dragging = false;
        $$.flowing = false;
        $$.cancelClick = false;
        $$.mouseover = false;
        $$.transiting = false;

        $$.color = $$.generateColor();
        $$.levelColor = $$.generateLevelColor();

        $$.dataTimeFormat = config.data_xLocaltime ? d3.time.format : d3.time.format.utc;
        $$.axisTimeFormat = config.axis_x_localtime ? d3.time.format : d3.time.format.utc;
        $$.defaultAxisTimeFormat = $$.axisTimeFormat.multi([[".%L", function (d) {
            return d.getMilliseconds();
        }], [":%S", function (d) {
            return d.getSeconds();
        }], ["%I:%M", function (d) {
            return d.getMinutes();
        }], ["%I %p", function (d) {
            return d.getHours();
        }], ["%-m/%-d", function (d) {
            return d.getDay() && d.getDate() !== 1;
        }], ["%-m/%-d", function (d) {
            return d.getDate() !== 1;
        }], ["%-m/%-d", function (d) {
            return d.getMonth();
        }], ["%Y/%-m/%-d", function () {
            return true;
        }]]);

        $$.hiddenTargetIds = [];
        $$.hiddenLegendIds = [];
        $$.focusedTargetIds = [];
        $$.defocusedTargetIds = [];

        $$.xOrient = config.axis_rotated ? config.axis_x_inner ? "right" : "left" : config.axis_x_inner ? "top" : "bottom";
        $$.yOrient = config.axis_rotated ? config.axis_y_inner ? "top" : "bottom" : config.axis_y_inner ? "right" : "left";
        $$.y2Orient = config.axis_rotated ? config.axis_y2_inner ? "bottom" : "top" : config.axis_y2_inner ? "left" : "right";
        $$.subXOrient = config.axis_rotated ? "left" : "bottom";

        $$.isLegendRight = config.legend_position === 'right';
        $$.isLegendInset = config.legend_position === 'inset';
        $$.isLegendTop = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'top-right';
        $$.isLegendLeft = config.legend_inset_anchor === 'top-left' || config.legend_inset_anchor === 'bottom-left';
        $$.legendStep = 0;
        $$.legendItemWidth = 0;
        $$.legendItemHeight = 0;

        $$.currentMaxTickWidths = {
            x: 0,
            y: 0,
            y2: 0
        };

        $$.rotated_padding_left = 30;
        $$.rotated_padding_right = config.axis_rotated && !config.axis_x_show ? 0 : 30;
        $$.rotated_padding_top = 5;

        $$.withoutFadeIn = {};

        $$.intervalForObserveInserted = undefined;

        $$.axes.subx = d3.selectAll([]); // needs when excluding subchart.js
    };

    c3_chart_internal_fn.initChartElements = function () {
        if (this.initBar) {
            this.initBar();
        }
        if (this.initLine) {
            this.initLine();
        }
        if (this.initArc) {
            this.initArc();
        }
        if (this.initGauge) {
            this.initGauge();
        }
        if (this.initText) {
            this.initText();
        }
    };

    c3_chart_internal_fn.initWithData = function (data) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;
        var defs,
            main,
            binding = true;

        $$.axis = new Axis($$);

        if ($$.initPie) {
            $$.initPie();
        }
        if ($$.initBrush) {
            $$.initBrush();
        }
        if ($$.initZoom) {
            $$.initZoom();
        }

        if (!config.bindto) {
            $$.selectChart = d3.selectAll([]);
        } else if (typeof config.bindto.node === 'function') {
            $$.selectChart = config.bindto;
        } else {
            $$.selectChart = d3.select(config.bindto);
        }
        if ($$.selectChart.empty()) {
            $$.selectChart = d3.select(document.createElement('div')).style('opacity', 0);
            $$.observeInserted($$.selectChart);
            binding = false;
        }
        $$.selectChart.html("").classed("c3", true);

        // Init data as targets
        $$.data.xs = {};
        $$.data.targets = $$.convertDataToTargets(data);

        if (config.data_filter) {
            $$.data.targets = $$.data.targets.filter(config.data_filter);
        }

        // Set targets to hide if needed
        if (config.data_hide) {
            $$.addHiddenTargetIds(config.data_hide === true ? $$.mapToIds($$.data.targets) : config.data_hide);
        }
        if (config.legend_hide) {
            $$.addHiddenLegendIds(config.legend_hide === true ? $$.mapToIds($$.data.targets) : config.legend_hide);
        }

        // Init sizes and scales
        $$.updateSizes();
        $$.updateScales();

        // Set domains for each scale
        $$.x.domain(d3.extent($$.getXDomain($$.data.targets)));
        $$.y.domain($$.getYDomain($$.data.targets, 'y'));
        $$.y2.domain($$.getYDomain($$.data.targets, 'y2'));
        $$.subX.domain($$.x.domain());
        $$.subY.domain($$.y.domain());
        $$.subY2.domain($$.y2.domain());

        // Save original x domain for zoom update
        $$.orgXDomain = $$.x.domain();

        // Set initialized scales to brush and zoom
        if ($$.brush) {
            $$.brush.scale($$.subX);
        }
        if (config.zoom_enabled) {
            $$.zoom.scale($$.x);
        }

        /*-- Basic Elements --*/

        // Define svgs
        $$.svg = $$.selectChart.append("svg").style("overflow", "hidden").on('mouseenter', function () {
            return config.onmouseover.call($$);
        }).on('mouseleave', function () {
            return config.onmouseout.call($$);
        });

        if ($$.config.svg_classname) {
            $$.svg.attr('class', $$.config.svg_classname);
        }

        // Define defs
        defs = $$.svg.append("defs");
        $$.clipChart = $$.appendClip(defs, $$.clipId);
        $$.clipXAxis = $$.appendClip(defs, $$.clipIdForXAxis);
        $$.clipYAxis = $$.appendClip(defs, $$.clipIdForYAxis);
        $$.clipGrid = $$.appendClip(defs, $$.clipIdForGrid);
        $$.clipSubchart = $$.appendClip(defs, $$.clipIdForSubchart);
        $$.updateSvgSize();

        // Define regions
        main = $$.main = $$.svg.append("g").attr("transform", $$.getTranslate('main'));

        if ($$.initSubchart) {
            $$.initSubchart();
        }
        if ($$.initTooltip) {
            $$.initTooltip();
        }
        if ($$.initLegend) {
            $$.initLegend();
        }
        if ($$.initTitle) {
            $$.initTitle();
        }

        /*-- Main Region --*/

        // text when empty
        main.append("text").attr("class", CLASS.text + ' ' + CLASS.empty).attr("text-anchor", "middle") // horizontal centering of text at x position in all browsers.
        .attr("dominant-baseline", "middle"); // vertical centering of text at y position in all browsers, except IE.

        // Regions
        $$.initRegion();

        // Grids
        $$.initGrid();

        // Define g for chart area
        main.append('g').attr("clip-path", $$.clipPath).attr('class', CLASS.chart);

        // Grid lines
        if (config.grid_lines_front) {
            $$.initGridLines();
        }

        // Cover whole with rects for events
        $$.initEventRect();

        // Define g for chart
        $$.initChartElements();

        // if zoom privileged, insert rect to forefront
        // TODO: is this needed?
        main.insert('rect', config.zoom_privileged ? null : 'g.' + CLASS.regions).attr('class', CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height).style('opacity', 0).on("dblclick.zoom", null);

        // Set default extent if defined
        if (config.axis_x_extent) {
            $$.brush.extent($$.getDefaultExtent());
        }

        // Add Axis
        $$.axis.init();

        // Set targets
        $$.updateTargets($$.data.targets);

        // Draw with targets
        if (binding) {
            $$.updateDimension();
            $$.config.oninit.call($$);
            $$.redraw({
                withTransition: false,
                withTransform: true,
                withUpdateXDomain: true,
                withUpdateOrgXDomain: true,
                withTransitionForAxis: false
            });
        }

        // Bind resize event
        $$.bindResize();

        // export element of the chart
        $$.api.element = $$.selectChart.node();
    };

    c3_chart_internal_fn.smoothLines = function (el, type) {
        var $$ = this;
        if (type === 'grid') {
            el.each(function () {
                var g = $$.d3.select(this),
                    x1 = g.attr('x1'),
                    x2 = g.attr('x2'),
                    y1 = g.attr('y1'),
                    y2 = g.attr('y2');
                g.attr({
                    'x1': Math.ceil(x1),
                    'x2': Math.ceil(x2),
                    'y1': Math.ceil(y1),
                    'y2': Math.ceil(y2)
                });
            });
        }
    };

    c3_chart_internal_fn.updateSizes = function () {
        var $$ = this,
            config = $$.config;
        var legendHeight = $$.legend ? $$.getLegendHeight() : 0,
            legendWidth = $$.legend ? $$.getLegendWidth() : 0,
            legendHeightForBottom = $$.isLegendRight || $$.isLegendInset ? 0 : legendHeight,
            hasArc = $$.hasArcType(),
            xAxisHeight = config.axis_rotated || hasArc ? 0 : $$.getHorizontalAxisHeight('x'),
            subchartHeight = config.subchart_show && !hasArc ? config.subchart_size_height + xAxisHeight : 0;

        $$.currentWidth = $$.getCurrentWidth();
        $$.currentHeight = $$.getCurrentHeight();

        // for main
        $$.margin = config.axis_rotated ? {
            top: $$.getHorizontalAxisHeight('y2') + $$.getCurrentPaddingTop(),
            right: hasArc ? 0 : $$.getCurrentPaddingRight(),
            bottom: $$.getHorizontalAxisHeight('y') + legendHeightForBottom + $$.getCurrentPaddingBottom(),
            left: subchartHeight + (hasArc ? 0 : $$.getCurrentPaddingLeft())
        } : {
            top: 4 + $$.getCurrentPaddingTop(), // for top tick text
            right: hasArc ? 0 : $$.getCurrentPaddingRight(),
            bottom: xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(),
            left: hasArc ? 0 : $$.getCurrentPaddingLeft()
        };

        // for subchart
        $$.margin2 = config.axis_rotated ? {
            top: $$.margin.top,
            right: NaN,
            bottom: 20 + legendHeightForBottom,
            left: $$.rotated_padding_left
        } : {
            top: $$.currentHeight - subchartHeight - legendHeightForBottom,
            right: NaN,
            bottom: xAxisHeight + legendHeightForBottom,
            left: $$.margin.left
        };

        // for legend
        $$.margin3 = {
            top: 0,
            right: NaN,
            bottom: 0,
            left: 0
        };
        if ($$.updateSizeForLegend) {
            $$.updateSizeForLegend(legendHeight, legendWidth);
        }

        $$.width = $$.currentWidth - $$.margin.left - $$.margin.right;
        $$.height = $$.currentHeight - $$.margin.top - $$.margin.bottom;
        if ($$.width < 0) {
            $$.width = 0;
        }
        if ($$.height < 0) {
            $$.height = 0;
        }

        $$.width2 = config.axis_rotated ? $$.margin.left - $$.rotated_padding_left - $$.rotated_padding_right : $$.width;
        $$.height2 = config.axis_rotated ? $$.height : $$.currentHeight - $$.margin2.top - $$.margin2.bottom;
        if ($$.width2 < 0) {
            $$.width2 = 0;
        }
        if ($$.height2 < 0) {
            $$.height2 = 0;
        }

        // for arc
        $$.arcWidth = $$.width - ($$.isLegendRight ? legendWidth + 10 : 0);
        $$.arcHeight = $$.height - ($$.isLegendRight ? 0 : 10);
        if ($$.hasType('gauge') && !config.gauge_fullCircle) {
            $$.arcHeight += $$.height - $$.getGaugeLabelHeight();
        }
        if ($$.updateRadius) {
            $$.updateRadius();
        }

        if ($$.isLegendRight && hasArc) {
            $$.margin3.left = $$.arcWidth / 2 + $$.radiusExpanded * 1.1;
        }
    };

    c3_chart_internal_fn.updateTargets = function (targets) {
        var $$ = this;

        /*-- Main --*/

        //-- Text --//
        $$.updateTargetsForText(targets);

        //-- Bar --//
        $$.updateTargetsForBar(targets);

        //-- Line --//
        $$.updateTargetsForLine(targets);

        //-- Arc --//
        if ($$.hasArcType() && $$.updateTargetsForArc) {
            $$.updateTargetsForArc(targets);
        }

        /*-- Sub --*/

        if ($$.updateTargetsForSubchart) {
            $$.updateTargetsForSubchart(targets);
        }

        // Fade-in each chart
        $$.showTargets();
    };
    c3_chart_internal_fn.showTargets = function () {
        var $$ = this;
        $$.svg.selectAll('.' + CLASS.target).filter(function (d) {
            return $$.isTargetToShow(d.id);
        }).transition().duration($$.config.transition_duration).style("opacity", 1);
    };

    c3_chart_internal_fn.redraw = function (options, transitions) {
        var $$ = this,
            main = $$.main,
            d3 = $$.d3,
            config = $$.config;
        var areaIndices = $$.getShapeIndices($$.isAreaType),
            barIndices = $$.getShapeIndices($$.isBarType),
            lineIndices = $$.getShapeIndices($$.isLineType);
        var withY, withSubchart, withTransition, withTransitionForExit, withTransitionForAxis, withTransform, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain, withLegend, withEventRect, withDimension, withUpdateXAxis;
        var hideAxis = $$.hasArcType();
        var drawArea, drawBar, drawLine, xForText, yForText;
        var duration, durationForExit, durationForAxis;
        var waitForDraw, flow;
        var targetsToShow = $$.filterTargetsToShow($$.data.targets),
            tickValues,
            i,
            intervalForCulling,
            xDomainForZoom;
        var xv = $$.xv.bind($$),
            cx,
            cy;

        options = options || {};
        withY = getOption(options, "withY", true);
        withSubchart = getOption(options, "withSubchart", true);
        withTransition = getOption(options, "withTransition", true);
        withTransform = getOption(options, "withTransform", false);
        withUpdateXDomain = getOption(options, "withUpdateXDomain", false);
        withUpdateOrgXDomain = getOption(options, "withUpdateOrgXDomain", false);
        withTrimXDomain = getOption(options, "withTrimXDomain", true);
        withUpdateXAxis = getOption(options, "withUpdateXAxis", withUpdateXDomain);
        withLegend = getOption(options, "withLegend", false);
        withEventRect = getOption(options, "withEventRect", true);
        withDimension = getOption(options, "withDimension", true);
        withTransitionForExit = getOption(options, "withTransitionForExit", withTransition);
        withTransitionForAxis = getOption(options, "withTransitionForAxis", withTransition);

        duration = withTransition ? config.transition_duration : 0;
        durationForExit = withTransitionForExit ? duration : 0;
        durationForAxis = withTransitionForAxis ? duration : 0;

        transitions = transitions || $$.axis.generateTransitions(durationForAxis);

        // update legend and transform each g
        if (withLegend && config.legend_show) {
            $$.updateLegend($$.mapToIds($$.data.targets), options, transitions);
        } else if (withDimension) {
            // need to update dimension (e.g. axis.y.tick.values) because y tick values should change
            // no need to update axis in it because they will be updated in redraw()
            $$.updateDimension(true);
        }

        // MEMO: needed for grids calculation
        if ($$.isCategorized() && targetsToShow.length === 0) {
            $$.x.domain([0, $$.axes.x.selectAll('.tick').size()]);
        }

        if (targetsToShow.length) {
            $$.updateXDomain(targetsToShow, withUpdateXDomain, withUpdateOrgXDomain, withTrimXDomain);
            if (!config.axis_x_tick_values) {
                tickValues = $$.axis.updateXAxisTickValues(targetsToShow);
            }
        } else {
            $$.xAxis.tickValues([]);
            $$.subXAxis.tickValues([]);
        }

        if (config.zoom_rescale && !options.flow) {
            xDomainForZoom = $$.x.orgDomain();
        }

        $$.y.domain($$.getYDomain(targetsToShow, 'y', xDomainForZoom));
        $$.y2.domain($$.getYDomain(targetsToShow, 'y2', xDomainForZoom));

        if (!config.axis_y_tick_values && config.axis_y_tick_count) {
            $$.yAxis.tickValues($$.axis.generateTickValues($$.y.domain(), config.axis_y_tick_count));
        }
        if (!config.axis_y2_tick_values && config.axis_y2_tick_count) {
            $$.y2Axis.tickValues($$.axis.generateTickValues($$.y2.domain(), config.axis_y2_tick_count));
        }

        // axes
        $$.axis.redraw(transitions, hideAxis);

        // Update axis label
        $$.axis.updateLabels(withTransition);

        // show/hide if manual culling needed
        if ((withUpdateXDomain || withUpdateXAxis) && targetsToShow.length) {
            if (config.axis_x_tick_culling && tickValues) {
                for (i = 1; i < tickValues.length; i++) {
                    if (tickValues.length / i < config.axis_x_tick_culling_max) {
                        intervalForCulling = i;
                        break;
                    }
                }
                $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {
                    var index = tickValues.indexOf(e);
                    if (index >= 0) {
                        d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block');
                    }
                });
            } else {
                $$.svg.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');
            }
        }

        // setup drawer - MEMO: these must be called after axis updated
        drawArea = $$.generateDrawArea ? $$.generateDrawArea(areaIndices, false) : undefined;
        drawBar = $$.generateDrawBar ? $$.generateDrawBar(barIndices) : undefined;
        drawLine = $$.generateDrawLine ? $$.generateDrawLine(lineIndices, false) : undefined;
        xForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, true);
        yForText = $$.generateXYForText(areaIndices, barIndices, lineIndices, false);

        // Update sub domain
        if (withY) {
            $$.subY.domain($$.getYDomain(targetsToShow, 'y'));
            $$.subY2.domain($$.getYDomain(targetsToShow, 'y2'));
        }

        // xgrid focus
        $$.updateXgridFocus();

        // Data empty label positioning and text.
        main.select("text." + CLASS.text + '.' + CLASS.empty).attr("x", $$.width / 2).attr("y", $$.height / 2).text(config.data_empty_label_text).transition().style('opacity', targetsToShow.length ? 0 : 1);

        // grid
        $$.updateGrid(duration);

        // rect for regions
        $$.updateRegion(duration);

        // bars
        $$.updateBar(durationForExit);

        // lines, areas and cricles
        $$.updateLine(durationForExit);
        $$.updateArea(durationForExit);
        $$.updateCircle();

        // text
        if ($$.hasDataLabel()) {
            $$.updateText(durationForExit);
        }

        // title
        if ($$.redrawTitle) {
            $$.redrawTitle();
        }

        // arc
        if ($$.redrawArc) {
            $$.redrawArc(duration, durationForExit, withTransform);
        }

        // subchart
        if ($$.redrawSubchart) {
            $$.redrawSubchart(withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices);
        }

        // circles for select
        main.selectAll('.' + CLASS.selectedCircles).filter($$.isBarType.bind($$)).selectAll('circle').remove();

        // event rects will redrawn when flow called
        if (config.interaction_enabled && !options.flow && withEventRect) {
            $$.redrawEventRect();
            if ($$.updateZoom) {
                $$.updateZoom();
            }
        }

        // update circleY based on updated parameters
        $$.updateCircleY();

        // generate circle x/y functions depending on updated params
        cx = ($$.config.axis_rotated ? $$.circleY : $$.circleX).bind($$);
        cy = ($$.config.axis_rotated ? $$.circleX : $$.circleY).bind($$);

        if (options.flow) {
            flow = $$.generateFlow({
                targets: targetsToShow,
                flow: options.flow,
                duration: options.flow.duration,
                drawBar: drawBar,
                drawLine: drawLine,
                drawArea: drawArea,
                cx: cx,
                cy: cy,
                xv: xv,
                xForText: xForText,
                yForText: yForText
            });
        }

        if ((duration || flow) && $$.isTabVisible()) {
            // Only use transition if tab visible. See #938.
            // transition should be derived from one transition
            d3.transition().duration(duration).each(function () {
                var transitionsToWait = [];

                // redraw and gather transitions
                [$$.redrawBar(drawBar, true), $$.redrawLine(drawLine, true), $$.redrawArea(drawArea, true), $$.redrawCircle(cx, cy, true), $$.redrawText(xForText, yForText, options.flow, true), $$.redrawRegion(true), $$.redrawGrid(true)].forEach(function (transitions) {
                    transitions.forEach(function (transition) {
                        transitionsToWait.push(transition);
                    });
                });

                // Wait for end of transitions to call flow and onrendered callback
                waitForDraw = $$.generateWait();
                transitionsToWait.forEach(function (t) {
                    waitForDraw.add(t);
                });
            }).call(waitForDraw, function () {
                if (flow) {
                    flow();
                }
                if (config.onrendered) {
                    config.onrendered.call($$);
                }
            });
        } else {
            $$.redrawBar(drawBar);
            $$.redrawLine(drawLine);
            $$.redrawArea(drawArea);
            $$.redrawCircle(cx, cy);
            $$.redrawText(xForText, yForText, options.flow);
            $$.redrawRegion();
            $$.redrawGrid();
            if (config.onrendered) {
                config.onrendered.call($$);
            }
        }

        // update fadein condition
        $$.mapToIds($$.data.targets).forEach(function (id) {
            $$.withoutFadeIn[id] = true;
        });
    };

    c3_chart_internal_fn.updateAndRedraw = function (options) {
        var $$ = this,
            config = $$.config,
            transitions;
        options = options || {};
        // same with redraw
        options.withTransition = getOption(options, "withTransition", true);
        options.withTransform = getOption(options, "withTransform", false);
        options.withLegend = getOption(options, "withLegend", false);
        // NOT same with redraw
        options.withUpdateXDomain = true;
        options.withUpdateOrgXDomain = true;
        options.withTransitionForExit = false;
        options.withTransitionForTransform = getOption(options, "withTransitionForTransform", options.withTransition);
        // MEMO: this needs to be called before updateLegend and it means this ALWAYS needs to be called)
        $$.updateSizes();
        // MEMO: called in updateLegend in redraw if withLegend
        if (!(options.withLegend && config.legend_show)) {
            transitions = $$.axis.generateTransitions(options.withTransitionForAxis ? config.transition_duration : 0);
            // Update scales
            $$.updateScales();
            $$.updateSvgSize();
            // Update g positions
            $$.transformAll(options.withTransitionForTransform, transitions);
        }
        // Draw with new sizes & scales
        $$.redraw(options, transitions);
    };
    c3_chart_internal_fn.redrawWithoutRescale = function () {
        this.redraw({
            withY: false,
            withSubchart: false,
            withEventRect: false,
            withTransitionForAxis: false
        });
    };

    c3_chart_internal_fn.isTimeSeries = function () {
        return this.config.axis_x_type === 'timeseries';
    };
    c3_chart_internal_fn.isCategorized = function () {
        return this.config.axis_x_type.indexOf('categor') >= 0;
    };
    c3_chart_internal_fn.isCustomX = function () {
        var $$ = this,
            config = $$.config;
        return !$$.isTimeSeries() && (config.data_x || notEmpty(config.data_xs));
    };

    c3_chart_internal_fn.isTimeSeriesY = function () {
        return this.config.axis_y_type === 'timeseries';
    };

    c3_chart_internal_fn.getTranslate = function (target) {
        var $$ = this,
            config = $$.config,
            x,
            y;
        if (target === 'main') {
            x = asHalfPixel($$.margin.left);
            y = asHalfPixel($$.margin.top);
        } else if (target === 'context') {
            x = asHalfPixel($$.margin2.left);
            y = asHalfPixel($$.margin2.top);
        } else if (target === 'legend') {
            x = $$.margin3.left;
            y = $$.margin3.top;
        } else if (target === 'x') {
            x = 0;
            y = config.axis_rotated ? 0 : $$.height;
        } else if (target === 'y') {
            x = 0;
            y = config.axis_rotated ? $$.height : 0;
        } else if (target === 'y2') {
            x = config.axis_rotated ? 0 : $$.width;
            y = config.axis_rotated ? 1 : 0;
        } else if (target === 'subx') {
            x = 0;
            y = config.axis_rotated ? 0 : $$.height2;
        } else if (target === 'arc') {
            x = $$.arcWidth / 2;
            y = $$.arcHeight / 2 - ($$.hasType('gauge') ? 6 : 0); // to prevent wrong display of min and max label
        }
        return "translate(" + x + "," + y + ")";
    };
    c3_chart_internal_fn.initialOpacity = function (d) {
        return d.value !== null && this.withoutFadeIn[d.id] ? 1 : 0;
    };
    c3_chart_internal_fn.initialOpacityForCircle = function (d) {
        return d.value !== null && this.withoutFadeIn[d.id] ? this.opacityForCircle(d) : 0;
    };
    c3_chart_internal_fn.opacityForCircle = function (d) {
        var isPointShouldBeShown = isFunction(this.config.point_show) ? this.config.point_show(d) : this.config.point_show;
        var opacity = isPointShouldBeShown ? 1 : 0;
        return isValue(d.value) ? this.isScatterType(d) ? 0.5 : opacity : 0;
    };
    c3_chart_internal_fn.opacityForText = function () {
        return this.hasDataLabel() ? 1 : 0;
    };
    c3_chart_internal_fn.xx = function (d) {
        return d ? this.x(d.x) : null;
    };
    c3_chart_internal_fn.xv = function (d) {
        var $$ = this,
            value = d.value;
        if ($$.isTimeSeries()) {
            value = $$.parseDate(d.value);
        } else if ($$.isCategorized() && typeof d.value === 'string') {
            value = $$.config.axis_x_categories.indexOf(d.value);
        }
        return Math.ceil($$.x(value));
    };
    c3_chart_internal_fn.yv = function (d) {
        var $$ = this,
            yScale = d.axis && d.axis === 'y2' ? $$.y2 : $$.y;
        return Math.ceil(yScale(d.value));
    };
    c3_chart_internal_fn.subxx = function (d) {
        return d ? this.subX(d.x) : null;
    };

    c3_chart_internal_fn.transformMain = function (withTransition, transitions) {
        var $$ = this,
            xAxis,
            yAxis,
            y2Axis;
        if (transitions && transitions.axisX) {
            xAxis = transitions.axisX;
        } else {
            xAxis = $$.main.select('.' + CLASS.axisX);
            if (withTransition) {
                xAxis = xAxis.transition();
            }
        }
        if (transitions && transitions.axisY) {
            yAxis = transitions.axisY;
        } else {
            yAxis = $$.main.select('.' + CLASS.axisY);
            if (withTransition) {
                yAxis = yAxis.transition();
            }
        }
        if (transitions && transitions.axisY2) {
            y2Axis = transitions.axisY2;
        } else {
            y2Axis = $$.main.select('.' + CLASS.axisY2);
            if (withTransition) {
                y2Axis = y2Axis.transition();
            }
        }
        (withTransition ? $$.main.transition() : $$.main).attr("transform", $$.getTranslate('main'));
        xAxis.attr("transform", $$.getTranslate('x'));
        yAxis.attr("transform", $$.getTranslate('y'));
        y2Axis.attr("transform", $$.getTranslate('y2'));
        $$.main.select('.' + CLASS.chartArcs).attr("transform", $$.getTranslate('arc'));
    };
    c3_chart_internal_fn.transformAll = function (withTransition, transitions) {
        var $$ = this;
        $$.transformMain(withTransition, transitions);
        if ($$.config.subchart_show) {
            $$.transformContext(withTransition, transitions);
        }
        if ($$.legend) {
            $$.transformLegend(withTransition);
        }
    };

    c3_chart_internal_fn.updateSvgSize = function () {
        var $$ = this,
            brush = $$.svg.select(".c3-brush .background");
        $$.svg.attr('width', $$.currentWidth).attr('height', $$.currentHeight);
        $$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect').attr('width', $$.width).attr('height', $$.height);
        $$.svg.select('#' + $$.clipIdForXAxis).select('rect').attr('x', $$.getXAxisClipX.bind($$)).attr('y', $$.getXAxisClipY.bind($$)).attr('width', $$.getXAxisClipWidth.bind($$)).attr('height', $$.getXAxisClipHeight.bind($$));
        $$.svg.select('#' + $$.clipIdForYAxis).select('rect').attr('x', $$.getYAxisClipX.bind($$)).attr('y', $$.getYAxisClipY.bind($$)).attr('width', $$.getYAxisClipWidth.bind($$)).attr('height', $$.getYAxisClipHeight.bind($$));
        $$.svg.select('#' + $$.clipIdForSubchart).select('rect').attr('width', $$.width).attr('height', brush.size() ? brush.attr('height') : 0);
        $$.svg.select('.' + CLASS.zoomRect).attr('width', $$.width).attr('height', $$.height);
        // MEMO: parent div's height will be bigger than svg when <!DOCTYPE html>
        $$.selectChart.style('max-height', $$.currentHeight + "px");
    };

    c3_chart_internal_fn.updateDimension = function (withoutAxis) {
        var $$ = this;
        if (!withoutAxis) {
            if ($$.config.axis_rotated) {
                $$.axes.x.call($$.xAxis);
                $$.axes.subx.call($$.subXAxis);
            } else {
                $$.axes.y.call($$.yAxis);
                $$.axes.y2.call($$.y2Axis);
            }
        }
        $$.updateSizes();
        $$.updateScales();
        $$.updateSvgSize();
        $$.transformAll(false);
    };

    c3_chart_internal_fn.observeInserted = function (selection) {
        var $$ = this,
            observer;
        if (typeof MutationObserver === 'undefined') {
            window.console.error("MutationObserver not defined.");
            return;
        }
        observer = new MutationObserver(function (mutations) {
            mutations.forEach(function (mutation) {
                if (mutation.type === 'childList' && mutation.previousSibling) {
                    observer.disconnect();
                    // need to wait for completion of load because size calculation requires the actual sizes determined after that completion
                    $$.intervalForObserveInserted = window.setInterval(function () {
                        // parentNode will NOT be null when completed
                        if (selection.node().parentNode) {
                            window.clearInterval($$.intervalForObserveInserted);
                            $$.updateDimension();
                            if ($$.brush) {
                                $$.brush.update();
                            }
                            $$.config.oninit.call($$);
                            $$.redraw({
                                withTransform: true,
                                withUpdateXDomain: true,
                                withUpdateOrgXDomain: true,
                                withTransition: false,
                                withTransitionForTransform: false,
                                withLegend: true
                            });
                            selection.transition().style('opacity', 1);
                        }
                    }, 10);
                }
            });
        });
        observer.observe(selection.node(), { attributes: true, childList: true, characterData: true });
    };

    c3_chart_internal_fn.bindResize = function () {
        var $$ = this,
            config = $$.config;

        $$.resizeFunction = $$.generateResize(); // need to call .remove

        $$.resizeFunction.add(function () {
            config.onresize.call($$);
        });
        if (config.resize_auto) {
            $$.resizeFunction.add(function () {
                if ($$.resizeTimeout !== undefined) {
                    window.clearTimeout($$.resizeTimeout);
                }
                $$.resizeTimeout = window.setTimeout(function () {
                    delete $$.resizeTimeout;
                    $$.api.flush();
                }, 100);
            });
        }
        $$.resizeFunction.add(function () {
            config.onresized.call($$);
        });

        $$.resizeIfElementDisplayed = function () {
            // if element not displayed skip it
            if ($$.api == null || !$$.api.element.offsetParent) {
                return;
            }

            $$.resizeFunction();
        };

        if (window.attachEvent) {
            window.attachEvent('onresize', $$.resizeIfElementDisplayed);
        } else if (window.addEventListener) {
            window.addEventListener('resize', $$.resizeIfElementDisplayed, false);
        } else {
            // fallback to this, if this is a very old browser
            var wrapper = window.onresize;
            if (!wrapper) {
                // create a wrapper that will call all charts
                wrapper = $$.generateResize();
            } else if (!wrapper.add || !wrapper.remove) {
                // there is already a handler registered, make sure we call it too
                wrapper = $$.generateResize();
                wrapper.add(window.onresize);
            }
            // add this graph to the wrapper, we will be removed if the user calls destroy
            wrapper.add($$.resizeFunction);
            window.onresize = function () {
                // if element not displayed skip it
                if (!$$.api.element.offsetParent) {
                    return;
                }

                wrapper();
            };
        }
    };

    c3_chart_internal_fn.generateResize = function () {
        var resizeFunctions = [];
        function callResizeFunctions() {
            resizeFunctions.forEach(function (f) {
                f();
            });
        }
        callResizeFunctions.add = function (f) {
            resizeFunctions.push(f);
        };
        callResizeFunctions.remove = function (f) {
            for (var i = 0; i < resizeFunctions.length; i++) {
                if (resizeFunctions[i] === f) {
                    resizeFunctions.splice(i, 1);
                    break;
                }
            }
        };
        return callResizeFunctions;
    };

    c3_chart_internal_fn.endall = function (transition, callback) {
        var n = 0;
        transition.each(function () {
            ++n;
        }).each("end", function () {
            if (! --n) {
                callback.apply(this, arguments);
            }
        });
    };
    c3_chart_internal_fn.generateWait = function () {
        var transitionsToWait = [],
            f = function f(transition, callback) {
            var timer = setInterval(function () {
                var done = 0;
                transitionsToWait.forEach(function (t) {
                    if (t.empty()) {
                        done += 1;
                        return;
                    }
                    try {
                        t.transition();
                    } catch (e) {
                        done += 1;
                    }
                });
                if (done === transitionsToWait.length) {
                    clearInterval(timer);
                    if (callback) {
                        callback();
                    }
                }
            }, 10);
        };
        f.add = function (transition) {
            transitionsToWait.push(transition);
        };
        return f;
    };

    c3_chart_internal_fn.parseDate = function (date) {
        var $$ = this,
            parsedDate;
        if (date instanceof Date) {
            parsedDate = date;
        } else if (typeof date === 'string') {
            parsedDate = $$.dataTimeFormat($$.config.data_xFormat).parse(date);
        } else if ((typeof date === 'undefined' ? 'undefined' : _typeof(date)) === 'object') {
            parsedDate = new Date(+date);
        } else if (typeof date === 'number' && !isNaN(date)) {
            parsedDate = new Date(+date);
        }
        if (!parsedDate || isNaN(+parsedDate)) {
            window.console.error("Failed to parse x '" + date + "' to Date object");
        }
        return parsedDate;
    };

    c3_chart_internal_fn.isTabVisible = function () {
        var hidden;
        if (typeof document.hidden !== "undefined") {
            // Opera 12.10 and Firefox 18 and later support
            hidden = "hidden";
        } else if (typeof document.mozHidden !== "undefined") {
            hidden = "mozHidden";
        } else if (typeof document.msHidden !== "undefined") {
            hidden = "msHidden";
        } else if (typeof document.webkitHidden !== "undefined") {
            hidden = "webkitHidden";
        }

        return document[hidden] ? false : true;
    };

    c3_chart_internal_fn.isValue = isValue;
    c3_chart_internal_fn.isFunction = isFunction;
    c3_chart_internal_fn.isString = isString;
    c3_chart_internal_fn.isUndefined = isUndefined;
    c3_chart_internal_fn.isDefined = isDefined;
    c3_chart_internal_fn.ceil10 = ceil10;
    c3_chart_internal_fn.asHalfPixel = asHalfPixel;
    c3_chart_internal_fn.diffDomain = diffDomain;
    c3_chart_internal_fn.isEmpty = isEmpty;
    c3_chart_internal_fn.notEmpty = notEmpty;
    c3_chart_internal_fn.notEmpty = notEmpty;
    c3_chart_internal_fn.getOption = getOption;
    c3_chart_internal_fn.hasValue = hasValue;
    c3_chart_internal_fn.sanitise = sanitise;
    c3_chart_internal_fn.getPathBox = getPathBox;
    c3_chart_internal_fn.CLASS = CLASS;

    /* jshint ignore:start */

    // PhantomJS doesn't have support for Function.prototype.bind, which has caused confusion. Use
    // this polyfill to avoid the confusion.
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Polyfill

    if (!Function.prototype.bind) {
        Function.prototype.bind = function (oThis) {
            if (typeof this !== 'function') {
                // closest thing possible to the ECMAScript 5
                // internal IsCallable function
                throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
            }

            var aArgs = Array.prototype.slice.call(arguments, 1),
                fToBind = this,
                fNOP = function fNOP() {},
                fBound = function fBound() {
                return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));
            };

            fNOP.prototype = this.prototype;
            fBound.prototype = new fNOP();

            return fBound;
        };
    }

    // SVGPathSeg API polyfill
    // https://github.com/progers/pathseg
    //
    // This is a drop-in replacement for the SVGPathSeg and SVGPathSegList APIs that were removed from
    // SVG2 (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html), including the latest spec
    // changes which were implemented in Firefox 43 and Chrome 46.

    (function () {

        if (!("SVGPathSeg" in window)) {
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSeg
            window.SVGPathSeg = function (type, typeAsLetter, owningPathSegList) {
                this.pathSegType = type;
                this.pathSegTypeAsLetter = typeAsLetter;
                this._owningPathSegList = owningPathSegList;
            };

            window.SVGPathSeg.prototype.classname = "SVGPathSeg";

            window.SVGPathSeg.PATHSEG_UNKNOWN = 0;
            window.SVGPathSeg.PATHSEG_CLOSEPATH = 1;
            window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2;
            window.SVGPathSeg.PATHSEG_MOVETO_REL = 3;
            window.SVGPathSeg.PATHSEG_LINETO_ABS = 4;
            window.SVGPathSeg.PATHSEG_LINETO_REL = 5;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9;
            window.SVGPathSeg.PATHSEG_ARC_ABS = 10;
            window.SVGPathSeg.PATHSEG_ARC_REL = 11;
            window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12;
            window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13;
            window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14;
            window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
            window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
            window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;

            // Notify owning PathSegList on any changes so they can be synchronized back to the path element.
            window.SVGPathSeg.prototype._segmentChanged = function () {
                if (this._owningPathSegList) this._owningPathSegList.segmentChanged(this);
            };

            window.SVGPathSegClosePath = function (owningPathSegList) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, "z", owningPathSegList);
            };
            window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegClosePath.prototype.toString = function () {
                return "[object SVGPathSegClosePath]";
            };
            window.SVGPathSegClosePath.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter;
            };
            window.SVGPathSegClosePath.prototype.clone = function () {
                return new window.SVGPathSegClosePath(undefined);
            };

            window.SVGPathSegMovetoAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, "M", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegMovetoAbs.prototype.toString = function () {
                return "[object SVGPathSegMovetoAbs]";
            };
            window.SVGPathSegMovetoAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegMovetoAbs.prototype.clone = function () {
                return new window.SVGPathSegMovetoAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegMovetoRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, "m", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegMovetoRel.prototype.toString = function () {
                return "[object SVGPathSegMovetoRel]";
            };
            window.SVGPathSegMovetoRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegMovetoRel.prototype.clone = function () {
                return new window.SVGPathSegMovetoRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, "L", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoAbs]";
            };
            window.SVGPathSegLinetoAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegLinetoAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, "l", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoRel]";
            };
            window.SVGPathSegLinetoRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegLinetoRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicAbs = function (owningPathSegList, x, y, x1, y1, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, "C", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicAbs]";
            };
            window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicAbs(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicRel = function (owningPathSegList, x, y, x1, y1, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, "c", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicRel]";
            };
            window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicRel(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticAbs = function (owningPathSegList, x, y, x1, y1) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, "Q", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticAbs]";
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticAbs(undefined, this._x, this._y, this._x1, this._y1);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticRel = function (owningPathSegList, x, y, x1, y1) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, "q", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x1 = x1;
                this._y1 = y1;
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticRel]";
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticRel(undefined, this._x, this._y, this._x1, this._y1);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x1", { get: function get() {
                    return this._x1;
                }, set: function set(x1) {
                    this._x1 = x1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y1", { get: function get() {
                    return this._y1;
                }, set: function set(y1) {
                    this._y1 = y1;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegArcAbs = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, "A", owningPathSegList);
                this._x = x;
                this._y = y;
                this._r1 = r1;
                this._r2 = r2;
                this._angle = angle;
                this._largeArcFlag = largeArcFlag;
                this._sweepFlag = sweepFlag;
            };
            window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegArcAbs.prototype.toString = function () {
                return "[object SVGPathSegArcAbs]";
            };
            window.SVGPathSegArcAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y;
            };
            window.SVGPathSegArcAbs.prototype.clone = function () {
                return new window.SVGPathSegArcAbs(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
            };
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r1", { get: function get() {
                    return this._r1;
                }, set: function set(r1) {
                    this._r1 = r1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r2", { get: function get() {
                    return this._r2;
                }, set: function set(r2) {
                    this._r2 = r2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "angle", { get: function get() {
                    return this._angle;
                }, set: function set(angle) {
                    this._angle = angle;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "largeArcFlag", { get: function get() {
                    return this._largeArcFlag;
                }, set: function set(largeArcFlag) {
                    this._largeArcFlag = largeArcFlag;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcAbs.prototype, "sweepFlag", { get: function get() {
                    return this._sweepFlag;
                }, set: function set(sweepFlag) {
                    this._sweepFlag = sweepFlag;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegArcRel = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, "a", owningPathSegList);
                this._x = x;
                this._y = y;
                this._r1 = r1;
                this._r2 = r2;
                this._angle = angle;
                this._largeArcFlag = largeArcFlag;
                this._sweepFlag = sweepFlag;
            };
            window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegArcRel.prototype.toString = function () {
                return "[object SVGPathSegArcRel]";
            };
            window.SVGPathSegArcRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y;
            };
            window.SVGPathSegArcRel.prototype.clone = function () {
                return new window.SVGPathSegArcRel(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
            };
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "r1", { get: function get() {
                    return this._r1;
                }, set: function set(r1) {
                    this._r1 = r1;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "r2", { get: function get() {
                    return this._r2;
                }, set: function set(r2) {
                    this._r2 = r2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "angle", { get: function get() {
                    return this._angle;
                }, set: function set(angle) {
                    this._angle = angle;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "largeArcFlag", { get: function get() {
                    return this._largeArcFlag;
                }, set: function set(largeArcFlag) {
                    this._largeArcFlag = largeArcFlag;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegArcRel.prototype, "sweepFlag", { get: function get() {
                    return this._sweepFlag;
                }, set: function set(sweepFlag) {
                    this._sweepFlag = sweepFlag;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoHorizontalAbs = function (owningPathSegList, x) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, "H", owningPathSegList);
                this._x = x;
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoHorizontalAbs]";
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x;
            };
            window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoHorizontalAbs(undefined, this._x);
            };
            Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoHorizontalRel = function (owningPathSegList, x) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, "h", owningPathSegList);
                this._x = x;
            };
            window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoHorizontalRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoHorizontalRel]";
            };
            window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x;
            };
            window.SVGPathSegLinetoHorizontalRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoHorizontalRel(undefined, this._x);
            };
            Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoVerticalAbs = function (owningPathSegList, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, "V", owningPathSegList);
                this._y = y;
            };
            window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoVerticalAbs.prototype.toString = function () {
                return "[object SVGPathSegLinetoVerticalAbs]";
            };
            window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._y;
            };
            window.SVGPathSegLinetoVerticalAbs.prototype.clone = function () {
                return new window.SVGPathSegLinetoVerticalAbs(undefined, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegLinetoVerticalRel = function (owningPathSegList, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, "v", owningPathSegList);
                this._y = y;
            };
            window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegLinetoVerticalRel.prototype.toString = function () {
                return "[object SVGPathSegLinetoVerticalRel]";
            };
            window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._y;
            };
            window.SVGPathSegLinetoVerticalRel.prototype.clone = function () {
                return new window.SVGPathSegLinetoVerticalRel(undefined, this._y);
            };
            Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicSmoothAbs = function (owningPathSegList, x, y, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, "S", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicSmoothAbs]";
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, this._x, this._y, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoCubicSmoothRel = function (owningPathSegList, x, y, x2, y2) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, "s", owningPathSegList);
                this._x = x;
                this._y = y;
                this._x2 = x2;
                this._y2 = y2;
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoCubicSmoothRel]";
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, this._x, this._y, this._x2, this._y2);
            };
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x2", { get: function get() {
                    return this._x2;
                }, set: function set(x2) {
                    this._x2 = x2;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y2", { get: function get() {
                    return this._y2;
                }, set: function set(y2) {
                    this._y2 = y2;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticSmoothAbs = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, "T", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticSmoothAbs]";
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            window.SVGPathSegCurvetoQuadraticSmoothRel = function (owningPathSegList, x, y) {
                window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, "t", owningPathSegList);
                this._x = x;
                this._y = y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function () {
                return "[object SVGPathSegCurvetoQuadraticSmoothRel]";
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function () {
                return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
            };
            window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function () {
                return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, this._x, this._y);
            };
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "x", { get: function get() {
                    return this._x;
                }, set: function set(x) {
                    this._x = x;this._segmentChanged();
                }, enumerable: true });
            Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "y", { get: function get() {
                    return this._y;
                }, set: function set(y) {
                    this._y = y;this._segmentChanged();
                }, enumerable: true });

            // Add createSVGPathSeg* functions to window.SVGPathElement.
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-Interfacewindow.SVGPathElement.
            window.SVGPathElement.prototype.createSVGPathSegClosePath = function () {
                return new window.SVGPathSegClosePath(undefined);
            };
            window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function (x, y) {
                return new window.SVGPathSegMovetoAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function (x, y) {
                return new window.SVGPathSegMovetoRel(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function (x, y) {
                return new window.SVGPathSegLinetoAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function (x, y) {
                return new window.SVGPathSegLinetoRel(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function (x, y, x1, y1, x2, y2) {
                return new window.SVGPathSegCurvetoCubicAbs(undefined, x, y, x1, y1, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function (x, y, x1, y1, x2, y2) {
                return new window.SVGPathSegCurvetoCubicRel(undefined, x, y, x1, y1, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function (x, y, x1, y1) {
                return new window.SVGPathSegCurvetoQuadraticAbs(undefined, x, y, x1, y1);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function (x, y, x1, y1) {
                return new window.SVGPathSegCurvetoQuadraticRel(undefined, x, y, x1, y1);
            };
            window.SVGPathElement.prototype.createSVGPathSegArcAbs = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                return new window.SVGPathSegArcAbs(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
            };
            window.SVGPathElement.prototype.createSVGPathSegArcRel = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
                return new window.SVGPathSegArcRel(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function (x) {
                return new window.SVGPathSegLinetoHorizontalAbs(undefined, x);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function (x) {
                return new window.SVGPathSegLinetoHorizontalRel(undefined, x);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function (y) {
                return new window.SVGPathSegLinetoVerticalAbs(undefined, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function (y) {
                return new window.SVGPathSegLinetoVerticalRel(undefined, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function (x, y, x2, y2) {
                return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, x, y, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function (x, y, x2, y2) {
                return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, x, y, x2, y2);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function (x, y) {
                return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, x, y);
            };
            window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function (x, y) {
                return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, x, y);
            };

            if (!("getPathSegAtLength" in window.SVGPathElement.prototype)) {
                // Add getPathSegAtLength to SVGPathElement.
                // Spec: https://www.w3.org/TR/SVG11/single-page.html#paths-__svg__SVGPathElement__getPathSegAtLength
                // This polyfill requires SVGPathElement.getTotalLength to implement the distance-along-a-path algorithm.
                window.SVGPathElement.prototype.getPathSegAtLength = function (distance) {
                    if (distance === undefined || !isFinite(distance)) throw "Invalid arguments.";

                    var measurementElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
                    measurementElement.setAttribute("d", this.getAttribute("d"));
                    var lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;

                    // If the path is empty, return 0.
                    if (lastPathSegment <= 0) return 0;

                    do {
                        measurementElement.pathSegList.removeItem(lastPathSegment);
                        if (distance > measurementElement.getTotalLength()) break;
                        lastPathSegment--;
                    } while (lastPathSegment > 0);
                    return lastPathSegment;
                };
            }
        }

        if (!("SVGPathSegList" in window)) {
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGPathSegList
            window.SVGPathSegList = function (pathElement) {
                this._pathElement = pathElement;
                this._list = this._parsePath(this._pathElement.getAttribute("d"));

                // Use a MutationObserver to catch changes to the path's "d" attribute.
                this._mutationObserverConfig = { "attributes": true, "attributeFilter": ["d"] };
                this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this));
                this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
            };

            window.SVGPathSegList.prototype.classname = "SVGPathSegList";

            Object.defineProperty(window.SVGPathSegList.prototype, "numberOfItems", {
                get: function get() {
                    this._checkPathSynchronizedToList();
                    return this._list.length;
                },
                enumerable: true
            });

            // Add the pathSegList accessors to window.SVGPathElement.
            // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-InterfaceSVGAnimatedPathData
            Object.defineProperty(window.SVGPathElement.prototype, "pathSegList", {
                get: function get() {
                    if (!this._pathSegList) this._pathSegList = new window.SVGPathSegList(this);
                    return this._pathSegList;
                },
                enumerable: true
            });
            // FIXME: The following are not implemented and simply return window.SVGPathElement.pathSegList.
            Object.defineProperty(window.SVGPathElement.prototype, "normalizedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });
            Object.defineProperty(window.SVGPathElement.prototype, "animatedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });
            Object.defineProperty(window.SVGPathElement.prototype, "animatedNormalizedPathSegList", { get: function get() {
                    return this.pathSegList;
                }, enumerable: true });

            // Process any pending mutations to the path element and update the list as needed.
            // This should be the first call of all public functions and is needed because
            // MutationObservers are not synchronous so we can have pending asynchronous mutations.
            window.SVGPathSegList.prototype._checkPathSynchronizedToList = function () {
                this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
            };

            window.SVGPathSegList.prototype._updateListFromPathMutations = function (mutationRecords) {
                if (!this._pathElement) return;
                var hasPathMutations = false;
                mutationRecords.forEach(function (record) {
                    if (record.attributeName == "d") hasPathMutations = true;
                });
                if (hasPathMutations) this._list = this._parsePath(this._pathElement.getAttribute("d"));
            };

            // Serialize the list and update the path's 'd' attribute.
            window.SVGPathSegList.prototype._writeListToPath = function () {
                this._pathElementMutationObserver.disconnect();
                this._pathElement.setAttribute("d", window.SVGPathSegList._pathSegArrayAsString(this._list));
                this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
            };

            // When a path segment changes the list needs to be synchronized back to the path element.
            window.SVGPathSegList.prototype.segmentChanged = function (pathSeg) {
                this._writeListToPath();
            };

            window.SVGPathSegList.prototype.clear = function () {
                this._checkPathSynchronizedToList();

                this._list.forEach(function (pathSeg) {
                    pathSeg._owningPathSegList = null;
                });
                this._list = [];
                this._writeListToPath();
            };

            window.SVGPathSegList.prototype.initialize = function (newItem) {
                this._checkPathSynchronizedToList();

                this._list = [newItem];
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype._checkValidIndex = function (index) {
                if (isNaN(index) || index < 0 || index >= this.numberOfItems) throw "INDEX_SIZE_ERR";
            };

            window.SVGPathSegList.prototype.getItem = function (index) {
                this._checkPathSynchronizedToList();

                this._checkValidIndex(index);
                return this._list[index];
            };

            window.SVGPathSegList.prototype.insertItemBefore = function (newItem, index) {
                this._checkPathSynchronizedToList();

                // Spec: If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.
                if (index > this.numberOfItems) index = this.numberOfItems;
                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._list.splice(index, 0, newItem);
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype.replaceItem = function (newItem, index) {
                this._checkPathSynchronizedToList();

                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._checkValidIndex(index);
                this._list[index] = newItem;
                newItem._owningPathSegList = this;
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList.prototype.removeItem = function (index) {
                this._checkPathSynchronizedToList();

                this._checkValidIndex(index);
                var item = this._list[index];
                this._list.splice(index, 1);
                this._writeListToPath();
                return item;
            };

            window.SVGPathSegList.prototype.appendItem = function (newItem) {
                this._checkPathSynchronizedToList();

                if (newItem._owningPathSegList) {
                    // SVG2 spec says to make a copy.
                    newItem = newItem.clone();
                }
                this._list.push(newItem);
                newItem._owningPathSegList = this;
                // TODO: Optimize this to just append to the existing attribute.
                this._writeListToPath();
                return newItem;
            };

            window.SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
                var string = "";
                var first = true;
                pathSegArray.forEach(function (pathSeg) {
                    if (first) {
                        first = false;
                        string += pathSeg._asPathString();
                    } else {
                        string += " " + pathSeg._asPathString();
                    }
                });
                return string;
            };

            // This closely follows SVGPathParser::parsePath from Source/core/svg/SVGPathParser.cpp.
            window.SVGPathSegList.prototype._parsePath = function (string) {
                if (!string || string.length == 0) return [];

                var owningPathSegList = this;

                var Builder = function Builder() {
                    this.pathSegList = [];
                };

                Builder.prototype.appendSegment = function (pathSeg) {
                    this.pathSegList.push(pathSeg);
                };

                var Source = function Source(string) {
                    this._string = string;
                    this._currentIndex = 0;
                    this._endIndex = this._string.length;
                    this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN;

                    this._skipOptionalSpaces();
                };

                Source.prototype._isCurrentSpace = function () {
                    var character = this._string[this._currentIndex];
                    return character <= " " && (character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f");
                };

                Source.prototype._skipOptionalSpaces = function () {
                    while (this._currentIndex < this._endIndex && this._isCurrentSpace()) {
                        this._currentIndex++;
                    }return this._currentIndex < this._endIndex;
                };

                Source.prototype._skipOptionalSpacesOrDelimiter = function () {
                    if (this._currentIndex < this._endIndex && !this._isCurrentSpace() && this._string.charAt(this._currentIndex) != ",") return false;
                    if (this._skipOptionalSpaces()) {
                        if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ",") {
                            this._currentIndex++;
                            this._skipOptionalSpaces();
                        }
                    }
                    return this._currentIndex < this._endIndex;
                };

                Source.prototype.hasMoreData = function () {
                    return this._currentIndex < this._endIndex;
                };

                Source.prototype.peekSegmentType = function () {
                    var lookahead = this._string[this._currentIndex];
                    return this._pathSegTypeFromChar(lookahead);
                };

                Source.prototype._pathSegTypeFromChar = function (lookahead) {
                    switch (lookahead) {
                        case "Z":
                        case "z":
                            return window.SVGPathSeg.PATHSEG_CLOSEPATH;
                        case "M":
                            return window.SVGPathSeg.PATHSEG_MOVETO_ABS;
                        case "m":
                            return window.SVGPathSeg.PATHSEG_MOVETO_REL;
                        case "L":
                            return window.SVGPathSeg.PATHSEG_LINETO_ABS;
                        case "l":
                            return window.SVGPathSeg.PATHSEG_LINETO_REL;
                        case "C":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;
                        case "c":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;
                        case "Q":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;
                        case "q":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;
                        case "A":
                            return window.SVGPathSeg.PATHSEG_ARC_ABS;
                        case "a":
                            return window.SVGPathSeg.PATHSEG_ARC_REL;
                        case "H":
                            return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;
                        case "h":
                            return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;
                        case "V":
                            return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;
                        case "v":
                            return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;
                        case "S":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;
                        case "s":
                            return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;
                        case "T":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;
                        case "t":
                            return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;
                        default:
                            return window.SVGPathSeg.PATHSEG_UNKNOWN;
                    }
                };

                Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
                    // Check for remaining coordinates in the current command.
                    if ((lookahead == "+" || lookahead == "-" || lookahead == "." || lookahead >= "0" && lookahead <= "9") && previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
                        if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS) return window.SVGPathSeg.PATHSEG_LINETO_ABS;
                        if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_REL) return window.SVGPathSeg.PATHSEG_LINETO_REL;
                        return previousCommand;
                    }
                    return window.SVGPathSeg.PATHSEG_UNKNOWN;
                };

                Source.prototype.initialCommandIsMoveTo = function () {
                    // If the path is empty it is still valid, so return true.
                    if (!this.hasMoreData()) return true;
                    var command = this.peekSegmentType();
                    // Path must start with moveTo.
                    return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
                };

                // Parse a number from an SVG path. This very closely follows genericParseNumber(...) from Source/core/svg/SVGParserUtilities.cpp.
                // Spec: http://www.w3.org/TR/SVG11/single-page.html#paths-PathDataBNF
                Source.prototype._parseNumber = function () {
                    var exponent = 0;
                    var integer = 0;
                    var frac = 1;
                    var decimal = 0;
                    var sign = 1;
                    var expsign = 1;

                    var startIndex = this._currentIndex;

                    this._skipOptionalSpaces();

                    // Read the sign.
                    if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "+") this._currentIndex++;else if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "-") {
                        this._currentIndex++;
                        sign = -1;
                    }

                    if (this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") && this._string.charAt(this._currentIndex) != ".")
                        // The first character of a number must be one of [0-9+-.].
                        return undefined;

                    // Read the integer part, build right-to-left.
                    var startIntPartIndex = this._currentIndex;
                    while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                        this._currentIndex++;
                    } // Advance to first non-digit.

                    if (this._currentIndex != startIntPartIndex) {
                        var scanIntPartIndex = this._currentIndex - 1;
                        var multiplier = 1;
                        while (scanIntPartIndex >= startIntPartIndex) {
                            integer += multiplier * (this._string.charAt(scanIntPartIndex--) - "0");
                            multiplier *= 10;
                        }
                    }

                    // Read the decimals.
                    if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ".") {
                        this._currentIndex++;

                        // There must be a least one digit following the .
                        if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return undefined;
                        while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                            frac *= 10;
                            decimal += (this._string.charAt(this._currentIndex) - "0") / frac;
                            this._currentIndex += 1;
                        }
                    }

                    // Read the exponent part.
                    if (this._currentIndex != startIndex && this._currentIndex + 1 < this._endIndex && (this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") && this._string.charAt(this._currentIndex + 1) != "x" && this._string.charAt(this._currentIndex + 1) != "m") {
                        this._currentIndex++;

                        // Read the sign of the exponent.
                        if (this._string.charAt(this._currentIndex) == "+") {
                            this._currentIndex++;
                        } else if (this._string.charAt(this._currentIndex) == "-") {
                            this._currentIndex++;
                            expsign = -1;
                        }

                        // There must be an exponent.
                        if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return undefined;

                        while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") {
                            exponent *= 10;
                            exponent += this._string.charAt(this._currentIndex) - "0";
                            this._currentIndex++;
                        }
                    }

                    var number = integer + decimal;
                    number *= sign;

                    if (exponent) number *= Math.pow(10, expsign * exponent);

                    if (startIndex == this._currentIndex) return undefined;

                    this._skipOptionalSpacesOrDelimiter();

                    return number;
                };

                Source.prototype._parseArcFlag = function () {
                    if (this._currentIndex >= this._endIndex) return undefined;
                    var flag = false;
                    var flagChar = this._string.charAt(this._currentIndex++);
                    if (flagChar == "0") flag = false;else if (flagChar == "1") flag = true;else return undefined;

                    this._skipOptionalSpacesOrDelimiter();
                    return flag;
                };

                Source.prototype.parseSegment = function () {
                    var lookahead = this._string[this._currentIndex];
                    var command = this._pathSegTypeFromChar(lookahead);
                    if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {
                        // Possibly an implicit command. Not allowed if this is the first command.
                        if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;
                        command = this._nextCommandHelper(lookahead, this._previousCommand);
                        if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;
                    } else {
                        this._currentIndex++;
                    }

                    this._previousCommand = command;

                    switch (command) {
                        case window.SVGPathSeg.PATHSEG_MOVETO_REL:
                            return new window.SVGPathSegMovetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_MOVETO_ABS:
                            return new window.SVGPathSegMovetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_REL:
                            return new window.SVGPathSegLinetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_ABS:
                            return new window.SVGPathSegLinetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:
                            return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:
                            return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:
                            return new window.SVGPathSegLinetoVerticalRel(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:
                            return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList, this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_CLOSEPATH:
                            this._skipOptionalSpaces();
                            return new window.SVGPathSegClosePath(owningPathSegList);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
                            var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
                            var points = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList, points.x, points.y, points.x1, points.y1);
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
                            return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
                            return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
                        case window.SVGPathSeg.PATHSEG_ARC_REL:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
                        case window.SVGPathSeg.PATHSEG_ARC_ABS:
                            var points = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() };
                            return new window.SVGPathSegArcAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
                        default:
                            throw "Unknown path seg type.";
                    }
                };

                var builder = new Builder();
                var source = new Source(string);

                if (!source.initialCommandIsMoveTo()) return [];
                while (source.hasMoreData()) {
                    var pathSeg = source.parseSegment();
                    if (!pathSeg) return [];
                    builder.appendSegment(pathSeg);
                }

                return builder.pathSegList;
            };
        }
    })();

    // String.padEnd polyfill for IE11
    //
    // https://github.com/uxitten/polyfill/blob/master/string.polyfill.js
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd
    if (!String.prototype.padEnd) {
        String.prototype.padEnd = function padEnd(targetLength, padString) {
            targetLength = targetLength >> 0; //floor if number or convert non-number to 0;
            padString = String(typeof padString !== 'undefined' ? padString : ' ');
            if (this.length > targetLength) {
                return String(this);
            } else {
                targetLength = targetLength - this.length;
                if (targetLength > padString.length) {
                    padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed
                }
                return String(this) + padString.slice(0, targetLength);
            }
        };
    }

    /* jshint ignore:end */

    c3_chart_fn.axis = function () {};
    c3_chart_fn.axis.labels = function (labels) {
        var $$ = this.internal;
        if (arguments.length) {
            Object.keys(labels).forEach(function (axisId) {
                $$.axis.setLabelText(axisId, labels[axisId]);
            });
            $$.axis.updateLabels();
        }
        // TODO: return some values?
    };
    c3_chart_fn.axis.max = function (max) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length) {
            if ((typeof max === 'undefined' ? 'undefined' : _typeof(max)) === 'object') {
                if (isValue(max.x)) {
                    config.axis_x_max = max.x;
                }
                if (isValue(max.y)) {
                    config.axis_y_max = max.y;
                }
                if (isValue(max.y2)) {
                    config.axis_y2_max = max.y2;
                }
            } else {
                config.axis_y_max = config.axis_y2_max = max;
            }
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        } else {
            return {
                x: config.axis_x_max,
                y: config.axis_y_max,
                y2: config.axis_y2_max
            };
        }
    };
    c3_chart_fn.axis.min = function (min) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length) {
            if ((typeof min === 'undefined' ? 'undefined' : _typeof(min)) === 'object') {
                if (isValue(min.x)) {
                    config.axis_x_min = min.x;
                }
                if (isValue(min.y)) {
                    config.axis_y_min = min.y;
                }
                if (isValue(min.y2)) {
                    config.axis_y2_min = min.y2;
                }
            } else {
                config.axis_y_min = config.axis_y2_min = min;
            }
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        } else {
            return {
                x: config.axis_x_min,
                y: config.axis_y_min,
                y2: config.axis_y2_min
            };
        }
    };
    c3_chart_fn.axis.range = function (range) {
        if (arguments.length) {
            if (isDefined(range.max)) {
                this.axis.max(range.max);
            }
            if (isDefined(range.min)) {
                this.axis.min(range.min);
            }
        } else {
            return {
                max: this.axis.max(),
                min: this.axis.min()
            };
        }
    };

    c3_chart_fn.category = function (i, category) {
        var $$ = this.internal,
            config = $$.config;
        if (arguments.length > 1) {
            config.axis_x_categories[i] = category;
            $$.redraw();
        }
        return config.axis_x_categories[i];
    };
    c3_chart_fn.categories = function (categories) {
        var $$ = this.internal,
            config = $$.config;
        if (!arguments.length) {
            return config.axis_x_categories;
        }
        config.axis_x_categories = categories;
        $$.redraw();
        return config.axis_x_categories;
    };

    c3_chart_fn.resize = function (size) {
        var $$ = this.internal,
            config = $$.config;
        config.size_width = size ? size.width : null;
        config.size_height = size ? size.height : null;
        this.flush();
    };

    c3_chart_fn.flush = function () {
        var $$ = this.internal;
        $$.updateAndRedraw({ withLegend: true, withTransition: false, withTransitionForTransform: false });
    };

    c3_chart_fn.destroy = function () {
        var $$ = this.internal;

        window.clearInterval($$.intervalForObserveInserted);

        if ($$.resizeTimeout !== undefined) {
            window.clearTimeout($$.resizeTimeout);
        }

        if (window.detachEvent) {
            window.detachEvent('onresize', $$.resizeIfElementDisplayed);
        } else if (window.removeEventListener) {
            window.removeEventListener('resize', $$.resizeIfElementDisplayed);
        } else {
            var wrapper = window.onresize;
            // check if no one else removed our wrapper and remove our resizeFunction from it
            if (wrapper && wrapper.add && wrapper.remove) {
                wrapper.remove($$.resizeFunction);
            }
        }

        // remove the inner resize functions
        $$.resizeFunction.remove();

        $$.selectChart.classed('c3', false).html("");

        // MEMO: this is needed because the reference of some elements will not be released, then memory leak will happen.
        Object.keys($$).forEach(function (key) {
            $$[key] = null;
        });

        return null;
    };

    // TODO: fix
    c3_chart_fn.color = function (id) {
        var $$ = this.internal;
        return $$.color(id); // more patterns
    };

    c3_chart_fn.data = function (targetIds) {
        var targets = this.internal.data.targets;
        return typeof targetIds === 'undefined' ? targets : targets.filter(function (t) {
            return [].concat(targetIds).indexOf(t.id) >= 0;
        });
    };
    c3_chart_fn.data.shown = function (targetIds) {
        return this.internal.filterTargetsToShow(this.data(targetIds));
    };
    c3_chart_fn.data.values = function (targetId) {
        var targets,
            values = null;
        if (targetId) {
            targets = this.data(targetId);
            values = targets[0] ? targets[0].values.map(function (d) {
                return d.value;
            }) : null;
        }
        return values;
    };
    c3_chart_fn.data.names = function (names) {
        this.internal.clearLegendItemTextBoxCache();
        return this.internal.updateDataAttributes('names', names);
    };
    c3_chart_fn.data.colors = function (colors) {
        return this.internal.updateDataAttributes('colors', colors);
    };
    c3_chart_fn.data.axes = function (axes) {
        return this.internal.updateDataAttributes('axes', axes);
    };

    c3_chart_fn.flow = function (args) {
        var $$ = this.internal,
            targets,
            data,
            notfoundIds = [],
            orgDataCount = $$.getMaxDataCount(),
            dataCount,
            domain,
            baseTarget,
            baseValue,
            length = 0,
            tail = 0,
            diff,
            to;

        if (args.json) {
            data = $$.convertJsonToData(args.json, args.keys);
        } else if (args.rows) {
            data = $$.convertRowsToData(args.rows);
        } else if (args.columns) {
            data = $$.convertColumnsToData(args.columns);
        } else {
            return;
        }
        targets = $$.convertDataToTargets(data, true);

        // Update/Add data
        $$.data.targets.forEach(function (t) {
            var found = false,
                i,
                j;
            for (i = 0; i < targets.length; i++) {
                if (t.id === targets[i].id) {
                    found = true;

                    if (t.values[t.values.length - 1]) {
                        tail = t.values[t.values.length - 1].index + 1;
                    }
                    length = targets[i].values.length;

                    for (j = 0; j < length; j++) {
                        targets[i].values[j].index = tail + j;
                        if (!$$.isTimeSeries()) {
                            targets[i].values[j].x = tail + j;
                        }
                    }
                    t.values = t.values.concat(targets[i].values);

                    targets.splice(i, 1);
                    break;
                }
            }
            if (!found) {
                notfoundIds.push(t.id);
            }
        });

        // Append null for not found targets
        $$.data.targets.forEach(function (t) {
            var i, j;
            for (i = 0; i < notfoundIds.length; i++) {
                if (t.id === notfoundIds[i]) {
                    tail = t.values[t.values.length - 1].index + 1;
                    for (j = 0; j < length; j++) {
                        t.values.push({
                            id: t.id,
                            index: tail + j,
                            x: $$.isTimeSeries() ? $$.getOtherTargetX(tail + j) : tail + j,
                            value: null
                        });
                    }
                }
            }
        });

        // Generate null values for new target
        if ($$.data.targets.length) {
            targets.forEach(function (t) {
                var i,
                    missing = [];
                for (i = $$.data.targets[0].values[0].index; i < tail; i++) {
                    missing.push({
                        id: t.id,
                        index: i,
                        x: $$.isTimeSeries() ? $$.getOtherTargetX(i) : i,
                        value: null
                    });
                }
                t.values.forEach(function (v) {
                    v.index += tail;
                    if (!$$.isTimeSeries()) {
                        v.x += tail;
                    }
                });
                t.values = missing.concat(t.values);
            });
        }
        $$.data.targets = $$.data.targets.concat(targets); // add remained

        // check data count because behavior needs to change when it's only one
        dataCount = $$.getMaxDataCount();
        baseTarget = $$.data.targets[0];
        baseValue = baseTarget.values[0];

        // Update length to flow if needed
        if (isDefined(args.to)) {
            length = 0;
            to = $$.isTimeSeries() ? $$.parseDate(args.to) : args.to;
            baseTarget.values.forEach(function (v) {
                if (v.x < to) {
                    length++;
                }
            });
        } else if (isDefined(args.length)) {
            length = args.length;
        }

        // If only one data, update the domain to flow from left edge of the chart
        if (!orgDataCount) {
            if ($$.isTimeSeries()) {
                if (baseTarget.values.length > 1) {
                    diff = baseTarget.values[baseTarget.values.length - 1].x - baseValue.x;
                } else {
                    diff = baseValue.x - $$.getXDomain($$.data.targets)[0];
                }
            } else {
                diff = 1;
            }
            domain = [baseValue.x - diff, baseValue.x];
            $$.updateXDomain(null, true, true, false, domain);
        } else if (orgDataCount === 1) {
            if ($$.isTimeSeries()) {
                diff = (baseTarget.values[baseTarget.values.length - 1].x - baseValue.x) / 2;
                domain = [new Date(+baseValue.x - diff), new Date(+baseValue.x + diff)];
                $$.updateXDomain(null, true, true, false, domain);
            }
        }

        // Set targets
        $$.updateTargets($$.data.targets);

        // Redraw with new targets
        $$.redraw({
            flow: {
                index: baseValue.index,
                length: length,
                duration: isValue(args.duration) ? args.duration : $$.config.transition_duration,
                done: args.done,
                orgDataCount: orgDataCount
            },
            withLegend: true,
            withTransition: orgDataCount > 1,
            withTrimXDomain: false,
            withUpdateXAxis: true
        });
    };

    c3_chart_internal_fn.generateFlow = function (args) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;

        return function () {
            var targets = args.targets,
                flow = args.flow,
                drawBar = args.drawBar,
                drawLine = args.drawLine,
                drawArea = args.drawArea,
                cx = args.cx,
                cy = args.cy,
                xv = args.xv,
                xForText = args.xForText,
                yForText = args.yForText,
                duration = args.duration;

            var translateX,
                scaleX = 1,
                transform,
                flowIndex = flow.index,
                flowLength = flow.length,
                flowStart = $$.getValueOnIndex($$.data.targets[0].values, flowIndex),
                flowEnd = $$.getValueOnIndex($$.data.targets[0].values, flowIndex + flowLength),
                orgDomain = $$.x.domain(),
                domain,
                durationForFlow = flow.duration || duration,
                done = flow.done || function () {},
                wait = $$.generateWait();

            var xgrid = $$.xgrid || d3.selectAll([]),
                xgridLines = $$.xgridLines || d3.selectAll([]),
                mainRegion = $$.mainRegion || d3.selectAll([]),
                mainText = $$.mainText || d3.selectAll([]),
                mainBar = $$.mainBar || d3.selectAll([]),
                mainLine = $$.mainLine || d3.selectAll([]),
                mainArea = $$.mainArea || d3.selectAll([]),
                mainCircle = $$.mainCircle || d3.selectAll([]);

            // set flag
            $$.flowing = true;

            // remove head data after rendered
            $$.data.targets.forEach(function (d) {
                d.values.splice(0, flowLength);
            });

            // update x domain to generate axis elements for flow
            domain = $$.updateXDomain(targets, true, true);
            // update elements related to x scale
            if ($$.updateXGrid) {
                $$.updateXGrid(true);
            }

            // generate transform to flow
            if (!flow.orgDataCount) {
                // if empty
                if ($$.data.targets[0].values.length !== 1) {
                    translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
                } else {
                    if ($$.isTimeSeries()) {
                        flowStart = $$.getValueOnIndex($$.data.targets[0].values, 0);
                        flowEnd = $$.getValueOnIndex($$.data.targets[0].values, $$.data.targets[0].values.length - 1);
                        translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);
                    } else {
                        translateX = diffDomain(domain) / 2;
                    }
                }
            } else if (flow.orgDataCount === 1 || (flowStart && flowStart.x) === (flowEnd && flowEnd.x)) {
                translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
            } else {
                if ($$.isTimeSeries()) {
                    translateX = $$.x(orgDomain[0]) - $$.x(domain[0]);
                } else {
                    translateX = $$.x(flowStart.x) - $$.x(flowEnd.x);
                }
            }
            scaleX = diffDomain(orgDomain) / diffDomain(domain);
            transform = 'translate(' + translateX + ',0) scale(' + scaleX + ',1)';

            $$.hideXGridFocus();

            d3.transition().ease('linear').duration(durationForFlow).each(function () {
                wait.add($$.axes.x.transition().call($$.xAxis));
                wait.add(mainBar.transition().attr('transform', transform));
                wait.add(mainLine.transition().attr('transform', transform));
                wait.add(mainArea.transition().attr('transform', transform));
                wait.add(mainCircle.transition().attr('transform', transform));
                wait.add(mainText.transition().attr('transform', transform));
                wait.add(mainRegion.filter($$.isRegionOnX).transition().attr('transform', transform));
                wait.add(xgrid.transition().attr('transform', transform));
                wait.add(xgridLines.transition().attr('transform', transform));
            }).call(wait, function () {
                var i,
                    shapes = [],
                    texts = [],
                    eventRects = [];

                // remove flowed elements
                if (flowLength) {
                    for (i = 0; i < flowLength; i++) {
                        shapes.push('.' + CLASS.shape + '-' + (flowIndex + i));
                        texts.push('.' + CLASS.text + '-' + (flowIndex + i));
                        eventRects.push('.' + CLASS.eventRect + '-' + (flowIndex + i));
                    }
                    $$.svg.selectAll('.' + CLASS.shapes).selectAll(shapes).remove();
                    $$.svg.selectAll('.' + CLASS.texts).selectAll(texts).remove();
                    $$.svg.selectAll('.' + CLASS.eventRects).selectAll(eventRects).remove();
                    $$.svg.select('.' + CLASS.xgrid).remove();
                }

                // draw again for removing flowed elements and reverting attr
                xgrid.attr('transform', null).attr($$.xgridAttr);
                xgridLines.attr('transform', null);
                xgridLines.select('line').attr("x1", config.axis_rotated ? 0 : xv).attr("x2", config.axis_rotated ? $$.width : xv);
                xgridLines.select('text').attr("x", config.axis_rotated ? $$.width : 0).attr("y", xv);
                mainBar.attr('transform', null).attr("d", drawBar);
                mainLine.attr('transform', null).attr("d", drawLine);
                mainArea.attr('transform', null).attr("d", drawArea);
                mainCircle.attr('transform', null).attr("cx", cx).attr("cy", cy);
                mainText.attr('transform', null).attr('x', xForText).attr('y', yForText).style('fill-opacity', $$.opacityForText.bind($$));
                mainRegion.attr('transform', null);
                mainRegion.select('rect').filter($$.isRegionOnX).attr("x", $$.regionX.bind($$)).attr("width", $$.regionWidth.bind($$));

                if (config.interaction_enabled) {
                    $$.redrawEventRect();
                }

                // callback for end of flow
                done();

                $$.flowing = false;
            });
        };
    };

    c3_chart_fn.focus = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), this.revert();
        this.defocus();
        candidates.classed(CLASS.focused, true).classed(CLASS.defocused, false);
        if ($$.hasArcType()) {
            $$.expandArc(targetIds);
        }
        $$.toggleFocusLegend(targetIds, true);

        $$.focusedTargetIds = targetIds;
        $$.defocusedTargetIds = $$.defocusedTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };

    c3_chart_fn.defocus = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds.filter($$.isTargetToShow, $$))), candidates.classed(CLASS.focused, false).classed(CLASS.defocused, true);
        if ($$.hasArcType()) {
            $$.unexpandArc(targetIds);
        }
        $$.toggleFocusLegend(targetIds, false);

        $$.focusedTargetIds = $$.focusedTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
        $$.defocusedTargetIds = targetIds;
    };

    c3_chart_fn.revert = function (targetIds) {
        var $$ = this.internal,
            candidates;

        targetIds = $$.mapToTargetIds(targetIds);
        candidates = $$.svg.selectAll($$.selectorTargets(targetIds)); // should be for all targets

        candidates.classed(CLASS.focused, false).classed(CLASS.defocused, false);
        if ($$.hasArcType()) {
            $$.unexpandArc(targetIds);
        }
        if ($$.config.legend_show) {
            $$.showLegend(targetIds.filter($$.isLegendToShow.bind($$)));
            $$.legend.selectAll($$.selectorLegends(targetIds)).filter(function () {
                return $$.d3.select(this).classed(CLASS.legendItemFocused);
            }).classed(CLASS.legendItemFocused, false);
        }

        $$.focusedTargetIds = [];
        $$.defocusedTargetIds = [];
    };

    c3_chart_fn.xgrids = function (grids) {
        var $$ = this.internal,
            config = $$.config;
        if (!grids) {
            return config.grid_x_lines;
        }
        config.grid_x_lines = grids;
        $$.redrawWithoutRescale();
        return config.grid_x_lines;
    };
    c3_chart_fn.xgrids.add = function (grids) {
        var $$ = this.internal;
        return this.xgrids($$.config.grid_x_lines.concat(grids ? grids : []));
    };
    c3_chart_fn.xgrids.remove = function (params) {
        // TODO: multiple
        var $$ = this.internal;
        $$.removeGridLines(params, true);
    };

    c3_chart_fn.ygrids = function (grids) {
        var $$ = this.internal,
            config = $$.config;
        if (!grids) {
            return config.grid_y_lines;
        }
        config.grid_y_lines = grids;
        $$.redrawWithoutRescale();
        return config.grid_y_lines;
    };
    c3_chart_fn.ygrids.add = function (grids) {
        var $$ = this.internal;
        return this.ygrids($$.config.grid_y_lines.concat(grids ? grids : []));
    };
    c3_chart_fn.ygrids.remove = function (params) {
        // TODO: multiple
        var $$ = this.internal;
        $$.removeGridLines(params, false);
    };

    c3_chart_fn.groups = function (groups) {
        var $$ = this.internal,
            config = $$.config;
        if (isUndefined(groups)) {
            return config.data_groups;
        }
        config.data_groups = groups;
        $$.redraw();
        return config.data_groups;
    };

    c3_chart_fn.legend = function () {};
    c3_chart_fn.legend.show = function (targetIds) {
        var $$ = this.internal;
        $$.showLegend($$.mapToTargetIds(targetIds));
        $$.updateAndRedraw({ withLegend: true });
    };
    c3_chart_fn.legend.hide = function (targetIds) {
        var $$ = this.internal;
        $$.hideLegend($$.mapToTargetIds(targetIds));
        $$.updateAndRedraw({ withLegend: true });
    };

    c3_chart_fn.load = function (args) {
        var $$ = this.internal,
            config = $$.config;
        // update xs if specified
        if (args.xs) {
            $$.addXs(args.xs);
        }
        // update names if exists
        if ('names' in args) {
            c3_chart_fn.data.names.bind(this)(args.names);
        }
        // update classes if exists
        if ('classes' in args) {
            Object.keys(args.classes).forEach(function (id) {
                config.data_classes[id] = args.classes[id];
            });
        }
        // update categories if exists
        if ('categories' in args && $$.isCategorized()) {
            config.axis_x_categories = args.categories;
        }
        // update axes if exists
        if ('axes' in args) {
            Object.keys(args.axes).forEach(function (id) {
                config.data_axes[id] = args.axes[id];
            });
        }
        // update colors if exists
        if ('colors' in args) {
            Object.keys(args.colors).forEach(function (id) {
                config.data_colors[id] = args.colors[id];
            });
        }
        // use cache if exists
        if ('cacheIds' in args && $$.hasCaches(args.cacheIds)) {
            $$.load($$.getCaches(args.cacheIds), args.done);
            return;
        }
        // unload if needed
        if ('unload' in args) {
            // TODO: do not unload if target will load (included in url/rows/columns)
            $$.unload($$.mapToTargetIds(typeof args.unload === 'boolean' && args.unload ? null : args.unload), function () {
                $$.loadFromArgs(args);
            });
        } else {
            $$.loadFromArgs(args);
        }
    };

    c3_chart_fn.unload = function (args) {
        var $$ = this.internal;
        args = args || {};
        if (args instanceof Array) {
            args = { ids: args };
        } else if (typeof args === 'string') {
            args = { ids: [args] };
        }
        $$.unload($$.mapToTargetIds(args.ids), function () {
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
            if (args.done) {
                args.done();
            }
        });
    };

    c3_chart_fn.regions = function (regions) {
        var $$ = this.internal,
            config = $$.config;
        if (!regions) {
            return config.regions;
        }
        config.regions = regions;
        $$.redrawWithoutRescale();
        return config.regions;
    };
    c3_chart_fn.regions.add = function (regions) {
        var $$ = this.internal,
            config = $$.config;
        if (!regions) {
            return config.regions;
        }
        config.regions = config.regions.concat(regions);
        $$.redrawWithoutRescale();
        return config.regions;
    };
    c3_chart_fn.regions.remove = function (options) {
        var $$ = this.internal,
            config = $$.config,
            duration,
            classes,
            regions;

        options = options || {};
        duration = $$.getOption(options, "duration", config.transition_duration);
        classes = $$.getOption(options, "classes", [CLASS.region]);

        regions = $$.main.select('.' + CLASS.regions).selectAll(classes.map(function (c) {
            return '.' + c;
        }));
        (duration ? regions.transition().duration(duration) : regions).style('opacity', 0).remove();

        config.regions = config.regions.filter(function (region) {
            var found = false;
            if (!region['class']) {
                return true;
            }
            region['class'].split(' ').forEach(function (c) {
                if (classes.indexOf(c) >= 0) {
                    found = true;
                }
            });
            return !found;
        });

        return config.regions;
    };

    c3_chart_fn.selected = function (targetId) {
        var $$ = this.internal,
            d3 = $$.d3;
        return d3.merge($$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(targetId)).selectAll('.' + CLASS.shape).filter(function () {
            return d3.select(this).classed(CLASS.SELECTED);
        }).map(function (d) {
            return d.map(function (d) {
                var data = d.__data__;return data.data ? data.data : data;
            });
        }));
    };
    c3_chart_fn.select = function (ids, indices, resetOther) {
        var $$ = this.internal,
            d3 = $$.d3,
            config = $$.config;
        if (!config.data_selection_enabled) {
            return;
        }
        $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {
            var shape = d3.select(this),
                id = d.data ? d.data.id : d.id,
                toggle = $$.getToggle(this, d).bind($$),
                isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
                isTargetIndex = !indices || indices.indexOf(i) >= 0,
                isSelected = shape.classed(CLASS.SELECTED);
            // line/area selection not supported yet
            if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
                return;
            }
            if (isTargetId && isTargetIndex) {
                if (config.data_selection_isselectable(d) && !isSelected) {
                    toggle(true, shape.classed(CLASS.SELECTED, true), d, i);
                }
            } else if (isDefined(resetOther) && resetOther) {
                if (isSelected) {
                    toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                }
            }
        });
    };
    c3_chart_fn.unselect = function (ids, indices) {
        var $$ = this.internal,
            d3 = $$.d3,
            config = $$.config;
        if (!config.data_selection_enabled) {
            return;
        }
        $$.main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).each(function (d, i) {
            var shape = d3.select(this),
                id = d.data ? d.data.id : d.id,
                toggle = $$.getToggle(this, d).bind($$),
                isTargetId = config.data_selection_grouped || !ids || ids.indexOf(id) >= 0,
                isTargetIndex = !indices || indices.indexOf(i) >= 0,
                isSelected = shape.classed(CLASS.SELECTED);
            // line/area selection not supported yet
            if (shape.classed(CLASS.line) || shape.classed(CLASS.area)) {
                return;
            }
            if (isTargetId && isTargetIndex) {
                if (config.data_selection_isselectable(d)) {
                    if (isSelected) {
                        toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                    }
                }
            }
        });
    };

    c3_chart_fn.show = function (targetIds, options) {
        var $$ = this.internal,
            targets;

        targetIds = $$.mapToTargetIds(targetIds);
        options = options || {};

        $$.removeHiddenTargetIds(targetIds);
        targets = $$.svg.selectAll($$.selectorTargets(targetIds));

        targets.transition().style('opacity', 1, 'important').call($$.endall, function () {
            targets.style('opacity', null).style('opacity', 1);
        });

        if (options.withLegend) {
            $$.showLegend(targetIds);
        }

        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
    };

    c3_chart_fn.hide = function (targetIds, options) {
        var $$ = this.internal,
            targets;

        targetIds = $$.mapToTargetIds(targetIds);
        options = options || {};

        $$.addHiddenTargetIds(targetIds);
        targets = $$.svg.selectAll($$.selectorTargets(targetIds));

        targets.transition().style('opacity', 0, 'important').call($$.endall, function () {
            targets.style('opacity', null).style('opacity', 0);
        });

        if (options.withLegend) {
            $$.hideLegend(targetIds);
        }

        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });
    };

    c3_chart_fn.toggle = function (targetIds, options) {
        var that = this,
            $$ = this.internal;
        $$.mapToTargetIds(targetIds).forEach(function (targetId) {
            $$.isTargetToShow(targetId) ? that.hide(targetId, options) : that.show(targetId, options);
        });
    };

    c3_chart_fn.tooltip = function () {};
    c3_chart_fn.tooltip.show = function (args) {
        var $$ = this.internal,
            index,
            mouse;

        // determine mouse position on the chart
        if (args.mouse) {
            mouse = args.mouse;
        }

        // determine focus data
        if (args.data) {
            if ($$.isMultipleX()) {
                // if multiple xs, target point will be determined by mouse
                mouse = [$$.x(args.data.x), $$.getYScale(args.data.id)(args.data.value)];
                index = null;
            } else {
                // TODO: when tooltip_grouped = false
                index = isValue(args.data.index) ? args.data.index : $$.getIndexByX(args.data.x);
            }
        } else if (typeof args.x !== 'undefined') {
            index = $$.getIndexByX(args.x);
        } else if (typeof args.index !== 'undefined') {
            index = args.index;
        }

        // emulate mouse events to show
        $$.dispatchEvent('mouseover', index, mouse);
        $$.dispatchEvent('mousemove', index, mouse);

        $$.config.tooltip_onshow.call($$, args.data);
    };
    c3_chart_fn.tooltip.hide = function () {
        // TODO: get target data by checking the state of focus
        this.internal.dispatchEvent('mouseout', 0);

        this.internal.config.tooltip_onhide.call(this);
    };

    c3_chart_fn.transform = function (type, targetIds) {
        var $$ = this.internal,
            options = ['pie', 'donut'].indexOf(type) >= 0 ? { withTransform: true } : null;
        $$.transformTo(targetIds, type, options);
    };

    c3_chart_internal_fn.transformTo = function (targetIds, type, optionsForRedraw) {
        var $$ = this,
            withTransitionForAxis = !$$.hasArcType(),
            options = optionsForRedraw || { withTransitionForAxis: withTransitionForAxis };
        options.withTransitionForTransform = false;
        $$.transiting = false;
        $$.setTargetType(targetIds, type);
        $$.updateTargets($$.data.targets); // this is needed when transforming to arc
        $$.updateAndRedraw(options);
    };

    c3_chart_fn.x = function (x) {
        var $$ = this.internal;
        if (arguments.length) {
            $$.updateTargetX($$.data.targets, x);
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        }
        return $$.data.xs;
    };
    c3_chart_fn.xs = function (xs) {
        var $$ = this.internal;
        if (arguments.length) {
            $$.updateTargetXs($$.data.targets, xs);
            $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true });
        }
        return $$.data.xs;
    };

    c3_chart_fn.zoom = function (domain) {
        var $$ = this.internal;
        if (domain) {
            if ($$.isTimeSeries()) {
                domain = domain.map(function (x) {
                    return $$.parseDate(x);
                });
            }
            $$.brush.extent(domain);
            $$.redraw({ withUpdateXDomain: true, withY: $$.config.zoom_rescale });
            $$.config.zoom_onzoom.call(this, $$.x.orgDomain());
        }
        return $$.brush.extent();
    };
    c3_chart_fn.zoom.enable = function (enabled) {
        var $$ = this.internal;
        $$.config.zoom_enabled = enabled;
        $$.updateAndRedraw();
    };
    c3_chart_fn.unzoom = function () {
        var $$ = this.internal;
        $$.brush.clear().update();
        $$.redraw({ withUpdateXDomain: true });
    };

    c3_chart_fn.zoom.max = function (max) {
        var $$ = this.internal,
            config = $$.config,
            d3 = $$.d3;
        if (max === 0 || max) {
            config.zoom_x_max = d3.max([$$.orgXDomain[1], max]);
        } else {
            return config.zoom_x_max;
        }
    };

    c3_chart_fn.zoom.min = function (min) {
        var $$ = this.internal,
            config = $$.config,
            d3 = $$.d3;
        if (min === 0 || min) {
            config.zoom_x_min = d3.min([$$.orgXDomain[0], min]);
        } else {
            return config.zoom_x_min;
        }
    };

    c3_chart_fn.zoom.range = function (range) {
        if (arguments.length) {
            if (isDefined(range.max)) {
                this.domain.max(range.max);
            }
            if (isDefined(range.min)) {
                this.domain.min(range.min);
            }
        } else {
            return {
                max: this.domain.max(),
                min: this.domain.min()
            };
        }
    };

    c3_chart_internal_fn.initPie = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.pie = d3.layout.pie().value(function (d) {
            return d.values.reduce(function (a, b) {
                return a + b.value;
            }, 0);
        });
        $$.pie.sort($$.getOrderFunction() || null);
    };

    c3_chart_internal_fn.updateRadius = function () {
        var $$ = this,
            config = $$.config,
            w = config.gauge_width || config.donut_width,
            gaugeArcWidth = $$.filterTargetsToShow($$.data.targets).length * $$.config.gauge_arcs_minWidth;
        $$.radiusExpanded = Math.min($$.arcWidth, $$.arcHeight) / 2 * ($$.hasType('gauge') ? 0.85 : 1);
        $$.radius = $$.radiusExpanded * 0.95;
        $$.innerRadiusRatio = w ? ($$.radius - w) / $$.radius : 0.6;
        $$.innerRadius = $$.hasType('donut') || $$.hasType('gauge') ? $$.radius * $$.innerRadiusRatio : 0;
        $$.gaugeArcWidth = w ? w : gaugeArcWidth <= $$.radius - $$.innerRadius ? $$.radius - $$.innerRadius : gaugeArcWidth <= $$.radius ? gaugeArcWidth : $$.radius;
    };

    c3_chart_internal_fn.updateArc = function () {
        var $$ = this;
        $$.svgArc = $$.getSvgArc();
        $$.svgArcExpanded = $$.getSvgArcExpanded();
        $$.svgArcExpandedSub = $$.getSvgArcExpanded(0.98);
    };

    c3_chart_internal_fn.updateAngle = function (d) {
        var $$ = this,
            config = $$.config,
            found = false,
            index = 0,
            gMin,
            gMax,
            gTic,
            gValue;

        if (!config) {
            return null;
        }

        $$.pie($$.filterTargetsToShow($$.data.targets)).forEach(function (t) {
            if (!found && t.data.id === d.data.id) {
                found = true;
                d = t;
                d.index = index;
            }
            index++;
        });
        if (isNaN(d.startAngle)) {
            d.startAngle = 0;
        }
        if (isNaN(d.endAngle)) {
            d.endAngle = d.startAngle;
        }
        if ($$.isGaugeType(d.data)) {
            gMin = config.gauge_min;
            gMax = config.gauge_max;
            gTic = Math.PI * (config.gauge_fullCircle ? 2 : 1) / (gMax - gMin);
            gValue = d.value < gMin ? 0 : d.value < gMax ? d.value - gMin : gMax - gMin;
            d.startAngle = config.gauge_startingAngle;
            d.endAngle = d.startAngle + gTic * gValue;
        }
        return found ? d : null;
    };

    c3_chart_internal_fn.getSvgArc = function () {
        var $$ = this,
            hasGaugeType = $$.hasType('gauge'),
            singleArcWidth = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length,
            arc = $$.d3.svg.arc().outerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * d.index : $$.radius;
        }).innerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * (d.index + 1) : $$.innerRadius;
        }),
            newArc = function newArc(d, withoutUpdate) {
            var updated;
            if (withoutUpdate) {
                return arc(d);
            } // for interpolate
            updated = $$.updateAngle(d);
            return updated ? arc(updated) : "M 0 0";
        };
        // TODO: extends all function
        newArc.centroid = arc.centroid;
        return newArc;
    };

    c3_chart_internal_fn.getSvgArcExpanded = function (rate) {
        rate = rate || 1;
        var $$ = this,
            hasGaugeType = $$.hasType('gauge'),
            singleArcWidth = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length,
            expandWidth = Math.min($$.radiusExpanded * rate - $$.radius, singleArcWidth * 0.8 - (1 - rate) * 100),
            arc = $$.d3.svg.arc().outerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * d.index + expandWidth : $$.radiusExpanded * rate;
        }).innerRadius(function (d) {
            return hasGaugeType ? $$.radius - singleArcWidth * (d.index + 1) : $$.innerRadius;
        });
        return function (d) {
            var updated = $$.updateAngle(d);
            return updated ? arc(updated) : "M 0 0";
        };
    };

    c3_chart_internal_fn.getArc = function (d, withoutUpdate, force) {
        return force || this.isArcType(d.data) ? this.svgArc(d, withoutUpdate) : "M 0 0";
    };

    c3_chart_internal_fn.transformForArcLabel = function (d) {
        var $$ = this,
            config = $$.config,
            updated = $$.updateAngle(d),
            c,
            x,
            y,
            h,
            ratio,
            translate = "",
            hasGauge = $$.hasType('gauge');
        if (updated && !hasGauge) {
            c = this.svgArc.centroid(updated);
            x = isNaN(c[0]) ? 0 : c[0];
            y = isNaN(c[1]) ? 0 : c[1];
            h = Math.sqrt(x * x + y * y);
            if ($$.hasType('donut') && config.donut_label_ratio) {
                ratio = isFunction(config.donut_label_ratio) ? config.donut_label_ratio(d, $$.radius, h) : config.donut_label_ratio;
            } else if ($$.hasType('pie') && config.pie_label_ratio) {
                ratio = isFunction(config.pie_label_ratio) ? config.pie_label_ratio(d, $$.radius, h) : config.pie_label_ratio;
            } else {
                ratio = $$.radius && h ? (36 / $$.radius > 0.375 ? 1.175 - 36 / $$.radius : 0.8) * $$.radius / h : 0;
            }
            translate = "translate(" + x * ratio + ',' + y * ratio + ")";
        } else if (updated && hasGauge && $$.filterTargetsToShow($$.data.targets).length > 1) {
            var y1 = Math.sin(updated.endAngle - Math.PI / 2);
            x = Math.cos(updated.endAngle - Math.PI / 2) * ($$.radiusExpanded + 25);
            y = y1 * ($$.radiusExpanded + 15 - Math.abs(y1 * 10)) + 3;
            translate = "translate(" + x + ',' + y + ")";
        }
        return translate;
    };

    c3_chart_internal_fn.getArcRatio = function (d) {
        var $$ = this,
            config = $$.config,
            whole = Math.PI * ($$.hasType('gauge') && !config.gauge_fullCircle ? 1 : 2);
        return d ? (d.endAngle - d.startAngle) / whole : null;
    };

    c3_chart_internal_fn.convertToArcData = function (d) {
        return this.addName({
            id: d.data.id,
            value: d.value,
            ratio: this.getArcRatio(d),
            index: d.index
        });
    };

    c3_chart_internal_fn.textForArcLabel = function (d) {
        var $$ = this,
            updated,
            value,
            ratio,
            id,
            format;
        if (!$$.shouldShowArcLabel()) {
            return "";
        }
        updated = $$.updateAngle(d);
        value = updated ? updated.value : null;
        ratio = $$.getArcRatio(updated);
        id = d.data.id;
        if (!$$.hasType('gauge') && !$$.meetsArcLabelThreshold(ratio)) {
            return "";
        }
        format = $$.getArcLabelFormat();
        return format ? format(value, ratio, id) : $$.defaultArcValueFormat(value, ratio);
    };

    c3_chart_internal_fn.textForGaugeMinMax = function (value, isMax) {
        var $$ = this,
            format = $$.getGaugeLabelExtents();

        return format ? format(value, isMax) : value;
    };

    c3_chart_internal_fn.expandArc = function (targetIds) {
        var $$ = this,
            interval;

        // MEMO: avoid to cancel transition
        if ($$.transiting) {
            interval = window.setInterval(function () {
                if (!$$.transiting) {
                    window.clearInterval(interval);
                    if ($$.legend.selectAll('.c3-legend-item-focused').size() > 0) {
                        $$.expandArc(targetIds);
                    }
                }
            }, 10);
            return;
        }

        targetIds = $$.mapToTargetIds(targetIds);

        $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).each(function (d) {
            if (!$$.shouldExpand(d.data.id)) {
                return;
            }
            $$.d3.select(this).selectAll('path').transition().duration($$.expandDuration(d.data.id)).attr("d", $$.svgArcExpanded).transition().duration($$.expandDuration(d.data.id) * 2).attr("d", $$.svgArcExpandedSub).each(function (d) {
                if ($$.isDonutType(d.data)) ;
            });
        });
    };

    c3_chart_internal_fn.unexpandArc = function (targetIds) {
        var $$ = this;

        if ($$.transiting) {
            return;
        }

        targetIds = $$.mapToTargetIds(targetIds);

        $$.svg.selectAll($$.selectorTargets(targetIds, '.' + CLASS.chartArc)).selectAll('path').transition().duration(function (d) {
            return $$.expandDuration(d.data.id);
        }).attr("d", $$.svgArc);
        $$.svg.selectAll('.' + CLASS.arc);
    };

    c3_chart_internal_fn.expandDuration = function (id) {
        var $$ = this,
            config = $$.config;

        if ($$.isDonutType(id)) {
            return config.donut_expand_duration;
        } else if ($$.isGaugeType(id)) {
            return config.gauge_expand_duration;
        } else if ($$.isPieType(id)) {
            return config.pie_expand_duration;
        } else {
            return 50;
        }
    };

    c3_chart_internal_fn.shouldExpand = function (id) {
        var $$ = this,
            config = $$.config;
        return $$.isDonutType(id) && config.donut_expand || $$.isGaugeType(id) && config.gauge_expand || $$.isPieType(id) && config.pie_expand;
    };

    c3_chart_internal_fn.shouldShowArcLabel = function () {
        var $$ = this,
            config = $$.config,
            shouldShow = true;
        if ($$.hasType('donut')) {
            shouldShow = config.donut_label_show;
        } else if ($$.hasType('pie')) {
            shouldShow = config.pie_label_show;
        }
        // when gauge, always true
        return shouldShow;
    };

    c3_chart_internal_fn.meetsArcLabelThreshold = function (ratio) {
        var $$ = this,
            config = $$.config,
            threshold = $$.hasType('donut') ? config.donut_label_threshold : config.pie_label_threshold;
        return ratio >= threshold;
    };

    c3_chart_internal_fn.getArcLabelFormat = function () {
        var $$ = this,
            config = $$.config,
            format = config.pie_label_format;
        if ($$.hasType('gauge')) {
            format = config.gauge_label_format;
        } else if ($$.hasType('donut')) {
            format = config.donut_label_format;
        }
        return format;
    };

    c3_chart_internal_fn.getGaugeLabelExtents = function () {
        var $$ = this,
            config = $$.config;
        return config.gauge_label_extents;
    };

    c3_chart_internal_fn.getArcTitle = function () {
        var $$ = this;
        return $$.hasType('donut') ? $$.config.donut_title : "";
    };

    c3_chart_internal_fn.updateTargetsForArc = function (targets) {
        var $$ = this,
            main = $$.main,
            mainPieUpdate,
            mainPieEnter,
            classChartArc = $$.classChartArc.bind($$),
            classArcs = $$.classArcs.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainPieUpdate = main.select('.' + CLASS.chartArcs).selectAll('.' + CLASS.chartArc).data($$.pie(targets)).attr("class", function (d) {
            return classChartArc(d) + classFocus(d.data);
        });
        mainPieEnter = mainPieUpdate.enter().append("g").attr("class", classChartArc);
        mainPieEnter.append('g').attr('class', classArcs);
        mainPieEnter.append("text").attr("dy", $$.hasType('gauge') ? "-.1em" : ".35em").style("opacity", 0).style("text-anchor", "middle").style("pointer-events", "none");
        // MEMO: can not keep same color..., but not bad to update color in redraw
        //mainPieUpdate.exit().remove();
    };

    c3_chart_internal_fn.initArc = function () {
        var $$ = this;
        $$.arcs = $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartArcs).attr("transform", $$.getTranslate('arc'));
        $$.arcs.append('text').attr('class', CLASS.chartArcsTitle).style("text-anchor", "middle").text($$.getArcTitle());
    };

    c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransform) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            main = $$.main,
            mainArc,
            backgroundArc,
            mainArcLabelLine,
            hasGaugeType = $$.hasType('gauge');
        mainArc = main.selectAll('.' + CLASS.arcs).selectAll('.' + CLASS.arc).data($$.arcData.bind($$));
        mainArc.enter().append('path').attr("class", $$.classArc.bind($$)).style("fill", function (d) {
            return $$.color(d.data);
        }).style("cursor", function (d) {
            return config.interaction_enabled && config.data_selection_isselectable(d) ? "pointer" : null;
        }).each(function (d) {
            if ($$.isGaugeType(d.data)) {
                d.startAngle = d.endAngle = config.gauge_startingAngle;
            }
            this._current = d;
        });
        if (hasGaugeType) {
            mainArcLabelLine = main.selectAll('.' + CLASS.arcs).selectAll('.' + CLASS.arcLabelLine).data($$.arcData.bind($$));
            mainArcLabelLine.enter().append('rect').attr("class", function (d) {
                return CLASS.arcLabelLine + ' ' + CLASS.target + ' ' + CLASS.target + '-' + d.data.id;
            });
            if ($$.filterTargetsToShow($$.data.targets).length === 1) {
                mainArcLabelLine.style("display", "none");
            } else {
                mainArcLabelLine.style("fill", function (d) {
                    return config.color_pattern.length > 0 ? $$.levelColor(d.data.values[0].value) : $$.color(d.data);
                }).style("display", config.gauge_labelLine_show ? "" : "none").each(function (d) {
                    var lineLength = 0,
                        lineThickness = 2,
                        x = 0,
                        y = 0,
                        transform = "";
                    if ($$.hiddenTargetIds.indexOf(d.data.id) < 0) {
                        var updated = $$.updateAngle(d),
                            innerLineLength = $$.gaugeArcWidth / $$.filterTargetsToShow($$.data.targets).length * (updated.index + 1),
                            lineAngle = updated.endAngle - Math.PI / 2,
                            arcInnerRadius = $$.radius - innerLineLength,
                            linePositioningAngle = lineAngle - (arcInnerRadius === 0 ? 0 : 1 / arcInnerRadius);
                        lineLength = $$.radiusExpanded - $$.radius + innerLineLength;
                        x = Math.cos(linePositioningAngle) * arcInnerRadius;
                        y = Math.sin(linePositioningAngle) * arcInnerRadius;
                        transform = "rotate(" + lineAngle * 180 / Math.PI + ", " + x + ", " + y + ")";
                    }
                    d3.select(this).attr({ x: x, y: y, width: lineLength, height: lineThickness, transform: transform }).style("stroke-dasharray", "0, " + (lineLength + lineThickness) + ", 0");
                });
            }
        }
        mainArc.attr("transform", function (d) {
            return !$$.isGaugeType(d.data) && withTransform ? "scale(0)" : "";
        }).on('mouseover', config.interaction_enabled ? function (d) {
            var updated, arcData;
            if ($$.transiting) {
                // skip while transiting
                return;
            }
            updated = $$.updateAngle(d);
            if (updated) {
                arcData = $$.convertToArcData(updated);
                // transitions
                $$.expandArc(updated.data.id);
                $$.api.focus(updated.data.id);
                $$.toggleFocusLegend(updated.data.id, true);
                $$.config.data_onmouseover(arcData, this);
            }
        } : null).on('mousemove', config.interaction_enabled ? function (d) {
            var updated = $$.updateAngle(d),
                arcData,
                selectedData;
            if (updated) {
                arcData = $$.convertToArcData(updated), selectedData = [arcData];
                $$.showTooltip(selectedData, this);
            }
        } : null).on('mouseout', config.interaction_enabled ? function (d) {
            var updated, arcData;
            if ($$.transiting) {
                // skip while transiting
                return;
            }
            updated = $$.updateAngle(d);
            if (updated) {
                arcData = $$.convertToArcData(updated);
                // transitions
                $$.unexpandArc(updated.data.id);
                $$.api.revert();
                $$.revertLegend();
                $$.hideTooltip();
                $$.config.data_onmouseout(arcData, this);
            }
        } : null).on('click', config.interaction_enabled ? function (d, i) {
            var updated = $$.updateAngle(d),
                arcData;
            if (updated) {
                arcData = $$.convertToArcData(updated);
                if ($$.toggleShape) {
                    $$.toggleShape(this, arcData, i);
                }
                $$.config.data_onclick.call($$.api, arcData, this);
            }
        } : null).each(function () {
            $$.transiting = true;
        }).transition().duration(duration).attrTween("d", function (d) {
            var updated = $$.updateAngle(d),
                interpolate;
            if (!updated) {
                return function () {
                    return "M 0 0";
                };
            }
            //                if (this._current === d) {
            //                    this._current = {
            //                        startAngle: Math.PI*2,
            //                        endAngle: Math.PI*2,
            //                    };
            //                }
            if (isNaN(this._current.startAngle)) {
                this._current.startAngle = 0;
            }
            if (isNaN(this._current.endAngle)) {
                this._current.endAngle = this._current.startAngle;
            }
            interpolate = d3.interpolate(this._current, updated);
            this._current = interpolate(0);
            return function (t) {
                var interpolated = interpolate(t);
                interpolated.data = d.data; // data.id will be updated by interporator
                return $$.getArc(interpolated, true);
            };
        }).attr("transform", withTransform ? "scale(1)" : "").style("fill", function (d) {
            return $$.levelColor ? $$.levelColor(d.data.values[0].value) : $$.color(d.data.id);
        }) // Where gauge reading color would receive customization.
        .call($$.endall, function () {
            $$.transiting = false;
        });
        mainArc.exit().transition().duration(durationForExit).style('opacity', 0).remove();
        main.selectAll('.' + CLASS.chartArc).select('text').style("opacity", 0).attr('class', function (d) {
            return $$.isGaugeType(d.data) ? CLASS.gaugeValue : '';
        }).text($$.textForArcLabel.bind($$)).attr("transform", $$.transformForArcLabel.bind($$)).style('font-size', function (d) {
            return $$.isGaugeType(d.data) && $$.filterTargetsToShow($$.data.targets).length === 1 ? Math.round($$.radius / 5) + 'px' : '';
        }).transition().duration(duration).style("opacity", function (d) {
            return $$.isTargetToShow(d.data.id) && $$.isArcType(d.data) ? 1 : 0;
        });
        main.select('.' + CLASS.chartArcsTitle).style("opacity", $$.hasType('donut') || hasGaugeType ? 1 : 0);

        if (hasGaugeType) {
            var index = 0;
            backgroundArc = $$.arcs.select('g.' + CLASS.chartArcsBackground).selectAll('path.' + CLASS.chartArcsBackground).data($$.data.targets);
            backgroundArc.enter().append("path");
            backgroundArc.attr("class", function (d, i) {
                return CLASS.chartArcsBackground + ' ' + CLASS.chartArcsBackground + '-' + i;
            }).attr("d", function (d1) {
                if ($$.hiddenTargetIds.indexOf(d1.id) >= 0) {
                    return "M 0 0";
                }

                var d = {
                    data: [{ value: config.gauge_max }],
                    startAngle: config.gauge_startingAngle,
                    endAngle: -1 * config.gauge_startingAngle * (config.gauge_fullCircle ? Math.PI : 1),
                    index: index++
                };
                return $$.getArc(d, true, true);
            });
            backgroundArc.exit().remove();

            $$.arcs.select('.' + CLASS.chartArcsGaugeUnit).attr("dy", ".75em").text(config.gauge_label_show ? config.gauge_units : '');
            $$.arcs.select('.' + CLASS.chartArcsGaugeMin).attr("dx", -1 * ($$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2)) + "px").attr("dy", "1.2em").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_min, false) : '');
            $$.arcs.select('.' + CLASS.chartArcsGaugeMax).attr("dx", $$.innerRadius + ($$.radius - $$.innerRadius) / (config.gauge_fullCircle ? 1 : 2) + "px").attr("dy", "1.2em").text(config.gauge_label_show ? $$.textForGaugeMinMax(config.gauge_max, true) : '');
        }
    };
    c3_chart_internal_fn.initGauge = function () {
        var arcs = this.arcs;
        if (this.hasType('gauge')) {
            arcs.append('g').attr("class", CLASS.chartArcsBackground);
            arcs.append("text").attr("class", CLASS.chartArcsGaugeUnit).style("text-anchor", "middle").style("pointer-events", "none");
            arcs.append("text").attr("class", CLASS.chartArcsGaugeMin).style("text-anchor", "middle").style("pointer-events", "none");
            arcs.append("text").attr("class", CLASS.chartArcsGaugeMax).style("text-anchor", "middle").style("pointer-events", "none");
        }
    };
    c3_chart_internal_fn.getGaugeLabelHeight = function () {
        return this.config.gauge_label_show ? 20 : 0;
    };

    c3_chart_internal_fn.hasCaches = function (ids) {
        for (var i = 0; i < ids.length; i++) {
            if (!(ids[i] in this.cache)) {
                return false;
            }
        }
        return true;
    };
    c3_chart_internal_fn.addCache = function (id, target) {
        this.cache[id] = this.cloneTarget(target);
    };
    c3_chart_internal_fn.getCaches = function (ids) {
        var targets = [],
            i;
        for (i = 0; i < ids.length; i++) {
            if (ids[i] in this.cache) {
                targets.push(this.cloneTarget(this.cache[ids[i]]));
            }
        }
        return targets;
    };

    c3_chart_internal_fn.categoryName = function (i) {
        var config = this.config;
        return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i;
    };

    c3_chart_internal_fn.generateClass = function (prefix, targetId) {
        return " " + prefix + " " + prefix + this.getTargetSelectorSuffix(targetId);
    };
    c3_chart_internal_fn.classText = function (d) {
        return this.generateClass(CLASS.text, d.index);
    };
    c3_chart_internal_fn.classTexts = function (d) {
        return this.generateClass(CLASS.texts, d.id);
    };
    c3_chart_internal_fn.classShape = function (d) {
        return this.generateClass(CLASS.shape, d.index);
    };
    c3_chart_internal_fn.classShapes = function (d) {
        return this.generateClass(CLASS.shapes, d.id);
    };
    c3_chart_internal_fn.classLine = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.line, d.id);
    };
    c3_chart_internal_fn.classLines = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.lines, d.id);
    };
    c3_chart_internal_fn.classCircle = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.circle, d.index);
    };
    c3_chart_internal_fn.classCircles = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.circles, d.id);
    };
    c3_chart_internal_fn.classBar = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.bar, d.index);
    };
    c3_chart_internal_fn.classBars = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.bars, d.id);
    };
    c3_chart_internal_fn.classArc = function (d) {
        return this.classShape(d.data) + this.generateClass(CLASS.arc, d.data.id);
    };
    c3_chart_internal_fn.classArcs = function (d) {
        return this.classShapes(d.data) + this.generateClass(CLASS.arcs, d.data.id);
    };
    c3_chart_internal_fn.classArea = function (d) {
        return this.classShape(d) + this.generateClass(CLASS.area, d.id);
    };
    c3_chart_internal_fn.classAreas = function (d) {
        return this.classShapes(d) + this.generateClass(CLASS.areas, d.id);
    };
    c3_chart_internal_fn.classRegion = function (d, i) {
        return this.generateClass(CLASS.region, i) + ' ' + ('class' in d ? d['class'] : '');
    };
    c3_chart_internal_fn.classEvent = function (d) {
        return this.generateClass(CLASS.eventRect, d.index);
    };
    c3_chart_internal_fn.classTarget = function (id) {
        var $$ = this;
        var additionalClassSuffix = $$.config.data_classes[id],
            additionalClass = '';
        if (additionalClassSuffix) {
            additionalClass = ' ' + CLASS.target + '-' + additionalClassSuffix;
        }
        return $$.generateClass(CLASS.target, id) + additionalClass;
    };
    c3_chart_internal_fn.classFocus = function (d) {
        return this.classFocused(d) + this.classDefocused(d);
    };
    c3_chart_internal_fn.classFocused = function (d) {
        return ' ' + (this.focusedTargetIds.indexOf(d.id) >= 0 ? CLASS.focused : '');
    };
    c3_chart_internal_fn.classDefocused = function (d) {
        return ' ' + (this.defocusedTargetIds.indexOf(d.id) >= 0 ? CLASS.defocused : '');
    };
    c3_chart_internal_fn.classChartText = function (d) {
        return CLASS.chartText + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartLine = function (d) {
        return CLASS.chartLine + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartBar = function (d) {
        return CLASS.chartBar + this.classTarget(d.id);
    };
    c3_chart_internal_fn.classChartArc = function (d) {
        return CLASS.chartArc + this.classTarget(d.data.id);
    };
    c3_chart_internal_fn.getTargetSelectorSuffix = function (targetId) {
        return targetId || targetId === 0 ? ('-' + targetId).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g, '-') : '';
    };
    c3_chart_internal_fn.selectorTarget = function (id, prefix) {
        return (prefix || '') + '.' + CLASS.target + this.getTargetSelectorSuffix(id);
    };
    c3_chart_internal_fn.selectorTargets = function (ids, prefix) {
        var $$ = this;
        ids = ids || [];
        return ids.length ? ids.map(function (id) {
            return $$.selectorTarget(id, prefix);
        }) : null;
    };
    c3_chart_internal_fn.selectorLegend = function (id) {
        return '.' + CLASS.legendItem + this.getTargetSelectorSuffix(id);
    };
    c3_chart_internal_fn.selectorLegends = function (ids) {
        var $$ = this;
        return ids && ids.length ? ids.map(function (id) {
            return $$.selectorLegend(id);
        }) : null;
    };

    c3_chart_internal_fn.getClipPath = function (id) {
        var isIE9 = window.navigator.appVersion.toLowerCase().indexOf("msie 9.") >= 0;
        return "url(" + (isIE9 ? "" : document.URL.split('#')[0]) + "#" + id + ")";
    };
    c3_chart_internal_fn.appendClip = function (parent, id) {
        return parent.append("clipPath").attr("id", id).append("rect");
    };
    c3_chart_internal_fn.getAxisClipX = function (forHorizontal) {
        // axis line width + padding for left
        var left = Math.max(30, this.margin.left);
        return forHorizontal ? -(1 + left) : -(left - 1);
    };
    c3_chart_internal_fn.getAxisClipY = function (forHorizontal) {
        return forHorizontal ? -20 : -this.margin.top;
    };
    c3_chart_internal_fn.getXAxisClipX = function () {
        var $$ = this;
        return $$.getAxisClipX(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getXAxisClipY = function () {
        var $$ = this;
        return $$.getAxisClipY(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipX = function () {
        var $$ = this;
        return $$.config.axis_y_inner ? -1 : $$.getAxisClipX($$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipY = function () {
        var $$ = this;
        return $$.getAxisClipY($$.config.axis_rotated);
    };
    c3_chart_internal_fn.getAxisClipWidth = function (forHorizontal) {
        var $$ = this,
            left = Math.max(30, $$.margin.left),
            right = Math.max(30, $$.margin.right);
        // width + axis line width + padding for left/right
        return forHorizontal ? $$.width + 2 + left + right : $$.margin.left + 20;
    };
    c3_chart_internal_fn.getAxisClipHeight = function (forHorizontal) {
        // less than 20 is not enough to show the axis label 'outer' without legend
        return (forHorizontal ? this.margin.bottom : this.margin.top + this.height) + 20;
    };
    c3_chart_internal_fn.getXAxisClipWidth = function () {
        var $$ = this;
        return $$.getAxisClipWidth(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getXAxisClipHeight = function () {
        var $$ = this;
        return $$.getAxisClipHeight(!$$.config.axis_rotated);
    };
    c3_chart_internal_fn.getYAxisClipWidth = function () {
        var $$ = this;
        return $$.getAxisClipWidth($$.config.axis_rotated) + ($$.config.axis_y_inner ? 20 : 0);
    };
    c3_chart_internal_fn.getYAxisClipHeight = function () {
        var $$ = this;
        return $$.getAxisClipHeight($$.config.axis_rotated);
    };

    c3_chart_internal_fn.generateColor = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            colors = config.data_colors,
            pattern = notEmpty(config.color_pattern) ? config.color_pattern : d3.scale.category10().range(),
            callback = config.data_color,
            ids = [];

        return function (d) {
            var id = d.id || d.data && d.data.id || d,
                color;

            // if callback function is provided
            if (colors[id] instanceof Function) {
                color = colors[id](d);
            }
            // if specified, choose that color
            else if (colors[id]) {
                    color = colors[id];
                }
                // if not specified, choose from pattern
                else {
                        if (ids.indexOf(id) < 0) {
                            ids.push(id);
                        }
                        color = pattern[ids.indexOf(id) % pattern.length];
                        colors[id] = color;
                    }
            return callback instanceof Function ? callback(color, d) : color;
        };
    };
    c3_chart_internal_fn.generateLevelColor = function () {
        var $$ = this,
            config = $$.config,
            colors = config.color_pattern,
            threshold = config.color_threshold,
            asValue = threshold.unit === 'value',
            values = threshold.values && threshold.values.length ? threshold.values : [],
            max = threshold.max || 100;
        return notEmpty(config.color_threshold) ? function (value) {
            var i,
                v,
                color = colors[colors.length - 1];
            for (i = 0; i < values.length; i++) {
                v = asValue ? value : value * 100 / max;
                if (v < values[i]) {
                    color = colors[i];
                    break;
                }
            }
            return color;
        } : null;
    };

    c3_chart_internal_fn.getDefaultConfig = function () {
        var config = {
            bindto: '#chart',
            svg_classname: undefined,
            size_width: undefined,
            size_height: undefined,
            padding_left: undefined,
            padding_right: undefined,
            padding_top: undefined,
            padding_bottom: undefined,
            resize_auto: true,
            zoom_enabled: false,
            zoom_extent: undefined,
            zoom_privileged: false,
            zoom_rescale: false,
            zoom_onzoom: function zoom_onzoom() {},
            zoom_onzoomstart: function zoom_onzoomstart() {},
            zoom_onzoomend: function zoom_onzoomend() {},
            zoom_x_min: undefined,
            zoom_x_max: undefined,
            interaction_brighten: true,
            interaction_enabled: true,
            onmouseover: function onmouseover() {},
            onmouseout: function onmouseout() {},
            onresize: function onresize() {},
            onresized: function onresized() {},
            oninit: function oninit() {},
            onrendered: function onrendered() {},
            transition_duration: 350,
            data_x: undefined,
            data_xs: {},
            data_xFormat: '%Y-%m-%d',
            data_xLocaltime: true,
            data_xSort: true,
            data_idConverter: function data_idConverter(id) {
                return id;
            },
            data_names: {},
            data_classes: {},
            data_groups: [],
            data_axes: {},
            data_type: undefined,
            data_types: {},
            data_labels: {},
            data_order: 'desc',
            data_regions: {},
            data_color: undefined,
            data_colors: {},
            data_hide: false,
            data_filter: undefined,
            data_selection_enabled: false,
            data_selection_grouped: false,
            data_selection_isselectable: function data_selection_isselectable() {
                return true;
            },
            data_selection_multiple: true,
            data_selection_draggable: false,
            data_onclick: function data_onclick() {},
            data_onmouseover: function data_onmouseover() {},
            data_onmouseout: function data_onmouseout() {},
            data_onselected: function data_onselected() {},
            data_onunselected: function data_onunselected() {},
            data_url: undefined,
            data_headers: undefined,
            data_json: undefined,
            data_rows: undefined,
            data_columns: undefined,
            data_mimeType: undefined,
            data_keys: undefined,
            // configuration for no plot-able data supplied.
            data_empty_label_text: "",
            // subchart
            subchart_show: false,
            subchart_size_height: 60,
            subchart_axis_x_show: true,
            subchart_onbrush: function subchart_onbrush() {},
            // color
            color_pattern: [],
            color_threshold: {},
            // legend
            legend_show: true,
            legend_hide: false,
            legend_position: 'bottom',
            legend_inset_anchor: 'top-left',
            legend_inset_x: 10,
            legend_inset_y: 0,
            legend_inset_step: undefined,
            legend_item_onclick: undefined,
            legend_item_onmouseover: undefined,
            legend_item_onmouseout: undefined,
            legend_equally: false,
            legend_padding: 0,
            legend_item_tile_width: 10,
            legend_item_tile_height: 10,
            // axis
            axis_rotated: false,
            axis_x_show: true,
            axis_x_type: 'indexed',
            axis_x_localtime: true,
            axis_x_categories: [],
            axis_x_tick_centered: false,
            axis_x_tick_format: undefined,
            axis_x_tick_culling: {},
            axis_x_tick_culling_max: 10,
            axis_x_tick_count: undefined,
            axis_x_tick_fit: true,
            axis_x_tick_values: null,
            axis_x_tick_rotate: 0,
            axis_x_tick_outer: true,
            axis_x_tick_multiline: true,
            axis_x_tick_multilineMax: 0,
            axis_x_tick_width: null,
            axis_x_max: undefined,
            axis_x_min: undefined,
            axis_x_padding: {},
            axis_x_height: undefined,
            axis_x_extent: undefined,
            axis_x_label: {},
            axis_x_inner: undefined,
            axis_y_show: true,
            axis_y_type: undefined,
            axis_y_max: undefined,
            axis_y_min: undefined,
            axis_y_inverted: false,
            axis_y_center: undefined,
            axis_y_inner: undefined,
            axis_y_label: {},
            axis_y_tick_format: undefined,
            axis_y_tick_outer: true,
            axis_y_tick_values: null,
            axis_y_tick_rotate: 0,
            axis_y_tick_count: undefined,
            axis_y_tick_time_value: undefined,
            axis_y_tick_time_interval: undefined,
            axis_y_padding: {},
            axis_y_default: undefined,
            axis_y2_show: false,
            axis_y2_max: undefined,
            axis_y2_min: undefined,
            axis_y2_inverted: false,
            axis_y2_center: undefined,
            axis_y2_inner: undefined,
            axis_y2_label: {},
            axis_y2_tick_format: undefined,
            axis_y2_tick_outer: true,
            axis_y2_tick_values: null,
            axis_y2_tick_count: undefined,
            axis_y2_padding: {},
            axis_y2_default: undefined,
            // grid
            grid_x_show: false,
            grid_x_type: 'tick',
            grid_x_lines: [],
            grid_y_show: false,
            // not used
            // grid_y_type: 'tick',
            grid_y_lines: [],
            grid_y_ticks: 10,
            grid_focus_show: true,
            grid_lines_front: true,
            // point - point of each data
            point_show: true,
            point_r: 2.5,
            point_sensitivity: 10,
            point_focus_expand_enabled: true,
            point_focus_expand_r: undefined,
            point_select_r: undefined,
            // line
            line_connectNull: false,
            line_step_type: 'step',
            // bar
            bar_width: undefined,
            bar_width_ratio: 0.6,
            bar_width_max: undefined,
            bar_zerobased: true,
            bar_space: 0,
            // area
            area_zerobased: true,
            area_above: false,
            // pie
            pie_label_show: true,
            pie_label_format: undefined,
            pie_label_threshold: 0.05,
            pie_label_ratio: undefined,
            pie_expand: {},
            pie_expand_duration: 50,
            // gauge
            gauge_fullCircle: false,
            gauge_label_show: true,
            gauge_labelLine_show: true,
            gauge_label_format: undefined,
            gauge_min: 0,
            gauge_max: 100,
            gauge_startingAngle: -1 * Math.PI / 2,
            gauge_label_extents: undefined,
            gauge_units: undefined,
            gauge_width: undefined,
            gauge_arcs_minWidth: 5,
            gauge_expand: {},
            gauge_expand_duration: 50,
            // donut
            donut_label_show: true,
            donut_label_format: undefined,
            donut_label_threshold: 0.05,
            donut_label_ratio: undefined,
            donut_width: undefined,
            donut_title: "",
            donut_expand: {},
            donut_expand_duration: 50,
            // spline
            spline_interpolation_type: 'cardinal',
            // region - region to change style
            regions: [],
            // tooltip - show when mouseover on each data
            tooltip_show: true,
            tooltip_grouped: true,
            tooltip_order: undefined,
            tooltip_format_title: undefined,
            tooltip_format_name: undefined,
            tooltip_format_value: undefined,
            tooltip_position: undefined,
            tooltip_contents: function tooltip_contents(d, defaultTitleFormat, defaultValueFormat, color) {
                return this.getTooltipContent ? this.getTooltipContent(d, defaultTitleFormat, defaultValueFormat, color) : '';
            },
            tooltip_init_show: false,
            tooltip_init_x: 0,
            tooltip_init_position: { top: '0px', left: '50px' },
            tooltip_onshow: function tooltip_onshow() {},
            tooltip_onhide: function tooltip_onhide() {},
            // title
            title_text: undefined,
            title_padding: {
                top: 0,
                right: 0,
                bottom: 0,
                left: 0
            },
            title_position: 'top-center'
        };

        Object.keys(this.additionalConfig).forEach(function (key) {
            config[key] = this.additionalConfig[key];
        }, this);

        return config;
    };
    c3_chart_internal_fn.additionalConfig = {};

    c3_chart_internal_fn.loadConfig = function (config) {
        var this_config = this.config,
            target,
            keys,
            read;
        function find() {
            var key = keys.shift();
            //        console.log("key =>", key, ", target =>", target);
            if (key && target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && key in target) {
                target = target[key];
                return find();
            } else if (!key) {
                return target;
            } else {
                return undefined;
            }
        }
        Object.keys(this_config).forEach(function (key) {
            target = config;
            keys = key.split('_');
            read = find();
            //        console.log("CONFIG : ", key, read);
            if (isDefined(read)) {
                this_config[key] = read;
            }
        });
    };

    c3_chart_internal_fn.convertUrlToData = function (url, mimeType, headers, keys, done) {
        var $$ = this,
            type = mimeType ? mimeType : 'csv';
        var req = $$.d3.xhr(url);
        if (headers) {
            Object.keys(headers).forEach(function (header) {
                req.header(header, headers[header]);
            });
        }
        req.get(function (error, data) {
            var d;
            var dataResponse = data.response || data.responseText; // Fixes IE9 XHR issue; see #1345
            if (!data) {
                throw new Error(error.responseURL + ' ' + error.status + ' (' + error.statusText + ')');
            }
            if (type === 'json') {
                d = $$.convertJsonToData(JSON.parse(dataResponse), keys);
            } else if (type === 'tsv') {
                d = $$.convertTsvToData(dataResponse);
            } else {
                d = $$.convertCsvToData(dataResponse);
            }
            done.call($$, d);
        });
    };
    c3_chart_internal_fn.convertXsvToData = function (xsv, parser) {
        var rows = parser.parseRows(xsv),
            d;
        if (rows.length === 1) {
            d = [{}];
            rows[0].forEach(function (id) {
                d[0][id] = null;
            });
        } else {
            d = parser.parse(xsv);
        }
        return d;
    };
    c3_chart_internal_fn.convertCsvToData = function (csv) {
        return this.convertXsvToData(csv, this.d3.csv);
    };
    c3_chart_internal_fn.convertTsvToData = function (tsv) {
        return this.convertXsvToData(tsv, this.d3.tsv);
    };
    c3_chart_internal_fn.convertJsonToData = function (json, keys) {
        var $$ = this,
            new_rows = [],
            targetKeys,
            data;
        if (keys) {
            // when keys specified, json would be an array that includes objects
            if (keys.x) {
                targetKeys = keys.value.concat(keys.x);
                $$.config.data_x = keys.x;
            } else {
                targetKeys = keys.value;
            }
            new_rows.push(targetKeys);
            json.forEach(function (o) {
                var new_row = [];
                targetKeys.forEach(function (key) {
                    // convert undefined to null because undefined data will be removed in convertDataToTargets()
                    var v = $$.findValueInJson(o, key);
                    if (isUndefined(v)) {
                        v = null;
                    }
                    new_row.push(v);
                });
                new_rows.push(new_row);
            });
            data = $$.convertRowsToData(new_rows);
        } else {
            Object.keys(json).forEach(function (key) {
                new_rows.push([key].concat(json[key]));
            });
            data = $$.convertColumnsToData(new_rows);
        }
        return data;
    };
    c3_chart_internal_fn.findValueInJson = function (object, path) {
        path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)
        path = path.replace(/^\./, ''); // strip a leading dot
        var pathArray = path.split('.');
        for (var i = 0; i < pathArray.length; ++i) {
            var k = pathArray[i];
            if (k in object) {
                object = object[k];
            } else {
                return;
            }
        }
        return object;
    };

    /**
     * Converts the rows to normalized data.
     * @param {any[][]} rows The row data
     * @return {Object[]}
     */
    c3_chart_internal_fn.convertRowsToData = function (rows) {
        var newRows = [];
        var keys = rows[0];

        for (var i = 1; i < rows.length; i++) {
            var newRow = {};
            for (var j = 0; j < rows[i].length; j++) {
                if (isUndefined(rows[i][j])) {
                    throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
                }
                newRow[keys[j]] = rows[i][j];
            }
            newRows.push(newRow);
        }
        return newRows;
    };

    /**
     * Converts the columns to normalized data.
     * @param {any[][]} columns The column data
     * @return {Object[]}
     */
    c3_chart_internal_fn.convertColumnsToData = function (columns) {
        var newRows = [];

        for (var i = 0; i < columns.length; i++) {
            var key = columns[i][0];
            for (var j = 1; j < columns[i].length; j++) {
                if (isUndefined(newRows[j - 1])) {
                    newRows[j - 1] = {};
                }
                if (isUndefined(columns[i][j])) {
                    throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
                }
                newRows[j - 1][key] = columns[i][j];
            }
        }

        return newRows;
    };

    c3_chart_internal_fn.convertDataToTargets = function (data, appendXs) {
        var $$ = this,
            config = $$.config,
            ids = $$.d3.keys(data[0]).filter($$.isNotX, $$),
            xs = $$.d3.keys(data[0]).filter($$.isX, $$),
            targets;

        // save x for update data by load when custom x and c3.x API
        ids.forEach(function (id) {
            var xKey = $$.getXKey(id);

            if ($$.isCustomX() || $$.isTimeSeries()) {
                // if included in input data
                if (xs.indexOf(xKey) >= 0) {
                    $$.data.xs[id] = (appendXs && $$.data.xs[id] ? $$.data.xs[id] : []).concat(data.map(function (d) {
                        return d[xKey];
                    }).filter(isValue).map(function (rawX, i) {
                        return $$.generateTargetX(rawX, id, i);
                    }));
                }
                // if not included in input data, find from preloaded data of other id's x
                else if (config.data_x) {
                        $$.data.xs[id] = $$.getOtherTargetXs();
                    }
                    // if not included in input data, find from preloaded data
                    else if (notEmpty(config.data_xs)) {
                            $$.data.xs[id] = $$.getXValuesOfXKey(xKey, $$.data.targets);
                        }
                // MEMO: if no x included, use same x of current will be used
            } else {
                $$.data.xs[id] = data.map(function (d, i) {
                    return i;
                });
            }
        });

        // check x is defined
        ids.forEach(function (id) {
            if (!$$.data.xs[id]) {
                throw new Error('x is not defined for id = "' + id + '".');
            }
        });

        // convert to target
        targets = ids.map(function (id, index) {
            var convertedId = config.data_idConverter(id);
            return {
                id: convertedId,
                id_org: id,
                values: data.map(function (d, i) {
                    var xKey = $$.getXKey(id),
                        rawX = d[xKey],
                        value = d[id] !== null && !isNaN(d[id]) ? +d[id] : null,
                        x;
                    // use x as categories if custom x and categorized
                    if ($$.isCustomX() && $$.isCategorized() && !isUndefined(rawX)) {
                        if (index === 0 && i === 0) {
                            config.axis_x_categories = [];
                        }
                        x = config.axis_x_categories.indexOf(rawX);
                        if (x === -1) {
                            x = config.axis_x_categories.length;
                            config.axis_x_categories.push(rawX);
                        }
                    } else {
                        x = $$.generateTargetX(rawX, id, i);
                    }
                    // mark as x = undefined if value is undefined and filter to remove after mapped
                    if (isUndefined(d[id]) || $$.data.xs[id].length <= i) {
                        x = undefined;
                    }
                    return { x: x, value: value, id: convertedId };
                }).filter(function (v) {
                    return isDefined(v.x);
                })
            };
        });

        // finish targets
        targets.forEach(function (t) {
            var i;
            // sort values by its x
            if (config.data_xSort) {
                t.values = t.values.sort(function (v1, v2) {
                    var x1 = v1.x || v1.x === 0 ? v1.x : Infinity,
                        x2 = v2.x || v2.x === 0 ? v2.x : Infinity;
                    return x1 - x2;
                });
            }
            // indexing each value
            i = 0;
            t.values.forEach(function (v) {
                v.index = i++;
            });
            // this needs to be sorted because its index and value.index is identical
            $$.data.xs[t.id].sort(function (v1, v2) {
                return v1 - v2;
            });
        });

        // cache information about values
        $$.hasNegativeValue = $$.hasNegativeValueInTargets(targets);
        $$.hasPositiveValue = $$.hasPositiveValueInTargets(targets);

        // set target types
        if (config.data_type) {
            $$.setTargetType($$.mapToIds(targets).filter(function (id) {
                return !(id in config.data_types);
            }), config.data_type);
        }

        // cache as original id keyed
        targets.forEach(function (d) {
            $$.addCache(d.id_org, d);
        });

        return targets;
    };

    c3_chart_internal_fn.isX = function (key) {
        var $$ = this,
            config = $$.config;
        return config.data_x && key === config.data_x || notEmpty(config.data_xs) && hasValue(config.data_xs, key);
    };
    c3_chart_internal_fn.isNotX = function (key) {
        return !this.isX(key);
    };
    c3_chart_internal_fn.getXKey = function (id) {
        var $$ = this,
            config = $$.config;
        return config.data_x ? config.data_x : notEmpty(config.data_xs) ? config.data_xs[id] : null;
    };
    c3_chart_internal_fn.getXValuesOfXKey = function (key, targets) {
        var $$ = this,
            xValues,
            ids = targets && notEmpty(targets) ? $$.mapToIds(targets) : [];
        ids.forEach(function (id) {
            if ($$.getXKey(id) === key) {
                xValues = $$.data.xs[id];
            }
        });
        return xValues;
    };
    c3_chart_internal_fn.getIndexByX = function (x) {
        var $$ = this,
            data = $$.filterByX($$.data.targets, x);
        return data.length ? data[0].index : null;
    };
    c3_chart_internal_fn.getXValue = function (id, i) {
        var $$ = this;
        return id in $$.data.xs && $$.data.xs[id] && isValue($$.data.xs[id][i]) ? $$.data.xs[id][i] : i;
    };
    c3_chart_internal_fn.getOtherTargetXs = function () {
        var $$ = this,
            idsForX = Object.keys($$.data.xs);
        return idsForX.length ? $$.data.xs[idsForX[0]] : null;
    };
    c3_chart_internal_fn.getOtherTargetX = function (index) {
        var xs = this.getOtherTargetXs();
        return xs && index < xs.length ? xs[index] : null;
    };
    c3_chart_internal_fn.addXs = function (xs) {
        var $$ = this;
        Object.keys(xs).forEach(function (id) {
            $$.config.data_xs[id] = xs[id];
        });
    };
    c3_chart_internal_fn.hasMultipleX = function (xs) {
        return this.d3.set(Object.keys(xs).map(function (id) {
            return xs[id];
        })).size() > 1;
    };
    c3_chart_internal_fn.isMultipleX = function () {
        return notEmpty(this.config.data_xs) || !this.config.data_xSort || this.hasType('scatter');
    };
    c3_chart_internal_fn.addName = function (data) {
        var $$ = this,
            name;
        if (data) {
            name = $$.config.data_names[data.id];
            data.name = name !== undefined ? name : data.id;
        }
        return data;
    };
    c3_chart_internal_fn.getValueOnIndex = function (values, index) {
        var valueOnIndex = values.filter(function (v) {
            return v.index === index;
        });
        return valueOnIndex.length ? valueOnIndex[0] : null;
    };
    c3_chart_internal_fn.updateTargetX = function (targets, x) {
        var $$ = this;
        targets.forEach(function (t) {
            t.values.forEach(function (v, i) {
                v.x = $$.generateTargetX(x[i], t.id, i);
            });
            $$.data.xs[t.id] = x;
        });
    };
    c3_chart_internal_fn.updateTargetXs = function (targets, xs) {
        var $$ = this;
        targets.forEach(function (t) {
            if (xs[t.id]) {
                $$.updateTargetX([t], xs[t.id]);
            }
        });
    };
    c3_chart_internal_fn.generateTargetX = function (rawX, id, index) {
        var $$ = this,
            x;
        if ($$.isTimeSeries()) {
            x = rawX ? $$.parseDate(rawX) : $$.parseDate($$.getXValue(id, index));
        } else if ($$.isCustomX() && !$$.isCategorized()) {
            x = isValue(rawX) ? +rawX : $$.getXValue(id, index);
        } else {
            x = index;
        }
        return x;
    };
    c3_chart_internal_fn.cloneTarget = function (target) {
        return {
            id: target.id,
            id_org: target.id_org,
            values: target.values.map(function (d) {
                return { x: d.x, value: d.value, id: d.id };
            })
        };
    };
    c3_chart_internal_fn.updateXs = function () {
        var $$ = this;
        if ($$.data.targets.length) {
            $$.xs = [];
            $$.data.targets[0].values.forEach(function (v) {
                $$.xs[v.index] = v.x;
            });
        }
    };
    c3_chart_internal_fn.getPrevX = function (i) {
        var x = this.xs[i - 1];
        return typeof x !== 'undefined' ? x : null;
    };
    c3_chart_internal_fn.getNextX = function (i) {
        var x = this.xs[i + 1];
        return typeof x !== 'undefined' ? x : null;
    };
    c3_chart_internal_fn.getMaxDataCount = function () {
        var $$ = this;
        return $$.d3.max($$.data.targets, function (t) {
            return t.values.length;
        });
    };
    c3_chart_internal_fn.getMaxDataCountTarget = function (targets) {
        var length = targets.length,
            max = 0,
            maxTarget;
        if (length > 1) {
            targets.forEach(function (t) {
                if (t.values.length > max) {
                    maxTarget = t;
                    max = t.values.length;
                }
            });
        } else {
            maxTarget = length ? targets[0] : null;
        }
        return maxTarget;
    };
    c3_chart_internal_fn.getEdgeX = function (targets) {
        var $$ = this;
        return !targets.length ? [0, 0] : [$$.d3.min(targets, function (t) {
            return t.values[0].x;
        }), $$.d3.max(targets, function (t) {
            return t.values[t.values.length - 1].x;
        })];
    };
    c3_chart_internal_fn.mapToIds = function (targets) {
        return targets.map(function (d) {
            return d.id;
        });
    };
    c3_chart_internal_fn.mapToTargetIds = function (ids) {
        var $$ = this;
        return ids ? [].concat(ids) : $$.mapToIds($$.data.targets);
    };
    c3_chart_internal_fn.hasTarget = function (targets, id) {
        var ids = this.mapToIds(targets),
            i;
        for (i = 0; i < ids.length; i++) {
            if (ids[i] === id) {
                return true;
            }
        }
        return false;
    };
    c3_chart_internal_fn.isTargetToShow = function (targetId) {
        return this.hiddenTargetIds.indexOf(targetId) < 0;
    };
    c3_chart_internal_fn.isLegendToShow = function (targetId) {
        return this.hiddenLegendIds.indexOf(targetId) < 0;
    };
    c3_chart_internal_fn.filterTargetsToShow = function (targets) {
        var $$ = this;
        return targets.filter(function (t) {
            return $$.isTargetToShow(t.id);
        });
    };
    c3_chart_internal_fn.mapTargetsToUniqueXs = function (targets) {
        var $$ = this;
        var xs = $$.d3.set($$.d3.merge(targets.map(function (t) {
            return t.values.map(function (v) {
                return +v.x;
            });
        }))).values();
        xs = $$.isTimeSeries() ? xs.map(function (x) {
            return new Date(+x);
        }) : xs.map(function (x) {
            return +x;
        });
        return xs.sort(function (a, b) {
            return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
        });
    };
    c3_chart_internal_fn.addHiddenTargetIds = function (targetIds) {
        targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);
        for (var i = 0; i < targetIds.length; i++) {
            if (this.hiddenTargetIds.indexOf(targetIds[i]) < 0) {
                this.hiddenTargetIds = this.hiddenTargetIds.concat(targetIds[i]);
            }
        }
    };
    c3_chart_internal_fn.removeHiddenTargetIds = function (targetIds) {
        this.hiddenTargetIds = this.hiddenTargetIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };
    c3_chart_internal_fn.addHiddenLegendIds = function (targetIds) {
        targetIds = targetIds instanceof Array ? targetIds : new Array(targetIds);
        for (var i = 0; i < targetIds.length; i++) {
            if (this.hiddenLegendIds.indexOf(targetIds[i]) < 0) {
                this.hiddenLegendIds = this.hiddenLegendIds.concat(targetIds[i]);
            }
        }
    };
    c3_chart_internal_fn.removeHiddenLegendIds = function (targetIds) {
        this.hiddenLegendIds = this.hiddenLegendIds.filter(function (id) {
            return targetIds.indexOf(id) < 0;
        });
    };
    c3_chart_internal_fn.getValuesAsIdKeyed = function (targets) {
        var ys = {};
        targets.forEach(function (t) {
            ys[t.id] = [];
            t.values.forEach(function (v) {
                ys[t.id].push(v.value);
            });
        });
        return ys;
    };
    c3_chart_internal_fn.checkValueInTargets = function (targets, checker) {
        var ids = Object.keys(targets),
            i,
            j,
            values;
        for (i = 0; i < ids.length; i++) {
            values = targets[ids[i]].values;
            for (j = 0; j < values.length; j++) {
                if (checker(values[j].value)) {
                    return true;
                }
            }
        }
        return false;
    };
    c3_chart_internal_fn.hasNegativeValueInTargets = function (targets) {
        return this.checkValueInTargets(targets, function (v) {
            return v < 0;
        });
    };
    c3_chart_internal_fn.hasPositiveValueInTargets = function (targets) {
        return this.checkValueInTargets(targets, function (v) {
            return v > 0;
        });
    };
    c3_chart_internal_fn.isOrderDesc = function () {
        var config = this.config;
        return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'desc';
    };
    c3_chart_internal_fn.isOrderAsc = function () {
        var config = this.config;
        return typeof config.data_order === 'string' && config.data_order.toLowerCase() === 'asc';
    };
    c3_chart_internal_fn.getOrderFunction = function () {
        var $$ = this,
            config = $$.config,
            orderAsc = $$.isOrderAsc(),
            orderDesc = $$.isOrderDesc();
        if (orderAsc || orderDesc) {
            return function (t1, t2) {
                var reducer = function reducer(p, c) {
                    return p + Math.abs(c.value);
                };
                var t1Sum = t1.values.reduce(reducer, 0),
                    t2Sum = t2.values.reduce(reducer, 0);
                return orderDesc ? t2Sum - t1Sum : t1Sum - t2Sum;
            };
        } else if (isFunction(config.data_order)) {
            return config.data_order;
        } else if (isArray(config.data_order)) {
            var order = config.data_order;
            return function (t1, t2) {
                return order.indexOf(t1.id) - order.indexOf(t2.id);
            };
        }
    };
    c3_chart_internal_fn.orderTargets = function (targets) {
        var fct = this.getOrderFunction();
        if (fct) {
            targets.sort(fct);
            if (this.isOrderAsc() || this.isOrderDesc()) {
                targets.reverse();
            }
        }
        return targets;
    };
    c3_chart_internal_fn.filterByX = function (targets, x) {
        return this.d3.merge(targets.map(function (t) {
            return t.values;
        })).filter(function (v) {
            return v.x - x === 0;
        });
    };
    c3_chart_internal_fn.filterRemoveNull = function (data) {
        return data.filter(function (d) {
            return isValue(d.value);
        });
    };
    c3_chart_internal_fn.filterByXDomain = function (targets, xDomain) {
        return targets.map(function (t) {
            return {
                id: t.id,
                id_org: t.id_org,
                values: t.values.filter(function (v) {
                    return xDomain[0] <= v.x && v.x <= xDomain[1];
                })
            };
        });
    };
    c3_chart_internal_fn.hasDataLabel = function () {
        var config = this.config;
        if (typeof config.data_labels === 'boolean' && config.data_labels) {
            return true;
        } else if (_typeof(config.data_labels) === 'object' && notEmpty(config.data_labels)) {
            return true;
        }
        return false;
    };
    c3_chart_internal_fn.getDataLabelLength = function (min, max, key) {
        var $$ = this,
            lengths = [0, 0],
            paddingCoef = 1.3;
        $$.selectChart.select('svg').selectAll('.dummy').data([min, max]).enter().append('text').text(function (d) {
            return $$.dataLabelFormat(d.id)(d);
        }).each(function (d, i) {
            lengths[i] = this.getBoundingClientRect()[key] * paddingCoef;
        }).remove();
        return lengths;
    };
    c3_chart_internal_fn.isNoneArc = function (d) {
        return this.hasTarget(this.data.targets, d.id);
    }, c3_chart_internal_fn.isArc = function (d) {
        return 'data' in d && this.hasTarget(this.data.targets, d.data.id);
    };
    c3_chart_internal_fn.findSameXOfValues = function (values, index) {
        var i,
            targetX = values[index].x,
            sames = [];
        for (i = index - 1; i >= 0; i--) {
            if (targetX !== values[i].x) {
                break;
            }
            sames.push(values[i]);
        }
        for (i = index; i < values.length; i++) {
            if (targetX !== values[i].x) {
                break;
            }
            sames.push(values[i]);
        }
        return sames;
    };

    c3_chart_internal_fn.findClosestFromTargets = function (targets, pos) {
        var $$ = this,
            candidates;

        // map to array of closest points of each target
        candidates = targets.map(function (target) {
            return $$.findClosest(target.values, pos);
        });

        // decide closest point and return
        return $$.findClosest(candidates, pos);
    };
    c3_chart_internal_fn.findClosest = function (values, pos) {
        var $$ = this,
            minDist = $$.config.point_sensitivity,
            closest;

        // find mouseovering bar
        values.filter(function (v) {
            return v && $$.isBarType(v.id);
        }).forEach(function (v) {
            var shape = $$.main.select('.' + CLASS.bars + $$.getTargetSelectorSuffix(v.id) + ' .' + CLASS.bar + '-' + v.index).node();
            if (!closest && $$.isWithinBar(shape)) {
                closest = v;
            }
        });

        // find closest point from non-bar
        values.filter(function (v) {
            return v && !$$.isBarType(v.id);
        }).forEach(function (v) {
            var d = $$.dist(v, pos);
            if (d < minDist) {
                minDist = d;
                closest = v;
            }
        });

        return closest;
    };
    c3_chart_internal_fn.dist = function (data, pos) {
        var $$ = this,
            config = $$.config,
            xIndex = config.axis_rotated ? 1 : 0,
            yIndex = config.axis_rotated ? 0 : 1,
            y = $$.circleY(data, data.index),
            x = $$.x(data.x);
        return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2));
    };
    c3_chart_internal_fn.convertValuesToStep = function (values) {
        var converted = [].concat(values),
            i;

        if (!this.isCategorized()) {
            return values;
        }

        for (i = values.length + 1; 0 < i; i--) {
            converted[i] = converted[i - 1];
        }

        converted[0] = {
            x: converted[0].x - 1,
            value: converted[0].value,
            id: converted[0].id
        };
        converted[values.length + 1] = {
            x: converted[values.length].x + 1,
            value: converted[values.length].value,
            id: converted[values.length].id
        };

        return converted;
    };
    c3_chart_internal_fn.updateDataAttributes = function (name, attrs) {
        var $$ = this,
            config = $$.config,
            current = config['data_' + name];
        if (typeof attrs === 'undefined') {
            return current;
        }
        Object.keys(attrs).forEach(function (id) {
            current[id] = attrs[id];
        });
        $$.redraw({ withLegend: true });
        return current;
    };

    c3_chart_internal_fn.load = function (targets, args) {
        var $$ = this;
        if (targets) {
            // filter loading targets if needed
            if (args.filter) {
                targets = targets.filter(args.filter);
            }
            // set type if args.types || args.type specified
            if (args.type || args.types) {
                targets.forEach(function (t) {
                    var type = args.types && args.types[t.id] ? args.types[t.id] : args.type;
                    $$.setTargetType(t.id, type);
                });
            }
            // Update/Add data
            $$.data.targets.forEach(function (d) {
                for (var i = 0; i < targets.length; i++) {
                    if (d.id === targets[i].id) {
                        d.values = targets[i].values;
                        targets.splice(i, 1);
                        break;
                    }
                }
            });
            $$.data.targets = $$.data.targets.concat(targets); // add remained
        }

        // Set targets
        $$.updateTargets($$.data.targets);

        // Redraw with new targets
        $$.redraw({ withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true });

        if (args.done) {
            args.done();
        }
    };
    c3_chart_internal_fn.loadFromArgs = function (args) {
        var $$ = this;
        if (args.data) {
            $$.load($$.convertDataToTargets(args.data), args);
        } else if (args.url) {
            $$.convertUrlToData(args.url, args.mimeType, args.headers, args.keys, function (data) {
                $$.load($$.convertDataToTargets(data), args);
            });
        } else if (args.json) {
            $$.load($$.convertDataToTargets($$.convertJsonToData(args.json, args.keys)), args);
        } else if (args.rows) {
            $$.load($$.convertDataToTargets($$.convertRowsToData(args.rows)), args);
        } else if (args.columns) {
            $$.load($$.convertDataToTargets($$.convertColumnsToData(args.columns)), args);
        } else {
            $$.load(null, args);
        }
    };
    c3_chart_internal_fn.unload = function (targetIds, done) {
        var $$ = this;
        if (!done) {
            done = function done() {};
        }
        // filter existing target
        targetIds = targetIds.filter(function (id) {
            return $$.hasTarget($$.data.targets, id);
        });
        // If no target, call done and return
        if (!targetIds || targetIds.length === 0) {
            done();
            return;
        }
        $$.svg.selectAll(targetIds.map(function (id) {
            return $$.selectorTarget(id);
        })).transition().style('opacity', 0).remove().call($$.endall, done);
        targetIds.forEach(function (id) {
            // Reset fadein for future load
            $$.withoutFadeIn[id] = false;
            // Remove target's elements
            if ($$.legend) {
                $$.legend.selectAll('.' + CLASS.legendItem + $$.getTargetSelectorSuffix(id)).remove();
            }
            // Remove target
            $$.data.targets = $$.data.targets.filter(function (t) {
                return t.id !== id;
            });
        });
    };

    c3_chart_internal_fn.getYDomainMin = function (targets) {
        var $$ = this,
            config = $$.config,
            ids = $$.mapToIds(targets),
            ys = $$.getValuesAsIdKeyed(targets),
            j,
            k,
            baseId,
            idsInGroup,
            id,
            hasNegativeValue;
        if (config.data_groups.length > 0) {
            hasNegativeValue = $$.hasNegativeValueInTargets(targets);
            for (j = 0; j < config.data_groups.length; j++) {
                // Determine baseId
                idsInGroup = config.data_groups[j].filter(function (id) {
                    return ids.indexOf(id) >= 0;
                });
                if (idsInGroup.length === 0) {
                    continue;
                }
                baseId = idsInGroup[0];
                // Consider negative values
                if (hasNegativeValue && ys[baseId]) {
                    ys[baseId].forEach(function (v, i) {
                        ys[baseId][i] = v < 0 ? v : 0;
                    });
                }
                // Compute min
                for (k = 1; k < idsInGroup.length; k++) {
                    id = idsInGroup[k];
                    if (!ys[id]) {
                        continue;
                    }
                    ys[id].forEach(function (v, i) {
                        if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasNegativeValue && +v > 0)) {
                            ys[baseId][i] += +v;
                        }
                    });
                }
            }
        }
        return $$.d3.min(Object.keys(ys).map(function (key) {
            return $$.d3.min(ys[key]);
        }));
    };
    c3_chart_internal_fn.getYDomainMax = function (targets) {
        var $$ = this,
            config = $$.config,
            ids = $$.mapToIds(targets),
            ys = $$.getValuesAsIdKeyed(targets),
            j,
            k,
            baseId,
            idsInGroup,
            id,
            hasPositiveValue;
        if (config.data_groups.length > 0) {
            hasPositiveValue = $$.hasPositiveValueInTargets(targets);
            for (j = 0; j < config.data_groups.length; j++) {
                // Determine baseId
                idsInGroup = config.data_groups[j].filter(function (id) {
                    return ids.indexOf(id) >= 0;
                });
                if (idsInGroup.length === 0) {
                    continue;
                }
                baseId = idsInGroup[0];
                // Consider positive values
                if (hasPositiveValue && ys[baseId]) {
                    ys[baseId].forEach(function (v, i) {
                        ys[baseId][i] = v > 0 ? v : 0;
                    });
                }
                // Compute max
                for (k = 1; k < idsInGroup.length; k++) {
                    id = idsInGroup[k];
                    if (!ys[id]) {
                        continue;
                    }
                    ys[id].forEach(function (v, i) {
                        if ($$.axis.getId(id) === $$.axis.getId(baseId) && ys[baseId] && !(hasPositiveValue && +v < 0)) {
                            ys[baseId][i] += +v;
                        }
                    });
                }
            }
        }
        return $$.d3.max(Object.keys(ys).map(function (key) {
            return $$.d3.max(ys[key]);
        }));
    };
    c3_chart_internal_fn.getYDomain = function (targets, axisId, xDomain) {
        var $$ = this,
            config = $$.config,
            targetsByAxisId = targets.filter(function (t) {
            return $$.axis.getId(t.id) === axisId;
        }),
            yTargets = xDomain ? $$.filterByXDomain(targetsByAxisId, xDomain) : targetsByAxisId,
            yMin = axisId === 'y2' ? config.axis_y2_min : config.axis_y_min,
            yMax = axisId === 'y2' ? config.axis_y2_max : config.axis_y_max,
            yDomainMin = $$.getYDomainMin(yTargets),
            yDomainMax = $$.getYDomainMax(yTargets),
            domain,
            domainLength,
            padding,
            padding_top,
            padding_bottom,
            center = axisId === 'y2' ? config.axis_y2_center : config.axis_y_center,
            yDomainAbs,
            lengths,
            diff,
            ratio,
            isAllPositive,
            isAllNegative,
            isZeroBased = $$.hasType('bar', yTargets) && config.bar_zerobased || $$.hasType('area', yTargets) && config.area_zerobased,
            isInverted = axisId === 'y2' ? config.axis_y2_inverted : config.axis_y_inverted,
            showHorizontalDataLabel = $$.hasDataLabel() && config.axis_rotated,
            showVerticalDataLabel = $$.hasDataLabel() && !config.axis_rotated;

        // MEMO: avoid inverting domain unexpectedly
        yDomainMin = isValue(yMin) ? yMin : isValue(yMax) ? yDomainMin < yMax ? yDomainMin : yMax - 10 : yDomainMin;
        yDomainMax = isValue(yMax) ? yMax : isValue(yMin) ? yMin < yDomainMax ? yDomainMax : yMin + 10 : yDomainMax;

        if (yTargets.length === 0) {
            // use current domain if target of axisId is none
            return axisId === 'y2' ? $$.y2.domain() : $$.y.domain();
        }
        if (isNaN(yDomainMin)) {
            // set minimum to zero when not number
            yDomainMin = 0;
        }
        if (isNaN(yDomainMax)) {
            // set maximum to have same value as yDomainMin
            yDomainMax = yDomainMin;
        }
        if (yDomainMin === yDomainMax) {
            yDomainMin < 0 ? yDomainMax = 0 : yDomainMin = 0;
        }
        isAllPositive = yDomainMin >= 0 && yDomainMax >= 0;
        isAllNegative = yDomainMin <= 0 && yDomainMax <= 0;

        // Cancel zerobased if axis_*_min / axis_*_max specified
        if (isValue(yMin) && isAllPositive || isValue(yMax) && isAllNegative) {
            isZeroBased = false;
        }

        // Bar/Area chart should be 0-based if all positive|negative
        if (isZeroBased) {
            if (isAllPositive) {
                yDomainMin = 0;
            }
            if (isAllNegative) {
                yDomainMax = 0;
            }
        }

        domainLength = Math.abs(yDomainMax - yDomainMin);
        padding = padding_top = padding_bottom = domainLength * 0.1;

        if (typeof center !== 'undefined') {
            yDomainAbs = Math.max(Math.abs(yDomainMin), Math.abs(yDomainMax));
            yDomainMax = center + yDomainAbs;
            yDomainMin = center - yDomainAbs;
        }
        // add padding for data label
        if (showHorizontalDataLabel) {
            lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'width');
            diff = diffDomain($$.y.range());
            ratio = [lengths[0] / diff, lengths[1] / diff];
            padding_top += domainLength * (ratio[1] / (1 - ratio[0] - ratio[1]));
            padding_bottom += domainLength * (ratio[0] / (1 - ratio[0] - ratio[1]));
        } else if (showVerticalDataLabel) {
            lengths = $$.getDataLabelLength(yDomainMin, yDomainMax, 'height');
            padding_top += $$.axis.convertPixelsToAxisPadding(lengths[1], domainLength);
            padding_bottom += $$.axis.convertPixelsToAxisPadding(lengths[0], domainLength);
        }
        if (axisId === 'y' && notEmpty(config.axis_y_padding)) {
            padding_top = $$.axis.getPadding(config.axis_y_padding, 'top', padding_top, domainLength);
            padding_bottom = $$.axis.getPadding(config.axis_y_padding, 'bottom', padding_bottom, domainLength);
        }
        if (axisId === 'y2' && notEmpty(config.axis_y2_padding)) {
            padding_top = $$.axis.getPadding(config.axis_y2_padding, 'top', padding_top, domainLength);
            padding_bottom = $$.axis.getPadding(config.axis_y2_padding, 'bottom', padding_bottom, domainLength);
        }
        // Bar/Area chart should be 0-based if all positive|negative
        if (isZeroBased) {
            if (isAllPositive) {
                padding_bottom = yDomainMin;
            }
            if (isAllNegative) {
                padding_top = -yDomainMax;
            }
        }
        domain = [yDomainMin - padding_bottom, yDomainMax + padding_top];
        return isInverted ? domain.reverse() : domain;
    };
    c3_chart_internal_fn.getXDomainMin = function (targets) {
        var $$ = this,
            config = $$.config;
        return isDefined(config.axis_x_min) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_min) : config.axis_x_min : $$.d3.min(targets, function (t) {
            return $$.d3.min(t.values, function (v) {
                return v.x;
            });
        });
    };
    c3_chart_internal_fn.getXDomainMax = function (targets) {
        var $$ = this,
            config = $$.config;
        return isDefined(config.axis_x_max) ? $$.isTimeSeries() ? this.parseDate(config.axis_x_max) : config.axis_x_max : $$.d3.max(targets, function (t) {
            return $$.d3.max(t.values, function (v) {
                return v.x;
            });
        });
    };
    c3_chart_internal_fn.getXDomainPadding = function (domain) {
        var $$ = this,
            config = $$.config,
            diff = domain[1] - domain[0],
            maxDataCount,
            padding,
            paddingLeft,
            paddingRight;
        if ($$.isCategorized()) {
            padding = 0;
        } else if ($$.hasType('bar')) {
            maxDataCount = $$.getMaxDataCount();
            padding = maxDataCount > 1 ? diff / (maxDataCount - 1) / 2 : 0.5;
        } else {
            padding = diff * 0.01;
        }
        if (_typeof(config.axis_x_padding) === 'object' && notEmpty(config.axis_x_padding)) {
            paddingLeft = isValue(config.axis_x_padding.left) ? config.axis_x_padding.left : padding;
            paddingRight = isValue(config.axis_x_padding.right) ? config.axis_x_padding.right : padding;
        } else if (typeof config.axis_x_padding === 'number') {
            paddingLeft = paddingRight = config.axis_x_padding;
        } else {
            paddingLeft = paddingRight = padding;
        }
        return { left: paddingLeft, right: paddingRight };
    };
    c3_chart_internal_fn.getXDomain = function (targets) {
        var $$ = this,
            xDomain = [$$.getXDomainMin(targets), $$.getXDomainMax(targets)],
            firstX = xDomain[0],
            lastX = xDomain[1],
            padding = $$.getXDomainPadding(xDomain),
            min = 0,
            max = 0;
        // show center of x domain if min and max are the same
        if (firstX - lastX === 0 && !$$.isCategorized()) {
            if ($$.isTimeSeries()) {
                firstX = new Date(firstX.getTime() * 0.5);
                lastX = new Date(lastX.getTime() * 1.5);
            } else {
                firstX = firstX === 0 ? 1 : firstX * 0.5;
                lastX = lastX === 0 ? -1 : lastX * 1.5;
            }
        }
        if (firstX || firstX === 0) {
            min = $$.isTimeSeries() ? new Date(firstX.getTime() - padding.left) : firstX - padding.left;
        }
        if (lastX || lastX === 0) {
            max = $$.isTimeSeries() ? new Date(lastX.getTime() + padding.right) : lastX + padding.right;
        }
        return [min, max];
    };
    c3_chart_internal_fn.updateXDomain = function (targets, withUpdateXDomain, withUpdateOrgXDomain, withTrim, domain) {
        var $$ = this,
            config = $$.config;

        if (withUpdateOrgXDomain) {
            $$.x.domain(domain ? domain : $$.d3.extent($$.getXDomain(targets)));
            $$.orgXDomain = $$.x.domain();
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x).updateScaleExtent();
            }
            $$.subX.domain($$.x.domain());
            if ($$.brush) {
                $$.brush.scale($$.subX);
            }
        }
        if (withUpdateXDomain) {
            $$.x.domain(domain ? domain : !$$.brush || $$.brush.empty() ? $$.orgXDomain : $$.brush.extent());
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x).updateScaleExtent();
            }
        }

        // Trim domain when too big by zoom mousemove event
        if (withTrim) {
            $$.x.domain($$.trimXDomain($$.x.orgDomain()));
        }

        return $$.x.domain();
    };
    c3_chart_internal_fn.trimXDomain = function (domain) {
        var zoomDomain = this.getZoomDomain(),
            min = zoomDomain[0],
            max = zoomDomain[1];
        if (domain[0] <= min) {
            domain[1] = +domain[1] + (min - domain[0]);
            domain[0] = min;
        }
        if (max <= domain[1]) {
            domain[0] = +domain[0] - (domain[1] - max);
            domain[1] = max;
        }
        return domain;
    };

    c3_chart_internal_fn.drag = function (mouse) {
        var $$ = this,
            config = $$.config,
            main = $$.main,
            d3 = $$.d3;
        var sx, sy, mx, my, minX, maxX, minY, maxY;

        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        if (config.zoom_enabled && !$$.zoom.altDomain) {
            return;
        } // skip if zoomable because of conflict drag dehavior
        if (!config.data_selection_multiple) {
            return;
        } // skip when single selection because drag is used for multiple selection

        sx = $$.dragStart[0];
        sy = $$.dragStart[1];
        mx = mouse[0];
        my = mouse[1];
        minX = Math.min(sx, mx);
        maxX = Math.max(sx, mx);
        minY = config.data_selection_grouped ? $$.margin.top : Math.min(sy, my);
        maxY = config.data_selection_grouped ? $$.height : Math.max(sy, my);

        main.select('.' + CLASS.dragarea).attr('x', minX).attr('y', minY).attr('width', maxX - minX).attr('height', maxY - minY);
        // TODO: binary search when multiple xs
        main.selectAll('.' + CLASS.shapes).selectAll('.' + CLASS.shape).filter(function (d) {
            return config.data_selection_isselectable(d);
        }).each(function (d, i) {
            var shape = d3.select(this),
                isSelected = shape.classed(CLASS.SELECTED),
                isIncluded = shape.classed(CLASS.INCLUDED),
                _x,
                _y,
                _w,
                _h,
                toggle,
                isWithin = false,
                box;
            if (shape.classed(CLASS.circle)) {
                _x = shape.attr("cx") * 1;
                _y = shape.attr("cy") * 1;
                toggle = $$.togglePoint;
                isWithin = minX < _x && _x < maxX && minY < _y && _y < maxY;
            } else if (shape.classed(CLASS.bar)) {
                box = getPathBox(this);
                _x = box.x;
                _y = box.y;
                _w = box.width;
                _h = box.height;
                toggle = $$.togglePath;
                isWithin = !(maxX < _x || _x + _w < minX) && !(maxY < _y || _y + _h < minY);
            } else {
                // line/area selection not supported yet
                return;
            }
            if (isWithin ^ isIncluded) {
                shape.classed(CLASS.INCLUDED, !isIncluded);
                // TODO: included/unincluded callback here
                shape.classed(CLASS.SELECTED, !isSelected);
                toggle.call($$, !isSelected, shape, d, i);
            }
        });
    };

    c3_chart_internal_fn.dragstart = function (mouse) {
        var $$ = this,
            config = $$.config;
        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        $$.dragStart = mouse;
        $$.main.select('.' + CLASS.chart).append('rect').attr('class', CLASS.dragarea).style('opacity', 0.1);
        $$.dragging = true;
    };

    c3_chart_internal_fn.dragend = function () {
        var $$ = this,
            config = $$.config;
        if ($$.hasArcType()) {
            return;
        }
        if (!config.data_selection_enabled) {
            return;
        } // do nothing if not selectable
        $$.main.select('.' + CLASS.dragarea).transition().duration(100).style('opacity', 0).remove();
        $$.main.selectAll('.' + CLASS.shape).classed(CLASS.INCLUDED, false);
        $$.dragging = false;
    };

    c3_chart_internal_fn.getYFormat = function (forArc) {
        var $$ = this,
            formatForY = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.yFormat,
            formatForY2 = forArc && !$$.hasType('gauge') ? $$.defaultArcValueFormat : $$.y2Format;
        return function (v, ratio, id) {
            var format = $$.axis.getId(id) === 'y2' ? formatForY2 : formatForY;
            return format.call($$, v, ratio);
        };
    };
    c3_chart_internal_fn.yFormat = function (v) {
        var $$ = this,
            config = $$.config,
            format = config.axis_y_tick_format ? config.axis_y_tick_format : $$.defaultValueFormat;
        return format(v);
    };
    c3_chart_internal_fn.y2Format = function (v) {
        var $$ = this,
            config = $$.config,
            format = config.axis_y2_tick_format ? config.axis_y2_tick_format : $$.defaultValueFormat;
        return format(v);
    };
    c3_chart_internal_fn.defaultValueFormat = function (v) {
        return isValue(v) ? +v : "";
    };
    c3_chart_internal_fn.defaultArcValueFormat = function (v, ratio) {
        return (ratio * 100).toFixed(1) + '%';
    };
    c3_chart_internal_fn.dataLabelFormat = function (targetId) {
        var $$ = this,
            data_labels = $$.config.data_labels,
            format,
            defaultFormat = function defaultFormat(v) {
            return isValue(v) ? +v : "";
        };
        // find format according to axis id
        if (typeof data_labels.format === 'function') {
            format = data_labels.format;
        } else if (_typeof(data_labels.format) === 'object') {
            if (data_labels.format[targetId]) {
                format = data_labels.format[targetId] === true ? defaultFormat : data_labels.format[targetId];
            } else {
                format = function format() {
                    return '';
                };
            }
        } else {
            format = defaultFormat;
        }
        return format;
    };

    c3_chart_internal_fn.initGrid = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;
        $$.grid = $$.main.append('g').attr("clip-path", $$.clipPathForGrid).attr('class', CLASS.grid);
        if (config.grid_x_show) {
            $$.grid.append("g").attr("class", CLASS.xgrids);
        }
        if (config.grid_y_show) {
            $$.grid.append('g').attr('class', CLASS.ygrids);
        }
        if (config.grid_focus_show) {
            $$.grid.append('g').attr("class", CLASS.xgridFocus).append('line').attr('class', CLASS.xgridFocus);
        }
        $$.xgrid = d3.selectAll([]);
        if (!config.grid_lines_front) {
            $$.initGridLines();
        }
    };
    c3_chart_internal_fn.initGridLines = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.gridLines = $$.main.append('g').attr("clip-path", $$.clipPathForGrid).attr('class', CLASS.grid + ' ' + CLASS.gridLines);
        $$.gridLines.append('g').attr("class", CLASS.xgridLines);
        $$.gridLines.append('g').attr('class', CLASS.ygridLines);
        $$.xgridLines = d3.selectAll([]);
    };
    c3_chart_internal_fn.updateXGrid = function (withoutUpdate) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            xgridData = $$.generateGridData(config.grid_x_type, $$.x),
            tickOffset = $$.isCategorized() ? $$.xAxis.tickOffset() : 0;

        $$.xgridAttr = config.axis_rotated ? {
            'x1': 0,
            'x2': $$.width,
            'y1': function y1(d) {
                return $$.x(d) - tickOffset;
            },
            'y2': function y2(d) {
                return $$.x(d) - tickOffset;
            }
        } : {
            'x1': function x1(d) {
                return $$.x(d) + tickOffset;
            },
            'x2': function x2(d) {
                return $$.x(d) + tickOffset;
            },
            'y1': 0,
            'y2': $$.height
        };

        $$.xgrid = $$.main.select('.' + CLASS.xgrids).selectAll('.' + CLASS.xgrid).data(xgridData);
        $$.xgrid.enter().append('line').attr("class", CLASS.xgrid);
        if (!withoutUpdate) {
            $$.xgrid.attr($$.xgridAttr).style("opacity", function () {
                return +d3.select(this).attr(config.axis_rotated ? 'y1' : 'x1') === (config.axis_rotated ? $$.height : 0) ? 0 : 1;
            });
        }
        $$.xgrid.exit().remove();
    };

    c3_chart_internal_fn.updateYGrid = function () {
        var $$ = this,
            config = $$.config,
            gridValues = $$.yAxis.tickValues() || $$.y.ticks(config.grid_y_ticks);
        $$.ygrid = $$.main.select('.' + CLASS.ygrids).selectAll('.' + CLASS.ygrid).data(gridValues);
        $$.ygrid.enter().append('line').attr('class', CLASS.ygrid);
        $$.ygrid.attr("x1", config.axis_rotated ? $$.y : 0).attr("x2", config.axis_rotated ? $$.y : $$.width).attr("y1", config.axis_rotated ? 0 : $$.y).attr("y2", config.axis_rotated ? $$.height : $$.y);
        $$.ygrid.exit().remove();
        $$.smoothLines($$.ygrid, 'grid');
    };

    c3_chart_internal_fn.gridTextAnchor = function (d) {
        return d.position ? d.position : "end";
    };
    c3_chart_internal_fn.gridTextDx = function (d) {
        return d.position === 'start' ? 4 : d.position === 'middle' ? 0 : -4;
    };
    c3_chart_internal_fn.xGridTextX = function (d) {
        return d.position === 'start' ? -this.height : d.position === 'middle' ? -this.height / 2 : 0;
    };
    c3_chart_internal_fn.yGridTextX = function (d) {
        return d.position === 'start' ? 0 : d.position === 'middle' ? this.width / 2 : this.width;
    };
    c3_chart_internal_fn.updateGrid = function (duration) {
        var $$ = this,
            main = $$.main,
            config = $$.config,
            xgridLine,
            ygridLine,
            yv;

        // hide if arc type
        $$.grid.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');

        main.select('line.' + CLASS.xgridFocus).style("visibility", "hidden");
        if (config.grid_x_show) {
            $$.updateXGrid();
        }
        $$.xgridLines = main.select('.' + CLASS.xgridLines).selectAll('.' + CLASS.xgridLine).data(config.grid_x_lines);
        // enter
        xgridLine = $$.xgridLines.enter().append('g').attr("class", function (d) {
            return CLASS.xgridLine + (d['class'] ? ' ' + d['class'] : '');
        });
        xgridLine.append('line').style("opacity", 0);
        xgridLine.append('text').attr("text-anchor", $$.gridTextAnchor).attr("transform", config.axis_rotated ? "" : "rotate(-90)").attr('dx', $$.gridTextDx).attr('dy', -5).style("opacity", 0);
        // udpate
        // done in d3.transition() of the end of this function
        // exit
        $$.xgridLines.exit().transition().duration(duration).style("opacity", 0).remove();

        // Y-Grid
        if (config.grid_y_show) {
            $$.updateYGrid();
        }
        $$.ygridLines = main.select('.' + CLASS.ygridLines).selectAll('.' + CLASS.ygridLine).data(config.grid_y_lines);
        // enter
        ygridLine = $$.ygridLines.enter().append('g').attr("class", function (d) {
            return CLASS.ygridLine + (d['class'] ? ' ' + d['class'] : '');
        });
        ygridLine.append('line').style("opacity", 0);
        ygridLine.append('text').attr("text-anchor", $$.gridTextAnchor).attr("transform", config.axis_rotated ? "rotate(-90)" : "").attr('dx', $$.gridTextDx).attr('dy', -5).style("opacity", 0);
        // update
        yv = $$.yv.bind($$);
        $$.ygridLines.select('line').transition().duration(duration).attr("x1", config.axis_rotated ? yv : 0).attr("x2", config.axis_rotated ? yv : $$.width).attr("y1", config.axis_rotated ? 0 : yv).attr("y2", config.axis_rotated ? $$.height : yv).style("opacity", 1);
        $$.ygridLines.select('text').transition().duration(duration).attr("x", config.axis_rotated ? $$.xGridTextX.bind($$) : $$.yGridTextX.bind($$)).attr("y", yv).text(function (d) {
            return d.text;
        }).style("opacity", 1);
        // exit
        $$.ygridLines.exit().transition().duration(duration).style("opacity", 0).remove();
    };
    c3_chart_internal_fn.redrawGrid = function (withTransition) {
        var $$ = this,
            config = $$.config,
            xv = $$.xv.bind($$),
            lines = $$.xgridLines.select('line'),
            texts = $$.xgridLines.select('text');
        return [(withTransition ? lines.transition() : lines).attr("x1", config.axis_rotated ? 0 : xv).attr("x2", config.axis_rotated ? $$.width : xv).attr("y1", config.axis_rotated ? xv : 0).attr("y2", config.axis_rotated ? xv : $$.height).style("opacity", 1), (withTransition ? texts.transition() : texts).attr("x", config.axis_rotated ? $$.yGridTextX.bind($$) : $$.xGridTextX.bind($$)).attr("y", xv).text(function (d) {
            return d.text;
        }).style("opacity", 1)];
    };
    c3_chart_internal_fn.showXGridFocus = function (selectedData) {
        var $$ = this,
            config = $$.config,
            dataToShow = selectedData.filter(function (d) {
            return d && isValue(d.value);
        }),
            focusEl = $$.main.selectAll('line.' + CLASS.xgridFocus),
            xx = $$.xx.bind($$);
        if (!config.tooltip_show) {
            return;
        }
        // Hide when scatter plot exists
        if ($$.hasType('scatter') || $$.hasArcType()) {
            return;
        }
        focusEl.style("visibility", "visible").data([dataToShow[0]]).attr(config.axis_rotated ? 'y1' : 'x1', xx).attr(config.axis_rotated ? 'y2' : 'x2', xx);
        $$.smoothLines(focusEl, 'grid');
    };
    c3_chart_internal_fn.hideXGridFocus = function () {
        this.main.select('line.' + CLASS.xgridFocus).style("visibility", "hidden");
    };
    c3_chart_internal_fn.updateXgridFocus = function () {
        var $$ = this,
            config = $$.config;
        $$.main.select('line.' + CLASS.xgridFocus).attr("x1", config.axis_rotated ? 0 : -10).attr("x2", config.axis_rotated ? $$.width : -10).attr("y1", config.axis_rotated ? -10 : 0).attr("y2", config.axis_rotated ? -10 : $$.height);
    };
    c3_chart_internal_fn.generateGridData = function (type, scale) {
        var $$ = this,
            gridData = [],
            xDomain,
            firstYear,
            lastYear,
            i,
            tickNum = $$.main.select("." + CLASS.axisX).selectAll('.tick').size();
        if (type === 'year') {
            xDomain = $$.getXDomain();
            firstYear = xDomain[0].getFullYear();
            lastYear = xDomain[1].getFullYear();
            for (i = firstYear; i <= lastYear; i++) {
                gridData.push(new Date(i + '-01-01 00:00:00'));
            }
        } else {
            gridData = scale.ticks(10);
            if (gridData.length > tickNum) {
                // use only int
                gridData = gridData.filter(function (d) {
                    return ("" + d).indexOf('.') < 0;
                });
            }
        }
        return gridData;
    };
    c3_chart_internal_fn.getGridFilterToRemove = function (params) {
        return params ? function (line) {
            var found = false;
            [].concat(params).forEach(function (param) {
                if ('value' in param && line.value === param.value || 'class' in param && line['class'] === param['class']) {
                    found = true;
                }
            });
            return found;
        } : function () {
            return true;
        };
    };
    c3_chart_internal_fn.removeGridLines = function (params, forX) {
        var $$ = this,
            config = $$.config,
            toRemove = $$.getGridFilterToRemove(params),
            toShow = function toShow(line) {
            return !toRemove(line);
        },
            classLines = forX ? CLASS.xgridLines : CLASS.ygridLines,
            classLine = forX ? CLASS.xgridLine : CLASS.ygridLine;
        $$.main.select('.' + classLines).selectAll('.' + classLine).filter(toRemove).transition().duration(config.transition_duration).style('opacity', 0).remove();
        if (forX) {
            config.grid_x_lines = config.grid_x_lines.filter(toShow);
        } else {
            config.grid_y_lines = config.grid_y_lines.filter(toShow);
        }
    };

    c3_chart_internal_fn.initEventRect = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.eventRects).style('fill-opacity', 0);
    };
    c3_chart_internal_fn.redrawEventRect = function () {
        var $$ = this,
            config = $$.config,
            eventRectUpdate,
            maxDataCountTarget,
            isMultipleX = $$.isMultipleX();

        // rects for mouseover
        var eventRects = $$.main.select('.' + CLASS.eventRects).style('cursor', config.zoom_enabled ? config.axis_rotated ? 'ns-resize' : 'ew-resize' : null).classed(CLASS.eventRectsMultiple, isMultipleX).classed(CLASS.eventRectsSingle, !isMultipleX);

        // clear old rects
        eventRects.selectAll('.' + CLASS.eventRect).remove();

        // open as public variable
        $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);

        if (isMultipleX) {
            eventRectUpdate = $$.eventRect.data([0]);
            // enter : only one rect will be added
            $$.generateEventRectsForMultipleXs(eventRectUpdate.enter());
            // update
            $$.updateEventRect(eventRectUpdate);
            // exit : not needed because always only one rect exists
        } else {
            // Set data and update $$.eventRect
            maxDataCountTarget = $$.getMaxDataCountTarget($$.data.targets);
            eventRects.datum(maxDataCountTarget ? maxDataCountTarget.values : []);
            $$.eventRect = eventRects.selectAll('.' + CLASS.eventRect);
            eventRectUpdate = $$.eventRect.data(function (d) {
                return d;
            });
            // enter
            $$.generateEventRectsForSingleX(eventRectUpdate.enter());
            // update
            $$.updateEventRect(eventRectUpdate);
            // exit
            eventRectUpdate.exit().remove();
        }
    };
    c3_chart_internal_fn.updateEventRect = function (eventRectUpdate) {
        var $$ = this,
            config = $$.config,
            x,
            y,
            w,
            h,
            rectW,
            rectX;

        // set update selection if null
        eventRectUpdate = eventRectUpdate || $$.eventRect.data(function (d) {
            return d;
        });

        if ($$.isMultipleX()) {
            // TODO: rotated not supported yet
            x = 0;
            y = 0;
            w = $$.width;
            h = $$.height;
        } else {
            if (($$.isCustomX() || $$.isTimeSeries()) && !$$.isCategorized()) {

                // update index for x that is used by prevX and nextX
                $$.updateXs();

                rectW = function rectW(d) {
                    var prevX = $$.getPrevX(d.index),
                        nextX = $$.getNextX(d.index);

                    // if there this is a single data point make the eventRect full width (or height)
                    if (prevX === null && nextX === null) {
                        return config.axis_rotated ? $$.height : $$.width;
                    }

                    if (prevX === null) {
                        prevX = $$.x.domain()[0];
                    }
                    if (nextX === null) {
                        nextX = $$.x.domain()[1];
                    }

                    return Math.max(0, ($$.x(nextX) - $$.x(prevX)) / 2);
                };
                rectX = function rectX(d) {
                    var prevX = $$.getPrevX(d.index),
                        nextX = $$.getNextX(d.index),
                        thisX = $$.data.xs[d.id][d.index];

                    // if there this is a single data point position the eventRect at 0
                    if (prevX === null && nextX === null) {
                        return 0;
                    }

                    if (prevX === null) {
                        prevX = $$.x.domain()[0];
                    }

                    return ($$.x(thisX) + $$.x(prevX)) / 2;
                };
            } else {
                rectW = $$.getEventRectWidth();
                rectX = function rectX(d) {
                    return $$.x(d.x) - rectW / 2;
                };
            }
            x = config.axis_rotated ? 0 : rectX;
            y = config.axis_rotated ? rectX : 0;
            w = config.axis_rotated ? $$.width : rectW;
            h = config.axis_rotated ? rectW : $$.height;
        }

        eventRectUpdate.attr('class', $$.classEvent.bind($$)).attr("x", x).attr("y", y).attr("width", w).attr("height", h);
    };
    c3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;
        eventRectEnter.append("rect").attr("class", $$.classEvent.bind($$)).style("cursor", config.data_selection_enabled && config.data_selection_grouped ? "pointer" : null).on('mouseover', function (d) {
            var index = d.index;

            if ($$.dragging || $$.flowing) {
                return;
            } // do nothing while dragging/flowing
            if ($$.hasArcType()) {
                return;
            }

            // Expand shapes for selection
            if (config.point_focus_expand_enabled) {
                $$.expandCircles(index, null, true);
            }
            $$.expandBars(index, null, true);

            // Call event handler
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                config.data_onmouseover.call($$.api, d);
            });
        }).on('mouseout', function (d) {
            var index = d.index;
            if (!$$.config) {
                return;
            } // chart is destroyed
            if ($$.hasArcType()) {
                return;
            }
            $$.hideXGridFocus();
            $$.hideTooltip();
            // Undo expanded shapes
            $$.unexpandCircles();
            $$.unexpandBars();
            // Call event handler
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                config.data_onmouseout.call($$.api, d);
            });
        }).on('mousemove', function (d) {
            var selectedData,
                index = d.index,
                eventRect = $$.svg.select('.' + CLASS.eventRect + '-' + index);

            if ($$.dragging || $$.flowing) {
                return;
            } // do nothing while dragging/flowing
            if ($$.hasArcType()) {
                return;
            }

            if ($$.isStepType(d) && $$.config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {
                index -= 1;
            }

            // Show tooltip
            selectedData = $$.filterTargetsToShow($$.data.targets).map(function (t) {
                return $$.addName($$.getValueOnIndex(t.values, index));
            });

            if (config.tooltip_grouped) {
                $$.showTooltip(selectedData, this);
                $$.showXGridFocus(selectedData);
            }

            if (config.tooltip_grouped && (!config.data_selection_enabled || config.data_selection_grouped)) {
                return;
            }

            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function () {
                d3.select(this).classed(CLASS.EXPANDED, true);
                if (config.data_selection_enabled) {
                    eventRect.style('cursor', config.data_selection_grouped ? 'pointer' : null);
                }
                if (!config.tooltip_grouped) {
                    $$.hideXGridFocus();
                    $$.hideTooltip();
                    if (!config.data_selection_grouped) {
                        $$.unexpandCircles(index);
                        $$.unexpandBars(index);
                    }
                }
            }).filter(function (d) {
                return $$.isWithinShape(this, d);
            }).each(function (d) {
                if (config.data_selection_enabled && (config.data_selection_grouped || config.data_selection_isselectable(d))) {
                    eventRect.style('cursor', 'pointer');
                }
                if (!config.tooltip_grouped) {
                    $$.showTooltip([d], this);
                    $$.showXGridFocus([d]);
                    if (config.point_focus_expand_enabled) {
                        $$.expandCircles(index, d.id, true);
                    }
                    $$.expandBars(index, d.id, true);
                }
            });
        }).on('click', function (d) {
            var index = d.index;
            if ($$.hasArcType() || !$$.toggleShape) {
                return;
            }
            if ($$.cancelClick) {
                $$.cancelClick = false;
                return;
            }
            if ($$.isStepType(d) && config.line_step_type === 'step-after' && d3.mouse(this)[0] < $$.x($$.getXValue(d.id, index))) {
                index -= 1;
            }
            $$.main.selectAll('.' + CLASS.shape + '-' + index).each(function (d) {
                if (config.data_selection_grouped || $$.isWithinShape(this, d)) {
                    $$.toggleShape(this, d, index);
                    $$.config.data_onclick.call($$.api, d, this);
                }
            });
        }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {
            $$.drag(d3.mouse(this));
        }).on('dragstart', function () {
            $$.dragstart(d3.mouse(this));
        }).on('dragend', function () {
            $$.dragend();
        }) : function () {});
    };

    c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config;

        function mouseout() {
            $$.svg.select('.' + CLASS.eventRect).style('cursor', null);
            $$.hideXGridFocus();
            $$.hideTooltip();
            $$.unexpandCircles();
            $$.unexpandBars();
        }

        eventRectEnter.append('rect').attr('x', 0).attr('y', 0).attr('width', $$.width).attr('height', $$.height).attr('class', CLASS.eventRect).on('mouseout', function () {
            if (!$$.config) {
                return;
            } // chart is destroyed
            if ($$.hasArcType()) {
                return;
            }
            mouseout();
        }).on('mousemove', function () {
            var targetsToShow = $$.filterTargetsToShow($$.data.targets);
            var mouse, closest, sameXData, selectedData;

            if ($$.dragging) {
                return;
            } // do nothing when dragging
            if ($$.hasArcType(targetsToShow)) {
                return;
            }

            mouse = d3.mouse(this);
            closest = $$.findClosestFromTargets(targetsToShow, mouse);

            if ($$.mouseover && (!closest || closest.id !== $$.mouseover.id)) {
                config.data_onmouseout.call($$.api, $$.mouseover);
                $$.mouseover = undefined;
            }

            if (!closest) {
                mouseout();
                return;
            }

            if ($$.isScatterType(closest) || !config.tooltip_grouped) {
                sameXData = [closest];
            } else {
                sameXData = $$.filterByX(targetsToShow, closest.x);
            }

            // show tooltip when cursor is close to some point
            selectedData = sameXData.map(function (d) {
                return $$.addName(d);
            });
            $$.showTooltip(selectedData, this);

            // expand points
            if (config.point_focus_expand_enabled) {
                $$.expandCircles(closest.index, closest.id, true);
            }
            $$.expandBars(closest.index, closest.id, true);

            // Show xgrid focus line
            $$.showXGridFocus(selectedData);

            // Show cursor as pointer if point is close to mouse position
            if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
                $$.svg.select('.' + CLASS.eventRect).style('cursor', 'pointer');
                if (!$$.mouseover) {
                    config.data_onmouseover.call($$.api, closest);
                    $$.mouseover = closest;
                }
            }
        }).on('click', function () {
            var targetsToShow = $$.filterTargetsToShow($$.data.targets);
            var mouse, closest;
            if ($$.hasArcType(targetsToShow)) {
                return;
            }

            mouse = d3.mouse(this);
            closest = $$.findClosestFromTargets(targetsToShow, mouse);
            if (!closest) {
                return;
            }
            // select if selection enabled
            if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
                $$.main.selectAll('.' + CLASS.shapes + $$.getTargetSelectorSuffix(closest.id)).selectAll('.' + CLASS.shape + '-' + closest.index).each(function () {
                    if (config.data_selection_grouped || $$.isWithinShape(this, closest)) {
                        $$.toggleShape(this, closest, closest.index);
                        $$.config.data_onclick.call($$.api, closest, this);
                    }
                });
            }
        }).call(config.data_selection_draggable && $$.drag ? d3.behavior.drag().origin(Object).on('drag', function () {
            $$.drag(d3.mouse(this));
        }).on('dragstart', function () {
            $$.dragstart(d3.mouse(this));
        }).on('dragend', function () {
            $$.dragend();
        }) : function () {});
    };
    c3_chart_internal_fn.dispatchEvent = function (type, index, mouse) {
        var $$ = this,
            selector = '.' + CLASS.eventRect + (!$$.isMultipleX() ? '-' + index : ''),
            eventRect = $$.main.select(selector).node(),
            box = eventRect.getBoundingClientRect(),
            x = box.left + (mouse ? mouse[0] : 0),
            y = box.top + (mouse ? mouse[1] : 0),
            event = document.createEvent("MouseEvents");

        event.initMouseEvent(type, true, true, window, 0, x, y, x, y, false, false, false, false, 0, null);
        eventRect.dispatchEvent(event);
    };

    c3_chart_internal_fn.initLegend = function () {
        var $$ = this;
        $$.legendItemTextBox = {};
        $$.legendHasRendered = false;
        $$.legend = $$.svg.append("g").attr("transform", $$.getTranslate('legend'));
        if (!$$.config.legend_show) {
            $$.legend.style('visibility', 'hidden');
            $$.hiddenLegendIds = $$.mapToIds($$.data.targets);
            return;
        }
        // MEMO: call here to update legend box and tranlate for all
        // MEMO: translate will be upated by this, so transform not needed in updateLegend()
        $$.updateLegendWithDefaults();
    };
    c3_chart_internal_fn.updateLegendWithDefaults = function () {
        var $$ = this;
        $$.updateLegend($$.mapToIds($$.data.targets), { withTransform: false, withTransitionForTransform: false, withTransition: false });
    };
    c3_chart_internal_fn.updateSizeForLegend = function (legendHeight, legendWidth) {
        var $$ = this,
            config = $$.config,
            insetLegendPosition = {
            top: $$.isLegendTop ? $$.getCurrentPaddingTop() + config.legend_inset_y + 5.5 : $$.currentHeight - legendHeight - $$.getCurrentPaddingBottom() - config.legend_inset_y,
            left: $$.isLegendLeft ? $$.getCurrentPaddingLeft() + config.legend_inset_x + 0.5 : $$.currentWidth - legendWidth - $$.getCurrentPaddingRight() - config.legend_inset_x + 0.5
        };

        $$.margin3 = {
            top: $$.isLegendRight ? 0 : $$.isLegendInset ? insetLegendPosition.top : $$.currentHeight - legendHeight,
            right: NaN,
            bottom: 0,
            left: $$.isLegendRight ? $$.currentWidth - legendWidth : $$.isLegendInset ? insetLegendPosition.left : 0
        };
    };
    c3_chart_internal_fn.transformLegend = function (withTransition) {
        var $$ = this;
        (withTransition ? $$.legend.transition() : $$.legend).attr("transform", $$.getTranslate('legend'));
    };
    c3_chart_internal_fn.updateLegendStep = function (step) {
        this.legendStep = step;
    };
    c3_chart_internal_fn.updateLegendItemWidth = function (w) {
        this.legendItemWidth = w;
    };
    c3_chart_internal_fn.updateLegendItemHeight = function (h) {
        this.legendItemHeight = h;
    };
    c3_chart_internal_fn.getLegendWidth = function () {
        var $$ = this;
        return $$.config.legend_show ? $$.isLegendRight || $$.isLegendInset ? $$.legendItemWidth * ($$.legendStep + 1) : $$.currentWidth : 0;
    };
    c3_chart_internal_fn.getLegendHeight = function () {
        var $$ = this,
            h = 0;
        if ($$.config.legend_show) {
            if ($$.isLegendRight) {
                h = $$.currentHeight;
            } else {
                h = Math.max(20, $$.legendItemHeight) * ($$.legendStep + 1);
            }
        }
        return h;
    };
    c3_chart_internal_fn.opacityForLegend = function (legendItem) {
        return legendItem.classed(CLASS.legendItemHidden) ? null : 1;
    };
    c3_chart_internal_fn.opacityForUnfocusedLegend = function (legendItem) {
        return legendItem.classed(CLASS.legendItemHidden) ? null : 0.3;
    };
    c3_chart_internal_fn.toggleFocusLegend = function (targetIds, focus) {
        var $$ = this;
        targetIds = $$.mapToTargetIds(targetIds);
        $$.legend.selectAll('.' + CLASS.legendItem).filter(function (id) {
            return targetIds.indexOf(id) >= 0;
        }).classed(CLASS.legendItemFocused, focus).transition().duration(100).style('opacity', function () {
            var opacity = focus ? $$.opacityForLegend : $$.opacityForUnfocusedLegend;
            return opacity.call($$, $$.d3.select(this));
        });
    };
    c3_chart_internal_fn.revertLegend = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemFocused, false).transition().duration(100).style('opacity', function () {
            return $$.opacityForLegend(d3.select(this));
        });
    };
    c3_chart_internal_fn.showLegend = function (targetIds) {
        var $$ = this,
            config = $$.config;
        if (!config.legend_show) {
            config.legend_show = true;
            $$.legend.style('visibility', 'visible');
            if (!$$.legendHasRendered) {
                $$.updateLegendWithDefaults();
            }
        }
        $$.removeHiddenLegendIds(targetIds);
        $$.legend.selectAll($$.selectorLegends(targetIds)).style('visibility', 'visible').transition().style('opacity', function () {
            return $$.opacityForLegend($$.d3.select(this));
        });
    };
    c3_chart_internal_fn.hideLegend = function (targetIds) {
        var $$ = this,
            config = $$.config;
        if (config.legend_show && isEmpty(targetIds)) {
            config.legend_show = false;
            $$.legend.style('visibility', 'hidden');
        }
        $$.addHiddenLegendIds(targetIds);
        $$.legend.selectAll($$.selectorLegends(targetIds)).style('opacity', 0).style('visibility', 'hidden');
    };
    c3_chart_internal_fn.clearLegendItemTextBoxCache = function () {
        this.legendItemTextBox = {};
    };
    c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
        var $$ = this,
            config = $$.config;
        var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect, x1ForLegendTile, x2ForLegendTile, yForLegendTile;
        var paddingTop = 4,
            paddingRight = 10,
            maxWidth = 0,
            maxHeight = 0,
            posMin = 10,
            tileWidth = config.legend_item_tile_width + 5;
        var l,
            totalLength = 0,
            offsets = {},
            widths = {},
            heights = {},
            margins = [0],
            steps = {},
            step = 0;
        var withTransition, withTransitionForTransform;
        var texts, rects, tiles, background;

        // Skip elements when their name is set to null
        targetIds = targetIds.filter(function (id) {
            return !isDefined(config.data_names[id]) || config.data_names[id] !== null;
        });

        options = options || {};
        withTransition = getOption(options, "withTransition", true);
        withTransitionForTransform = getOption(options, "withTransitionForTransform", true);

        function getTextBox(textElement, id) {
            if (!$$.legendItemTextBox[id]) {
                $$.legendItemTextBox[id] = $$.getTextRect(textElement.textContent, CLASS.legendItem, textElement);
            }
            return $$.legendItemTextBox[id];
        }

        function updatePositions(textElement, id, index) {
            var reset = index === 0,
                isLast = index === targetIds.length - 1,
                box = getTextBox(textElement, id),
                itemWidth = box.width + tileWidth + (isLast && !($$.isLegendRight || $$.isLegendInset) ? 0 : paddingRight) + config.legend_padding,
                itemHeight = box.height + paddingTop,
                itemLength = $$.isLegendRight || $$.isLegendInset ? itemHeight : itemWidth,
                areaLength = $$.isLegendRight || $$.isLegendInset ? $$.getLegendHeight() : $$.getLegendWidth(),
                margin,
                maxLength;

            // MEMO: care about condifion of step, totalLength
            function updateValues(id, withoutStep) {
                if (!withoutStep) {
                    margin = (areaLength - totalLength - itemLength) / 2;
                    if (margin < posMin) {
                        margin = (areaLength - itemLength) / 2;
                        totalLength = 0;
                        step++;
                    }
                }
                steps[id] = step;
                margins[step] = $$.isLegendInset ? 10 : margin;
                offsets[id] = totalLength;
                totalLength += itemLength;
            }

            if (reset) {
                totalLength = 0;
                step = 0;
                maxWidth = 0;
                maxHeight = 0;
            }

            if (config.legend_show && !$$.isLegendToShow(id)) {
                widths[id] = heights[id] = steps[id] = offsets[id] = 0;
                return;
            }

            widths[id] = itemWidth;
            heights[id] = itemHeight;

            if (!maxWidth || itemWidth >= maxWidth) {
                maxWidth = itemWidth;
            }
            if (!maxHeight || itemHeight >= maxHeight) {
                maxHeight = itemHeight;
            }
            maxLength = $$.isLegendRight || $$.isLegendInset ? maxHeight : maxWidth;

            if (config.legend_equally) {
                Object.keys(widths).forEach(function (id) {
                    widths[id] = maxWidth;
                });
                Object.keys(heights).forEach(function (id) {
                    heights[id] = maxHeight;
                });
                margin = (areaLength - maxLength * targetIds.length) / 2;
                if (margin < posMin) {
                    totalLength = 0;
                    step = 0;
                    targetIds.forEach(function (id) {
                        updateValues(id);
                    });
                } else {
                    updateValues(id, true);
                }
            } else {
                updateValues(id);
            }
        }

        if ($$.isLegendInset) {
            step = config.legend_inset_step ? config.legend_inset_step : targetIds.length;
            $$.updateLegendStep(step);
        }

        if ($$.isLegendRight) {
            xForLegend = function xForLegend(id) {
                return maxWidth * steps[id];
            };
            yForLegend = function yForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
        } else if ($$.isLegendInset) {
            xForLegend = function xForLegend(id) {
                return maxWidth * steps[id] + 10;
            };
            yForLegend = function yForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
        } else {
            xForLegend = function xForLegend(id) {
                return margins[steps[id]] + offsets[id];
            };
            yForLegend = function yForLegend(id) {
                return maxHeight * steps[id];
            };
        }
        xForLegendText = function xForLegendText(id, i) {
            return xForLegend(id, i) + 4 + config.legend_item_tile_width;
        };
        yForLegendText = function yForLegendText(id, i) {
            return yForLegend(id, i) + 9;
        };
        xForLegendRect = function xForLegendRect(id, i) {
            return xForLegend(id, i);
        };
        yForLegendRect = function yForLegendRect(id, i) {
            return yForLegend(id, i) - 5;
        };
        x1ForLegendTile = function x1ForLegendTile(id, i) {
            return xForLegend(id, i) - 2;
        };
        x2ForLegendTile = function x2ForLegendTile(id, i) {
            return xForLegend(id, i) - 2 + config.legend_item_tile_width;
        };
        yForLegendTile = function yForLegendTile(id, i) {
            return yForLegend(id, i) + 4;
        };

        // Define g for legend area
        l = $$.legend.selectAll('.' + CLASS.legendItem).data(targetIds).enter().append('g').attr('class', function (id) {
            return $$.generateClass(CLASS.legendItem, id);
        }).style('visibility', function (id) {
            return $$.isLegendToShow(id) ? 'visible' : 'hidden';
        }).style('cursor', 'pointer').on('click', function (id) {
            if (config.legend_item_onclick) {
                config.legend_item_onclick.call($$, id);
            } else {
                if ($$.d3.event.altKey) {
                    $$.api.hide();
                    $$.api.show(id);
                } else {
                    $$.api.toggle(id);
                    $$.isTargetToShow(id) ? $$.api.focus(id) : $$.api.revert();
                }
            }
        }).on('mouseover', function (id) {
            if (config.legend_item_onmouseover) {
                config.legend_item_onmouseover.call($$, id);
            } else {
                $$.d3.select(this).classed(CLASS.legendItemFocused, true);
                if (!$$.transiting && $$.isTargetToShow(id)) {
                    $$.api.focus(id);
                }
            }
        }).on('mouseout', function (id) {
            if (config.legend_item_onmouseout) {
                config.legend_item_onmouseout.call($$, id);
            } else {
                $$.d3.select(this).classed(CLASS.legendItemFocused, false);
                $$.api.revert();
            }
        });
        l.append('text').text(function (id) {
            return isDefined(config.data_names[id]) ? config.data_names[id] : id;
        }).each(function (id, i) {
            updatePositions(this, id, i);
        }).style("pointer-events", "none").attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendText : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendText);
        l.append('rect').attr("class", CLASS.legendItemEvent).style('fill-opacity', 0).attr('x', $$.isLegendRight || $$.isLegendInset ? xForLegendRect : -200).attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect);
        l.append('line').attr('class', CLASS.legendItemTile).style('stroke', $$.color).style("pointer-events", "none").attr('x1', $$.isLegendRight || $$.isLegendInset ? x1ForLegendTile : -200).attr('y1', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('x2', $$.isLegendRight || $$.isLegendInset ? x2ForLegendTile : -200).attr('y2', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile).attr('stroke-width', config.legend_item_tile_height);

        // Set background for inset legend
        background = $$.legend.select('.' + CLASS.legendBackground + ' rect');
        if ($$.isLegendInset && maxWidth > 0 && background.size() === 0) {
            background = $$.legend.insert('g', '.' + CLASS.legendItem).attr("class", CLASS.legendBackground).append('rect');
        }

        texts = $$.legend.selectAll('text').data(targetIds).text(function (id) {
            return isDefined(config.data_names[id]) ? config.data_names[id] : id;
        }) // MEMO: needed for update
        .each(function (id, i) {
            updatePositions(this, id, i);
        });
        (withTransition ? texts.transition() : texts).attr('x', xForLegendText).attr('y', yForLegendText);

        rects = $$.legend.selectAll('rect.' + CLASS.legendItemEvent).data(targetIds);
        (withTransition ? rects.transition() : rects).attr('width', function (id) {
            return widths[id];
        }).attr('height', function (id) {
            return heights[id];
        }).attr('x', xForLegendRect).attr('y', yForLegendRect);

        tiles = $$.legend.selectAll('line.' + CLASS.legendItemTile).data(targetIds);
        (withTransition ? tiles.transition() : tiles).style('stroke', $$.levelColor ? function (id) {
            return $$.levelColor($$.cache[id].values[0].value);
        } : $$.color).attr('x1', x1ForLegendTile).attr('y1', yForLegendTile).attr('x2', x2ForLegendTile).attr('y2', yForLegendTile);

        if (background) {
            (withTransition ? background.transition() : background).attr('height', $$.getLegendHeight() - 12).attr('width', maxWidth * (step + 1) + 10);
        }

        // toggle legend state
        $$.legend.selectAll('.' + CLASS.legendItem).classed(CLASS.legendItemHidden, function (id) {
            return !$$.isTargetToShow(id);
        });

        // Update all to reflect change of legend
        $$.updateLegendItemWidth(maxWidth);
        $$.updateLegendItemHeight(maxHeight);
        $$.updateLegendStep(step);
        // Update size and scale
        $$.updateSizes();
        $$.updateScales();
        $$.updateSvgSize();
        // Update g positions
        $$.transformAll(withTransitionForTransform, transitions);
        $$.legendHasRendered = true;
    };

    c3_chart_internal_fn.initRegion = function () {
        var $$ = this;
        $$.region = $$.main.append('g').attr("clip-path", $$.clipPath).attr("class", CLASS.regions);
    };
    c3_chart_internal_fn.updateRegion = function (duration) {
        var $$ = this,
            config = $$.config;

        // hide if arc type
        $$.region.style('visibility', $$.hasArcType() ? 'hidden' : 'visible');

        $$.mainRegion = $$.main.select('.' + CLASS.regions).selectAll('.' + CLASS.region).data(config.regions);
        $$.mainRegion.enter().append('g').append('rect').style("fill-opacity", 0);
        $$.mainRegion.attr('class', $$.classRegion.bind($$));
        $$.mainRegion.exit().transition().duration(duration).style("opacity", 0).remove();
    };
    c3_chart_internal_fn.redrawRegion = function (withTransition) {
        var $$ = this,
            regions = $$.mainRegion.selectAll('rect').each(function () {
            // data is binded to g and it's not transferred to rect (child node) automatically,
            // then data of each rect has to be updated manually.
            // TODO: there should be more efficient way to solve this?
            var parentData = $$.d3.select(this.parentNode).datum();
            $$.d3.select(this).datum(parentData);
        }),
            x = $$.regionX.bind($$),
            y = $$.regionY.bind($$),
            w = $$.regionWidth.bind($$),
            h = $$.regionHeight.bind($$);
        return [(withTransition ? regions.transition() : regions).attr("x", x).attr("y", y).attr("width", w).attr("height", h).style("fill-opacity", function (d) {
            return isValue(d.opacity) ? d.opacity : 0.1;
        })];
    };
    c3_chart_internal_fn.regionX = function (d) {
        var $$ = this,
            config = $$.config,
            xPos,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            xPos = config.axis_rotated ? 'start' in d ? yScale(d.start) : 0 : 0;
        } else {
            xPos = config.axis_rotated ? 0 : 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0;
        }
        return xPos;
    };
    c3_chart_internal_fn.regionY = function (d) {
        var $$ = this,
            config = $$.config,
            yPos,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            yPos = config.axis_rotated ? 0 : 'end' in d ? yScale(d.end) : 0;
        } else {
            yPos = config.axis_rotated ? 'start' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.start) : d.start) : 0 : 0;
        }
        return yPos;
    };
    c3_chart_internal_fn.regionWidth = function (d) {
        var $$ = this,
            config = $$.config,
            start = $$.regionX(d),
            end,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            end = config.axis_rotated ? 'end' in d ? yScale(d.end) : $$.width : $$.width;
        } else {
            end = config.axis_rotated ? $$.width : 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.width;
        }
        return end < start ? 0 : end - start;
    };
    c3_chart_internal_fn.regionHeight = function (d) {
        var $$ = this,
            config = $$.config,
            start = this.regionY(d),
            end,
            yScale = d.axis === 'y' ? $$.y : $$.y2;
        if (d.axis === 'y' || d.axis === 'y2') {
            end = config.axis_rotated ? $$.height : 'start' in d ? yScale(d.start) : $$.height;
        } else {
            end = config.axis_rotated ? 'end' in d ? $$.x($$.isTimeSeries() ? $$.parseDate(d.end) : d.end) : $$.height : $$.height;
        }
        return end < start ? 0 : end - start;
    };
    c3_chart_internal_fn.isRegionOnX = function (d) {
        return !d.axis || d.axis === 'x';
    };

    c3_chart_internal_fn.getScale = function (min, max, forTimeseries) {
        return (forTimeseries ? this.d3.time.scale() : this.d3.scale.linear()).range([min, max]);
    };
    c3_chart_internal_fn.getX = function (min, max, domain, offset) {
        var $$ = this,
            scale = $$.getScale(min, max, $$.isTimeSeries()),
            _scale = domain ? scale.domain(domain) : scale,
            key;
        // Define customized scale if categorized axis
        if ($$.isCategorized()) {
            offset = offset || function () {
                return 0;
            };
            scale = function scale(d, raw) {
                var v = _scale(d) + offset(d);
                return raw ? v : Math.ceil(v);
            };
        } else {
            scale = function scale(d, raw) {
                var v = _scale(d);
                return raw ? v : Math.ceil(v);
            };
        }
        // define functions
        for (key in _scale) {
            scale[key] = _scale[key];
        }
        scale.orgDomain = function () {
            return _scale.domain();
        };
        // define custom domain() for categorized axis
        if ($$.isCategorized()) {
            scale.domain = function (domain) {
                if (!arguments.length) {
                    domain = this.orgDomain();
                    return [domain[0], domain[1] + 1];
                }
                _scale.domain(domain);
                return scale;
            };
        }
        return scale;
    };
    c3_chart_internal_fn.getY = function (min, max, domain) {
        var scale = this.getScale(min, max, this.isTimeSeriesY());
        if (domain) {
            scale.domain(domain);
        }
        return scale;
    };
    c3_chart_internal_fn.getYScale = function (id) {
        return this.axis.getId(id) === 'y2' ? this.y2 : this.y;
    };
    c3_chart_internal_fn.getSubYScale = function (id) {
        return this.axis.getId(id) === 'y2' ? this.subY2 : this.subY;
    };
    c3_chart_internal_fn.updateScales = function () {
        var $$ = this,
            config = $$.config,
            forInit = !$$.x;
        // update edges
        $$.xMin = config.axis_rotated ? 1 : 0;
        $$.xMax = config.axis_rotated ? $$.height : $$.width;
        $$.yMin = config.axis_rotated ? 0 : $$.height;
        $$.yMax = config.axis_rotated ? $$.width : 1;
        $$.subXMin = $$.xMin;
        $$.subXMax = $$.xMax;
        $$.subYMin = config.axis_rotated ? 0 : $$.height2;
        $$.subYMax = config.axis_rotated ? $$.width2 : 1;
        // update scales
        $$.x = $$.getX($$.xMin, $$.xMax, forInit ? undefined : $$.x.orgDomain(), function () {
            return $$.xAxis.tickOffset();
        });
        $$.y = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y_default : $$.y.domain());
        $$.y2 = $$.getY($$.yMin, $$.yMax, forInit ? config.axis_y2_default : $$.y2.domain());
        $$.subX = $$.getX($$.xMin, $$.xMax, $$.orgXDomain, function (d) {
            return d % 1 ? 0 : $$.subXAxis.tickOffset();
        });
        $$.subY = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y_default : $$.subY.domain());
        $$.subY2 = $$.getY($$.subYMin, $$.subYMax, forInit ? config.axis_y2_default : $$.subY2.domain());
        // update axes
        $$.xAxisTickFormat = $$.axis.getXAxisTickFormat();
        $$.xAxisTickValues = $$.axis.getXAxisTickValues();
        $$.yAxisTickValues = $$.axis.getYAxisTickValues();
        $$.y2AxisTickValues = $$.axis.getY2AxisTickValues();

        $$.xAxis = $$.axis.getXAxis($$.x, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);
        $$.subXAxis = $$.axis.getXAxis($$.subX, $$.subXOrient, $$.xAxisTickFormat, $$.xAxisTickValues, config.axis_x_tick_outer);
        $$.yAxis = $$.axis.getYAxis($$.y, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues, config.axis_y_tick_outer);
        $$.y2Axis = $$.axis.getYAxis($$.y2, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues, config.axis_y2_tick_outer);

        // Set initialized scales to brush and zoom
        if (!forInit) {
            if ($$.brush) {
                $$.brush.scale($$.subX);
            }
            if (config.zoom_enabled) {
                $$.zoom.scale($$.x);
            }
        }
        // update for arc
        if ($$.updateArc) {
            $$.updateArc();
        }
    };

    c3_chart_internal_fn.selectPoint = function (target, d, i) {
        var $$ = this,
            config = $$.config,
            cx = (config.axis_rotated ? $$.circleY : $$.circleX).bind($$),
            cy = (config.axis_rotated ? $$.circleX : $$.circleY).bind($$),
            r = $$.pointSelectR.bind($$);
        config.data_onselected.call($$.api, d, target.node());
        // add selected-circle on low layer g
        $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).data([d]).enter().append('circle').attr("class", function () {
            return $$.generateClass(CLASS.selectedCircle, i);
        }).attr("cx", cx).attr("cy", cy).attr("stroke", function () {
            return $$.color(d);
        }).attr("r", function (d) {
            return $$.pointSelectR(d) * 1.4;
        }).transition().duration(100).attr("r", r);
    };
    c3_chart_internal_fn.unselectPoint = function (target, d, i) {
        var $$ = this;
        $$.config.data_onunselected.call($$.api, d, target.node());
        // remove selected-circle from low layer g
        $$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i).transition().duration(100).attr('r', 0).remove();
    };
    c3_chart_internal_fn.togglePoint = function (selected, target, d, i) {
        selected ? this.selectPoint(target, d, i) : this.unselectPoint(target, d, i);
    };
    c3_chart_internal_fn.selectPath = function (target, d) {
        var $$ = this;
        $$.config.data_onselected.call($$, d, target.node());
        if ($$.config.interaction_brighten) {
            target.transition().duration(100).style("fill", function () {
                return $$.d3.rgb($$.color(d)).brighter(0.75);
            });
        }
    };
    c3_chart_internal_fn.unselectPath = function (target, d) {
        var $$ = this;
        $$.config.data_onunselected.call($$, d, target.node());
        if ($$.config.interaction_brighten) {
            target.transition().duration(100).style("fill", function () {
                return $$.color(d);
            });
        }
    };
    c3_chart_internal_fn.togglePath = function (selected, target, d, i) {
        selected ? this.selectPath(target, d, i) : this.unselectPath(target, d, i);
    };
    c3_chart_internal_fn.getToggle = function (that, d) {
        var $$ = this,
            toggle;
        if (that.nodeName === 'circle') {
            if ($$.isStepType(d)) {
                // circle is hidden in step chart, so treat as within the click area
                toggle = function toggle() {}; // TODO: how to select step chart?
            } else {
                toggle = $$.togglePoint;
            }
        } else if (that.nodeName === 'path') {
            toggle = $$.togglePath;
        }
        return toggle;
    };
    c3_chart_internal_fn.toggleShape = function (that, d, i) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            shape = d3.select(that),
            isSelected = shape.classed(CLASS.SELECTED),
            toggle = $$.getToggle(that, d).bind($$);

        if (config.data_selection_enabled && config.data_selection_isselectable(d)) {
            if (!config.data_selection_multiple) {
                $$.main.selectAll('.' + CLASS.shapes + (config.data_selection_grouped ? $$.getTargetSelectorSuffix(d.id) : "")).selectAll('.' + CLASS.shape).each(function (d, i) {
                    var shape = d3.select(this);
                    if (shape.classed(CLASS.SELECTED)) {
                        toggle(false, shape.classed(CLASS.SELECTED, false), d, i);
                    }
                });
            }
            shape.classed(CLASS.SELECTED, !isSelected);
            toggle(!isSelected, shape, d, i);
        }
    };

    c3_chart_internal_fn.initBar = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartBars);
    };
    c3_chart_internal_fn.updateTargetsForBar = function (targets) {
        var $$ = this,
            config = $$.config,
            mainBarUpdate,
            mainBarEnter,
            classChartBar = $$.classChartBar.bind($$),
            classBars = $$.classBars.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainBarUpdate = $$.main.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', function (d) {
            return classChartBar(d) + classFocus(d);
        });
        mainBarEnter = mainBarUpdate.enter().append('g').attr('class', classChartBar).style("pointer-events", "none");
        // Bars for each data
        mainBarEnter.append('g').attr("class", classBars).style("cursor", function (d) {
            return config.data_selection_isselectable(d) ? "pointer" : null;
        });
    };
    c3_chart_internal_fn.updateBar = function (durationForExit) {
        var $$ = this,
            barData = $$.barData.bind($$),
            classBar = $$.classBar.bind($$),
            initialOpacity = $$.initialOpacity.bind($$),
            color = function color(d) {
            return $$.color(d.id);
        };
        $$.mainBar = $$.main.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data(barData);
        $$.mainBar.enter().append('path').attr("class", classBar).style("stroke", color).style("fill", color);
        $$.mainBar.style("opacity", initialOpacity);
        $$.mainBar.exit().transition().duration(durationForExit).remove();
    };
    c3_chart_internal_fn.redrawBar = function (drawBar, withTransition) {
        return [(withTransition ? this.mainBar.transition(Math.random().toString()) : this.mainBar).attr('d', drawBar).style("stroke", this.color).style("fill", this.color).style("opacity", 1)];
    };
    c3_chart_internal_fn.getBarW = function (axis, barTargetsNum) {
        var $$ = this,
            config = $$.config,
            w = typeof config.bar_width === 'number' ? config.bar_width : barTargetsNum ? axis.tickInterval() * config.bar_width_ratio / barTargetsNum : 0;
        return config.bar_width_max && w > config.bar_width_max ? config.bar_width_max : w;
    };
    c3_chart_internal_fn.getBars = function (i, id) {
        var $$ = this;
        return (id ? $$.main.selectAll('.' + CLASS.bars + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.bar + (isValue(i) ? '-' + i : ''));
    };
    c3_chart_internal_fn.expandBars = function (i, id, reset) {
        var $$ = this;
        if (reset) {
            $$.unexpandBars();
        }
        $$.getBars(i, id).classed(CLASS.EXPANDED, true);
    };
    c3_chart_internal_fn.unexpandBars = function (i) {
        var $$ = this;
        $$.getBars(i).classed(CLASS.EXPANDED, false);
    };
    c3_chart_internal_fn.generateDrawBar = function (barIndices, isSub) {
        var $$ = this,
            config = $$.config,
            getPoints = $$.generateGetBarPoints(barIndices, isSub);
        return function (d, i) {
            // 4 points that make a bar
            var points = getPoints(d, i);

            // switch points if axis is rotated, not applicable for sub chart
            var indexX = config.axis_rotated ? 1 : 0;
            var indexY = config.axis_rotated ? 0 : 1;

            var path = 'M ' + points[0][indexX] + ',' + points[0][indexY] + ' ' + 'L' + points[1][indexX] + ',' + points[1][indexY] + ' ' + 'L' + points[2][indexX] + ',' + points[2][indexY] + ' ' + 'L' + points[3][indexX] + ',' + points[3][indexY] + ' ' + 'z';

            return path;
        };
    };
    c3_chart_internal_fn.generateGetBarPoints = function (barIndices, isSub) {
        var $$ = this,
            axis = isSub ? $$.subXAxis : $$.xAxis,
            barTargetsNum = barIndices.__max__ + 1,
            barW = $$.getBarW(axis, barTargetsNum),
            barX = $$.getShapeX(barW, barTargetsNum, barIndices, !!isSub),
            barY = $$.getShapeY(!!isSub),
            barOffset = $$.getShapeOffset($$.isBarType, barIndices, !!isSub),
            barSpaceOffset = barW * ($$.config.bar_space / 2),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = barOffset(d, i) || y0,
                // offset is for stacked bar chart
            posX = barX(d),
                posY = barY(d);
            // fix posY not to overflow opposite quadrant
            if ($$.config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 4 points that make a bar
            return [[posX + barSpaceOffset, offset], [posX + barSpaceOffset, posY - (y0 - offset)], [posX + barW - barSpaceOffset, posY - (y0 - offset)], [posX + barW - barSpaceOffset, offset]];
        };
    };
    c3_chart_internal_fn.isWithinBar = function (that) {
        var mouse = this.d3.mouse(that),
            box = that.getBoundingClientRect(),
            seg0 = that.pathSegList.getItem(0),
            seg1 = that.pathSegList.getItem(1),
            x = Math.min(seg0.x, seg1.x),
            y = Math.min(seg0.y, seg1.y),
            w = box.width,
            h = box.height,
            offset = 2,
            sx = x - offset,
            ex = x + w + offset,
            sy = y + h + offset,
            ey = y - offset;
        return sx < mouse[0] && mouse[0] < ex && ey < mouse[1] && mouse[1] < sy;
    };

    c3_chart_internal_fn.getShapeIndices = function (typeFilter) {
        var $$ = this,
            config = $$.config,
            indices = {},
            i = 0,
            j,
            k;
        $$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$)).forEach(function (d) {
            for (j = 0; j < config.data_groups.length; j++) {
                if (config.data_groups[j].indexOf(d.id) < 0) {
                    continue;
                }
                for (k = 0; k < config.data_groups[j].length; k++) {
                    if (config.data_groups[j][k] in indices) {
                        indices[d.id] = indices[config.data_groups[j][k]];
                        break;
                    }
                }
            }
            if (isUndefined(indices[d.id])) {
                indices[d.id] = i++;
            }
        });
        indices.__max__ = i - 1;
        return indices;
    };
    c3_chart_internal_fn.getShapeX = function (offset, targetsNum, indices, isSub) {
        var $$ = this,
            scale = isSub ? $$.subX : $$.x;
        return function (d) {
            var index = d.id in indices ? indices[d.id] : 0;
            return d.x || d.x === 0 ? scale(d.x) - offset * (targetsNum / 2 - index) : 0;
        };
    };
    c3_chart_internal_fn.getShapeY = function (isSub) {
        var $$ = this;
        return function (d) {
            var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id);
            return scale(d.value);
        };
    };
    c3_chart_internal_fn.getShapeOffset = function (typeFilter, indices, isSub) {
        var $$ = this,
            targets = $$.orderTargets($$.filterTargetsToShow($$.data.targets.filter(typeFilter, $$))),
            targetIds = targets.map(function (t) {
            return t.id;
        });
        return function (d, i) {
            var scale = isSub ? $$.getSubYScale(d.id) : $$.getYScale(d.id),
                y0 = scale(0),
                offset = y0;
            targets.forEach(function (t) {
                var values = $$.isStepType(d) ? $$.convertValuesToStep(t.values) : t.values;
                if (t.id === d.id || indices[t.id] !== indices[d.id]) {
                    return;
                }
                if (targetIds.indexOf(t.id) < targetIds.indexOf(d.id)) {
                    // check if the x values line up
                    if (typeof values[i] === 'undefined' || +values[i].x !== +d.x) {
                        // "+" for timeseries
                        // if not, try to find the value that does line up
                        i = -1;
                        values.forEach(function (v, j) {
                            if (v.x === d.x) {
                                i = j;
                            }
                        });
                    }
                    if (i in values && values[i].value * d.value >= 0) {
                        offset += scale(values[i].value) - y0;
                    }
                }
            });
            return offset;
        };
    };
    c3_chart_internal_fn.isWithinShape = function (that, d) {
        var $$ = this,
            shape = $$.d3.select(that),
            isWithin;
        if (!$$.isTargetToShow(d.id)) {
            isWithin = false;
        } else if (that.nodeName === 'circle') {
            isWithin = $$.isStepType(d) ? $$.isWithinStep(that, $$.getYScale(d.id)(d.value)) : $$.isWithinCircle(that, $$.pointSelectR(d) * 1.5);
        } else if (that.nodeName === 'path') {
            isWithin = shape.classed(CLASS.bar) ? $$.isWithinBar(that) : true;
        }
        return isWithin;
    };

    c3_chart_internal_fn.getInterpolate = function (d) {
        var $$ = this,
            interpolation = $$.isInterpolationType($$.config.spline_interpolation_type) ? $$.config.spline_interpolation_type : 'cardinal';
        return $$.isSplineType(d) ? interpolation : $$.isStepType(d) ? $$.config.line_step_type : "linear";
    };

    c3_chart_internal_fn.initLine = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartLines);
    };
    c3_chart_internal_fn.updateTargetsForLine = function (targets) {
        var $$ = this,
            config = $$.config,
            mainLineUpdate,
            mainLineEnter,
            classChartLine = $$.classChartLine.bind($$),
            classLines = $$.classLines.bind($$),
            classAreas = $$.classAreas.bind($$),
            classCircles = $$.classCircles.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainLineUpdate = $$.main.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', function (d) {
            return classChartLine(d) + classFocus(d);
        });
        mainLineEnter = mainLineUpdate.enter().append('g').attr('class', classChartLine).style('opacity', 0).style("pointer-events", "none");
        // Lines for each data
        mainLineEnter.append('g').attr("class", classLines);
        // Areas
        mainLineEnter.append('g').attr('class', classAreas);
        // Circles for each data point on lines
        mainLineEnter.append('g').attr("class", function (d) {
            return $$.generateClass(CLASS.selectedCircles, d.id);
        });
        mainLineEnter.append('g').attr("class", classCircles).style("cursor", function (d) {
            return config.data_selection_isselectable(d) ? "pointer" : null;
        });
        // Update date for selected circles
        targets.forEach(function (t) {
            $$.main.selectAll('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(t.id)).selectAll('.' + CLASS.selectedCircle).each(function (d) {
                d.value = t.values[d.index].value;
            });
        });
        // MEMO: can not keep same color...
        //mainLineUpdate.exit().remove();
    };
    c3_chart_internal_fn.updateLine = function (durationForExit) {
        var $$ = this;
        $$.mainLine = $$.main.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));
        $$.mainLine.enter().append('path').attr('class', $$.classLine.bind($$)).style("stroke", $$.color);
        $$.mainLine.style("opacity", $$.initialOpacity.bind($$)).style('shape-rendering', function (d) {
            return $$.isStepType(d) ? 'crispEdges' : '';
        }).attr('transform', null);
        $$.mainLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawLine = function (drawLine, withTransition) {
        return [(withTransition ? this.mainLine.transition(Math.random().toString()) : this.mainLine).attr("d", drawLine).style("stroke", this.color).style("opacity", 1)];
    };
    c3_chart_internal_fn.generateDrawLine = function (lineIndices, isSub) {
        var $$ = this,
            config = $$.config,
            line = $$.d3.svg.line(),
            getPoints = $$.generateGetLinePoints(lineIndices, isSub),
            yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,
            xValue = function xValue(d) {
            return (isSub ? $$.subxx : $$.xx).call($$, d);
        },
            yValue = function yValue(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)(d.value);
        };

        line = config.axis_rotated ? line.x(yValue).y(xValue) : line.x(xValue).y(yValue);
        if (!config.line_connectNull) {
            line = line.defined(function (d) {
                return d.value != null;
            });
        }
        return function (d) {
            var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,
                x = isSub ? $$.subX : $$.x,
                y = yScaleGetter.call($$, d.id),
                x0 = 0,
                y0 = 0,
                path;
            if ($$.isLineType(d)) {
                if (config.data_regions[d.id]) {
                    path = $$.lineWithRegions(values, x, y, config.data_regions[d.id]);
                } else {
                    if ($$.isStepType(d)) {
                        values = $$.convertValuesToStep(values);
                    }
                    path = line.interpolate($$.getInterpolate(d))(values);
                }
            } else {
                if (values[0]) {
                    x0 = x(values[0].x);
                    y0 = y(values[0].value);
                }
                path = config.axis_rotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
            }
            return path ? path : "M 0 0";
        };
    };
    c3_chart_internal_fn.generateGetLinePoints = function (lineIndices, isSub) {
        // partial duplication of generateGetBarPoints
        var $$ = this,
            config = $$.config,
            lineTargetsNum = lineIndices.__max__ + 1,
            x = $$.getShapeX(0, lineTargetsNum, lineIndices, !!isSub),
            y = $$.getShapeY(!!isSub),
            lineOffset = $$.getShapeOffset($$.isLineType, lineIndices, !!isSub),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = lineOffset(d, i) || y0,
                // offset is for stacked area chart
            posX = x(d),
                posY = y(d);
            // fix posY not to overflow opposite quadrant
            if (config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 1 point that marks the line position
            return [[posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, posY - (y0 - offset)] // needed for compatibility
            ];
        };
    };

    c3_chart_internal_fn.lineWithRegions = function (d, x, y, _regions) {
        var $$ = this,
            config = $$.config,
            prev = -1,
            i,
            j,
            s = "M",
            sWithRegion,
            xp,
            yp,
            dx,
            dy,
            dd,
            diff,
            diffx2,
            xOffset = $$.isCategorized() ? 0.5 : 0,
            xValue,
            yValue,
            regions = [];

        function isWithinRegions(x, regions) {
            var i;
            for (i = 0; i < regions.length; i++) {
                if (regions[i].start < x && x <= regions[i].end) {
                    return true;
                }
            }
            return false;
        }

        // Check start/end of regions
        if (isDefined(_regions)) {
            for (i = 0; i < _regions.length; i++) {
                regions[i] = {};
                if (isUndefined(_regions[i].start)) {
                    regions[i].start = d[0].x;
                } else {
                    regions[i].start = $$.isTimeSeries() ? $$.parseDate(_regions[i].start) : _regions[i].start;
                }
                if (isUndefined(_regions[i].end)) {
                    regions[i].end = d[d.length - 1].x;
                } else {
                    regions[i].end = $$.isTimeSeries() ? $$.parseDate(_regions[i].end) : _regions[i].end;
                }
            }
        }

        // Set scales
        xValue = config.axis_rotated ? function (d) {
            return y(d.value);
        } : function (d) {
            return x(d.x);
        };
        yValue = config.axis_rotated ? function (d) {
            return x(d.x);
        } : function (d) {
            return y(d.value);
        };

        // Define svg generator function for region
        function generateM(points) {
            return 'M' + points[0][0] + ' ' + points[0][1] + ' ' + points[1][0] + ' ' + points[1][1];
        }
        if ($$.isTimeSeries()) {
            sWithRegion = function sWithRegion(d0, d1, j, diff) {
                var x0 = d0.x.getTime(),
                    x_diff = d1.x - d0.x,
                    xv0 = new Date(x0 + x_diff * j),
                    xv1 = new Date(x0 + x_diff * (j + diff)),
                    points;
                if (config.axis_rotated) {
                    points = [[y(yp(j)), x(xv0)], [y(yp(j + diff)), x(xv1)]];
                } else {
                    points = [[x(xv0), y(yp(j))], [x(xv1), y(yp(j + diff))]];
                }
                return generateM(points);
            };
        } else {
            sWithRegion = function sWithRegion(d0, d1, j, diff) {
                var points;
                if (config.axis_rotated) {
                    points = [[y(yp(j), true), x(xp(j))], [y(yp(j + diff), true), x(xp(j + diff))]];
                } else {
                    points = [[x(xp(j), true), y(yp(j))], [x(xp(j + diff), true), y(yp(j + diff))]];
                }
                return generateM(points);
            };
        }

        // Generate
        for (i = 0; i < d.length; i++) {

            // Draw as normal
            if (isUndefined(regions) || !isWithinRegions(d[i].x, regions)) {
                s += " " + xValue(d[i]) + " " + yValue(d[i]);
            }
            // Draw with region // TODO: Fix for horizotal charts
            else {
                    xp = $$.getScale(d[i - 1].x + xOffset, d[i].x + xOffset, $$.isTimeSeries());
                    yp = $$.getScale(d[i - 1].value, d[i].value);

                    dx = x(d[i].x) - x(d[i - 1].x);
                    dy = y(d[i].value) - y(d[i - 1].value);
                    dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));
                    diff = 2 / dd;
                    diffx2 = diff * 2;

                    for (j = diff; j <= 1; j += diffx2) {
                        s += sWithRegion(d[i - 1], d[i], j, diff);
                    }
                }
            prev = d[i].x;
        }

        return s;
    };

    c3_chart_internal_fn.updateArea = function (durationForExit) {
        var $$ = this,
            d3 = $$.d3;
        $$.mainArea = $$.main.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));
        $$.mainArea.enter().append('path').attr("class", $$.classArea.bind($$)).style("fill", $$.color).style("opacity", function () {
            $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;
        });
        $$.mainArea.style("opacity", $$.orgAreaOpacity);
        $$.mainArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawArea = function (drawArea, withTransition) {
        return [(withTransition ? this.mainArea.transition(Math.random().toString()) : this.mainArea).attr("d", drawArea).style("fill", this.color).style("opacity", this.orgAreaOpacity)];
    };
    c3_chart_internal_fn.generateDrawArea = function (areaIndices, isSub) {
        var $$ = this,
            config = $$.config,
            area = $$.d3.svg.area(),
            getPoints = $$.generateGetAreaPoints(areaIndices, isSub),
            yScaleGetter = isSub ? $$.getSubYScale : $$.getYScale,
            xValue = function xValue(d) {
            return (isSub ? $$.subxx : $$.xx).call($$, d);
        },
            value0 = function value0(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[0][1] : yScaleGetter.call($$, d.id)($$.getAreaBaseValue(d.id));
        },
            value1 = function value1(d, i) {
            return config.data_groups.length > 0 ? getPoints(d, i)[1][1] : yScaleGetter.call($$, d.id)(d.value);
        };

        area = config.axis_rotated ? area.x0(value0).x1(value1).y(xValue) : area.x(xValue).y0(config.area_above ? 0 : value0).y1(value1);
        if (!config.line_connectNull) {
            area = area.defined(function (d) {
                return d.value !== null;
            });
        }

        return function (d) {
            var values = config.line_connectNull ? $$.filterRemoveNull(d.values) : d.values,
                x0 = 0,
                y0 = 0,
                path;
            if ($$.isAreaType(d)) {
                if ($$.isStepType(d)) {
                    values = $$.convertValuesToStep(values);
                }
                path = area.interpolate($$.getInterpolate(d))(values);
            } else {
                if (values[0]) {
                    x0 = $$.x(values[0].x);
                    y0 = $$.getYScale(d.id)(values[0].value);
                }
                path = config.axis_rotated ? "M " + y0 + " " + x0 : "M " + x0 + " " + y0;
            }
            return path ? path : "M 0 0";
        };
    };
    c3_chart_internal_fn.getAreaBaseValue = function () {
        return 0;
    };
    c3_chart_internal_fn.generateGetAreaPoints = function (areaIndices, isSub) {
        // partial duplication of generateGetBarPoints
        var $$ = this,
            config = $$.config,
            areaTargetsNum = areaIndices.__max__ + 1,
            x = $$.getShapeX(0, areaTargetsNum, areaIndices, !!isSub),
            y = $$.getShapeY(!!isSub),
            areaOffset = $$.getShapeOffset($$.isAreaType, areaIndices, !!isSub),
            yScale = isSub ? $$.getSubYScale : $$.getYScale;
        return function (d, i) {
            var y0 = yScale.call($$, d.id)(0),
                offset = areaOffset(d, i) || y0,
                // offset is for stacked area chart
            posX = x(d),
                posY = y(d);
            // fix posY not to overflow opposite quadrant
            if (config.axis_rotated) {
                if (0 < d.value && posY < y0 || d.value < 0 && y0 < posY) {
                    posY = y0;
                }
            }
            // 1 point that marks the area position
            return [[posX, offset], [posX, posY - (y0 - offset)], [posX, posY - (y0 - offset)], // needed for compatibility
            [posX, offset] // needed for compatibility
            ];
        };
    };

    c3_chart_internal_fn.updateCircle = function () {
        var $$ = this;
        $$.mainCircle = $$.main.selectAll('.' + CLASS.circles).selectAll('.' + CLASS.circle).data($$.lineOrScatterData.bind($$));
        $$.mainCircle.enter().append("circle").attr("class", $$.classCircle.bind($$)).attr("r", $$.pointR.bind($$)).style("fill", $$.color);
        $$.mainCircle.style("opacity", $$.initialOpacityForCircle.bind($$));
        $$.mainCircle.exit().remove();
    };
    c3_chart_internal_fn.redrawCircle = function (cx, cy, withTransition) {
        var selectedCircles = this.main.selectAll('.' + CLASS.selectedCircle);
        return [(withTransition ? this.mainCircle.transition(Math.random().toString()) : this.mainCircle).style('opacity', this.opacityForCircle.bind(this)).style("fill", this.color).attr("cx", cx).attr("cy", cy), (withTransition ? selectedCircles.transition(Math.random().toString()) : selectedCircles).attr("cx", cx).attr("cy", cy)];
    };
    c3_chart_internal_fn.circleX = function (d) {
        return d.x || d.x === 0 ? this.x(d.x) : null;
    };
    c3_chart_internal_fn.updateCircleY = function () {
        var $$ = this,
            lineIndices,
            getPoints;
        if ($$.config.data_groups.length > 0) {
            lineIndices = $$.getShapeIndices($$.isLineType), getPoints = $$.generateGetLinePoints(lineIndices);
            $$.circleY = function (d, i) {
                return getPoints(d, i)[0][1];
            };
        } else {
            $$.circleY = function (d) {
                return $$.getYScale(d.id)(d.value);
            };
        }
    };
    c3_chart_internal_fn.getCircles = function (i, id) {
        var $$ = this;
        return (id ? $$.main.selectAll('.' + CLASS.circles + $$.getTargetSelectorSuffix(id)) : $$.main).selectAll('.' + CLASS.circle + (isValue(i) ? '-' + i : ''));
    };
    c3_chart_internal_fn.expandCircles = function (i, id, reset) {
        var $$ = this,
            r = $$.pointExpandedR.bind($$);
        if (reset) {
            $$.unexpandCircles();
        }
        $$.getCircles(i, id).classed(CLASS.EXPANDED, true).attr('r', r);
    };
    c3_chart_internal_fn.unexpandCircles = function (i) {
        var $$ = this,
            r = $$.pointR.bind($$);
        $$.getCircles(i).filter(function () {
            return $$.d3.select(this).classed(CLASS.EXPANDED);
        }).classed(CLASS.EXPANDED, false).attr('r', r);
    };
    c3_chart_internal_fn.pointR = function (d) {
        var $$ = this,
            config = $$.config;
        return $$.isStepType(d) ? 0 : isFunction(config.point_r) ? config.point_r(d) : config.point_r;
    };
    c3_chart_internal_fn.pointExpandedR = function (d) {
        var $$ = this,
            config = $$.config;
        if (config.point_focus_expand_enabled) {
            return isFunction(config.point_focus_expand_r) ? config.point_focus_expand_r(d) : config.point_focus_expand_r ? config.point_focus_expand_r : $$.pointR(d) * 1.75;
        } else {
            return $$.pointR(d);
        }
    };
    c3_chart_internal_fn.pointSelectR = function (d) {
        var $$ = this,
            config = $$.config;
        return isFunction(config.point_select_r) ? config.point_select_r(d) : config.point_select_r ? config.point_select_r : $$.pointR(d) * 4;
    };
    c3_chart_internal_fn.isWithinCircle = function (that, r) {
        var d3 = this.d3,
            mouse = d3.mouse(that),
            d3_this = d3.select(that),
            cx = +d3_this.attr("cx"),
            cy = +d3_this.attr("cy");
        return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < r;
    };
    c3_chart_internal_fn.isWithinStep = function (that, y) {
        return Math.abs(y - this.d3.mouse(that)[1]) < 30;
    };

    c3_chart_internal_fn.getCurrentWidth = function () {
        var $$ = this,
            config = $$.config;
        return config.size_width ? config.size_width : $$.getParentWidth();
    };
    c3_chart_internal_fn.getCurrentHeight = function () {
        var $$ = this,
            config = $$.config,
            h = config.size_height ? config.size_height : $$.getParentHeight();
        return h > 0 ? h : 320 / ($$.hasType('gauge') && !config.gauge_fullCircle ? 2 : 1);
    };
    c3_chart_internal_fn.getCurrentPaddingTop = function () {
        var $$ = this,
            config = $$.config,
            padding = isValue(config.padding_top) ? config.padding_top : 0;
        if ($$.title && $$.title.node()) {
            padding += $$.getTitlePadding();
        }
        return padding;
    };
    c3_chart_internal_fn.getCurrentPaddingBottom = function () {
        var config = this.config;
        return isValue(config.padding_bottom) ? config.padding_bottom : 0;
    };
    c3_chart_internal_fn.getCurrentPaddingLeft = function (withoutRecompute) {
        var $$ = this,
            config = $$.config;
        if (isValue(config.padding_left)) {
            return config.padding_left;
        } else if (config.axis_rotated) {
            return !config.axis_x_show || config.axis_x_inner ? 1 : Math.max(ceil10($$.getAxisWidthByAxisId('x', withoutRecompute)), 40);
        } else if (!config.axis_y_show || config.axis_y_inner) {
            // && !config.axis_rotated
            return $$.axis.getYAxisLabelPosition().isOuter ? 30 : 1;
        } else {
            return ceil10($$.getAxisWidthByAxisId('y', withoutRecompute));
        }
    };
    c3_chart_internal_fn.getCurrentPaddingRight = function () {
        var $$ = this,
            config = $$.config,
            defaultPadding = 10,
            legendWidthOnRight = $$.isLegendRight ? $$.getLegendWidth() + 20 : 0;
        if (isValue(config.padding_right)) {
            return config.padding_right + 1; // 1 is needed not to hide tick line
        } else if (config.axis_rotated) {
            return defaultPadding + legendWidthOnRight;
        } else if (!config.axis_y2_show || config.axis_y2_inner) {
            // && !config.axis_rotated
            return 2 + legendWidthOnRight + ($$.axis.getY2AxisLabelPosition().isOuter ? 20 : 0);
        } else {
            return ceil10($$.getAxisWidthByAxisId('y2')) + legendWidthOnRight;
        }
    };

    c3_chart_internal_fn.getParentRectValue = function (key) {
        var parent = this.selectChart.node(),
            v;
        while (parent && parent.tagName !== 'BODY') {
            try {
                v = parent.getBoundingClientRect()[key];
            } catch (e) {
                if (key === 'width') {
                    // In IE in certain cases getBoundingClientRect
                    // will cause an "unspecified error"
                    v = parent.offsetWidth;
                }
            }
            if (v) {
                break;
            }
            parent = parent.parentNode;
        }
        return v;
    };
    c3_chart_internal_fn.getParentWidth = function () {
        return this.getParentRectValue('width');
    };
    c3_chart_internal_fn.getParentHeight = function () {
        var h = this.selectChart.style('height');
        return h.indexOf('px') > 0 ? +h.replace('px', '') : 0;
    };

    c3_chart_internal_fn.getSvgLeft = function (withoutRecompute) {
        var $$ = this,
            config = $$.config,
            hasLeftAxisRect = config.axis_rotated || !config.axis_rotated && !config.axis_y_inner,
            leftAxisClass = config.axis_rotated ? CLASS.axisX : CLASS.axisY,
            leftAxis = $$.main.select('.' + leftAxisClass).node(),
            svgRect = leftAxis && hasLeftAxisRect ? leftAxis.getBoundingClientRect() : { right: 0 },
            chartRect = $$.selectChart.node().getBoundingClientRect(),
            hasArc = $$.hasArcType(),
            svgLeft = svgRect.right - chartRect.left - (hasArc ? 0 : $$.getCurrentPaddingLeft(withoutRecompute));
        return svgLeft > 0 ? svgLeft : 0;
    };

    c3_chart_internal_fn.getAxisWidthByAxisId = function (id, withoutRecompute) {
        var $$ = this,
            position = $$.axis.getLabelPositionById(id);
        return $$.axis.getMaxTickWidth(id, withoutRecompute) + (position.isInner ? 20 : 40);
    };
    c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) {
        var $$ = this,
            config = $$.config,
            h = 30;
        if (axisId === 'x' && !config.axis_x_show) {
            return 8;
        }
        if (axisId === 'x' && config.axis_x_height) {
            return config.axis_x_height;
        }
        if (axisId === 'y' && !config.axis_y_show) {
            return config.legend_show && !$$.isLegendRight && !$$.isLegendInset ? 10 : 1;
        }
        if (axisId === 'y2' && !config.axis_y2_show) {
            return $$.rotated_padding_top;
        }
        // Calculate x axis height when tick rotated
        if (axisId === 'x' && !config.axis_rotated && config.axis_x_tick_rotate) {
            h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_x_tick_rotate) / 180);
        }
        // Calculate y axis height when tick rotated
        if (axisId === 'y' && config.axis_rotated && config.axis_y_tick_rotate) {
            h = 30 + $$.axis.getMaxTickWidth(axisId) * Math.cos(Math.PI * (90 - config.axis_y_tick_rotate) / 180);
        }
        return h + ($$.axis.getLabelPositionById(axisId).isInner ? 0 : 10) + (axisId === 'y2' ? -10 : 0);
    };

    c3_chart_internal_fn.getEventRectWidth = function () {
        return Math.max(0, this.xAxis.tickInterval());
    };

    c3_chart_internal_fn.initBrush = function () {
        var $$ = this,
            d3 = $$.d3;
        $$.brush = d3.svg.brush().on("brush", function () {
            $$.redrawForBrush();
        });
        $$.brush.update = function () {
            if ($$.context) {
                $$.context.select('.' + CLASS.brush).call(this);
            }
            return this;
        };
        $$.brush.scale = function (scale) {
            return $$.config.axis_rotated ? this.y(scale) : this.x(scale);
        };
    };
    c3_chart_internal_fn.initSubchart = function () {
        var $$ = this,
            config = $$.config,
            context = $$.context = $$.svg.append("g").attr("transform", $$.getTranslate('context')),
            visibility = config.subchart_show ? 'visible' : 'hidden';

        context.style('visibility', visibility);

        // Define g for chart area
        context.append('g').attr("clip-path", $$.clipPathForSubchart).attr('class', CLASS.chart);

        // Define g for bar chart area
        context.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartBars);

        // Define g for line chart area
        context.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartLines);

        // Add extent rect for Brush
        context.append("g").attr("clip-path", $$.clipPath).attr("class", CLASS.brush).call($$.brush);

        // ATTENTION: This must be called AFTER chart added
        // Add Axis
        $$.axes.subx = context.append("g").attr("class", CLASS.axisX).attr("transform", $$.getTranslate('subx')).attr("clip-path", config.axis_rotated ? "" : $$.clipPathForXAxis).style("visibility", config.subchart_axis_x_show ? visibility : 'hidden');
    };
    c3_chart_internal_fn.updateTargetsForSubchart = function (targets) {
        var $$ = this,
            context = $$.context,
            config = $$.config,
            contextLineEnter,
            contextLineUpdate,
            contextBarEnter,
            contextBarUpdate,
            classChartBar = $$.classChartBar.bind($$),
            classBars = $$.classBars.bind($$),
            classChartLine = $$.classChartLine.bind($$),
            classLines = $$.classLines.bind($$),
            classAreas = $$.classAreas.bind($$);

        if (config.subchart_show) {
            //-- Bar --//
            contextBarUpdate = context.select('.' + CLASS.chartBars).selectAll('.' + CLASS.chartBar).data(targets).attr('class', classChartBar);
            contextBarEnter = contextBarUpdate.enter().append('g').style('opacity', 0).attr('class', classChartBar);
            // Bars for each data
            contextBarEnter.append('g').attr("class", classBars);

            //-- Line --//
            contextLineUpdate = context.select('.' + CLASS.chartLines).selectAll('.' + CLASS.chartLine).data(targets).attr('class', classChartLine);
            contextLineEnter = contextLineUpdate.enter().append('g').style('opacity', 0).attr('class', classChartLine);
            // Lines for each data
            contextLineEnter.append("g").attr("class", classLines);
            // Area
            contextLineEnter.append("g").attr("class", classAreas);

            //-- Brush --//
            context.selectAll('.' + CLASS.brush + ' rect').attr(config.axis_rotated ? "width" : "height", config.axis_rotated ? $$.width2 : $$.height2);
        }
    };
    c3_chart_internal_fn.updateBarForSubchart = function (durationForExit) {
        var $$ = this;
        $$.contextBar = $$.context.selectAll('.' + CLASS.bars).selectAll('.' + CLASS.bar).data($$.barData.bind($$));
        $$.contextBar.enter().append('path').attr("class", $$.classBar.bind($$)).style("stroke", 'none').style("fill", $$.color);
        $$.contextBar.style("opacity", $$.initialOpacity.bind($$));
        $$.contextBar.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawBarForSubchart = function (drawBarOnSub, withTransition, duration) {
        (withTransition ? this.contextBar.transition(Math.random().toString()).duration(duration) : this.contextBar).attr('d', drawBarOnSub).style('opacity', 1);
    };
    c3_chart_internal_fn.updateLineForSubchart = function (durationForExit) {
        var $$ = this;
        $$.contextLine = $$.context.selectAll('.' + CLASS.lines).selectAll('.' + CLASS.line).data($$.lineData.bind($$));
        $$.contextLine.enter().append('path').attr('class', $$.classLine.bind($$)).style('stroke', $$.color);
        $$.contextLine.style("opacity", $$.initialOpacity.bind($$));
        $$.contextLine.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawLineForSubchart = function (drawLineOnSub, withTransition, duration) {
        (withTransition ? this.contextLine.transition(Math.random().toString()).duration(duration) : this.contextLine).attr("d", drawLineOnSub).style('opacity', 1);
    };
    c3_chart_internal_fn.updateAreaForSubchart = function (durationForExit) {
        var $$ = this,
            d3 = $$.d3;
        $$.contextArea = $$.context.selectAll('.' + CLASS.areas).selectAll('.' + CLASS.area).data($$.lineData.bind($$));
        $$.contextArea.enter().append('path').attr("class", $$.classArea.bind($$)).style("fill", $$.color).style("opacity", function () {
            $$.orgAreaOpacity = +d3.select(this).style('opacity');return 0;
        });
        $$.contextArea.style("opacity", 0);
        $$.contextArea.exit().transition().duration(durationForExit).style('opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawAreaForSubchart = function (drawAreaOnSub, withTransition, duration) {
        (withTransition ? this.contextArea.transition(Math.random().toString()).duration(duration) : this.contextArea).attr("d", drawAreaOnSub).style("fill", this.color).style("opacity", this.orgAreaOpacity);
    };
    c3_chart_internal_fn.redrawSubchart = function (withSubchart, transitions, duration, durationForExit, areaIndices, barIndices, lineIndices) {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            drawAreaOnSub,
            drawBarOnSub,
            drawLineOnSub;

        $$.context.style('visibility', config.subchart_show ? 'visible' : 'hidden');

        // subchart
        if (config.subchart_show) {
            // reflect main chart to extent on subchart if zoomed
            if (d3.event && d3.event.type === 'zoom') {
                $$.brush.extent($$.x.orgDomain()).update();
            }
            // update subchart elements if needed
            if (withSubchart) {

                // extent rect
                if (!$$.brush.empty()) {
                    $$.brush.extent($$.x.orgDomain()).update();
                }
                // setup drawer - MEMO: this must be called after axis updated
                drawAreaOnSub = $$.generateDrawArea(areaIndices, true);
                drawBarOnSub = $$.generateDrawBar(barIndices, true);
                drawLineOnSub = $$.generateDrawLine(lineIndices, true);

                $$.updateBarForSubchart(duration);
                $$.updateLineForSubchart(duration);
                $$.updateAreaForSubchart(duration);

                $$.redrawBarForSubchart(drawBarOnSub, duration, duration);
                $$.redrawLineForSubchart(drawLineOnSub, duration, duration);
                $$.redrawAreaForSubchart(drawAreaOnSub, duration, duration);
            }
        }
    };
    c3_chart_internal_fn.redrawForBrush = function () {
        var $$ = this,
            x = $$.x;
        $$.redraw({
            withTransition: false,
            withY: $$.config.zoom_rescale,
            withSubchart: false,
            withUpdateXDomain: true,
            withDimension: false
        });
        $$.config.subchart_onbrush.call($$.api, x.orgDomain());
    };
    c3_chart_internal_fn.transformContext = function (withTransition, transitions) {
        var $$ = this,
            subXAxis;
        if (transitions && transitions.axisSubX) {
            subXAxis = transitions.axisSubX;
        } else {
            subXAxis = $$.context.select('.' + CLASS.axisX);
            if (withTransition) {
                subXAxis = subXAxis.transition();
            }
        }
        $$.context.attr("transform", $$.getTranslate('context'));
        subXAxis.attr("transform", $$.getTranslate('subx'));
    };
    c3_chart_internal_fn.getDefaultExtent = function () {
        var $$ = this,
            config = $$.config,
            extent = isFunction(config.axis_x_extent) ? config.axis_x_extent($$.getXDomain($$.data.targets)) : config.axis_x_extent;
        if ($$.isTimeSeries()) {
            extent = [$$.parseDate(extent[0]), $$.parseDate(extent[1])];
        }
        return extent;
    };

    c3_chart_internal_fn.initText = function () {
        var $$ = this;
        $$.main.select('.' + CLASS.chart).append("g").attr("class", CLASS.chartTexts);
        $$.mainText = $$.d3.selectAll([]);
    };
    c3_chart_internal_fn.updateTargetsForText = function (targets) {
        var $$ = this,
            mainTextUpdate,
            mainTextEnter,
            classChartText = $$.classChartText.bind($$),
            classTexts = $$.classTexts.bind($$),
            classFocus = $$.classFocus.bind($$);
        mainTextUpdate = $$.main.select('.' + CLASS.chartTexts).selectAll('.' + CLASS.chartText).data(targets).attr('class', function (d) {
            return classChartText(d) + classFocus(d);
        });
        mainTextEnter = mainTextUpdate.enter().append('g').attr('class', classChartText).style('opacity', 0).style("pointer-events", "none");
        mainTextEnter.append('g').attr('class', classTexts);
    };
    c3_chart_internal_fn.updateText = function (durationForExit) {
        var $$ = this,
            config = $$.config,
            barOrLineData = $$.barOrLineData.bind($$),
            classText = $$.classText.bind($$);
        $$.mainText = $$.main.selectAll('.' + CLASS.texts).selectAll('.' + CLASS.text).data(barOrLineData);
        $$.mainText.enter().append('text').attr("class", classText).attr('text-anchor', function (d) {
            return config.axis_rotated ? d.value < 0 ? 'end' : 'start' : 'middle';
        }).style("stroke", 'none').style("fill", function (d) {
            return $$.color(d);
        }).style("fill-opacity", 0);
        $$.mainText.text(function (d, i, j) {
            return $$.dataLabelFormat(d.id)(d.value, d.id, i, j);
        });
        $$.mainText.exit().transition().duration(durationForExit).style('fill-opacity', 0).remove();
    };
    c3_chart_internal_fn.redrawText = function (xForText, yForText, forFlow, withTransition) {
        return [(withTransition ? this.mainText.transition() : this.mainText).attr('x', xForText).attr('y', yForText).style("fill", this.color).style("fill-opacity", forFlow ? 0 : this.opacityForText.bind(this))];
    };
    c3_chart_internal_fn.getTextRect = function (text, cls, element) {
        var dummy = this.d3.select('body').append('div').classed('c3', true),
            svg = dummy.append("svg").style('visibility', 'hidden').style('position', 'fixed').style('top', 0).style('left', 0),
            font = this.d3.select(element).style('font'),
            rect;
        svg.selectAll('.dummy').data([text]).enter().append('text').classed(cls ? cls : "", true).style('font', font).text(text).each(function () {
            rect = this.getBoundingClientRect();
        });
        dummy.remove();
        return rect;
    };
    c3_chart_internal_fn.generateXYForText = function (areaIndices, barIndices, lineIndices, forX) {
        var $$ = this,
            getAreaPoints = $$.generateGetAreaPoints(areaIndices, false),
            getBarPoints = $$.generateGetBarPoints(barIndices, false),
            getLinePoints = $$.generateGetLinePoints(lineIndices, false),
            getter = forX ? $$.getXForText : $$.getYForText;
        return function (d, i) {
            var getPoints = $$.isAreaType(d) ? getAreaPoints : $$.isBarType(d) ? getBarPoints : getLinePoints;
            return getter.call($$, getPoints(d, i), d, this);
        };
    };
    c3_chart_internal_fn.getXForText = function (points, d, textElement) {
        var $$ = this,
            box = textElement.getBoundingClientRect(),
            xPos,
            padding;
        if ($$.config.axis_rotated) {
            padding = $$.isBarType(d) ? 4 : 6;
            xPos = points[2][1] + padding * (d.value < 0 ? -1 : 1);
        } else {
            xPos = $$.hasType('bar') ? (points[2][0] + points[0][0]) / 2 : points[0][0];
        }
        // show labels regardless of the domain if value is null
        if (d.value === null) {
            if (xPos > $$.width) {
                xPos = $$.width - box.width;
            } else if (xPos < 0) {
                xPos = 4;
            }
        }
        return xPos;
    };
    c3_chart_internal_fn.getYForText = function (points, d, textElement) {
        var $$ = this,
            box = textElement.getBoundingClientRect(),
            yPos;
        if ($$.config.axis_rotated) {
            yPos = (points[0][0] + points[2][0] + box.height * 0.6) / 2;
        } else {
            yPos = points[2][1];
            if (d.value < 0 || d.value === 0 && !$$.hasPositiveValue) {
                yPos += box.height;
                if ($$.isBarType(d) && $$.isSafari()) {
                    yPos -= 3;
                } else if (!$$.isBarType(d) && $$.isChrome()) {
                    yPos += 3;
                }
            } else {
                yPos += $$.isBarType(d) ? -3 : -6;
            }
        }
        // show labels regardless of the domain if value is null
        if (d.value === null && !$$.config.axis_rotated) {
            if (yPos < box.height) {
                yPos = box.height;
            } else if (yPos > this.height) {
                yPos = this.height - 4;
            }
        }
        return yPos;
    };

    c3_chart_internal_fn.initTitle = function () {
        var $$ = this;
        $$.title = $$.svg.append("text").text($$.config.title_text).attr("class", $$.CLASS.title);
    };
    c3_chart_internal_fn.redrawTitle = function () {
        var $$ = this;
        $$.title.attr("x", $$.xForTitle.bind($$)).attr("y", $$.yForTitle.bind($$));
    };
    c3_chart_internal_fn.xForTitle = function () {
        var $$ = this,
            config = $$.config,
            position = config.title_position || 'left',
            x;
        if (position.indexOf('right') >= 0) {
            x = $$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width - config.title_padding.right;
        } else if (position.indexOf('center') >= 0) {
            x = ($$.currentWidth - $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).width) / 2;
        } else {
            // left
            x = config.title_padding.left;
        }
        return x;
    };
    c3_chart_internal_fn.yForTitle = function () {
        var $$ = this;
        return $$.config.title_padding.top + $$.getTextRect($$.title.node().textContent, $$.CLASS.title, $$.title.node()).height;
    };
    c3_chart_internal_fn.getTitlePadding = function () {
        var $$ = this;
        return $$.yForTitle() + $$.config.title_padding.bottom;
    };

    c3_chart_internal_fn.initTooltip = function () {
        var $$ = this,
            config = $$.config,
            i;
        $$.tooltip = $$.selectChart.style("position", "relative").append("div").attr('class', CLASS.tooltipContainer).style("position", "absolute").style("pointer-events", "none").style("display", "none");
        // Show tooltip if needed
        if (config.tooltip_init_show) {
            if ($$.isTimeSeries() && isString(config.tooltip_init_x)) {
                config.tooltip_init_x = $$.parseDate(config.tooltip_init_x);
                for (i = 0; i < $$.data.targets[0].values.length; i++) {
                    if ($$.data.targets[0].values[i].x - config.tooltip_init_x === 0) {
                        break;
                    }
                }
                config.tooltip_init_x = i;
            }
            $$.tooltip.html(config.tooltip_contents.call($$, $$.data.targets.map(function (d) {
                return $$.addName(d.values[config.tooltip_init_x]);
            }), $$.axis.getXAxisTickFormat(), $$.getYFormat($$.hasArcType()), $$.color));
            $$.tooltip.style("top", config.tooltip_init_position.top).style("left", config.tooltip_init_position.left).style("display", "block");
        }
    };
    c3_chart_internal_fn.getTooltipSortFunction = function () {
        var $$ = this,
            config = $$.config;

        if (config.data_groups.length === 0 || config.tooltip_order !== undefined) {
            // if data are not grouped or if an order is specified
            // for the tooltip values we sort them by their values

            var order = config.tooltip_order;
            if (order === undefined) {
                order = config.data_order;
            }

            var valueOf = function valueOf(obj) {
                return obj ? obj.value : null;
            };

            // if data are not grouped, we sort them by their value
            if (isString(order) && order.toLowerCase() === 'asc') {
                return function (a, b) {
                    return valueOf(a) - valueOf(b);
                };
            } else if (isString(order) && order.toLowerCase() === 'desc') {
                return function (a, b) {
                    return valueOf(b) - valueOf(a);
                };
            } else if (isFunction(order)) {

                // if the function is from data_order we need
                // to wrap the returned function in order to format
                // the sorted value to the expected format

                var sortFunction = order;

                if (config.tooltip_order === undefined) {
                    sortFunction = function sortFunction(a, b) {
                        return order(a ? {
                            id: a.id,
                            values: [a]
                        } : null, b ? {
                            id: b.id,
                            values: [b]
                        } : null);
                    };
                }

                return sortFunction;
            } else if (isArray(order)) {
                return function (a, b) {
                    return order.indexOf(a.id) - order.indexOf(b.id);
                };
            }
        } else {
            // if data are grouped, we follow the order of grouped targets
            var ids = $$.orderTargets($$.data.targets).map(function (i) {
                return i.id;
            });

            // if it was either asc or desc we need to invert the order
            // returned by orderTargets
            if ($$.isOrderAsc() || $$.isOrderDesc()) {
                ids = ids.reverse();
            }

            return function (a, b) {
                return ids.indexOf(a.id) - ids.indexOf(b.id);
            };
        }
    };
    c3_chart_internal_fn.getTooltipContent = function (d, defaultTitleFormat, defaultValueFormat, color) {
        var $$ = this,
            config = $$.config,
            titleFormat = config.tooltip_format_title || defaultTitleFormat,
            nameFormat = config.tooltip_format_name || function (name) {
            return name;
        },
            valueFormat = config.tooltip_format_value || defaultValueFormat,
            text,
            i,
            title,
            value,
            name,
            bgcolor;

        var tooltipSortFunction = this.getTooltipSortFunction();
        if (tooltipSortFunction) {
            d.sort(tooltipSortFunction);
        }

        for (i = 0; i < d.length; i++) {
            if (!(d[i] && (d[i].value || d[i].value === 0))) {
                continue;
            }

            if (!text) {
                title = sanitise(titleFormat ? titleFormat(d[i].x) : d[i].x);
                text = "<table class='" + $$.CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
            }

            value = sanitise(valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index, d));
            if (value !== undefined) {
                // Skip elements when their name is set to null
                if (d[i].name === null) {
                    continue;
                }
                name = sanitise(nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index));
                bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);

                text += "<tr class='" + $$.CLASS.tooltipName + "-" + $$.getTargetSelectorSuffix(d[i].id) + "'>";
                text += "<td class='name'><span style='background-color:" + bgcolor + "'></span>" + name + "</td>";
                text += "<td class='value'>" + value + "</td>";
                text += "</tr>";
            }
        }
        return text + "</table>";
    };
    c3_chart_internal_fn.tooltipPosition = function (dataToShow, tWidth, tHeight, element) {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3;
        var svgLeft, tooltipLeft, tooltipRight, tooltipTop, chartRight;
        var forArc = $$.hasArcType(),
            mouse = d3.mouse(element);
        // Determin tooltip position
        if (forArc) {
            tooltipLeft = ($$.width - ($$.isLegendRight ? $$.getLegendWidth() : 0)) / 2 + mouse[0];
            tooltipTop = ($$.hasType('gauge') ? $$.height : $$.height / 2) + mouse[1] + 20;
        } else {
            svgLeft = $$.getSvgLeft(true);
            if (config.axis_rotated) {
                tooltipLeft = svgLeft + mouse[0] + 100;
                tooltipRight = tooltipLeft + tWidth;
                chartRight = $$.currentWidth - $$.getCurrentPaddingRight();
                tooltipTop = $$.x(dataToShow[0].x) + 20;
            } else {
                tooltipLeft = svgLeft + $$.getCurrentPaddingLeft(true) + $$.x(dataToShow[0].x) + 20;
                tooltipRight = tooltipLeft + tWidth;
                chartRight = svgLeft + $$.currentWidth - $$.getCurrentPaddingRight();
                tooltipTop = mouse[1] + 15;
            }

            if (tooltipRight > chartRight) {
                // 20 is needed for Firefox to keep tooltip width
                tooltipLeft -= tooltipRight - chartRight + 20;
            }
            if (tooltipTop + tHeight > $$.currentHeight) {
                tooltipTop -= tHeight + 30;
            }
        }
        if (tooltipTop < 0) {
            tooltipTop = 0;
        }
        return { top: tooltipTop, left: tooltipLeft };
    };
    c3_chart_internal_fn.showTooltip = function (selectedData, element) {
        var $$ = this,
            config = $$.config;
        var tWidth, tHeight, position;
        var forArc = $$.hasArcType(),
            dataToShow = selectedData.filter(function (d) {
            return d && isValue(d.value);
        }),
            positionFunction = config.tooltip_position || c3_chart_internal_fn.tooltipPosition;
        if (dataToShow.length === 0 || !config.tooltip_show) {
            return;
        }
        $$.tooltip.html(config.tooltip_contents.call($$, selectedData, $$.axis.getXAxisTickFormat(), $$.getYFormat(forArc), $$.color)).style("display", "block");

        // Get tooltip dimensions
        tWidth = $$.tooltip.property('offsetWidth');
        tHeight = $$.tooltip.property('offsetHeight');

        position = positionFunction.call(this, dataToShow, tWidth, tHeight, element);
        // Set tooltip
        $$.tooltip.style("top", position.top + "px").style("left", position.left + 'px');
    };
    c3_chart_internal_fn.hideTooltip = function () {
        this.tooltip.style("display", "none");
    };

    c3_chart_internal_fn.setTargetType = function (targetIds, type) {
        var $$ = this,
            config = $$.config;
        $$.mapToTargetIds(targetIds).forEach(function (id) {
            $$.withoutFadeIn[id] = type === config.data_types[id];
            config.data_types[id] = type;
        });
        if (!targetIds) {
            config.data_type = type;
        }
    };
    c3_chart_internal_fn.hasType = function (type, targets) {
        var $$ = this,
            types = $$.config.data_types,
            has = false;
        targets = targets || $$.data.targets;
        if (targets && targets.length) {
            targets.forEach(function (target) {
                var t = types[target.id];
                if (t && t.indexOf(type) >= 0 || !t && type === 'line') {
                    has = true;
                }
            });
        } else if (Object.keys(types).length) {
            Object.keys(types).forEach(function (id) {
                if (types[id] === type) {
                    has = true;
                }
            });
        } else {
            has = $$.config.data_type === type;
        }
        return has;
    };
    c3_chart_internal_fn.hasArcType = function (targets) {
        return this.hasType('pie', targets) || this.hasType('donut', targets) || this.hasType('gauge', targets);
    };
    c3_chart_internal_fn.isLineType = function (d) {
        var config = this.config,
            id = isString(d) ? d : d.id;
        return !config.data_types[id] || ['line', 'spline', 'area', 'area-spline', 'step', 'area-step'].indexOf(config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isStepType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['step', 'area-step'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isSplineType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['spline', 'area-spline'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isAreaType = function (d) {
        var id = isString(d) ? d : d.id;
        return ['area', 'area-spline', 'area-step'].indexOf(this.config.data_types[id]) >= 0;
    };
    c3_chart_internal_fn.isBarType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'bar';
    };
    c3_chart_internal_fn.isScatterType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'scatter';
    };
    c3_chart_internal_fn.isPieType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'pie';
    };
    c3_chart_internal_fn.isGaugeType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'gauge';
    };
    c3_chart_internal_fn.isDonutType = function (d) {
        var id = isString(d) ? d : d.id;
        return this.config.data_types[id] === 'donut';
    };
    c3_chart_internal_fn.isArcType = function (d) {
        return this.isPieType(d) || this.isDonutType(d) || this.isGaugeType(d);
    };
    c3_chart_internal_fn.lineData = function (d) {
        return this.isLineType(d) ? [d] : [];
    };
    c3_chart_internal_fn.arcData = function (d) {
        return this.isArcType(d.data) ? [d] : [];
    };
    /* not used
     function scatterData(d) {
     return isScatterType(d) ? d.values : [];
     }
     */
    c3_chart_internal_fn.barData = function (d) {
        return this.isBarType(d) ? d.values : [];
    };
    c3_chart_internal_fn.lineOrScatterData = function (d) {
        return this.isLineType(d) || this.isScatterType(d) ? d.values : [];
    };
    c3_chart_internal_fn.barOrLineData = function (d) {
        return this.isBarType(d) || this.isLineType(d) ? d.values : [];
    };
    c3_chart_internal_fn.isInterpolationType = function (type) {
        return ['linear', 'linear-closed', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'monotone'].indexOf(type) >= 0;
    };

    c3_chart_internal_fn.isSafari = function () {
        var ua = window.navigator.userAgent;
        return ua.indexOf('Safari') >= 0 && ua.indexOf('Chrome') < 0;
    };
    c3_chart_internal_fn.isChrome = function () {
        var ua = window.navigator.userAgent;
        return ua.indexOf('Chrome') >= 0;
    };

    c3_chart_internal_fn.initZoom = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            startEvent;

        $$.zoom = d3.behavior.zoom().on("zoomstart", function () {
            startEvent = d3.event.sourceEvent;
            $$.zoom.altDomain = d3.event.sourceEvent.altKey ? $$.x.orgDomain() : null;
            config.zoom_onzoomstart.call($$.api, d3.event.sourceEvent);
        }).on("zoom", function () {
            $$.redrawForZoom.call($$);
        }).on('zoomend', function () {
            var event = d3.event.sourceEvent;
            // if click, do nothing. otherwise, click interaction will be canceled.
            if (event && startEvent.clientX === event.clientX && startEvent.clientY === event.clientY) {
                return;
            }
            $$.redrawEventRect();
            $$.updateZoom();
            config.zoom_onzoomend.call($$.api, $$.x.orgDomain());
        });
        $$.zoom.scale = function (scale) {
            return config.axis_rotated ? this.y(scale) : this.x(scale);
        };
        $$.zoom.orgScaleExtent = function () {
            var extent = config.zoom_extent ? config.zoom_extent : [1, 10];
            return [extent[0], Math.max($$.getMaxDataCount() / extent[1], extent[1])];
        };
        $$.zoom.updateScaleExtent = function () {
            var ratio = diffDomain($$.x.orgDomain()) / diffDomain($$.getZoomDomain()),
                extent = this.orgScaleExtent();
            this.scaleExtent([extent[0] * ratio, extent[1] * ratio]);
            return this;
        };
    };
    c3_chart_internal_fn.getZoomDomain = function () {
        var $$ = this,
            config = $$.config,
            d3 = $$.d3,
            min = d3.min([$$.orgXDomain[0], config.zoom_x_min]),
            max = d3.max([$$.orgXDomain[1], config.zoom_x_max]);
        return [min, max];
    };
    c3_chart_internal_fn.updateZoom = function () {
        var $$ = this,
            z = $$.config.zoom_enabled ? $$.zoom : function () {};
        $$.main.select('.' + CLASS.zoomRect).call(z).on("dblclick.zoom", null);
        $$.main.selectAll('.' + CLASS.eventRect).call(z).on("dblclick.zoom", null);
    };
    c3_chart_internal_fn.redrawForZoom = function () {
        var $$ = this,
            d3 = $$.d3,
            config = $$.config,
            zoom = $$.zoom,
            x = $$.x;
        if (!config.zoom_enabled) {
            return;
        }
        if ($$.filterTargetsToShow($$.data.targets).length === 0) {
            return;
        }
        if (d3.event.sourceEvent.type === 'mousemove' && zoom.altDomain) {
            x.domain(zoom.altDomain);
            zoom.scale(x).updateScaleExtent();
            return;
        }
        if ($$.isCategorized() && x.orgDomain()[0] === $$.orgXDomain[0]) {
            x.domain([$$.orgXDomain[0] - 1e-10, x.orgDomain()[1]]);
        }
        $$.redraw({
            withTransition: false,
            withY: config.zoom_rescale,
            withSubchart: false,
            withEventRect: false,
            withDimension: false
        });
        if (d3.event.sourceEvent.type === 'mousemove') {
            $$.cancelClick = true;
        }
        config.zoom_onzoom.call($$.api, x.orgDomain());
    };

    return c3;

})));


/***/ }),

/***/ "./node_modules/change-emitter/lib/index.js":
/*!**************************************************!*\
  !*** ./node_modules/change-emitter/lib/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var createChangeEmitter = exports.createChangeEmitter = function createChangeEmitter() {
  var currentListeners = [];
  var nextListeners = currentListeners;

  function ensureCanMutateNextListeners() {
    if (nextListeners === currentListeners) {
      nextListeners = currentListeners.slice();
    }
  }

  function listen(listener) {
    if (typeof listener !== 'function') {
      throw new Error('Expected listener to be a function.');
    }

    var isSubscribed = true;

    ensureCanMutateNextListeners();
    nextListeners.push(listener);

    return function () {
      if (!isSubscribed) {
        return;
      }

      isSubscribed = false;

      ensureCanMutateNextListeners();
      var index = nextListeners.indexOf(listener);
      nextListeners.splice(index, 1);
    };
  }

  function emit() {
    currentListeners = nextListeners;
    var listeners = currentListeners;
    for (var i = 0; i < listeners.length; i++) {
      listeners[i].apply(listeners, arguments);
    }
  }

  return {
    listen: listen,
    emit: emit
  };
};

/***/ }),

/***/ "./node_modules/classnames/index.js":
/*!******************************************!*\
  !*** ./node_modules/classnames/index.js ***!
  \******************************************/
/*! no static exports found */
/***/ (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 ( true && 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 {}
}());


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/assign.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/assign.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/core-js/library/modules/es6.object.assign.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.assign;


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/create.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/create.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.create */ "./node_modules/core-js/library/modules/es6.object.create.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
module.exports = function create(P, D) {
  return $Object.create(P, D);
};


/***/ }),

/***/ "./node_modules/core-js/library/fn/object/set-prototype-of.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/fn/object/set-prototype-of.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.object.set-prototype-of */ "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.setPrototypeOf;


/***/ }),

/***/ "./node_modules/core-js/library/fn/symbol/index.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/fn/symbol/index.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/core-js/library/modules/es6.symbol.js");
__webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/core-js/library/modules/es6.object.to-string.js");
__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
__webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/core-js/library/modules/es7.symbol.observable.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Symbol;


/***/ }),

/***/ "./node_modules/core-js/library/fn/symbol/iterator.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/fn/symbol/iterator.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js").f('iterator');


/***/ }),

/***/ "./node_modules/core-js/library/modules/_a-function.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_a-function.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_add-to-unscopables.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_add-to-unscopables.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function () { /* empty */ };


/***/ }),

/***/ "./node_modules/core-js/library/modules/_an-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_an-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
module.exports = function (it) {
  if (!isObject(it)) throw TypeError(it + ' is not an object!');
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_array-includes.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_array-includes.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// false -> Array#indexOf
// true  -> Array#includes
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/core-js/library/modules/_to-absolute-index.js");
module.exports = function (IS_INCLUDES) {
  return function ($this, el, fromIndex) {
    var O = toIObject($this);
    var length = toLength(O.length);
    var index = toAbsoluteIndex(fromIndex, length);
    var value;
    // Array#includes uses SameValueZero equality algorithm
    // eslint-disable-next-line no-self-compare
    if (IS_INCLUDES && el != el) while (length > index) {
      value = O[index++];
      // eslint-disable-next-line no-self-compare
      if (value != value) return true;
    // Array#indexOf ignores holes, Array#includes - not
    } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
      if (O[index] === el) return IS_INCLUDES || index || 0;
    } return !IS_INCLUDES && -1;
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_cof.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_cof.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var toString = {}.toString;

module.exports = function (it) {
  return toString.call(it).slice(8, -1);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_core.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_core.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var core = module.exports = { version: '2.6.0' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/core-js/library/modules/_ctx.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_ctx.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// optional / simple context binding
var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/core-js/library/modules/_a-function.js");
module.exports = function (fn, that, length) {
  aFunction(fn);
  if (that === undefined) return fn;
  switch (length) {
    case 1: return function (a) {
      return fn.call(that, a);
    };
    case 2: return function (a, b) {
      return fn.call(that, a, b);
    };
    case 3: return function (a, b, c) {
      return fn.call(that, a, b, c);
    };
  }
  return function (/* ...args */) {
    return fn.apply(that, arguments);
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_defined.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_defined.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
  if (it == undefined) throw TypeError("Can't call method on  " + it);
  return it;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_descriptors.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_descriptors.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_dom-create.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_dom-create.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
  return is ? document.createElement(it) : {};
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_enum-bug-keys.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
module.exports = (
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');


/***/ }),

/***/ "./node_modules/core-js/library/modules/_enum-keys.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_enum-keys.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
module.exports = function (it) {
  var result = getKeys(it);
  var getSymbols = gOPS.f;
  if (getSymbols) {
    var symbols = getSymbols(it);
    var isEnum = pIE.f;
    var i = 0;
    var key;
    while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  } return result;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_export.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_export.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var IS_WRAP = type & $export.W;
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE];
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  var key, own, out;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    if (own && has(exports, key)) continue;
    // export native or passed
    out = own ? target[key] : source[key];
    // prevent global pollution for namespaces
    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
    // bind timers to global for call from export context
    : IS_BIND && own ? ctx(out, global)
    // wrap global constructors for prevent change them in library
    : IS_WRAP && target[key] == out ? (function (C) {
      var F = function (a, b, c) {
        if (this instanceof C) {
          switch (arguments.length) {
            case 0: return new C();
            case 1: return new C(a);
            case 2: return new C(a, b);
          } return new C(a, b, c);
        } return C.apply(this, arguments);
      };
      F[PROTOTYPE] = C[PROTOTYPE];
      return F;
    // make static versions for prototype methods
    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
    if (IS_PROTO) {
      (exports.virtual || (exports.virtual = {}))[key] = out;
      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
      if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
    }
  }
};
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_fails.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_fails.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (exec) {
  try {
    return !!exec();
  } catch (e) {
    return true;
  }
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_global.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_global.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
  ? window : typeof self != 'undefined' && self.Math == Math ? self
  // eslint-disable-next-line no-new-func
  : Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef


/***/ }),

/***/ "./node_modules/core-js/library/modules/_has.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_has.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
  return hasOwnProperty.call(it, key);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_hide.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_hide.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
  return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_html.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_html.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
module.exports = document && document.documentElement;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_ie8-dom-define.js":
/*!*****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iobject.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iobject.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  return cof(it) == 'String' ? it.split('') : Object(it);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_is-array.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_is-array.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.2.2 IsArray(argument)
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
module.exports = Array.isArray || function isArray(arg) {
  return cof(arg) == 'Array';
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_is-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_is-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (it) {
  return typeof it === 'object' ? it !== null : typeof it === 'function';
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-create.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-create.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var IteratorPrototype = {};

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });

module.exports = function (Constructor, NAME, next) {
  Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  setToStringTag(Constructor, NAME + ' Iterator');
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-define.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-define.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/core-js/library/modules/_iter-create.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/core-js/library/modules/_object-gpo.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';

var returnThis = function () { return this; };

module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  $iterCreate(Constructor, NAME, next);
  var getMethod = function (kind) {
    if (!BUGGY && kind in proto) return proto[kind];
    switch (kind) {
      case KEYS: return function keys() { return new Constructor(this, kind); };
      case VALUES: return function values() { return new Constructor(this, kind); };
    } return function entries() { return new Constructor(this, kind); };
  };
  var TAG = NAME + ' Iterator';
  var DEF_VALUES = DEFAULT == VALUES;
  var VALUES_BUG = false;
  var proto = Base.prototype;
  var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  var $default = $native || getMethod(DEFAULT);
  var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  var methods, key, IteratorPrototype;
  // Fix native
  if ($anyNative) {
    IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
    if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
      // Set @@toStringTag to native iterators
      setToStringTag(IteratorPrototype, TAG, true);
      // fix for some old engines
      if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
    }
  }
  // fix Array#{values, @@iterator}.name in V8 / FF
  if (DEF_VALUES && $native && $native.name !== VALUES) {
    VALUES_BUG = true;
    $default = function values() { return $native.call(this); };
  }
  // Define iterator
  if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
    hide(proto, ITERATOR, $default);
  }
  // Plug for library
  Iterators[NAME] = $default;
  Iterators[TAG] = returnThis;
  if (DEFAULT) {
    methods = {
      values: DEF_VALUES ? $default : getMethod(VALUES),
      keys: IS_SET ? $default : getMethod(KEYS),
      entries: $entries
    };
    if (FORCED) for (key in methods) {
      if (!(key in proto)) redefine(proto, key, methods[key]);
    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  }
  return methods;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iter-step.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iter-step.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (done, value) {
  return { value: value, done: !!done };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_iterators.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_iterators.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = {};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_library.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_library.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = true;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_meta.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_meta.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js")('meta');
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
  return true;
};
var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
  setDesc(it, META, { value: {
    i: 'O' + ++id, // object ID
    w: {}          // weak collections IDs
  } });
};
var fastKey = function (it, create) {
  // return primitive with prefix
  if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return 'F';
    // not necessary to add metadata
    if (!create) return 'E';
    // add missing metadata
    setMeta(it);
  // return object ID
  } return it[META].i;
};
var getWeak = function (it, create) {
  if (!has(it, META)) {
    // can't set metadata to uncaught frozen object
    if (!isExtensible(it)) return true;
    // not necessary to add metadata
    if (!create) return false;
    // add missing metadata
    setMeta(it);
  // return hash weak collections IDs
  } return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
  if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  return it;
};
var meta = module.exports = {
  KEY: META,
  NEED: false,
  fastKey: fastKey,
  getWeak: getWeak,
  onFreeze: onFreeze
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-assign.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-assign.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var $assign = Object.assign;

// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  var A = {};
  var B = {};
  // eslint-disable-next-line no-undef
  var S = Symbol();
  var K = 'abcdefghijklmnopqrst';
  A[S] = 7;
  K.split('').forEach(function (k) { B[k] = k; });
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  var T = toObject(target);
  var aLen = arguments.length;
  var index = 1;
  var getSymbols = gOPS.f;
  var isEnum = pIE.f;
  while (aLen > index) {
    var S = IObject(arguments[index++]);
    var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
    var length = keys.length;
    var j = 0;
    var key;
    while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  } return T;
} : $assign;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-create.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-create.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/core-js/library/modules/_object-dps.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';

// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
  // Thrash, waste and sodomy: IE GC bug
  var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('iframe');
  var i = enumBugKeys.length;
  var lt = '<';
  var gt = '>';
  var iframeDocument;
  iframe.style.display = 'none';
  __webpack_require__(/*! ./_html */ "./node_modules/core-js/library/modules/_html.js").appendChild(iframe);
  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  // createDict = iframe.contentWindow.Object;
  // html.removeChild(iframe);
  iframeDocument = iframe.contentWindow.document;
  iframeDocument.open();
  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  iframeDocument.close();
  createDict = iframeDocument.F;
  while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  return createDict();
};

module.exports = Object.create || function create(O, Properties) {
  var result;
  if (O !== null) {
    Empty[PROTOTYPE] = anObject(O);
    result = new Empty();
    Empty[PROTOTYPE] = null;
    // add "__proto__" for Object.getPrototypeOf polyfill
    result[IE_PROTO] = O;
  } else result = createDict();
  return Properties === undefined ? result : dPs(result, Properties);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-dp.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-dp.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var dP = Object.defineProperty;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  anObject(O);
  P = toPrimitive(P, true);
  anObject(Attributes);
  if (IE8_DOM_DEFINE) try {
    return dP(O, P, Attributes);
  } catch (e) { /* empty */ }
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  if ('value' in Attributes) O[P] = Attributes.value;
  return O;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-dps.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-dps.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");

module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
  anObject(O);
  var keys = getKeys(Properties);
  var length = keys.length;
  var i = 0;
  var P;
  while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  return O;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopd.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var gOPD = Object.getOwnPropertyDescriptor;

exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  O = toIObject(O);
  P = toPrimitive(P, true);
  if (IE8_DOM_DEFINE) try {
    return gOPD(O, P);
  } catch (e) { /* empty */ }
  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopn-ext.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopn-ext.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f;
var toString = {}.toString;

var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  ? Object.getOwnPropertyNames(window) : [];

var getWindowNames = function (it) {
  try {
    return gOPN(it);
  } catch (e) {
    return windowNames.slice();
  }
};

module.exports.f = function getOwnPropertyNames(it) {
  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gopn.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');

exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  return $keys(O, hiddenKeys);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gops.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gops.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-gpo.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var ObjectProto = Object.prototype;

module.exports = Object.getPrototypeOf || function (O) {
  O = toObject(O);
  if (has(O, IE_PROTO)) return O[IE_PROTO];
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
    return O.constructor.prototype;
  } return O instanceof Object ? ObjectProto : null;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-keys-internal.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/core-js/library/modules/_array-includes.js")(false);
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');

module.exports = function (object, names) {
  var O = toIObject(object);
  var i = 0;
  var result = [];
  var key;
  for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  // Don't enum bug & hidden keys
  while (names.length > i) if (has(O, key = names[i++])) {
    ~arrayIndexOf(result, key) || result.push(key);
  }
  return result;
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-keys.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-keys.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");

module.exports = Object.keys || function keys(O) {
  return $keys(O, enumBugKeys);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_object-pie.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_object-pie.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

exports.f = {}.propertyIsEnumerable;


/***/ }),

/***/ "./node_modules/core-js/library/modules/_property-desc.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_property-desc.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function (bitmap, value) {
  return {
    enumerable: !(bitmap & 1),
    configurable: !(bitmap & 2),
    writable: !(bitmap & 4),
    value: value
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_redefine.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_redefine.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");


/***/ }),

/***/ "./node_modules/core-js/library/modules/_set-proto.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_set-proto.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var check = function (O, proto) {
  anObject(O);
  if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
    function (test, buggy, set) {
      try {
        set = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js")(Function.call, __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js").f(Object.prototype, '__proto__').set, 2);
        set(test, []);
        buggy = !(test instanceof Array);
      } catch (e) { buggy = true; }
      return function setPrototypeOf(O, proto) {
        check(O, proto);
        if (buggy) O.__proto__ = proto;
        else set(O, proto);
        return O;
      };
    }({}, false) : undefined),
  check: check
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_set-to-string-tag.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');

module.exports = function (it, tag, stat) {
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_shared-key.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_shared-key.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('keys');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
module.exports = function (key) {
  return shared[key] || (shared[key] = uid(key));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_shared.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_shared.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});

(module.exports = function (key, value) {
  return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
  version: core.version,
  mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
  copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/_string-at.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_string-at.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
// true  -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
  return function (that, pos) {
    var s = String(defined(that));
    var i = toInteger(pos);
    var l = s.length;
    var a, b;
    if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
    a = s.charCodeAt(i);
    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
      ? TO_STRING ? s.charAt(i) : a
      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  };
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-absolute-index.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
  index = toInteger(index);
  return index < 0 ? max(index + length, 0) : min(index, length);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-integer.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-integer.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-iobject.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return IObject(defined(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-length.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-length.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.15 ToLength
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var min = Math.min;
module.exports = function (it) {
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-object.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-object.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.13 ToObject(argument)
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
  return Object(defined(it));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_to-primitive.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
  if (!isObject(it)) return it;
  var fn, val;
  if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  throw TypeError("Can't convert object to primitive value");
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_uid.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_uid.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks-define.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks-define.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
module.exports = function (name) {
  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks-ext.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");


/***/ }),

/***/ "./node_modules/core-js/library/modules/_wks.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/library/modules/_wks.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var store = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('wks');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").Symbol;
var USE_SYMBOL = typeof Symbol == 'function';

var $exports = module.exports = function (name) {
  return store[name] || (store[name] =
    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};

$exports.store = store;


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/core-js/library/modules/_add-to-unscopables.js");
var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/core-js/library/modules/_iter-step.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");

// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
  this._t = toIObject(iterated); // target
  this._i = 0;                   // next index
  this._k = kind;                // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var kind = this._k;
  var index = this._i++;
  if (!O || index >= O.length) {
    this._t = undefined;
    return step(1);
  }
  if (kind == 'keys') return step(0, index);
  if (kind == 'values') return step(0, O[index]);
  return step(0, [index, O[index]]);
}, 'values');

// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;

addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.assign.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.assign.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");

$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/core-js/library/modules/_object-assign.js") });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.create.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.create.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', { create: __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js") });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(/*! ./_set-proto */ "./node_modules/core-js/library/modules/_set-proto.js").set });


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.object.to-string.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.object.to-string.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {



/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.string.iterator.js":
/*!*********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/core-js/library/modules/_string-at.js")(true);

// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
  this._t = String(iterated); // target
  this._i = 0;                // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
  var O = this._t;
  var index = this._i;
  var point;
  if (index >= O.length) return { value: undefined, done: true };
  point = $at(O, index);
  this._i += point.length;
  return { value: point, done: false };
});


/***/ }),

/***/ "./node_modules/core-js/library/modules/es6.symbol.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es6.symbol.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// ECMAScript 6 symbols shim
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var META = __webpack_require__(/*! ./_meta */ "./node_modules/core-js/library/modules/_meta.js").KEY;
var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var wks = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js");
var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/core-js/library/modules/_enum-keys.js");
var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/core-js/library/modules/_object-gopn-ext.js");
var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js");
var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;

// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
  return _create(dP({}, 'a', {
    get: function () { return dP(this, 'a', { value: 7 }).a; }
  })).a != 7;
}) ? function (it, key, D) {
  var protoDesc = gOPD(ObjectProto, key);
  if (protoDesc) delete ObjectProto[key];
  dP(it, key, D);
  if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;

var wrap = function (tag) {
  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  sym._k = tag;
  return sym;
};

var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  return typeof it == 'symbol';
} : function (it) {
  return it instanceof $Symbol;
};

var $defineProperty = function defineProperty(it, key, D) {
  if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  anObject(it);
  key = toPrimitive(key, true);
  anObject(D);
  if (has(AllSymbols, key)) {
    if (!D.enumerable) {
      if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
      it[HIDDEN][key] = true;
    } else {
      if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
      D = _create(D, { enumerable: createDesc(0, false) });
    } return setSymbolDesc(it, key, D);
  } return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
  anObject(it);
  var keys = enumKeys(P = toIObject(P));
  var i = 0;
  var l = keys.length;
  var key;
  while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  return it;
};
var $create = function create(it, P) {
  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  var E = isEnum.call(this, key = toPrimitive(key, true));
  if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  it = toIObject(it);
  key = toPrimitive(key, true);
  if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  var D = gOPD(it, key);
  if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  var names = gOPN(toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  } return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  var IS_OP = it === ObjectProto;
  var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  var result = [];
  var i = 0;
  var key;
  while (names.length > i) {
    if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  } return result;
};

// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
  $Symbol = function Symbol() {
    if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
    var $set = function (value) {
      if (this === ObjectProto) $set.call(OPSymbols, value);
      if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
      setSymbolDesc(this, tag, createDesc(1, value));
    };
    if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
    return wrap(tag);
  };
  redefine($Symbol[PROTOTYPE], 'toString', function toString() {
    return this._k;
  });

  $GOPD.f = $getOwnPropertyDescriptor;
  $DP.f = $defineProperty;
  __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
  __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
  __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js").f = $getOwnPropertySymbols;

  if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js")) {
    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  }

  wksExt.f = function (name) {
    return wrap(wks(name));
  };
}

$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });

for (var es6Symbols = (
  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);

for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);

$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  // 19.4.2.1 Symbol.for(key)
  'for': function (key) {
    return has(SymbolRegistry, key += '')
      ? SymbolRegistry[key]
      : SymbolRegistry[key] = $Symbol(key);
  },
  // 19.4.2.5 Symbol.keyFor(sym)
  keyFor: function keyFor(sym) {
    if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
    for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  },
  useSetter: function () { setter = true; },
  useSimple: function () { setter = false; }
});

$export($export.S + $export.F * !USE_NATIVE, 'Object', {
  // 19.1.2.2 Object.create(O [, Properties])
  create: $create,
  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  defineProperty: $defineProperty,
  // 19.1.2.3 Object.defineProperties(O, Properties)
  defineProperties: $defineProperties,
  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  // 19.1.2.7 Object.getOwnPropertyNames(O)
  getOwnPropertyNames: $getOwnPropertyNames,
  // 19.1.2.8 Object.getOwnPropertySymbols(O)
  getOwnPropertySymbols: $getOwnPropertySymbols
});

// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  var S = $Symbol();
  // MS Edge converts symbol values to JSON as {}
  // WebKit converts symbol values to JSON as null
  // V8 throws on boxed symbols
  return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
  stringify: function stringify(it) {
    var args = [it];
    var i = 1;
    var replacer, $replacer;
    while (arguments.length > i) args.push(arguments[i++]);
    $replacer = replacer = args[1];
    if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
    if (!isArray(replacer)) replacer = function (key, value) {
      if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
      if (!isSymbol(value)) return value;
    };
    args[1] = replacer;
    return _stringify.apply($JSON, args);
  }
});

// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
/*!***************************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');


/***/ }),

/***/ "./node_modules/core-js/library/modules/es7.symbol.observable.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/library/modules/es7.symbol.observable.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('observable');


/***/ }),

/***/ "./node_modules/core-js/library/modules/web.dom.iterable.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/library/modules/web.dom.iterable.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(/*! ./es6.array.iterator */ "./node_modules/core-js/library/modules/es6.array.iterator.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');

var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
  'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
  'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
  'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
  'TextTrackList,TouchList').split(',');

for (var i = 0; i < DOMIterables.length; i++) {
  var NAME = DOMIterables[i];
  var Collection = global[NAME];
  var proto = Collection && Collection.prototype;
  if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  Iterators[NAME] = Iterators.Array;
}


/***/ }),

/***/ "./node_modules/create-react-context/lib/implementation.js":
/*!*****************************************************************!*\
  !*** ./node_modules/create-react-context/lib/implementation.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _gud = __webpack_require__(/*! gud */ "./node_modules/gud/index.js");

var _gud2 = _interopRequireDefault(_gud);

var _warning = __webpack_require__(/*! fbjs/lib/warning */ "./node_modules/fbjs/lib/warning.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 MAX_SIGNED_31_BIT_INT = 1073741823;

// Inlined Object.is polyfill.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
function objectIs(x, y) {
  if (x === y) {
    return x !== 0 || 1 / x === 1 / y;
  } else {
    return x !== x && y !== y;
  }
}

function createEventEmitter(value) {
  var handlers = [];
  return {
    on: function on(handler) {
      handlers.push(handler);
    },
    off: function off(handler) {
      handlers = handlers.filter(function (h) {
        return h !== handler;
      });
    },
    get: function get() {
      return value;
    },
    set: function set(newValue, changedBits) {
      value = newValue;
      handlers.forEach(function (handler) {
        return handler(value, changedBits);
      });
    }
  };
}

function onlyChild(children) {
  return Array.isArray(children) ? children[0] : children;
}

function createReactContext(defaultValue, calculateChangedBits) {
  var _Provider$childContex, _Consumer$contextType;

  var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';

  var Provider = function (_Component) {
    _inherits(Provider, _Component);

    function Provider() {
      var _temp, _this, _ret;

      _classCallCheck(this, Provider);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
    }

    Provider.prototype.getChildContext = function getChildContext() {
      var _ref;

      return _ref = {}, _ref[contextProp] = this.emitter, _ref;
    };

    Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      if (this.props.value !== nextProps.value) {
        var oldValue = this.props.value;
        var newValue = nextProps.value;
        var changedBits = void 0;

        if (objectIs(oldValue, newValue)) {
          changedBits = 0; // No change
        } else {
          changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
          if (true) {
            (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
          }

          changedBits |= 0;

          if (changedBits !== 0) {
            this.emitter.set(nextProps.value, changedBits);
          }
        }
      }
    };

    Provider.prototype.render = function render() {
      return this.props.children;
    };

    return Provider;
  }(_react.Component);

  Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);

  var Consumer = function (_Component2) {
    _inherits(Consumer, _Component2);

    function Consumer() {
      var _temp2, _this2, _ret2;

      _classCallCheck(this, Consumer);

      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {
        value: _this2.getValue()
      }, _this2.onUpdate = function (newValue, changedBits) {
        var observedBits = _this2.observedBits | 0;
        if ((observedBits & changedBits) !== 0) {
          _this2.setState({ value: _this2.getValue() });
        }
      }, _temp2), _possibleConstructorReturn(_this2, _ret2);
    }

    Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      var observedBits = nextProps.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentDidMount = function componentDidMount() {
      if (this.context[contextProp]) {
        this.context[contextProp].on(this.onUpdate);
      }
      var observedBits = this.props.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
      if (this.context[contextProp]) {
        this.context[contextProp].off(this.onUpdate);
      }
    };

    Consumer.prototype.getValue = function getValue() {
      if (this.context[contextProp]) {
        return this.context[contextProp].get();
      } else {
        return defaultValue;
      }
    };

    Consumer.prototype.render = function render() {
      return onlyChild(this.props.children)(this.state.value);
    };

    return Consumer;
  }(_react.Component);

  Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);


  return {
    Provider: Provider,
    Consumer: Consumer
  };
}

exports.default = createReactContext;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/create-react-context/lib/index.js":
/*!********************************************************!*\
  !*** ./node_modules/create-react-context/lib/index.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _implementation = __webpack_require__(/*! ./implementation */ "./node_modules/create-react-context/lib/implementation.js");

var _implementation2 = _interopRequireDefault(_implementation);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _react2.default.createContext || _implementation2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/css-element-queries/index.js":
/*!***************************************************!*\
  !*** ./node_modules/css-element-queries/index.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = {
    ResizeSensor: __webpack_require__(/*! ./src/ResizeSensor */ "./node_modules/css-element-queries/src/ResizeSensor.js"),
    ElementQueries: __webpack_require__(/*! ./src/ElementQueries */ "./node_modules/css-element-queries/src/ElementQueries.js")
};


/***/ }),

/***/ "./node_modules/css-element-queries/src/ElementQueries.js":
/*!****************************************************************!*\
  !*** ./node_modules/css-element-queries/src/ElementQueries.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __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_ARRAY__ = [__webpack_require__(/*! ./ResizeSensor.js */ "./node_modules/css-element-queries/src/ResizeSensor.js")], __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 {}
}(typeof window !== 'undefined' ? window : this, function (ResizeSensor) {

    /**
     *
     * @type {Function}
     * @constructor
     */
    var ElementQueries = function () {
        //<style> element with our dynamically created styles
        var cssStyleElement;

        //all rules found for element queries
        var allQueries = {};

        //association map to identify which selector belongs to a element from the animationstart event.
        var idToSelectorMapping = [];

        /**
         *
         * @param element
         * @returns {Number}
         */
        function getEmSize(element) {
            if (!element) {
                element = document.documentElement;
            }
            var fontSize = window.getComputedStyle(element, null).fontSize;
            return parseFloat(fontSize) || 16;
        }

        /**
         * 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)
            }
        }

        /**
         *
         * @copyright https://github.com/Mr0grog/element-query/blob/master/LICENSE
         *
         * @param {HTMLElement} element
         * @param {*} value
         * @returns {*}
         */
        function convertToPx(element, value) {
            var numbers = value.split(/\d/);
            var units = numbers[numbers.length - 1];
            value = parseFloat(value);
            switch (units) {
                case "px":
                    return value;
                case "em":
                    return value * getEmSize(element);
                case "rem":
                    return value * getEmSize();
                // Viewport units!
                // According to http://quirksmode.org/mobile/tableViewport.html
                // documentElement.clientWidth/Height gets us the most reliable info
                case "vw":
                    return value * document.documentElement.clientWidth / 100;
                case "vh":
                    return value * document.documentElement.clientHeight / 100;
                case "vmin":
                case "vmax":
                    var vw = document.documentElement.clientWidth / 100;
                    var vh = document.documentElement.clientHeight / 100;
                    var chooser = Math[units === "vmin" ? "min" : "max"];
                    return value * chooser(vw, vh);
                default:
                    return value;
                // for now, not supporting physical units (since they are just a set number of px)
                // or ex/ch (getting accurate measurements is hard)
            }
        }

        /**
         *
         * @param {HTMLElement} element
         * @param {String} id
         * @constructor
         */
        function SetupInformation(element, id) {
            this.element = element;
            var key, option, elementSize, value, actualValue, attrValues, attrValue, attrName;

            var attributes = ['min-width', 'min-height', 'max-width', 'max-height'];

            /**
             * Extracts the computed width/height and sets to min/max- attribute.
             */
            this.call = function () {
                // extract current dimensions
                elementSize = getElementSize(this.element);

                attrValues = {};

                for (key in allQueries[id]) {
                    if (!allQueries[id].hasOwnProperty(key)) {
                        continue;
                    }
                    option = allQueries[id][key];

                    value = convertToPx(this.element, option.value);

                    actualValue = option.property === 'width' ? elementSize.width : elementSize.height;
                    attrName = option.mode + '-' + option.property;
                    attrValue = '';

                    if (option.mode === 'min' && actualValue >= value) {
                        attrValue += option.value;
                    }

                    if (option.mode === 'max' && actualValue <= value) {
                        attrValue += option.value;
                    }

                    if (!attrValues[attrName]) attrValues[attrName] = '';
                    if (attrValue && -1 === (' ' + attrValues[attrName] + ' ').indexOf(' ' + attrValue + ' ')) {
                        attrValues[attrName] += ' ' + attrValue;
                    }
                }

                for (var k in attributes) {
                    if (!attributes.hasOwnProperty(k)) continue;

                    if (attrValues[attributes[k]]) {
                        this.element.setAttribute(attributes[k], attrValues[attributes[k]].substr(1));
                    } else {
                        this.element.removeAttribute(attributes[k]);
                    }
                }
            };
        }

        /**
         * @param {HTMLElement} element
         * @param {Object}      id
         */
        function setupElement(element, id) {
            if (!element.elementQueriesSetupInformation) {
                element.elementQueriesSetupInformation = new SetupInformation(element, id);
            }

            if (!element.elementQueriesSensor) {
                element.elementQueriesSensor = new ResizeSensor(element, function () {
                    element.elementQueriesSetupInformation.call();
                });
            }
        }

        /**
         * Stores rules to the selector that should be applied once resized.
         *
         * @param {String} selector
         * @param {String} mode min|max
         * @param {String} property width|height
         * @param {String} value
         */
        function queueQuery(selector, mode, property, value) {
            if (typeof(allQueries[selector]) === 'undefined') {
                allQueries[selector] = [];
                // add animation to trigger animationstart event, so we know exactly when a element appears in the DOM

                var id = idToSelectorMapping.length;
                cssStyleElement.innerHTML += '\n' + selector + ' {animation: 0.1s element-queries;}';
                cssStyleElement.innerHTML += '\n' + selector + ' > .resize-sensor {min-width: '+id+'px;}';
                idToSelectorMapping.push(selector);
            }

            allQueries[selector].push({
                mode: mode,
                property: property,
                value: value
            });
        }

        function getQuery(container) {
            var query;
            if (document.querySelectorAll) query = (container) ? container.querySelectorAll.bind(container) : document.querySelectorAll.bind(document);
            if (!query && 'undefined' !== typeof $$) query = $$;
            if (!query && 'undefined' !== typeof jQuery) query = jQuery;

            if (!query) {
                throw 'No document.querySelectorAll, jQuery or Mootools\'s $$ found.';
            }

            return query;
        }

        /**
         * If animationStart didn't catch a new element in the DOM, we can manually search for it
         */
        function findElementQueriesElements(container) {
            var query = getQuery(container);

            for (var selector in allQueries) if (allQueries.hasOwnProperty(selector)) {
                // find all elements based on the extract query selector from the element query rule
                var elements = query(selector, container);

                for (var i = 0, j = elements.length; i < j; i++) {
                    setupElement(elements[i], selector);
                }
            }
        }

        /**
         *
         * @param {HTMLElement} element
         */
        function attachResponsiveImage(element) {
            var children = [];
            var rules = [];
            var sources = [];
            var defaultImageId = 0;
            var lastActiveImage = -1;
            var loadedImages = [];

            for (var i in element.children) {
                if (!element.children.hasOwnProperty(i)) continue;

                if (element.children[i].tagName && element.children[i].tagName.toLowerCase() === 'img') {
                    children.push(element.children[i]);

                    var minWidth = element.children[i].getAttribute('min-width') || element.children[i].getAttribute('data-min-width');
                    //var minHeight = element.children[i].getAttribute('min-height') || element.children[i].getAttribute('data-min-height');
                    var src = element.children[i].getAttribute('data-src') || element.children[i].getAttribute('url');

                    sources.push(src);

                    var rule = {
                        minWidth: minWidth
                    };

                    rules.push(rule);

                    if (!minWidth) {
                        defaultImageId = children.length - 1;
                        element.children[i].style.display = 'block';
                    } else {
                        element.children[i].style.display = 'none';
                    }
                }
            }

            lastActiveImage = defaultImageId;

            function check() {
                var imageToDisplay = false, i;

                for (i in children) {
                    if (!children.hasOwnProperty(i)) continue;

                    if (rules[i].minWidth) {
                        if (element.offsetWidth > rules[i].minWidth) {
                            imageToDisplay = i;
                        }
                    }
                }

                if (!imageToDisplay) {
                    //no rule matched, show default
                    imageToDisplay = defaultImageId;
                }

                if (lastActiveImage !== imageToDisplay) {
                    //image change

                    if (!loadedImages[imageToDisplay]) {
                        //image has not been loaded yet, we need to load the image first in memory to prevent flash of
                        //no content

                        var image = new Image();
                        image.onload = function () {
                            children[imageToDisplay].src = sources[imageToDisplay];

                            children[lastActiveImage].style.display = 'none';
                            children[imageToDisplay].style.display = 'block';

                            loadedImages[imageToDisplay] = true;

                            lastActiveImage = imageToDisplay;
                        };

                        image.src = sources[imageToDisplay];
                    } else {
                        children[lastActiveImage].style.display = 'none';
                        children[imageToDisplay].style.display = 'block';
                        lastActiveImage = imageToDisplay;
                    }
                } else {
                    //make sure for initial check call the .src is set correctly
                    children[imageToDisplay].src = sources[imageToDisplay];
                }
            }

            element.resizeSensorInstance = new ResizeSensor(element, check);
            check();
        }

        function findResponsiveImages() {
            var query = getQuery();

            var elements = query('[data-responsive-image],[responsive-image]');
            for (var i = 0, j = elements.length; i < j; i++) {
                attachResponsiveImage(elements[i]);
            }
        }

        var regex = /,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/mgi;
        var attrRegex = /\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/mgi;

        /**
         * @param {String} css
         */
        function extractQuery(css) {
            var match, smatch, attrs, attrMatch;

            css = css.replace(/'/g, '"');
            while (null !== (match = regex.exec(css))) {
                smatch = match[1] + match[3];
                attrs = match[2];

                while (null !== (attrMatch = attrRegex.exec(attrs))) {
                    queueQuery(smatch, attrMatch[1], attrMatch[2], attrMatch[3]);
                }
            }
        }

        /**
         * @param {CssRule[]|String} rules
         */
        function readRules(rules) {
            var selector = '';

            if (!rules) {
                return;
            }

            if ('string' === typeof rules) {
                rules = rules.toLowerCase();
                if (-1 !== rules.indexOf('min-width') || -1 !== rules.indexOf('max-width')) {
                    extractQuery(rules);
                }
            } else {
                for (var i = 0, j = rules.length; i < j; i++) {
                    if (1 === rules[i].type) {
                        selector = rules[i].selectorText || rules[i].cssText;
                        if (-1 !== selector.indexOf('min-height') || -1 !== selector.indexOf('max-height')) {
                            extractQuery(selector);
                        } else if (-1 !== selector.indexOf('min-width') || -1 !== selector.indexOf('max-width')) {
                            extractQuery(selector);
                        }
                    } else if (4 === rules[i].type) {
                        readRules(rules[i].cssRules || rules[i].rules);
                    } else if (3 === rules[i].type) {
                        if(rules[i].styleSheet.hasOwnProperty("cssRules")) {
                            readRules(rules[i].styleSheet.cssRules);
                        }
                    }
                }
            }
        }

        var defaultCssInjected = false;

        /**
         * Searches all css rules and setups the event listener to all elements with element query rules..
         */
        this.init = function () {
            var animationStart = 'animationstart';
            if (typeof document.documentElement.style['webkitAnimationName'] !== 'undefined') {
                animationStart = 'webkitAnimationStart';
            } else if (typeof document.documentElement.style['MozAnimationName'] !== 'undefined') {
                animationStart = 'mozanimationstart';
            } else if (typeof document.documentElement.style['OAnimationName'] !== 'undefined') {
                animationStart = 'oanimationstart';
            }

            document.body.addEventListener(animationStart, function (e) {
                var element = e.target;
                var styles = element && window.getComputedStyle(element, null);
                var animationName = styles && styles.getPropertyValue('animation-name');
                var requiresSetup = animationName && (-1 !== animationName.indexOf('element-queries'));

                if (requiresSetup) {
                    element.elementQueriesSensor = new ResizeSensor(element, function () {
                        if (element.elementQueriesSetupInformation) {
                            element.elementQueriesSetupInformation.call();
                        }
                    });

                    var sensorStyles = window.getComputedStyle(element.resizeSensor, null);
                    var id = sensorStyles.getPropertyValue('min-width');
                    id = parseInt(id.replace('px', ''));
                    setupElement(e.target, idToSelectorMapping[id]);
                }
            });

            if (!defaultCssInjected) {
                cssStyleElement = document.createElement('style');
                cssStyleElement.type = 'text/css';
                cssStyleElement.innerHTML = '[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}';

                //safari wants at least one rule in keyframes to start working
                cssStyleElement.innerHTML += '\n@keyframes element-queries { 0% { visibility: inherit; } }';
                document.getElementsByTagName('head')[0].appendChild(cssStyleElement);
                defaultCssInjected = true;
            }

            for (var i = 0, j = document.styleSheets.length; i < j; i++) {
                try {
                    if (document.styleSheets[i].href && 0 === document.styleSheets[i].href.indexOf('file://')) {
                        console.warn("CssElementQueries: unable to parse local css files, " + document.styleSheets[i].href);
                    }

                    readRules(document.styleSheets[i].cssRules || document.styleSheets[i].rules || document.styleSheets[i].cssText);
                } catch (e) {
                }
            }

            findResponsiveImages();
        };

        /**
         * Go through all collected rules (readRules()) and attach the resize-listener.
         * Not necessary to call it manually, since we detect automatically when new elements
         * are available in the DOM. However, sometimes handy for dirty DOM modifications.
         *
         * @param {HTMLElement} container only elements of the container are considered (document.body if not set)
         */
        this.findElementQueriesElements = function (container) {
            findElementQueriesElements(container);
        };

        this.update = function () {
            this.init();
        };
    };

    ElementQueries.update = function () {
        ElementQueries.instance.update();
    };

    /**
     * Removes all sensor and elementquery information from the element.
     *
     * @param {HTMLElement} element
     */
    ElementQueries.detach = function (element) {
        if (element.elementQueriesSetupInformation) {
            //element queries
            element.elementQueriesSensor.detach();
            delete element.elementQueriesSetupInformation;
            delete element.elementQueriesSensor;

        } else if (element.resizeSensorInstance) {
            //responsive image

            element.resizeSensorInstance.detach();
            delete element.resizeSensorInstance;
        }
    };

    ElementQueries.init = function () {
        if (!ElementQueries.instance) {
            ElementQueries.instance = new ElementQueries();
        }

        ElementQueries.instance.init();
    };

    var domLoaded = function (callback) {
        /* Mozilla, Chrome, Opera */
        if (document.addEventListener) {
            document.addEventListener('DOMContentLoaded', callback, false);
        }
        /* Safari, iCab, Konqueror */
        else if (/KHTML|WebKit|iCab/i.test(navigator.userAgent)) {
            var DOMLoadTimer = setInterval(function () {
                if (/loaded|complete/i.test(document.readyState)) {
                    callback();
                    clearInterval(DOMLoadTimer);
                }
            }, 10);
        }
        /* Other web browsers */
        else window.onload = callback;
    };

    ElementQueries.findElementQueriesElements = function (container) {
        ElementQueries.instance.findElementQueriesElements(container);
    };

    ElementQueries.listen = function () {
        domLoaded(ElementQueries.init);
    };

    return ElementQueries;

}));


/***/ }),

/***/ "./node_modules/css-element-queries/src/ResizeSensor.js":
/*!**************************************************************!*\
  !*** ./node_modules/css-element-queries/src/ResizeSensor.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (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;
    }
    // https://github.com/Semantic-Org/Semantic-UI/issues/3855
    // https://github.com/marcj/css-element-queries/issues/257
    var globalWindow = typeof window != 'undefined' && window.Math == Math
        ? window
        : typeof self != 'undefined' && self.Math == Math
            ? self
            : Function('return this')();
    // 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 = globalWindow.requestAnimationFrame ||
        globalWindow.mozRequestAnimationFrame ||
        globalWindow.webkitRequestAnimationFrame ||
        function (fn) {
            return globalWindow.setTimeout(fn, 20);
        };

    var cancelAnimationFrame = globalWindow.cancelAnimationFrame ||
        globalWindow.mozCancelAnimationFrame ||
        globalWindow.webkitCancelAnimationFrame ||
        function (timer) {
            globalWindow.clearTimeout(timer);
        };

    /**
     * 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)
        }
    }

    /**
     * Apply CSS styles to element.
     *
     * @param {HTMLElement} element
     * @param {Object} style
     */
    function setStyle(element, style) {
        Object.keys(style).forEach(function(key) {
            element.style[key] = style[key];
        });
    }

    /**
     * Class for dimension change detection.
     *
     * @param {Element|Element[]|Elements|jQuery} element
     * @param {Function} callback
     *
     * @constructor
     */
    var ResizeSensor = function(element, callback) {
        //Is used when checking in reset() only for invisible elements
        var lastAnimationFrameForInvisibleCheck = 0;

        /**
         *
         * @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 = {
                pointerEvents: 'none',
                position: 'absolute',
                left: '0px',
                top: '0px',
                right: '0px',
                bottom: '0px',
                overflow: 'hidden',
                zIndex: '-1',
                visibility: 'hidden',
                maxWidth: '100%'
            };
            var styleChild = {
                position: 'absolute',
                left: '0px',
                top: '0px',
                transition: '0s',
            };

            setStyle(element.resizeSensor, style);

            var expand = document.createElement('div');
            expand.className = 'resize-sensor-expand';
            setStyle(expand, style);

            var expandChild = document.createElement('div');
            setStyle(expandChild, styleChild);
            expand.appendChild(expandChild);

            var shrink = document.createElement('div');
            shrink.className = 'resize-sensor-shrink';
            setStyle(shrink, style);

            var shrinkChild = document.createElement('div');
            setStyle(shrinkChild, styleChild);
            setStyle(shrinkChild, { width: '200%', height: '200%' });
            shrink.appendChild(shrinkChild);

            element.resizeSensor.appendChild(expand);
            element.resizeSensor.appendChild(shrink);
            element.appendChild(element.resizeSensor);

            var computedStyle = window.getComputedStyle(element);
            var position = computedStyle ? computedStyle.getPropertyValue('position') : null;
            if ('absolute' !== position && 'relative' !== position && 'fixed' !== position && 'sticky' !== position) {
                element.style.position = 'relative';
            }

            var dirty = false;

            //last request animation frame id used in onscroll event
            var rafId = 0;
            var size = getElementSize(element);
            var lastWidth = 0;
            var lastHeight = 0;
            var initialHiddenCheck = true;
            lastAnimationFrameForInvisibleCheck = 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 (!lastAnimationFrameForInvisibleCheck){
                            lastAnimationFrameForInvisibleCheck = requestAnimationFrame(function(){
                                lastAnimationFrameForInvisibleCheck = 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 and invisible elements
            lastAnimationFrameForInvisibleCheck = requestAnimationFrame(function(){
                lastAnimationFrameForInvisibleCheck = 0;
                reset();
            });
        }

        forEachElement(element, function(elem){
            attachResizeEvent(elem, callback);
        });

        this.detach = function(ev) {
            // clean up the unfinished animation frame to prevent a potential endless requestAnimationFrame of reset
            if (!lastAnimationFrameForInvisibleCheck) {
                cancelAnimationFrame(lastAnimationFrameForInvisibleCheck);
                lastAnimationFrameForInvisibleCheck = 0;
            }
            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;

}));


/***/ }),

/***/ "./node_modules/d3/d3.js":
/*!*******************************!*\
  !*** ./node_modules/d3/d3.js ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;!function() {
  var d3 = {
    version: "3.5.17"
  };
  var d3_arraySlice = [].slice, d3_array = function(list) {
    return d3_arraySlice.call(list);
  };
  var d3_document = this.document;
  function d3_documentElement(node) {
    return node && (node.ownerDocument || node.document || node).documentElement;
  }
  function d3_window(node) {
    return node && (node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView);
  }
  if (d3_document) {
    try {
      d3_array(d3_document.documentElement.childNodes)[0].nodeType;
    } catch (e) {
      d3_array = function(list) {
        var i = list.length, array = new Array(i);
        while (i--) array[i] = list[i];
        return array;
      };
    }
  }
  if (!Date.now) Date.now = function() {
    return +new Date();
  };
  if (d3_document) {
    try {
      d3_document.createElement("DIV").style.setProperty("opacity", 0, "");
    } catch (error) {
      var d3_element_prototype = this.Element.prototype, d3_element_setAttribute = d3_element_prototype.setAttribute, d3_element_setAttributeNS = d3_element_prototype.setAttributeNS, d3_style_prototype = this.CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty;
      d3_element_prototype.setAttribute = function(name, value) {
        d3_element_setAttribute.call(this, name, value + "");
      };
      d3_element_prototype.setAttributeNS = function(space, local, value) {
        d3_element_setAttributeNS.call(this, space, local, value + "");
      };
      d3_style_prototype.setProperty = function(name, value, priority) {
        d3_style_setProperty.call(this, name, value + "", priority);
      };
    }
  }
  d3.ascending = d3_ascending;
  function d3_ascending(a, b) {
    return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  }
  d3.descending = function(a, b) {
    return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
  };
  d3.min = function(array, f) {
    var i = -1, n = array.length, a, b;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null && a > b) a = b;
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;
    }
    return a;
  };
  d3.max = function(array, f) {
    var i = -1, n = array.length, a, b;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null && b > a) a = b;
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;
    }
    return a;
  };
  d3.extent = function(array, f) {
    var i = -1, n = array.length, a, b, c;
    if (arguments.length === 1) {
      while (++i < n) if ((b = array[i]) != null && b >= b) {
        a = c = b;
        break;
      }
      while (++i < n) if ((b = array[i]) != null) {
        if (a > b) a = b;
        if (c < b) c = b;
      }
    } else {
      while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) {
        a = c = b;
        break;
      }
      while (++i < n) if ((b = f.call(array, array[i], i)) != null) {
        if (a > b) a = b;
        if (c < b) c = b;
      }
    }
    return [ a, c ];
  };
  function d3_number(x) {
    return x === null ? NaN : +x;
  }
  function d3_numeric(x) {
    return !isNaN(x);
  }
  d3.sum = function(array, f) {
    var s = 0, n = array.length, a, i = -1;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = +array[i])) s += a;
    } else {
      while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a;
    }
    return s;
  };
  d3.mean = function(array, f) {
    var s = 0, n = array.length, a, i = -1, j = n;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j;
    } else {
      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j;
    }
    if (j) return s / j;
  };
  d3.quantile = function(values, p) {
    var H = (values.length - 1) * p + 1, h = Math.floor(H), v = +values[h - 1], e = H - h;
    return e ? v + e * (values[h] - v) : v;
  };
  d3.median = function(array, f) {
    var numbers = [], n = array.length, a, i = -1;
    if (arguments.length === 1) {
      while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a);
    } else {
      while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a);
    }
    if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5);
  };
  d3.variance = function(array, f) {
    var n = array.length, m = 0, a, d, s = 0, i = -1, j = 0;
    if (arguments.length === 1) {
      while (++i < n) {
        if (d3_numeric(a = d3_number(array[i]))) {
          d = a - m;
          m += d / ++j;
          s += d * (a - m);
        }
      }
    } else {
      while (++i < n) {
        if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) {
          d = a - m;
          m += d / ++j;
          s += d * (a - m);
        }
      }
    }
    if (j > 1) return s / (j - 1);
  };
  d3.deviation = function() {
    var v = d3.variance.apply(this, arguments);
    return v ? Math.sqrt(v) : v;
  };
  function d3_bisector(compare) {
    return {
      left: function(a, x, lo, hi) {
        if (arguments.length < 3) lo = 0;
        if (arguments.length < 4) hi = a.length;
        while (lo < hi) {
          var mid = lo + hi >>> 1;
          if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid;
        }
        return lo;
      },
      right: function(a, x, lo, hi) {
        if (arguments.length < 3) lo = 0;
        if (arguments.length < 4) hi = a.length;
        while (lo < hi) {
          var mid = lo + hi >>> 1;
          if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1;
        }
        return lo;
      }
    };
  }
  var d3_bisect = d3_bisector(d3_ascending);
  d3.bisectLeft = d3_bisect.left;
  d3.bisect = d3.bisectRight = d3_bisect.right;
  d3.bisector = function(f) {
    return d3_bisector(f.length === 1 ? function(d, x) {
      return d3_ascending(f(d), x);
    } : f);
  };
  d3.shuffle = function(array, i0, i1) {
    if ((m = arguments.length) < 3) {
      i1 = array.length;
      if (m < 2) i0 = 0;
    }
    var m = i1 - i0, t, i;
    while (m) {
      i = Math.random() * m-- | 0;
      t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t;
    }
    return array;
  };
  d3.permute = function(array, indexes) {
    var i = indexes.length, permutes = new Array(i);
    while (i--) permutes[i] = array[indexes[i]];
    return permutes;
  };
  d3.pairs = function(array) {
    var i = 0, n = array.length - 1, p0, p1 = array[0], pairs = new Array(n < 0 ? 0 : n);
    while (i < n) pairs[i] = [ p0 = p1, p1 = array[++i] ];
    return pairs;
  };
  d3.transpose = function(matrix) {
    if (!(n = matrix.length)) return [];
    for (var i = -1, m = d3.min(matrix, d3_transposeLength), transpose = new Array(m); ++i < m; ) {
      for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n; ) {
        row[j] = matrix[j][i];
      }
    }
    return transpose;
  };
  function d3_transposeLength(d) {
    return d.length;
  }
  d3.zip = function() {
    return d3.transpose(arguments);
  };
  d3.keys = function(map) {
    var keys = [];
    for (var key in map) keys.push(key);
    return keys;
  };
  d3.values = function(map) {
    var values = [];
    for (var key in map) values.push(map[key]);
    return values;
  };
  d3.entries = function(map) {
    var entries = [];
    for (var key in map) entries.push({
      key: key,
      value: map[key]
    });
    return entries;
  };
  d3.merge = function(arrays) {
    var n = arrays.length, m, i = -1, j = 0, merged, array;
    while (++i < n) j += arrays[i].length;
    merged = new Array(j);
    while (--n >= 0) {
      array = arrays[n];
      m = array.length;
      while (--m >= 0) {
        merged[--j] = array[m];
      }
    }
    return merged;
  };
  var abs = Math.abs;
  d3.range = function(start, stop, step) {
    if (arguments.length < 3) {
      step = 1;
      if (arguments.length < 2) {
        stop = start;
        start = 0;
      }
    }
    if ((stop - start) / step === Infinity) throw new Error("infinite range");
    var range = [], k = d3_range_integerScale(abs(step)), i = -1, j;
    start *= k, stop *= k, step *= k;
    if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k); else while ((j = start + step * ++i) < stop) range.push(j / k);
    return range;
  };
  function d3_range_integerScale(x) {
    var k = 1;
    while (x * k % 1) k *= 10;
    return k;
  }
  function d3_class(ctor, properties) {
    for (var key in properties) {
      Object.defineProperty(ctor.prototype, key, {
        value: properties[key],
        enumerable: false
      });
    }
  }
  d3.map = function(object, f) {
    var map = new d3_Map();
    if (object instanceof d3_Map) {
      object.forEach(function(key, value) {
        map.set(key, value);
      });
    } else if (Array.isArray(object)) {
      var i = -1, n = object.length, o;
      if (arguments.length === 1) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f.call(object, o = object[i], i), o);
    } else {
      for (var key in object) map.set(key, object[key]);
    }
    return map;
  };
  function d3_Map() {
    this._ = Object.create(null);
  }
  var d3_map_proto = "__proto__", d3_map_zero = "\x00";
  d3_class(d3_Map, {
    has: d3_map_has,
    get: function(key) {
      return this._[d3_map_escape(key)];
    },
    set: function(key, value) {
      return this._[d3_map_escape(key)] = value;
    },
    remove: d3_map_remove,
    keys: d3_map_keys,
    values: function() {
      var values = [];
      for (var key in this._) values.push(this._[key]);
      return values;
    },
    entries: function() {
      var entries = [];
      for (var key in this._) entries.push({
        key: d3_map_unescape(key),
        value: this._[key]
      });
      return entries;
    },
    size: d3_map_size,
    empty: d3_map_empty,
    forEach: function(f) {
      for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]);
    }
  });
  function d3_map_escape(key) {
    return (key += "") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key;
  }
  function d3_map_unescape(key) {
    return (key += "")[0] === d3_map_zero ? key.slice(1) : key;
  }
  function d3_map_has(key) {
    return d3_map_escape(key) in this._;
  }
  function d3_map_remove(key) {
    return (key = d3_map_escape(key)) in this._ && delete this._[key];
  }
  function d3_map_keys() {
    var keys = [];
    for (var key in this._) keys.push(d3_map_unescape(key));
    return keys;
  }
  function d3_map_size() {
    var size = 0;
    for (var key in this._) ++size;
    return size;
  }
  function d3_map_empty() {
    for (var key in this._) return false;
    return true;
  }
  d3.nest = function() {
    var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
    function map(mapType, array, depth) {
      if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;
      var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;
      while (++i < n) {
        if (values = valuesByKey.get(keyValue = key(object = array[i]))) {
          values.push(object);
        } else {
          valuesByKey.set(keyValue, [ object ]);
        }
      }
      if (mapType) {
        object = mapType();
        setter = function(keyValue, values) {
          object.set(keyValue, map(mapType, values, depth));
        };
      } else {
        object = {};
        setter = function(keyValue, values) {
          object[keyValue] = map(mapType, values, depth);
        };
      }
      valuesByKey.forEach(setter);
      return object;
    }
    function entries(map, depth) {
      if (depth >= keys.length) return map;
      var array = [], sortKey = sortKeys[depth++];
      map.forEach(function(key, keyMap) {
        array.push({
          key: key,
          values: entries(keyMap, depth)
        });
      });
      return sortKey ? array.sort(function(a, b) {
        return sortKey(a.key, b.key);
      }) : array;
    }
    nest.map = function(array, mapType) {
      return map(mapType, array, 0);
    };
    nest.entries = function(array) {
      return entries(map(d3.map, array, 0), 0);
    };
    nest.key = function(d) {
      keys.push(d);
      return nest;
    };
    nest.sortKeys = function(order) {
      sortKeys[keys.length - 1] = order;
      return nest;
    };
    nest.sortValues = function(order) {
      sortValues = order;
      return nest;
    };
    nest.rollup = function(f) {
      rollup = f;
      return nest;
    };
    return nest;
  };
  d3.set = function(array) {
    var set = new d3_Set();
    if (array) for (var i = 0, n = array.length; i < n; ++i) set.add(array[i]);
    return set;
  };
  function d3_Set() {
    this._ = Object.create(null);
  }
  d3_class(d3_Set, {
    has: d3_map_has,
    add: function(key) {
      this._[d3_map_escape(key += "")] = true;
      return key;
    },
    remove: d3_map_remove,
    values: d3_map_keys,
    size: d3_map_size,
    empty: d3_map_empty,
    forEach: function(f) {
      for (var key in this._) f.call(this, d3_map_unescape(key));
    }
  });
  d3.behavior = {};
  function d3_identity(d) {
    return d;
  }
  d3.rebind = function(target, source) {
    var i = 1, n = arguments.length, method;
    while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]);
    return target;
  };
  function d3_rebind(target, source, method) {
    return function() {
      var value = method.apply(source, arguments);
      return value === source ? target : value;
    };
  }
  function d3_vendorSymbol(object, name) {
    if (name in object) return name;
    name = name.charAt(0).toUpperCase() + name.slice(1);
    for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) {
      var prefixName = d3_vendorPrefixes[i] + name;
      if (prefixName in object) return prefixName;
    }
  }
  var d3_vendorPrefixes = [ "webkit", "ms", "moz", "Moz", "o", "O" ];
  function d3_noop() {}
  d3.dispatch = function() {
    var dispatch = new d3_dispatch(), i = -1, n = arguments.length;
    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
    return dispatch;
  };
  function d3_dispatch() {}
  d3_dispatch.prototype.on = function(type, listener) {
    var i = type.indexOf("."), name = "";
    if (i >= 0) {
      name = type.slice(i + 1);
      type = type.slice(0, i);
    }
    if (type) return arguments.length < 2 ? this[type].on(name) : this[type].on(name, listener);
    if (arguments.length === 2) {
      if (listener == null) for (type in this) {
        if (this.hasOwnProperty(type)) this[type].on(name, null);
      }
      return this;
    }
  };
  function d3_dispatch_event(dispatch) {
    var listeners = [], listenerByName = new d3_Map();
    function event() {
      var z = listeners, i = -1, n = z.length, l;
      while (++i < n) if (l = z[i].on) l.apply(this, arguments);
      return dispatch;
    }
    event.on = function(name, listener) {
      var l = listenerByName.get(name), i;
      if (arguments.length < 2) return l && l.on;
      if (l) {
        l.on = null;
        listeners = listeners.slice(0, i = listeners.indexOf(l)).concat(listeners.slice(i + 1));
        listenerByName.remove(name);
      }
      if (listener) listeners.push(listenerByName.set(name, {
        on: listener
      }));
      return dispatch;
    };
    return event;
  }
  d3.event = null;
  function d3_eventPreventDefault() {
    d3.event.preventDefault();
  }
  function d3_eventSource() {
    var e = d3.event, s;
    while (s = e.sourceEvent) e = s;
    return e;
  }
  function d3_eventDispatch(target) {
    var dispatch = new d3_dispatch(), i = 0, n = arguments.length;
    while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
    dispatch.of = function(thiz, argumentz) {
      return function(e1) {
        try {
          var e0 = e1.sourceEvent = d3.event;
          e1.target = target;
          d3.event = e1;
          dispatch[e1.type].apply(thiz, argumentz);
        } finally {
          d3.event = e0;
        }
      };
    };
    return dispatch;
  }
  d3.requote = function(s) {
    return s.replace(d3_requote_re, "\\$&");
  };
  var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
  var d3_subclass = {}.__proto__ ? function(object, prototype) {
    object.__proto__ = prototype;
  } : function(object, prototype) {
    for (var property in prototype) object[property] = prototype[property];
  };
  function d3_selection(groups) {
    d3_subclass(groups, d3_selectionPrototype);
    return groups;
  }
  var d3_select = function(s, n) {
    return n.querySelector(s);
  }, d3_selectAll = function(s, n) {
    return n.querySelectorAll(s);
  }, d3_selectMatches = function(n, s) {
    var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, "matchesSelector")];
    d3_selectMatches = function(n, s) {
      return d3_selectMatcher.call(n, s);
    };
    return d3_selectMatches(n, s);
  };
  if (typeof Sizzle === "function") {
    d3_select = function(s, n) {
      return Sizzle(s, n)[0] || null;
    };
    d3_selectAll = Sizzle;
    d3_selectMatches = Sizzle.matchesSelector;
  }
  d3.selection = function() {
    return d3.select(d3_document.documentElement);
  };
  var d3_selectionPrototype = d3.selection.prototype = [];
  d3_selectionPrototype.select = function(selector) {
    var subgroups = [], subgroup, subnode, group, node;
    selector = d3_selection_selector(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      subgroup.parentNode = (group = this[j]).parentNode;
      for (var i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroup.push(subnode = selector.call(node, node.__data__, i, j));
          if (subnode && "__data__" in node) subnode.__data__ = node.__data__;
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_selector(selector) {
    return typeof selector === "function" ? selector : function() {
      return d3_select(selector, this);
    };
  }
  d3_selectionPrototype.selectAll = function(selector) {
    var subgroups = [], subgroup, node;
    selector = d3_selection_selectorAll(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i, j)));
          subgroup.parentNode = node;
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_selectorAll(selector) {
    return typeof selector === "function" ? selector : function() {
      return d3_selectAll(selector, this);
    };
  }
  var d3_nsXhtml = "http://www.w3.org/1999/xhtml";
  var d3_nsPrefix = {
    svg: "http://www.w3.org/2000/svg",
    xhtml: d3_nsXhtml,
    xlink: "http://www.w3.org/1999/xlink",
    xml: "http://www.w3.org/XML/1998/namespace",
    xmlns: "http://www.w3.org/2000/xmlns/"
  };
  d3.ns = {
    prefix: d3_nsPrefix,
    qualify: function(name) {
      var i = name.indexOf(":"), prefix = name;
      if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
      return d3_nsPrefix.hasOwnProperty(prefix) ? {
        space: d3_nsPrefix[prefix],
        local: name
      } : name;
    }
  };
  d3_selectionPrototype.attr = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") {
        var node = this.node();
        name = d3.ns.qualify(name);
        return name.local ? node.getAttributeNS(name.space, name.local) : node.getAttribute(name);
      }
      for (value in name) this.each(d3_selection_attr(value, name[value]));
      return this;
    }
    return this.each(d3_selection_attr(name, value));
  };
  function d3_selection_attr(name, value) {
    name = d3.ns.qualify(name);
    function attrNull() {
      this.removeAttribute(name);
    }
    function attrNullNS() {
      this.removeAttributeNS(name.space, name.local);
    }
    function attrConstant() {
      this.setAttribute(name, value);
    }
    function attrConstantNS() {
      this.setAttributeNS(name.space, name.local, value);
    }
    function attrFunction() {
      var x = value.apply(this, arguments);
      if (x == null) this.removeAttribute(name); else this.setAttribute(name, x);
    }
    function attrFunctionNS() {
      var x = value.apply(this, arguments);
      if (x == null) this.removeAttributeNS(name.space, name.local); else this.setAttributeNS(name.space, name.local, x);
    }
    return value == null ? name.local ? attrNullNS : attrNull : typeof value === "function" ? name.local ? attrFunctionNS : attrFunction : name.local ? attrConstantNS : attrConstant;
  }
  function d3_collapse(s) {
    return s.trim().replace(/\s+/g, " ");
  }
  d3_selectionPrototype.classed = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") {
        var node = this.node(), n = (name = d3_selection_classes(name)).length, i = -1;
        if (value = node.classList) {
          while (++i < n) if (!value.contains(name[i])) return false;
        } else {
          value = node.getAttribute("class");
          while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false;
        }
        return true;
      }
      for (value in name) this.each(d3_selection_classed(value, name[value]));
      return this;
    }
    return this.each(d3_selection_classed(name, value));
  };
  function d3_selection_classedRe(name) {
    return new RegExp("(?:^|\\s+)" + d3.requote(name) + "(?:\\s+|$)", "g");
  }
  function d3_selection_classes(name) {
    return (name + "").trim().split(/^|\s+/);
  }
  function d3_selection_classed(name, value) {
    name = d3_selection_classes(name).map(d3_selection_classedName);
    var n = name.length;
    function classedConstant() {
      var i = -1;
      while (++i < n) name[i](this, value);
    }
    function classedFunction() {
      var i = -1, x = value.apply(this, arguments);
      while (++i < n) name[i](this, x);
    }
    return typeof value === "function" ? classedFunction : classedConstant;
  }
  function d3_selection_classedName(name) {
    var re = d3_selection_classedRe(name);
    return function(node, value) {
      if (c = node.classList) return value ? c.add(name) : c.remove(name);
      var c = node.getAttribute("class") || "";
      if (value) {
        re.lastIndex = 0;
        if (!re.test(c)) node.setAttribute("class", d3_collapse(c + " " + name));
      } else {
        node.setAttribute("class", d3_collapse(c.replace(re, " ")));
      }
    };
  }
  d3_selectionPrototype.style = function(name, value, priority) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof name !== "string") {
        if (n < 2) value = "";
        for (priority in name) this.each(d3_selection_style(priority, name[priority], value));
        return this;
      }
      if (n < 2) {
        var node = this.node();
        return d3_window(node).getComputedStyle(node, null).getPropertyValue(name);
      }
      priority = "";
    }
    return this.each(d3_selection_style(name, value, priority));
  };
  function d3_selection_style(name, value, priority) {
    function styleNull() {
      this.style.removeProperty(name);
    }
    function styleConstant() {
      this.style.setProperty(name, value, priority);
    }
    function styleFunction() {
      var x = value.apply(this, arguments);
      if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority);
    }
    return value == null ? styleNull : typeof value === "function" ? styleFunction : styleConstant;
  }
  d3_selectionPrototype.property = function(name, value) {
    if (arguments.length < 2) {
      if (typeof name === "string") return this.node()[name];
      for (value in name) this.each(d3_selection_property(value, name[value]));
      return this;
    }
    return this.each(d3_selection_property(name, value));
  };
  function d3_selection_property(name, value) {
    function propertyNull() {
      delete this[name];
    }
    function propertyConstant() {
      this[name] = value;
    }
    function propertyFunction() {
      var x = value.apply(this, arguments);
      if (x == null) delete this[name]; else this[name] = x;
    }
    return value == null ? propertyNull : typeof value === "function" ? propertyFunction : propertyConstant;
  }
  d3_selectionPrototype.text = function(value) {
    return arguments.length ? this.each(typeof value === "function" ? function() {
      var v = value.apply(this, arguments);
      this.textContent = v == null ? "" : v;
    } : value == null ? function() {
      this.textContent = "";
    } : function() {
      this.textContent = value;
    }) : this.node().textContent;
  };
  d3_selectionPrototype.html = function(value) {
    return arguments.length ? this.each(typeof value === "function" ? function() {
      var v = value.apply(this, arguments);
      this.innerHTML = v == null ? "" : v;
    } : value == null ? function() {
      this.innerHTML = "";
    } : function() {
      this.innerHTML = value;
    }) : this.node().innerHTML;
  };
  d3_selectionPrototype.append = function(name) {
    name = d3_selection_creator(name);
    return this.select(function() {
      return this.appendChild(name.apply(this, arguments));
    });
  };
  function d3_selection_creator(name) {
    function create() {
      var document = this.ownerDocument, namespace = this.namespaceURI;
      return namespace === d3_nsXhtml && document.documentElement.namespaceURI === d3_nsXhtml ? document.createElement(name) : document.createElementNS(namespace, name);
    }
    function createNS() {
      return this.ownerDocument.createElementNS(name.space, name.local);
    }
    return typeof name === "function" ? name : (name = d3.ns.qualify(name)).local ? createNS : create;
  }
  d3_selectionPrototype.insert = function(name, before) {
    name = d3_selection_creator(name);
    before = d3_selection_selector(before);
    return this.select(function() {
      return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments) || null);
    });
  };
  d3_selectionPrototype.remove = function() {
    return this.each(d3_selectionRemove);
  };
  function d3_selectionRemove() {
    var parent = this.parentNode;
    if (parent) parent.removeChild(this);
  }
  d3_selectionPrototype.data = function(value, key) {
    var i = -1, n = this.length, group, node;
    if (!arguments.length) {
      value = new Array(n = (group = this[0]).length);
      while (++i < n) {
        if (node = group[i]) {
          value[i] = node.__data__;
        }
      }
      return value;
    }
    function bind(group, groupData) {
      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
      if (key) {
        var nodeByKeyValue = new d3_Map(), keyValues = new Array(n), keyValue;
        for (i = -1; ++i < n; ) {
          if (node = group[i]) {
            if (nodeByKeyValue.has(keyValue = key.call(node, node.__data__, i))) {
              exitNodes[i] = node;
            } else {
              nodeByKeyValue.set(keyValue, node);
            }
            keyValues[i] = keyValue;
          }
        }
        for (i = -1; ++i < m; ) {
          if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) {
            enterNodes[i] = d3_selection_dataNode(nodeData);
          } else if (node !== true) {
            updateNodes[i] = node;
            node.__data__ = nodeData;
          }
          nodeByKeyValue.set(keyValue, true);
        }
        for (i = -1; ++i < n; ) {
          if (i in keyValues && nodeByKeyValue.get(keyValues[i]) !== true) {
            exitNodes[i] = group[i];
          }
        }
      } else {
        for (i = -1; ++i < n0; ) {
          node = group[i];
          nodeData = groupData[i];
          if (node) {
            node.__data__ = nodeData;
            updateNodes[i] = node;
          } else {
            enterNodes[i] = d3_selection_dataNode(nodeData);
          }
        }
        for (;i < m; ++i) {
          enterNodes[i] = d3_selection_dataNode(groupData[i]);
        }
        for (;i < n; ++i) {
          exitNodes[i] = group[i];
        }
      }
      enterNodes.update = updateNodes;
      enterNodes.parentNode = updateNodes.parentNode = exitNodes.parentNode = group.parentNode;
      enter.push(enterNodes);
      update.push(updateNodes);
      exit.push(exitNodes);
    }
    var enter = d3_selection_enter([]), update = d3_selection([]), exit = d3_selection([]);
    if (typeof value === "function") {
      while (++i < n) {
        bind(group = this[i], value.call(group, group.parentNode.__data__, i));
      }
    } else {
      while (++i < n) {
        bind(group = this[i], value);
      }
    }
    update.enter = function() {
      return enter;
    };
    update.exit = function() {
      return exit;
    };
    return update;
  };
  function d3_selection_dataNode(data) {
    return {
      __data__: data
    };
  }
  d3_selectionPrototype.datum = function(value) {
    return arguments.length ? this.property("__data__", value) : this.property("__data__");
  };
  d3_selectionPrototype.filter = function(filter) {
    var subgroups = [], subgroup, group, node;
    if (typeof filter !== "function") filter = d3_selection_filter(filter);
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      subgroup.parentNode = (group = this[j]).parentNode;
      for (var i = 0, n = group.length; i < n; i++) {
        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
          subgroup.push(node);
        }
      }
    }
    return d3_selection(subgroups);
  };
  function d3_selection_filter(selector) {
    return function() {
      return d3_selectMatches(this, selector);
    };
  }
  d3_selectionPrototype.order = function() {
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0; ) {
        if (node = group[i]) {
          if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);
          next = node;
        }
      }
    }
    return this;
  };
  d3_selectionPrototype.sort = function(comparator) {
    comparator = d3_selection_sortComparator.apply(this, arguments);
    for (var j = -1, m = this.length; ++j < m; ) this[j].sort(comparator);
    return this.order();
  };
  function d3_selection_sortComparator(comparator) {
    if (!arguments.length) comparator = d3_ascending;
    return function(a, b) {
      return a && b ? comparator(a.__data__, b.__data__) : !a - !b;
    };
  }
  d3_selectionPrototype.each = function(callback) {
    return d3_selection_each(this, function(node, i, j) {
      callback.call(node, node.__data__, i, j);
    });
  };
  function d3_selection_each(groups, callback) {
    for (var j = 0, m = groups.length; j < m; j++) {
      for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) {
        if (node = group[i]) callback(node, i, j);
      }
    }
    return groups;
  }
  d3_selectionPrototype.call = function(callback) {
    var args = d3_array(arguments);
    callback.apply(args[0] = this, args);
    return this;
  };
  d3_selectionPrototype.empty = function() {
    return !this.node();
  };
  d3_selectionPrototype.node = function() {
    for (var j = 0, m = this.length; j < m; j++) {
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        var node = group[i];
        if (node) return node;
      }
    }
    return null;
  };
  d3_selectionPrototype.size = function() {
    var n = 0;
    d3_selection_each(this, function() {
      ++n;
    });
    return n;
  };
  function d3_selection_enter(selection) {
    d3_subclass(selection, d3_selection_enterPrototype);
    return selection;
  }
  var d3_selection_enterPrototype = [];
  d3.selection.enter = d3_selection_enter;
  d3.selection.enter.prototype = d3_selection_enterPrototype;
  d3_selection_enterPrototype.append = d3_selectionPrototype.append;
  d3_selection_enterPrototype.empty = d3_selectionPrototype.empty;
  d3_selection_enterPrototype.node = d3_selectionPrototype.node;
  d3_selection_enterPrototype.call = d3_selectionPrototype.call;
  d3_selection_enterPrototype.size = d3_selectionPrototype.size;
  d3_selection_enterPrototype.select = function(selector) {
    var subgroups = [], subgroup, subnode, upgroup, group, node;
    for (var j = -1, m = this.length; ++j < m; ) {
      upgroup = (group = this[j]).update;
      subgroups.push(subgroup = []);
      subgroup.parentNode = group.parentNode;
      for (var i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i, j));
          subnode.__data__ = node.__data__;
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_selection(subgroups);
  };
  d3_selection_enterPrototype.insert = function(name, before) {
    if (arguments.length < 2) before = d3_selection_enterInsertBefore(this);
    return d3_selectionPrototype.insert.call(this, name, before);
  };
  function d3_selection_enterInsertBefore(enter) {
    var i0, j0;
    return function(d, i, j) {
      var group = enter[j].update, n = group.length, node;
      if (j != j0) j0 = j, i0 = 0;
      if (i >= i0) i0 = i + 1;
      while (!(node = group[i0]) && ++i0 < n) ;
      return node;
    };
  }
  d3.select = function(node) {
    var group;
    if (typeof node === "string") {
      group = [ d3_select(node, d3_document) ];
      group.parentNode = d3_document.documentElement;
    } else {
      group = [ node ];
      group.parentNode = d3_documentElement(node);
    }
    return d3_selection([ group ]);
  };
  d3.selectAll = function(nodes) {
    var group;
    if (typeof nodes === "string") {
      group = d3_array(d3_selectAll(nodes, d3_document));
      group.parentNode = d3_document.documentElement;
    } else {
      group = d3_array(nodes);
      group.parentNode = null;
    }
    return d3_selection([ group ]);
  };
  d3_selectionPrototype.on = function(type, listener, capture) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof type !== "string") {
        if (n < 2) listener = false;
        for (capture in type) this.each(d3_selection_on(capture, type[capture], listener));
        return this;
      }
      if (n < 2) return (n = this.node()["__on" + type]) && n._;
      capture = false;
    }
    return this.each(d3_selection_on(type, listener, capture));
  };
  function d3_selection_on(type, listener, capture) {
    var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener;
    if (i > 0) type = type.slice(0, i);
    var filter = d3_selection_onFilters.get(type);
    if (filter) type = filter, wrap = d3_selection_onFilter;
    function onRemove() {
      var l = this[name];
      if (l) {
        this.removeEventListener(type, l, l.$);
        delete this[name];
      }
    }
    function onAdd() {
      var l = wrap(listener, d3_array(arguments));
      onRemove.call(this);
      this.addEventListener(type, this[name] = l, l.$ = capture);
      l._ = listener;
    }
    function removeAll() {
      var re = new RegExp("^__on([^.]+)" + d3.requote(type) + "$"), match;
      for (var name in this) {
        if (match = name.match(re)) {
          var l = this[name];
          this.removeEventListener(match[1], l, l.$);
          delete this[name];
        }
      }
    }
    return i ? listener ? onAdd : onRemove : listener ? d3_noop : removeAll;
  }
  var d3_selection_onFilters = d3.map({
    mouseenter: "mouseover",
    mouseleave: "mouseout"
  });
  if (d3_document) {
    d3_selection_onFilters.forEach(function(k) {
      if ("on" + k in d3_document) d3_selection_onFilters.remove(k);
    });
  }
  function d3_selection_onListener(listener, argumentz) {
    return function(e) {
      var o = d3.event;
      d3.event = e;
      argumentz[0] = this.__data__;
      try {
        listener.apply(this, argumentz);
      } finally {
        d3.event = o;
      }
    };
  }
  function d3_selection_onFilter(listener, argumentz) {
    var l = d3_selection_onListener(listener, argumentz);
    return function(e) {
      var target = this, related = e.relatedTarget;
      if (!related || related !== target && !(related.compareDocumentPosition(target) & 8)) {
        l.call(target, e);
      }
    };
  }
  var d3_event_dragSelect, d3_event_dragId = 0;
  function d3_event_dragSuppress(node) {
    var name = ".dragsuppress-" + ++d3_event_dragId, click = "click" + name, w = d3.select(d3_window(node)).on("touchmove" + name, d3_eventPreventDefault).on("dragstart" + name, d3_eventPreventDefault).on("selectstart" + name, d3_eventPreventDefault);
    if (d3_event_dragSelect == null) {
      d3_event_dragSelect = "onselectstart" in node ? false : d3_vendorSymbol(node.style, "userSelect");
    }
    if (d3_event_dragSelect) {
      var style = d3_documentElement(node).style, select = style[d3_event_dragSelect];
      style[d3_event_dragSelect] = "none";
    }
    return function(suppressClick) {
      w.on(name, null);
      if (d3_event_dragSelect) style[d3_event_dragSelect] = select;
      if (suppressClick) {
        var off = function() {
          w.on(click, null);
        };
        w.on(click, function() {
          d3_eventPreventDefault();
          off();
        }, true);
        setTimeout(off, 0);
      }
    };
  }
  d3.mouse = function(container) {
    return d3_mousePoint(container, d3_eventSource());
  };
  var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;
  function d3_mousePoint(container, e) {
    if (e.changedTouches) e = e.changedTouches[0];
    var svg = container.ownerSVGElement || container;
    if (svg.createSVGPoint) {
      var point = svg.createSVGPoint();
      if (d3_mouse_bug44083 < 0) {
        var window = d3_window(container);
        if (window.scrollX || window.scrollY) {
          svg = d3.select("body").append("svg").style({
            position: "absolute",
            top: 0,
            left: 0,
            margin: 0,
            padding: 0,
            border: "none"
          }, "important");
          var ctm = svg[0][0].getScreenCTM();
          d3_mouse_bug44083 = !(ctm.f || ctm.e);
          svg.remove();
        }
      }
      if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY; else point.x = e.clientX, 
      point.y = e.clientY;
      point = point.matrixTransform(container.getScreenCTM().inverse());
      return [ point.x, point.y ];
    }
    var rect = container.getBoundingClientRect();
    return [ e.clientX - rect.left - container.clientLeft, e.clientY - rect.top - container.clientTop ];
  }
  d3.touch = function(container, touches, identifier) {
    if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;
    if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {
      if ((touch = touches[i]).identifier === identifier) {
        return d3_mousePoint(container, touch);
      }
    }
  };
  d3.behavior.drag = function() {
    var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_window, "mousemove", "mouseup"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_identity, "touchmove", "touchend");
    function drag() {
      this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
    }
    function dragstart(id, position, subject, move, end) {
      return function() {
        var that = this, target = d3.event.target.correspondingElement || d3.event.target, parent = that.parentNode, dispatch = event.of(that, arguments), dragged = 0, dragId = id(), dragName = ".drag" + (dragId == null ? "" : "-" + dragId), dragOffset, dragSubject = d3.select(subject(target)).on(move + dragName, moved).on(end + dragName, ended), dragRestore = d3_event_dragSuppress(target), position0 = position(parent, dragId);
        if (origin) {
          dragOffset = origin.apply(that, arguments);
          dragOffset = [ dragOffset.x - position0[0], dragOffset.y - position0[1] ];
        } else {
          dragOffset = [ 0, 0 ];
        }
        dispatch({
          type: "dragstart"
        });
        function moved() {
          var position1 = position(parent, dragId), dx, dy;
          if (!position1) return;
          dx = position1[0] - position0[0];
          dy = position1[1] - position0[1];
          dragged |= dx | dy;
          position0 = position1;
          dispatch({
            type: "drag",
            x: position1[0] + dragOffset[0],
            y: position1[1] + dragOffset[1],
            dx: dx,
            dy: dy
          });
        }
        function ended() {
          if (!position(parent, dragId)) return;
          dragSubject.on(move + dragName, null).on(end + dragName, null);
          dragRestore(dragged);
          dispatch({
            type: "dragend"
          });
        }
      };
    }
    drag.origin = function(x) {
      if (!arguments.length) return origin;
      origin = x;
      return drag;
    };
    return d3.rebind(drag, event, "on");
  };
  function d3_behavior_dragTouchId() {
    return d3.event.changedTouches[0].identifier;
  }
  d3.touches = function(container, touches) {
    if (arguments.length < 2) touches = d3_eventSource().touches;
    return touches ? d3_array(touches).map(function(touch) {
      var point = d3_mousePoint(container, touch);
      point.identifier = touch.identifier;
      return point;
    }) : [];
  };
  var ε = 1e-6, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π;
  function d3_sgn(x) {
    return x > 0 ? 1 : x < 0 ? -1 : 0;
  }
  function d3_cross2d(a, b, c) {
    return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
  }
  function d3_acos(x) {
    return x > 1 ? 0 : x < -1 ? π : Math.acos(x);
  }
  function d3_asin(x) {
    return x > 1 ? halfπ : x < -1 ? -halfπ : Math.asin(x);
  }
  function d3_sinh(x) {
    return ((x = Math.exp(x)) - 1 / x) / 2;
  }
  function d3_cosh(x) {
    return ((x = Math.exp(x)) + 1 / x) / 2;
  }
  function d3_tanh(x) {
    return ((x = Math.exp(2 * x)) - 1) / (x + 1);
  }
  function d3_haversin(x) {
    return (x = Math.sin(x / 2)) * x;
  }
  var ρ = Math.SQRT2, ρ2 = 2, ρ4 = 4;
  d3.interpolateZoom = function(p0, p1) {
    var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S;
    if (d2 < ε2) {
      S = Math.log(w1 / w0) / ρ;
      i = function(t) {
        return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(ρ * t * S) ];
      };
    } else {
      var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + ρ4 * d2) / (2 * w0 * ρ2 * d1), b1 = (w1 * w1 - w0 * w0 - ρ4 * d2) / (2 * w1 * ρ2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
      S = (r1 - r0) / ρ;
      i = function(t) {
        var s = t * S, coshr0 = d3_cosh(r0), u = w0 / (ρ2 * d1) * (coshr0 * d3_tanh(ρ * s + r0) - d3_sinh(r0));
        return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / d3_cosh(ρ * s + r0) ];
      };
    }
    i.duration = S * 1e3;
    return i;
  };
  d3.behavior.zoom = function() {
    var view = {
      x: 0,
      y: 0,
      k: 1
    }, translate0, center0, center, size = [ 960, 500 ], scaleExtent = d3_behavior_zoomInfinity, duration = 250, zooming = 0, mousedown = "mousedown.zoom", mousemove = "mousemove.zoom", mouseup = "mouseup.zoom", mousewheelTimer, touchstart = "touchstart.zoom", touchtime, event = d3_eventDispatch(zoom, "zoomstart", "zoom", "zoomend"), x0, x1, y0, y1;
    if (!d3_behavior_zoomWheel) {
      d3_behavior_zoomWheel = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() {
        return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1);
      }, "wheel") : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() {
        return d3.event.wheelDelta;
      }, "mousewheel") : (d3_behavior_zoomDelta = function() {
        return -d3.event.detail;
      }, "MozMousePixelScroll");
    }
    function zoom(g) {
      g.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + ".zoom", mousewheeled).on("dblclick.zoom", dblclicked).on(touchstart, touchstarted);
    }
    zoom.event = function(g) {
      g.each(function() {
        var dispatch = event.of(this, arguments), view1 = view;
        if (d3_transitionInheritId) {
          d3.select(this).transition().each("start.zoom", function() {
            view = this.__chart__ || {
              x: 0,
              y: 0,
              k: 1
            };
            zoomstarted(dispatch);
          }).tween("zoom:zoom", function() {
            var dx = size[0], dy = size[1], cx = center0 ? center0[0] : dx / 2, cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom([ (cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k ], [ (cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k ]);
            return function(t) {
              var l = i(t), k = dx / l[2];
              this.__chart__ = view = {
                x: cx - l[0] * k,
                y: cy - l[1] * k,
                k: k
              };
              zoomed(dispatch);
            };
          }).each("interrupt.zoom", function() {
            zoomended(dispatch);
          }).each("end.zoom", function() {
            zoomended(dispatch);
          });
        } else {
          this.__chart__ = view;
          zoomstarted(dispatch);
          zoomed(dispatch);
          zoomended(dispatch);
        }
      });
    };
    zoom.translate = function(_) {
      if (!arguments.length) return [ view.x, view.y ];
      view = {
        x: +_[0],
        y: +_[1],
        k: view.k
      };
      rescale();
      return zoom;
    };
    zoom.scale = function(_) {
      if (!arguments.length) return view.k;
      view = {
        x: view.x,
        y: view.y,
        k: null
      };
      scaleTo(+_);
      rescale();
      return zoom;
    };
    zoom.scaleExtent = function(_) {
      if (!arguments.length) return scaleExtent;
      scaleExtent = _ == null ? d3_behavior_zoomInfinity : [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.center = function(_) {
      if (!arguments.length) return center;
      center = _ && [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.size = function(_) {
      if (!arguments.length) return size;
      size = _ && [ +_[0], +_[1] ];
      return zoom;
    };
    zoom.duration = function(_) {
      if (!arguments.length) return duration;
      duration = +_;
      return zoom;
    };
    zoom.x = function(z) {
      if (!arguments.length) return x1;
      x1 = z;
      x0 = z.copy();
      view = {
        x: 0,
        y: 0,
        k: 1
      };
      return zoom;
    };
    zoom.y = function(z) {
      if (!arguments.length) return y1;
      y1 = z;
      y0 = z.copy();
      view = {
        x: 0,
        y: 0,
        k: 1
      };
      return zoom;
    };
    function location(p) {
      return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];
    }
    function point(l) {
      return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];
    }
    function scaleTo(s) {
      view.k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s));
    }
    function translateTo(p, l) {
      l = point(l);
      view.x += p[0] - l[0];
      view.y += p[1] - l[1];
    }
    function zoomTo(that, p, l, k) {
      that.__chart__ = {
        x: view.x,
        y: view.y,
        k: view.k
      };
      scaleTo(Math.pow(2, k));
      translateTo(center0 = p, l);
      that = d3.select(that);
      if (duration > 0) that = that.transition().duration(duration);
      that.call(zoom.event);
    }
    function rescale() {
      if (x1) x1.domain(x0.range().map(function(x) {
        return (x - view.x) / view.k;
      }).map(x0.invert));
      if (y1) y1.domain(y0.range().map(function(y) {
        return (y - view.y) / view.k;
      }).map(y0.invert));
    }
    function zoomstarted(dispatch) {
      if (!zooming++) dispatch({
        type: "zoomstart"
      });
    }
    function zoomed(dispatch) {
      rescale();
      dispatch({
        type: "zoom",
        scale: view.k,
        translate: [ view.x, view.y ]
      });
    }
    function zoomended(dispatch) {
      if (!--zooming) dispatch({
        type: "zoomend"
      }), center0 = null;
    }
    function mousedowned() {
      var that = this, dispatch = event.of(that, arguments), dragged = 0, subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended), location0 = location(d3.mouse(that)), dragRestore = d3_event_dragSuppress(that);
      d3_selection_interrupt.call(that);
      zoomstarted(dispatch);
      function moved() {
        dragged = 1;
        translateTo(d3.mouse(that), location0);
        zoomed(dispatch);
      }
      function ended() {
        subject.on(mousemove, null).on(mouseup, null);
        dragRestore(dragged);
        zoomended(dispatch);
      }
    }
    function touchstarted() {
      var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, targets = [], subject = d3.select(that), dragRestore = d3_event_dragSuppress(that);
      started();
      zoomstarted(dispatch);
      subject.on(mousedown, null).on(touchstart, started);
      function relocate() {
        var touches = d3.touches(that);
        scale0 = view.k;
        touches.forEach(function(t) {
          if (t.identifier in locations0) locations0[t.identifier] = location(t);
        });
        return touches;
      }
      function started() {
        var target = d3.event.target;
        d3.select(target).on(touchmove, moved).on(touchend, ended);
        targets.push(target);
        var changed = d3.event.changedTouches;
        for (var i = 0, n = changed.length; i < n; ++i) {
          locations0[changed[i].identifier] = null;
        }
        var touches = relocate(), now = Date.now();
        if (touches.length === 1) {
          if (now - touchtime < 500) {
            var p = touches[0];
            zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1);
            d3_eventPreventDefault();
          }
          touchtime = now;
        } else if (touches.length > 1) {
          var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1];
          distance0 = dx * dx + dy * dy;
        }
      }
      function moved() {
        var touches = d3.touches(that), p0, l0, p1, l1;
        d3_selection_interrupt.call(that);
        for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {
          p1 = touches[i];
          if (l1 = locations0[p1.identifier]) {
            if (l0) break;
            p0 = p1, l0 = l1;
          }
        }
        if (l1) {
          var distance1 = (distance1 = p1[0] - p0[0]) * distance1 + (distance1 = p1[1] - p0[1]) * distance1, scale1 = distance0 && Math.sqrt(distance1 / distance0);
          p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ];
          l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ];
          scaleTo(scale1 * scale0);
        }
        touchtime = null;
        translateTo(p0, l0);
        zoomed(dispatch);
      }
      function ended() {
        if (d3.event.touches.length) {
          var changed = d3.event.changedTouches;
          for (var i = 0, n = changed.length; i < n; ++i) {
            delete locations0[changed[i].identifier];
          }
          for (var identifier in locations0) {
            return void relocate();
          }
        }
        d3.selectAll(targets).on(zoomName, null);
        subject.on(mousedown, mousedowned).on(touchstart, touchstarted);
        dragRestore();
        zoomended(dispatch);
      }
    }
    function mousewheeled() {
      var dispatch = event.of(this, arguments);
      if (mousewheelTimer) clearTimeout(mousewheelTimer); else d3_selection_interrupt.call(this), 
      translate0 = location(center0 = center || d3.mouse(this)), zoomstarted(dispatch);
      mousewheelTimer = setTimeout(function() {
        mousewheelTimer = null;
        zoomended(dispatch);
      }, 50);
      d3_eventPreventDefault();
      scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k);
      translateTo(center0, translate0);
      zoomed(dispatch);
    }
    function dblclicked() {
      var p = d3.mouse(this), k = Math.log(view.k) / Math.LN2;
      zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1);
    }
    return d3.rebind(zoom, event, "on");
  };
  var d3_behavior_zoomInfinity = [ 0, Infinity ], d3_behavior_zoomDelta, d3_behavior_zoomWheel;
  d3.color = d3_color;
  function d3_color() {}
  d3_color.prototype.toString = function() {
    return this.rgb() + "";
  };
  d3.hsl = d3_hsl;
  function d3_hsl(h, s, l) {
    return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l) : arguments.length < 2 ? h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l) : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl) : new d3_hsl(h, s, l);
  }
  var d3_hslPrototype = d3_hsl.prototype = new d3_color();
  d3_hslPrototype.brighter = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_hsl(this.h, this.s, this.l / k);
  };
  d3_hslPrototype.darker = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_hsl(this.h, this.s, k * this.l);
  };
  d3_hslPrototype.rgb = function() {
    return d3_hsl_rgb(this.h, this.s, this.l);
  };
  function d3_hsl_rgb(h, s, l) {
    var m1, m2;
    h = isNaN(h) ? 0 : (h %= 360) < 0 ? h + 360 : h;
    s = isNaN(s) ? 0 : s < 0 ? 0 : s > 1 ? 1 : s;
    l = l < 0 ? 0 : l > 1 ? 1 : l;
    m2 = l <= .5 ? l * (1 + s) : l + s - l * s;
    m1 = 2 * l - m2;
    function v(h) {
      if (h > 360) h -= 360; else if (h < 0) h += 360;
      if (h < 60) return m1 + (m2 - m1) * h / 60;
      if (h < 180) return m2;
      if (h < 240) return m1 + (m2 - m1) * (240 - h) / 60;
      return m1;
    }
    function vv(h) {
      return Math.round(v(h) * 255);
    }
    return new d3_rgb(vv(h + 120), vv(h), vv(h - 120));
  }
  d3.hcl = d3_hcl;
  function d3_hcl(h, c, l) {
    return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l) : arguments.length < 2 ? h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l) : h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : new d3_hcl(h, c, l);
  }
  var d3_hclPrototype = d3_hcl.prototype = new d3_color();
  d3_hclPrototype.brighter = function(k) {
    return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
  };
  d3_hclPrototype.darker = function(k) {
    return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)));
  };
  d3_hclPrototype.rgb = function() {
    return d3_hcl_lab(this.h, this.c, this.l).rgb();
  };
  function d3_hcl_lab(h, c, l) {
    if (isNaN(h)) h = 0;
    if (isNaN(c)) c = 0;
    return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c);
  }
  d3.lab = d3_lab;
  function d3_lab(l, a, b) {
    return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b) : arguments.length < 2 ? l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b) : l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l) : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b) : new d3_lab(l, a, b);
  }
  var d3_lab_K = 18;
  var d3_lab_X = .95047, d3_lab_Y = 1, d3_lab_Z = 1.08883;
  var d3_labPrototype = d3_lab.prototype = new d3_color();
  d3_labPrototype.brighter = function(k) {
    return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
  };
  d3_labPrototype.darker = function(k) {
    return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b);
  };
  d3_labPrototype.rgb = function() {
    return d3_lab_rgb(this.l, this.a, this.b);
  };
  function d3_lab_rgb(l, a, b) {
    var y = (l + 16) / 116, x = y + a / 500, z = y - b / 200;
    x = d3_lab_xyz(x) * d3_lab_X;
    y = d3_lab_xyz(y) * d3_lab_Y;
    z = d3_lab_xyz(z) * d3_lab_Z;
    return new d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z));
  }
  function d3_lab_hcl(l, a, b) {
    return l > 0 ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) : new d3_hcl(NaN, NaN, l);
  }
  function d3_lab_xyz(x) {
    return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037;
  }
  function d3_xyz_lab(x) {
    return x > .008856 ? Math.pow(x, 1 / 3) : 7.787037 * x + 4 / 29;
  }
  function d3_xyz_rgb(r) {
    return Math.round(255 * (r <= .00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - .055));
  }
  d3.rgb = d3_rgb;
  function d3_rgb(r, g, b) {
    return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b) : arguments.length < 2 ? r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b) : d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb) : new d3_rgb(r, g, b);
  }
  function d3_rgbNumber(value) {
    return new d3_rgb(value >> 16, value >> 8 & 255, value & 255);
  }
  function d3_rgbString(value) {
    return d3_rgbNumber(value) + "";
  }
  var d3_rgbPrototype = d3_rgb.prototype = new d3_color();
  d3_rgbPrototype.brighter = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    var r = this.r, g = this.g, b = this.b, i = 30;
    if (!r && !g && !b) return new d3_rgb(i, i, i);
    if (r && r < i) r = i;
    if (g && g < i) g = i;
    if (b && b < i) b = i;
    return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k));
  };
  d3_rgbPrototype.darker = function(k) {
    k = Math.pow(.7, arguments.length ? k : 1);
    return new d3_rgb(k * this.r, k * this.g, k * this.b);
  };
  d3_rgbPrototype.hsl = function() {
    return d3_rgb_hsl(this.r, this.g, this.b);
  };
  d3_rgbPrototype.toString = function() {
    return "#" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b);
  };
  function d3_rgb_hex(v) {
    return v < 16 ? "0" + Math.max(0, v).toString(16) : Math.min(255, v).toString(16);
  }
  function d3_rgb_parse(format, rgb, hsl) {
    var r = 0, g = 0, b = 0, m1, m2, color;
    m1 = /([a-z]+)\((.*)\)/.exec(format = format.toLowerCase());
    if (m1) {
      m2 = m1[2].split(",");
      switch (m1[1]) {
       case "hsl":
        {
          return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100);
        }

       case "rgb":
        {
          return rgb(d3_rgb_parseNumber(m2[0]), d3_rgb_parseNumber(m2[1]), d3_rgb_parseNumber(m2[2]));
        }
      }
    }
    if (color = d3_rgb_names.get(format)) {
      return rgb(color.r, color.g, color.b);
    }
    if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.slice(1), 16))) {
      if (format.length === 4) {
        r = (color & 3840) >> 4;
        r = r >> 4 | r;
        g = color & 240;
        g = g >> 4 | g;
        b = color & 15;
        b = b << 4 | b;
      } else if (format.length === 7) {
        r = (color & 16711680) >> 16;
        g = (color & 65280) >> 8;
        b = color & 255;
      }
    }
    return rgb(r, g, b);
  }
  function d3_rgb_hsl(r, g, b) {
    var min = Math.min(r /= 255, g /= 255, b /= 255), max = Math.max(r, g, b), d = max - min, h, s, l = (max + min) / 2;
    if (d) {
      s = l < .5 ? d / (max + min) : d / (2 - max - min);
      if (r == max) h = (g - b) / d + (g < b ? 6 : 0); else if (g == max) h = (b - r) / d + 2; else h = (r - g) / d + 4;
      h *= 60;
    } else {
      h = NaN;
      s = l > 0 && l < 1 ? 0 : h;
    }
    return new d3_hsl(h, s, l);
  }
  function d3_rgb_lab(r, g, b) {
    r = d3_rgb_xyz(r);
    g = d3_rgb_xyz(g);
    b = d3_rgb_xyz(b);
    var x = d3_xyz_lab((.4124564 * r + .3575761 * g + .1804375 * b) / d3_lab_X), y = d3_xyz_lab((.2126729 * r + .7151522 * g + .072175 * b) / d3_lab_Y), z = d3_xyz_lab((.0193339 * r + .119192 * g + .9503041 * b) / d3_lab_Z);
    return d3_lab(116 * y - 16, 500 * (x - y), 200 * (y - z));
  }
  function d3_rgb_xyz(r) {
    return (r /= 255) <= .04045 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4);
  }
  function d3_rgb_parseNumber(c) {
    var f = parseFloat(c);
    return c.charAt(c.length - 1) === "%" ? Math.round(f * 2.55) : f;
  }
  var d3_rgb_names = d3.map({
    aliceblue: 15792383,
    antiquewhite: 16444375,
    aqua: 65535,
    aquamarine: 8388564,
    azure: 15794175,
    beige: 16119260,
    bisque: 16770244,
    black: 0,
    blanchedalmond: 16772045,
    blue: 255,
    blueviolet: 9055202,
    brown: 10824234,
    burlywood: 14596231,
    cadetblue: 6266528,
    chartreuse: 8388352,
    chocolate: 13789470,
    coral: 16744272,
    cornflowerblue: 6591981,
    cornsilk: 16775388,
    crimson: 14423100,
    cyan: 65535,
    darkblue: 139,
    darkcyan: 35723,
    darkgoldenrod: 12092939,
    darkgray: 11119017,
    darkgreen: 25600,
    darkgrey: 11119017,
    darkkhaki: 12433259,
    darkmagenta: 9109643,
    darkolivegreen: 5597999,
    darkorange: 16747520,
    darkorchid: 10040012,
    darkred: 9109504,
    darksalmon: 15308410,
    darkseagreen: 9419919,
    darkslateblue: 4734347,
    darkslategray: 3100495,
    darkslategrey: 3100495,
    darkturquoise: 52945,
    darkviolet: 9699539,
    deeppink: 16716947,
    deepskyblue: 49151,
    dimgray: 6908265,
    dimgrey: 6908265,
    dodgerblue: 2003199,
    firebrick: 11674146,
    floralwhite: 16775920,
    forestgreen: 2263842,
    fuchsia: 16711935,
    gainsboro: 14474460,
    ghostwhite: 16316671,
    gold: 16766720,
    goldenrod: 14329120,
    gray: 8421504,
    green: 32768,
    greenyellow: 11403055,
    grey: 8421504,
    honeydew: 15794160,
    hotpink: 16738740,
    indianred: 13458524,
    indigo: 4915330,
    ivory: 16777200,
    khaki: 15787660,
    lavender: 15132410,
    lavenderblush: 16773365,
    lawngreen: 8190976,
    lemonchiffon: 16775885,
    lightblue: 11393254,
    lightcoral: 15761536,
    lightcyan: 14745599,
    lightgoldenrodyellow: 16448210,
    lightgray: 13882323,
    lightgreen: 9498256,
    lightgrey: 13882323,
    lightpink: 16758465,
    lightsalmon: 16752762,
    lightseagreen: 2142890,
    lightskyblue: 8900346,
    lightslategray: 7833753,
    lightslategrey: 7833753,
    lightsteelblue: 11584734,
    lightyellow: 16777184,
    lime: 65280,
    limegreen: 3329330,
    linen: 16445670,
    magenta: 16711935,
    maroon: 8388608,
    mediumaquamarine: 6737322,
    mediumblue: 205,
    mediumorchid: 12211667,
    mediumpurple: 9662683,
    mediumseagreen: 3978097,
    mediumslateblue: 8087790,
    mediumspringgreen: 64154,
    mediumturquoise: 4772300,
    mediumvioletred: 13047173,
    midnightblue: 1644912,
    mintcream: 16121850,
    mistyrose: 16770273,
    moccasin: 16770229,
    navajowhite: 16768685,
    navy: 128,
    oldlace: 16643558,
    olive: 8421376,
    olivedrab: 7048739,
    orange: 16753920,
    orangered: 16729344,
    orchid: 14315734,
    palegoldenrod: 15657130,
    palegreen: 10025880,
    paleturquoise: 11529966,
    palevioletred: 14381203,
    papayawhip: 16773077,
    peachpuff: 16767673,
    peru: 13468991,
    pink: 16761035,
    plum: 14524637,
    powderblue: 11591910,
    purple: 8388736,
    rebeccapurple: 6697881,
    red: 16711680,
    rosybrown: 12357519,
    royalblue: 4286945,
    saddlebrown: 9127187,
    salmon: 16416882,
    sandybrown: 16032864,
    seagreen: 3050327,
    seashell: 16774638,
    sienna: 10506797,
    silver: 12632256,
    skyblue: 8900331,
    slateblue: 6970061,
    slategray: 7372944,
    slategrey: 7372944,
    snow: 16775930,
    springgreen: 65407,
    steelblue: 4620980,
    tan: 13808780,
    teal: 32896,
    thistle: 14204888,
    tomato: 16737095,
    turquoise: 4251856,
    violet: 15631086,
    wheat: 16113331,
    white: 16777215,
    whitesmoke: 16119285,
    yellow: 16776960,
    yellowgreen: 10145074
  });
  d3_rgb_names.forEach(function(key, value) {
    d3_rgb_names.set(key, d3_rgbNumber(value));
  });
  function d3_functor(v) {
    return typeof v === "function" ? v : function() {
      return v;
    };
  }
  d3.functor = d3_functor;
  d3.xhr = d3_xhrType(d3_identity);
  function d3_xhrType(response) {
    return function(url, mimeType, callback) {
      if (arguments.length === 2 && typeof mimeType === "function") callback = mimeType, 
      mimeType = null;
      return d3_xhr(url, mimeType, response, callback);
    };
  }
  function d3_xhr(url, mimeType, response, callback) {
    var xhr = {}, dispatch = d3.dispatch("beforesend", "progress", "load", "error"), headers = {}, request = new XMLHttpRequest(), responseType = null;
    if (this.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest();
    "onload" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() {
      request.readyState > 3 && respond();
    };
    function respond() {
      var status = request.status, result;
      if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) {
        try {
          result = response.call(xhr, request);
        } catch (e) {
          dispatch.error.call(xhr, e);
          return;
        }
        dispatch.load.call(xhr, result);
      } else {
        dispatch.error.call(xhr, request);
      }
    }
    request.onprogress = function(event) {
      var o = d3.event;
      d3.event = event;
      try {
        dispatch.progress.call(xhr, request);
      } finally {
        d3.event = o;
      }
    };
    xhr.header = function(name, value) {
      name = (name + "").toLowerCase();
      if (arguments.length < 2) return headers[name];
      if (value == null) delete headers[name]; else headers[name] = value + "";
      return xhr;
    };
    xhr.mimeType = function(value) {
      if (!arguments.length) return mimeType;
      mimeType = value == null ? null : value + "";
      return xhr;
    };
    xhr.responseType = function(value) {
      if (!arguments.length) return responseType;
      responseType = value;
      return xhr;
    };
    xhr.response = function(value) {
      response = value;
      return xhr;
    };
    [ "get", "post" ].forEach(function(method) {
      xhr[method] = function() {
        return xhr.send.apply(xhr, [ method ].concat(d3_array(arguments)));
      };
    });
    xhr.send = function(method, data, callback) {
      if (arguments.length === 2 && typeof data === "function") callback = data, data = null;
      request.open(method, url, true);
      if (mimeType != null && !("accept" in headers)) headers["accept"] = mimeType + ",*/*";
      if (request.setRequestHeader) for (var name in headers) request.setRequestHeader(name, headers[name]);
      if (mimeType != null && request.overrideMimeType) request.overrideMimeType(mimeType);
      if (responseType != null) request.responseType = responseType;
      if (callback != null) xhr.on("error", callback).on("load", function(request) {
        callback(null, request);
      });
      dispatch.beforesend.call(xhr, request);
      request.send(data == null ? null : data);
      return xhr;
    };
    xhr.abort = function() {
      request.abort();
      return xhr;
    };
    d3.rebind(xhr, dispatch, "on");
    return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback));
  }
  function d3_xhr_fixCallback(callback) {
    return callback.length === 1 ? function(error, request) {
      callback(error == null ? request : null);
    } : callback;
  }
  function d3_xhrHasResponse(request) {
    var type = request.responseType;
    return type && type !== "text" ? request.response : request.responseText;
  }
  d3.dsv = function(delimiter, mimeType) {
    var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0);
    function dsv(url, row, callback) {
      if (arguments.length < 3) callback = row, row = null;
      var xhr = d3_xhr(url, mimeType, row == null ? response : typedResponse(row), callback);
      xhr.row = function(_) {
        return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row;
      };
      return xhr;
    }
    function response(request) {
      return dsv.parse(request.responseText);
    }
    function typedResponse(f) {
      return function(request) {
        return dsv.parse(request.responseText, f);
      };
    }
    dsv.parse = function(text, f) {
      var o;
      return dsv.parseRows(text, function(row, i) {
        if (o) return o(row, i - 1);
        var a = new Function("d", "return {" + row.map(function(name, i) {
          return JSON.stringify(name) + ": d[" + i + "]";
        }).join(",") + "}");
        o = f ? function(row, i) {
          return f(a(row), i);
        } : a;
      });
    };
    dsv.parseRows = function(text, f) {
      var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
      function token() {
        if (I >= N) return EOF;
        if (eol) return eol = false, EOL;
        var j = I;
        if (text.charCodeAt(j) === 34) {
          var i = j;
          while (i++ < N) {
            if (text.charCodeAt(i) === 34) {
              if (text.charCodeAt(i + 1) !== 34) break;
              ++i;
            }
          }
          I = i + 2;
          var c = text.charCodeAt(i + 1);
          if (c === 13) {
            eol = true;
            if (text.charCodeAt(i + 2) === 10) ++I;
          } else if (c === 10) {
            eol = true;
          }
          return text.slice(j + 1, i).replace(/""/g, '"');
        }
        while (I < N) {
          var c = text.charCodeAt(I++), k = 1;
          if (c === 10) eol = true; else if (c === 13) {
            eol = true;
            if (text.charCodeAt(I) === 10) ++I, ++k;
          } else if (c !== delimiterCode) continue;
          return text.slice(j, I - k);
        }
        return text.slice(j);
      }
      while ((t = token()) !== EOF) {
        var a = [];
        while (t !== EOL && t !== EOF) {
          a.push(t);
          t = token();
        }
        if (f && (a = f(a, n++)) == null) continue;
        rows.push(a);
      }
      return rows;
    };
    dsv.format = function(rows) {
      if (Array.isArray(rows[0])) return dsv.formatRows(rows);
      var fieldSet = new d3_Set(), fields = [];
      rows.forEach(function(row) {
        for (var field in row) {
          if (!fieldSet.has(field)) {
            fields.push(fieldSet.add(field));
          }
        }
      });
      return [ fields.map(formatValue).join(delimiter) ].concat(rows.map(function(row) {
        return fields.map(function(field) {
          return formatValue(row[field]);
        }).join(delimiter);
      })).join("\n");
    };
    dsv.formatRows = function(rows) {
      return rows.map(formatRow).join("\n");
    };
    function formatRow(row) {
      return row.map(formatValue).join(delimiter);
    }
    function formatValue(text) {
      return reFormat.test(text) ? '"' + text.replace(/\"/g, '""') + '"' : text;
    }
    return dsv;
  };
  d3.csv = d3.dsv(",", "text/csv");
  d3.tsv = d3.dsv("	", "text/tab-separated-values");
  var d3_timer_queueHead, d3_timer_queueTail, d3_timer_interval, d3_timer_timeout, d3_timer_frame = this[d3_vendorSymbol(this, "requestAnimationFrame")] || function(callback) {
    setTimeout(callback, 17);
  };
  d3.timer = function() {
    d3_timer.apply(this, arguments);
  };
  function d3_timer(callback, delay, then) {
    var n = arguments.length;
    if (n < 2) delay = 0;
    if (n < 3) then = Date.now();
    var time = then + delay, timer = {
      c: callback,
      t: time,
      n: null
    };
    if (d3_timer_queueTail) d3_timer_queueTail.n = timer; else d3_timer_queueHead = timer;
    d3_timer_queueTail = timer;
    if (!d3_timer_interval) {
      d3_timer_timeout = clearTimeout(d3_timer_timeout);
      d3_timer_interval = 1;
      d3_timer_frame(d3_timer_step);
    }
    return timer;
  }
  function d3_timer_step() {
    var now = d3_timer_mark(), delay = d3_timer_sweep() - now;
    if (delay > 24) {
      if (isFinite(delay)) {
        clearTimeout(d3_timer_timeout);
        d3_timer_timeout = setTimeout(d3_timer_step, delay);
      }
      d3_timer_interval = 0;
    } else {
      d3_timer_interval = 1;
      d3_timer_frame(d3_timer_step);
    }
  }
  d3.timer.flush = function() {
    d3_timer_mark();
    d3_timer_sweep();
  };
  function d3_timer_mark() {
    var now = Date.now(), timer = d3_timer_queueHead;
    while (timer) {
      if (now >= timer.t && timer.c(now - timer.t)) timer.c = null;
      timer = timer.n;
    }
    return now;
  }
  function d3_timer_sweep() {
    var t0, t1 = d3_timer_queueHead, time = Infinity;
    while (t1) {
      if (t1.c) {
        if (t1.t < time) time = t1.t;
        t1 = (t0 = t1).n;
      } else {
        t1 = t0 ? t0.n = t1.n : d3_timer_queueHead = t1.n;
      }
    }
    d3_timer_queueTail = t0;
    return time;
  }
  function d3_format_precision(x, p) {
    return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1);
  }
  d3.round = function(x, n) {
    return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);
  };
  var d3_formatPrefixes = [ "y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y" ].map(d3_formatPrefix);
  d3.formatPrefix = function(value, precision) {
    var i = 0;
    if (value = +value) {
      if (value < 0) value *= -1;
      if (precision) value = d3.round(value, d3_format_precision(value, precision));
      i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10);
      i = Math.max(-24, Math.min(24, Math.floor((i - 1) / 3) * 3));
    }
    return d3_formatPrefixes[8 + i / 3];
  };
  function d3_formatPrefix(d, i) {
    var k = Math.pow(10, abs(8 - i) * 3);
    return {
      scale: i > 8 ? function(d) {
        return d / k;
      } : function(d) {
        return d * k;
      },
      symbol: d
    };
  }
  function d3_locale_numberFormat(locale) {
    var locale_decimal = locale.decimal, locale_thousands = locale.thousands, locale_grouping = locale.grouping, locale_currency = locale.currency, formatGroup = locale_grouping && locale_thousands ? function(value, width) {
      var i = value.length, t = [], j = 0, g = locale_grouping[0], length = 0;
      while (i > 0 && g > 0) {
        if (length + g + 1 > width) g = Math.max(1, width - length);
        t.push(value.substring(i -= g, i + g));
        if ((length += g + 1) > width) break;
        g = locale_grouping[j = (j + 1) % locale_grouping.length];
      }
      return t.reverse().join(locale_thousands);
    } : d3_identity;
    return function(specifier) {
      var match = d3_format_re.exec(specifier), fill = match[1] || " ", align = match[2] || ">", sign = match[3] || "-", symbol = match[4] || "", zfill = match[5], width = +match[6], comma = match[7], precision = match[8], type = match[9], scale = 1, prefix = "", suffix = "", integer = false, exponent = true;
      if (precision) precision = +precision.substring(1);
      if (zfill || fill === "0" && align === "=") {
        zfill = fill = "0";
        align = "=";
      }
      switch (type) {
       case "n":
        comma = true;
        type = "g";
        break;

       case "%":
        scale = 100;
        suffix = "%";
        type = "f";
        break;

       case "p":
        scale = 100;
        suffix = "%";
        type = "r";
        break;

       case "b":
       case "o":
       case "x":
       case "X":
        if (symbol === "#") prefix = "0" + type.toLowerCase();

       case "c":
        exponent = false;

       case "d":
        integer = true;
        precision = 0;
        break;

       case "s":
        scale = -1;
        type = "r";
        break;
      }
      if (symbol === "$") prefix = locale_currency[0], suffix = locale_currency[1];
      if (type == "r" && !precision) type = "g";
      if (precision != null) {
        if (type == "g") precision = Math.max(1, Math.min(21, precision)); else if (type == "e" || type == "f") precision = Math.max(0, Math.min(20, precision));
      }
      type = d3_format_types.get(type) || d3_format_typeDefault;
      var zcomma = zfill && comma;
      return function(value) {
        var fullSuffix = suffix;
        if (integer && value % 1) return "";
        var negative = value < 0 || value === 0 && 1 / value < 0 ? (value = -value, "-") : sign === "-" ? "" : sign;
        if (scale < 0) {
          var unit = d3.formatPrefix(value, precision);
          value = unit.scale(value);
          fullSuffix = unit.symbol + suffix;
        } else {
          value *= scale;
        }
        value = type(value, precision);
        var i = value.lastIndexOf("."), before, after;
        if (i < 0) {
          var j = exponent ? value.lastIndexOf("e") : -1;
          if (j < 0) before = value, after = ""; else before = value.substring(0, j), after = value.substring(j);
        } else {
          before = value.substring(0, i);
          after = locale_decimal + value.substring(i + 1);
        }
        if (!zfill && comma) before = formatGroup(before, Infinity);
        var length = prefix.length + before.length + after.length + (zcomma ? 0 : negative.length), padding = length < width ? new Array(length = width - length + 1).join(fill) : "";
        if (zcomma) before = formatGroup(padding + before, padding.length ? width - after.length : Infinity);
        negative += prefix;
        value = before + after;
        return (align === "<" ? negative + value + padding : align === ">" ? padding + negative + value : align === "^" ? padding.substring(0, length >>= 1) + negative + value + padding.substring(length) : negative + (zcomma ? value : padding + value)) + fullSuffix;
      };
    };
  }
  var d3_format_re = /(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i;
  var d3_format_types = d3.map({
    b: function(x) {
      return x.toString(2);
    },
    c: function(x) {
      return String.fromCharCode(x);
    },
    o: function(x) {
      return x.toString(8);
    },
    x: function(x) {
      return x.toString(16);
    },
    X: function(x) {
      return x.toString(16).toUpperCase();
    },
    g: function(x, p) {
      return x.toPrecision(p);
    },
    e: function(x, p) {
      return x.toExponential(p);
    },
    f: function(x, p) {
      return x.toFixed(p);
    },
    r: function(x, p) {
      return (x = d3.round(x, d3_format_precision(x, p))).toFixed(Math.max(0, Math.min(20, d3_format_precision(x * (1 + 1e-15), p))));
    }
  });
  function d3_format_typeDefault(x) {
    return x + "";
  }
  var d3_time = d3.time = {}, d3_date = Date;
  function d3_date_utc() {
    this._ = new Date(arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]);
  }
  d3_date_utc.prototype = {
    getDate: function() {
      return this._.getUTCDate();
    },
    getDay: function() {
      return this._.getUTCDay();
    },
    getFullYear: function() {
      return this._.getUTCFullYear();
    },
    getHours: function() {
      return this._.getUTCHours();
    },
    getMilliseconds: function() {
      return this._.getUTCMilliseconds();
    },
    getMinutes: function() {
      return this._.getUTCMinutes();
    },
    getMonth: function() {
      return this._.getUTCMonth();
    },
    getSeconds: function() {
      return this._.getUTCSeconds();
    },
    getTime: function() {
      return this._.getTime();
    },
    getTimezoneOffset: function() {
      return 0;
    },
    valueOf: function() {
      return this._.valueOf();
    },
    setDate: function() {
      d3_time_prototype.setUTCDate.apply(this._, arguments);
    },
    setDay: function() {
      d3_time_prototype.setUTCDay.apply(this._, arguments);
    },
    setFullYear: function() {
      d3_time_prototype.setUTCFullYear.apply(this._, arguments);
    },
    setHours: function() {
      d3_time_prototype.setUTCHours.apply(this._, arguments);
    },
    setMilliseconds: function() {
      d3_time_prototype.setUTCMilliseconds.apply(this._, arguments);
    },
    setMinutes: function() {
      d3_time_prototype.setUTCMinutes.apply(this._, arguments);
    },
    setMonth: function() {
      d3_time_prototype.setUTCMonth.apply(this._, arguments);
    },
    setSeconds: function() {
      d3_time_prototype.setUTCSeconds.apply(this._, arguments);
    },
    setTime: function() {
      d3_time_prototype.setTime.apply(this._, arguments);
    }
  };
  var d3_time_prototype = Date.prototype;
  function d3_time_interval(local, step, number) {
    function round(date) {
      var d0 = local(date), d1 = offset(d0, 1);
      return date - d0 < d1 - date ? d0 : d1;
    }
    function ceil(date) {
      step(date = local(new d3_date(date - 1)), 1);
      return date;
    }
    function offset(date, k) {
      step(date = new d3_date(+date), k);
      return date;
    }
    function range(t0, t1, dt) {
      var time = ceil(t0), times = [];
      if (dt > 1) {
        while (time < t1) {
          if (!(number(time) % dt)) times.push(new Date(+time));
          step(time, 1);
        }
      } else {
        while (time < t1) times.push(new Date(+time)), step(time, 1);
      }
      return times;
    }
    function range_utc(t0, t1, dt) {
      try {
        d3_date = d3_date_utc;
        var utc = new d3_date_utc();
        utc._ = t0;
        return range(utc, t1, dt);
      } finally {
        d3_date = Date;
      }
    }
    local.floor = local;
    local.round = round;
    local.ceil = ceil;
    local.offset = offset;
    local.range = range;
    var utc = local.utc = d3_time_interval_utc(local);
    utc.floor = utc;
    utc.round = d3_time_interval_utc(round);
    utc.ceil = d3_time_interval_utc(ceil);
    utc.offset = d3_time_interval_utc(offset);
    utc.range = range_utc;
    return local;
  }
  function d3_time_interval_utc(method) {
    return function(date, k) {
      try {
        d3_date = d3_date_utc;
        var utc = new d3_date_utc();
        utc._ = date;
        return method(utc, k)._;
      } finally {
        d3_date = Date;
      }
    };
  }
  d3_time.year = d3_time_interval(function(date) {
    date = d3_time.day(date);
    date.setMonth(0, 1);
    return date;
  }, function(date, offset) {
    date.setFullYear(date.getFullYear() + offset);
  }, function(date) {
    return date.getFullYear();
  });
  d3_time.years = d3_time.year.range;
  d3_time.years.utc = d3_time.year.utc.range;
  d3_time.day = d3_time_interval(function(date) {
    var day = new d3_date(2e3, 0);
    day.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
    return day;
  }, function(date, offset) {
    date.setDate(date.getDate() + offset);
  }, function(date) {
    return date.getDate() - 1;
  });
  d3_time.days = d3_time.day.range;
  d3_time.days.utc = d3_time.day.utc.range;
  d3_time.dayOfYear = function(date) {
    var year = d3_time.year(date);
    return Math.floor((date - year - (date.getTimezoneOffset() - year.getTimezoneOffset()) * 6e4) / 864e5);
  };
  [ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday" ].forEach(function(day, i) {
    i = 7 - i;
    var interval = d3_time[day] = d3_time_interval(function(date) {
      (date = d3_time.day(date)).setDate(date.getDate() - (date.getDay() + i) % 7);
      return date;
    }, function(date, offset) {
      date.setDate(date.getDate() + Math.floor(offset) * 7);
    }, function(date) {
      var day = d3_time.year(date).getDay();
      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7) - (day !== i);
    });
    d3_time[day + "s"] = interval.range;
    d3_time[day + "s"].utc = interval.utc.range;
    d3_time[day + "OfYear"] = function(date) {
      var day = d3_time.year(date).getDay();
      return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7);
    };
  });
  d3_time.week = d3_time.sunday;
  d3_time.weeks = d3_time.sunday.range;
  d3_time.weeks.utc = d3_time.sunday.utc.range;
  d3_time.weekOfYear = d3_time.sundayOfYear;
  function d3_locale_timeFormat(locale) {
    var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_days = locale.days, locale_shortDays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
    function d3_time_format(template) {
      var n = template.length;
      function format(date) {
        var string = [], i = -1, j = 0, c, p, f;
        while (++i < n) {
          if (template.charCodeAt(i) === 37) {
            string.push(template.slice(j, i));
            if ((p = d3_time_formatPads[c = template.charAt(++i)]) != null) c = template.charAt(++i);
            if (f = d3_time_formats[c]) c = f(date, p == null ? c === "e" ? " " : "0" : p);
            string.push(c);
            j = i + 1;
          }
        }
        string.push(template.slice(j, i));
        return string.join("");
      }
      format.parse = function(string) {
        var d = {
          y: 1900,
          m: 0,
          d: 1,
          H: 0,
          M: 0,
          S: 0,
          L: 0,
          Z: null
        }, i = d3_time_parse(d, template, string, 0);
        if (i != string.length) return null;
        if ("p" in d) d.H = d.H % 12 + d.p * 12;
        var localZ = d.Z != null && d3_date !== d3_date_utc, date = new (localZ ? d3_date_utc : d3_date)();
        if ("j" in d) date.setFullYear(d.y, 0, d.j); else if ("W" in d || "U" in d) {
          if (!("w" in d)) d.w = "W" in d ? 1 : 0;
          date.setFullYear(d.y, 0, 1);
          date.setFullYear(d.y, 0, "W" in d ? (d.w + 6) % 7 + d.W * 7 - (date.getDay() + 5) % 7 : d.w + d.U * 7 - (date.getDay() + 6) % 7);
        } else date.setFullYear(d.y, d.m, d.d);
        date.setHours(d.H + (d.Z / 100 | 0), d.M + d.Z % 100, d.S, d.L);
        return localZ ? date._ : date;
      };
      format.toString = function() {
        return template;
      };
      return format;
    }
    function d3_time_parse(date, template, string, j) {
      var c, p, t, i = 0, n = template.length, m = string.length;
      while (i < n) {
        if (j >= m) return -1;
        c = template.charCodeAt(i++);
        if (c === 37) {
          t = template.charAt(i++);
          p = d3_time_parsers[t in d3_time_formatPads ? template.charAt(i++) : t];
          if (!p || (j = p(date, string, j)) < 0) return -1;
        } else if (c != string.charCodeAt(j++)) {
          return -1;
        }
      }
      return j;
    }
    d3_time_format.utc = function(template) {
      var local = d3_time_format(template);
      function format(date) {
        try {
          d3_date = d3_date_utc;
          var utc = new d3_date();
          utc._ = date;
          return local(utc);
        } finally {
          d3_date = Date;
        }
      }
      format.parse = function(string) {
        try {
          d3_date = d3_date_utc;
          var date = local.parse(string);
          return date && date._;
        } finally {
          d3_date = Date;
        }
      };
      format.toString = local.toString;
      return format;
    };
    d3_time_format.multi = d3_time_format.utc.multi = d3_time_formatMulti;
    var d3_time_periodLookup = d3.map(), d3_time_dayRe = d3_time_formatRe(locale_days), d3_time_dayLookup = d3_time_formatLookup(locale_days), d3_time_dayAbbrevRe = d3_time_formatRe(locale_shortDays), d3_time_dayAbbrevLookup = d3_time_formatLookup(locale_shortDays), d3_time_monthRe = d3_time_formatRe(locale_months), d3_time_monthLookup = d3_time_formatLookup(locale_months), d3_time_monthAbbrevRe = d3_time_formatRe(locale_shortMonths), d3_time_monthAbbrevLookup = d3_time_formatLookup(locale_shortMonths);
    locale_periods.forEach(function(p, i) {
      d3_time_periodLookup.set(p.toLowerCase(), i);
    });
    var d3_time_formats = {
      a: function(d) {
        return locale_shortDays[d.getDay()];
      },
      A: function(d) {
        return locale_days[d.getDay()];
      },
      b: function(d) {
        return locale_shortMonths[d.getMonth()];
      },
      B: function(d) {
        return locale_months[d.getMonth()];
      },
      c: d3_time_format(locale_dateTime),
      d: function(d, p) {
        return d3_time_formatPad(d.getDate(), p, 2);
      },
      e: function(d, p) {
        return d3_time_formatPad(d.getDate(), p, 2);
      },
      H: function(d, p) {
        return d3_time_formatPad(d.getHours(), p, 2);
      },
      I: function(d, p) {
        return d3_time_formatPad(d.getHours() % 12 || 12, p, 2);
      },
      j: function(d, p) {
        return d3_time_formatPad(1 + d3_time.dayOfYear(d), p, 3);
      },
      L: function(d, p) {
        return d3_time_formatPad(d.getMilliseconds(), p, 3);
      },
      m: function(d, p) {
        return d3_time_formatPad(d.getMonth() + 1, p, 2);
      },
      M: function(d, p) {
        return d3_time_formatPad(d.getMinutes(), p, 2);
      },
      p: function(d) {
        return locale_periods[+(d.getHours() >= 12)];
      },
      S: function(d, p) {
        return d3_time_formatPad(d.getSeconds(), p, 2);
      },
      U: function(d, p) {
        return d3_time_formatPad(d3_time.sundayOfYear(d), p, 2);
      },
      w: function(d) {
        return d.getDay();
      },
      W: function(d, p) {
        return d3_time_formatPad(d3_time.mondayOfYear(d), p, 2);
      },
      x: d3_time_format(locale_date),
      X: d3_time_format(locale_time),
      y: function(d, p) {
        return d3_time_formatPad(d.getFullYear() % 100, p, 2);
      },
      Y: function(d, p) {
        return d3_time_formatPad(d.getFullYear() % 1e4, p, 4);
      },
      Z: d3_time_zone,
      "%": function() {
        return "%";
      }
    };
    var d3_time_parsers = {
      a: d3_time_parseWeekdayAbbrev,
      A: d3_time_parseWeekday,
      b: d3_time_parseMonthAbbrev,
      B: d3_time_parseMonth,
      c: d3_time_parseLocaleFull,
      d: d3_time_parseDay,
      e: d3_time_parseDay,
      H: d3_time_parseHour24,
      I: d3_time_parseHour24,
      j: d3_time_parseDayOfYear,
      L: d3_time_parseMilliseconds,
      m: d3_time_parseMonthNumber,
      M: d3_time_parseMinutes,
      p: d3_time_parseAmPm,
      S: d3_time_parseSeconds,
      U: d3_time_parseWeekNumberSunday,
      w: d3_time_parseWeekdayNumber,
      W: d3_time_parseWeekNumberMonday,
      x: d3_time_parseLocaleDate,
      X: d3_time_parseLocaleTime,
      y: d3_time_parseYear,
      Y: d3_time_parseFullYear,
      Z: d3_time_parseZone,
      "%": d3_time_parseLiteralPercent
    };
    function d3_time_parseWeekdayAbbrev(date, string, i) {
      d3_time_dayAbbrevRe.lastIndex = 0;
      var n = d3_time_dayAbbrevRe.exec(string.slice(i));
      return n ? (date.w = d3_time_dayAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseWeekday(date, string, i) {
      d3_time_dayRe.lastIndex = 0;
      var n = d3_time_dayRe.exec(string.slice(i));
      return n ? (date.w = d3_time_dayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseMonthAbbrev(date, string, i) {
      d3_time_monthAbbrevRe.lastIndex = 0;
      var n = d3_time_monthAbbrevRe.exec(string.slice(i));
      return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseMonth(date, string, i) {
      d3_time_monthRe.lastIndex = 0;
      var n = d3_time_monthRe.exec(string.slice(i));
      return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
    }
    function d3_time_parseLocaleFull(date, string, i) {
      return d3_time_parse(date, d3_time_formats.c.toString(), string, i);
    }
    function d3_time_parseLocaleDate(date, string, i) {
      return d3_time_parse(date, d3_time_formats.x.toString(), string, i);
    }
    function d3_time_parseLocaleTime(date, string, i) {
      return d3_time_parse(date, d3_time_formats.X.toString(), string, i);
    }
    function d3_time_parseAmPm(date, string, i) {
      var n = d3_time_periodLookup.get(string.slice(i, i += 2).toLowerCase());
      return n == null ? -1 : (date.p = n, i);
    }
    return d3_time_format;
  }
  var d3_time_formatPads = {
    "-": "",
    _: " ",
    "0": "0"
  }, d3_time_numberRe = /^\s*\d+/, d3_time_percentRe = /^%/;
  function d3_time_formatPad(value, fill, width) {
    var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
    return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
  }
  function d3_time_formatRe(names) {
    return new RegExp("^(?:" + names.map(d3.requote).join("|") + ")", "i");
  }
  function d3_time_formatLookup(names) {
    var map = new d3_Map(), i = -1, n = names.length;
    while (++i < n) map.set(names[i].toLowerCase(), i);
    return map;
  }
  function d3_time_parseWeekdayNumber(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 1));
    return n ? (date.w = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseWeekNumberSunday(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i));
    return n ? (date.U = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseWeekNumberMonday(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i));
    return n ? (date.W = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseFullYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 4));
    return n ? (date.y = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.y = d3_time_expandYear(+n[0]), i + n[0].length) : -1;
  }
  function d3_time_parseZone(date, string, i) {
    return /^[+-]\d{4}$/.test(string = string.slice(i, i + 5)) ? (date.Z = -string, 
    i + 5) : -1;
  }
  function d3_time_expandYear(d) {
    return d + (d > 68 ? 1900 : 2e3);
  }
  function d3_time_parseMonthNumber(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.m = n[0] - 1, i + n[0].length) : -1;
  }
  function d3_time_parseDay(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.d = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseDayOfYear(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 3));
    return n ? (date.j = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseHour24(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.H = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseMinutes(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.M = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseSeconds(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 2));
    return n ? (date.S = +n[0], i + n[0].length) : -1;
  }
  function d3_time_parseMilliseconds(date, string, i) {
    d3_time_numberRe.lastIndex = 0;
    var n = d3_time_numberRe.exec(string.slice(i, i + 3));
    return n ? (date.L = +n[0], i + n[0].length) : -1;
  }
  function d3_time_zone(d) {
    var z = d.getTimezoneOffset(), zs = z > 0 ? "-" : "+", zh = abs(z) / 60 | 0, zm = abs(z) % 60;
    return zs + d3_time_formatPad(zh, "0", 2) + d3_time_formatPad(zm, "0", 2);
  }
  function d3_time_parseLiteralPercent(date, string, i) {
    d3_time_percentRe.lastIndex = 0;
    var n = d3_time_percentRe.exec(string.slice(i, i + 1));
    return n ? i + n[0].length : -1;
  }
  function d3_time_formatMulti(formats) {
    var n = formats.length, i = -1;
    while (++i < n) formats[i][0] = this(formats[i][0]);
    return function(date) {
      var i = 0, f = formats[i];
      while (!f[1](date)) f = formats[++i];
      return f[0](date);
    };
  }
  d3.locale = function(locale) {
    return {
      numberFormat: d3_locale_numberFormat(locale),
      timeFormat: d3_locale_timeFormat(locale)
    };
  };
  var d3_locale_enUS = d3.locale({
    decimal: ".",
    thousands: ",",
    grouping: [ 3 ],
    currency: [ "$", "" ],
    dateTime: "%a %b %e %X %Y",
    date: "%m/%d/%Y",
    time: "%H:%M:%S",
    periods: [ "AM", "PM" ],
    days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ],
    shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
    months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
    shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
  });
  d3.format = d3_locale_enUS.numberFormat;
  d3.geo = {};
  function d3_adder() {}
  d3_adder.prototype = {
    s: 0,
    t: 0,
    add: function(y) {
      d3_adderSum(y, this.t, d3_adderTemp);
      d3_adderSum(d3_adderTemp.s, this.s, this);
      if (this.s) this.t += d3_adderTemp.t; else this.s = d3_adderTemp.t;
    },
    reset: function() {
      this.s = this.t = 0;
    },
    valueOf: function() {
      return this.s;
    }
  };
  var d3_adderTemp = new d3_adder();
  function d3_adderSum(a, b, o) {
    var x = o.s = a + b, bv = x - a, av = x - bv;
    o.t = a - av + (b - bv);
  }
  d3.geo.stream = function(object, listener) {
    if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) {
      d3_geo_streamObjectType[object.type](object, listener);
    } else {
      d3_geo_streamGeometry(object, listener);
    }
  };
  function d3_geo_streamGeometry(geometry, listener) {
    if (geometry && d3_geo_streamGeometryType.hasOwnProperty(geometry.type)) {
      d3_geo_streamGeometryType[geometry.type](geometry, listener);
    }
  }
  var d3_geo_streamObjectType = {
    Feature: function(feature, listener) {
      d3_geo_streamGeometry(feature.geometry, listener);
    },
    FeatureCollection: function(object, listener) {
      var features = object.features, i = -1, n = features.length;
      while (++i < n) d3_geo_streamGeometry(features[i].geometry, listener);
    }
  };
  var d3_geo_streamGeometryType = {
    Sphere: function(object, listener) {
      listener.sphere();
    },
    Point: function(object, listener) {
      object = object.coordinates;
      listener.point(object[0], object[1], object[2]);
    },
    MultiPoint: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) object = coordinates[i], listener.point(object[0], object[1], object[2]);
    },
    LineString: function(object, listener) {
      d3_geo_streamLine(object.coordinates, listener, 0);
    },
    MultiLineString: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) d3_geo_streamLine(coordinates[i], listener, 0);
    },
    Polygon: function(object, listener) {
      d3_geo_streamPolygon(object.coordinates, listener);
    },
    MultiPolygon: function(object, listener) {
      var coordinates = object.coordinates, i = -1, n = coordinates.length;
      while (++i < n) d3_geo_streamPolygon(coordinates[i], listener);
    },
    GeometryCollection: function(object, listener) {
      var geometries = object.geometries, i = -1, n = geometries.length;
      while (++i < n) d3_geo_streamGeometry(geometries[i], listener);
    }
  };
  function d3_geo_streamLine(coordinates, listener, closed) {
    var i = -1, n = coordinates.length - closed, coordinate;
    listener.lineStart();
    while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1], coordinate[2]);
    listener.lineEnd();
  }
  function d3_geo_streamPolygon(coordinates, listener) {
    var i = -1, n = coordinates.length;
    listener.polygonStart();
    while (++i < n) d3_geo_streamLine(coordinates[i], listener, 1);
    listener.polygonEnd();
  }
  d3.geo.area = function(object) {
    d3_geo_areaSum = 0;
    d3.geo.stream(object, d3_geo_area);
    return d3_geo_areaSum;
  };
  var d3_geo_areaSum, d3_geo_areaRingSum = new d3_adder();
  var d3_geo_area = {
    sphere: function() {
      d3_geo_areaSum += 4 * π;
    },
    point: d3_noop,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: function() {
      d3_geo_areaRingSum.reset();
      d3_geo_area.lineStart = d3_geo_areaRingStart;
    },
    polygonEnd: function() {
      var area = 2 * d3_geo_areaRingSum;
      d3_geo_areaSum += area < 0 ? 4 * π + area : area;
      d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop;
    }
  };
  function d3_geo_areaRingStart() {
    var λ00, φ00, λ0, cosφ0, sinφ0;
    d3_geo_area.point = function(λ, φ) {
      d3_geo_area.point = nextPoint;
      λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), 
      sinφ0 = Math.sin(φ);
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      φ = φ * d3_radians / 2 + π / 4;
      var dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, cosφ = Math.cos(φ), sinφ = Math.sin(φ), k = sinφ0 * sinφ, u = cosφ0 * cosφ + k * Math.cos(adλ), v = k * sdλ * Math.sin(adλ);
      d3_geo_areaRingSum.add(Math.atan2(v, u));
      λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ;
    }
    d3_geo_area.lineEnd = function() {
      nextPoint(λ00, φ00);
    };
  }
  function d3_geo_cartesian(spherical) {
    var λ = spherical[0], φ = spherical[1], cosφ = Math.cos(φ);
    return [ cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ) ];
  }
  function d3_geo_cartesianDot(a, b) {
    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
  }
  function d3_geo_cartesianCross(a, b) {
    return [ a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0] ];
  }
  function d3_geo_cartesianAdd(a, b) {
    a[0] += b[0];
    a[1] += b[1];
    a[2] += b[2];
  }
  function d3_geo_cartesianScale(vector, k) {
    return [ vector[0] * k, vector[1] * k, vector[2] * k ];
  }
  function d3_geo_cartesianNormalize(d) {
    var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
    d[0] /= l;
    d[1] /= l;
    d[2] /= l;
  }
  function d3_geo_spherical(cartesian) {
    return [ Math.atan2(cartesian[1], cartesian[0]), d3_asin(cartesian[2]) ];
  }
  function d3_geo_sphericalEqual(a, b) {
    return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε;
  }
  d3.geo.bounds = function() {
    var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range;
    var bound = {
      point: point,
      lineStart: lineStart,
      lineEnd: lineEnd,
      polygonStart: function() {
        bound.point = ringPoint;
        bound.lineStart = ringStart;
        bound.lineEnd = ringEnd;
        dλSum = 0;
        d3_geo_area.polygonStart();
      },
      polygonEnd: function() {
        d3_geo_area.polygonEnd();
        bound.point = point;
        bound.lineStart = lineStart;
        bound.lineEnd = lineEnd;
        if (d3_geo_areaRingSum < 0) λ0 = -(λ1 = 180), φ0 = -(φ1 = 90); else if (dλSum > ε) φ1 = 90; else if (dλSum < -ε) φ0 = -90;
        range[0] = λ0, range[1] = λ1;
      }
    };
    function point(λ, φ) {
      ranges.push(range = [ λ0 = λ, λ1 = λ ]);
      if (φ < φ0) φ0 = φ;
      if (φ > φ1) φ1 = φ;
    }
    function linePoint(λ, φ) {
      var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
      if (p0) {
        var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
        d3_geo_cartesianNormalize(inflection);
        inflection = d3_geo_spherical(inflection);
        var dλ = λ - λ_, s = dλ > 0 ? 1 : -1, λi = inflection[0] * d3_degrees * s, antimeridian = abs(dλ) > 180;
        if (antimeridian ^ (s * λ_ < λi && λi < s * λ)) {
          var φi = inflection[1] * d3_degrees;
          if (φi > φ1) φ1 = φi;
        } else if (λi = (λi + 360) % 360 - 180, antimeridian ^ (s * λ_ < λi && λi < s * λ)) {
          var φi = -inflection[1] * d3_degrees;
          if (φi < φ0) φ0 = φi;
        } else {
          if (φ < φ0) φ0 = φ;
          if (φ > φ1) φ1 = φ;
        }
        if (antimeridian) {
          if (λ < λ_) {
            if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
          } else {
            if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
          }
        } else {
          if (λ1 >= λ0) {
            if (λ < λ0) λ0 = λ;
            if (λ > λ1) λ1 = λ;
          } else {
            if (λ > λ_) {
              if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;
            } else {
              if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;
            }
          }
        }
      } else {
        point(λ, φ);
      }
      p0 = p, λ_ = λ;
    }
    function lineStart() {
      bound.point = linePoint;
    }
    function lineEnd() {
      range[0] = λ0, range[1] = λ1;
      bound.point = point;
      p0 = null;
    }
    function ringPoint(λ, φ) {
      if (p0) {
        var dλ = λ - λ_;
        dλSum += abs(dλ) > 180 ? dλ + (dλ > 0 ? 360 : -360) : dλ;
      } else λ__ = λ, φ__ = φ;
      d3_geo_area.point(λ, φ);
      linePoint(λ, φ);
    }
    function ringStart() {
      d3_geo_area.lineStart();
    }
    function ringEnd() {
      ringPoint(λ__, φ__);
      d3_geo_area.lineEnd();
      if (abs(dλSum) > ε) λ0 = -(λ1 = 180);
      range[0] = λ0, range[1] = λ1;
      p0 = null;
    }
    function angle(λ0, λ1) {
      return (λ1 -= λ0) < 0 ? λ1 + 360 : λ1;
    }
    function compareRanges(a, b) {
      return a[0] - b[0];
    }
    function withinRange(x, range) {
      return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
    }
    return function(feature) {
      φ1 = λ1 = -(λ0 = φ0 = Infinity);
      ranges = [];
      d3.geo.stream(feature, bound);
      var n = ranges.length;
      if (n) {
        ranges.sort(compareRanges);
        for (var i = 1, a = ranges[0], b, merged = [ a ]; i < n; ++i) {
          b = ranges[i];
          if (withinRange(b[0], a) || withinRange(b[1], a)) {
            if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
            if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
          } else {
            merged.push(a = b);
          }
        }
        var best = -Infinity, dλ;
        for (var n = merged.length - 1, i = 0, a = merged[n], b; i <= n; a = b, ++i) {
          b = merged[i];
          if ((dλ = angle(a[1], b[0])) > best) best = dλ, λ0 = b[0], λ1 = a[1];
        }
      }
      ranges = range = null;
      return λ0 === Infinity || φ0 === Infinity ? [ [ NaN, NaN ], [ NaN, NaN ] ] : [ [ λ0, φ0 ], [ λ1, φ1 ] ];
    };
  }();
  d3.geo.centroid = function(object) {
    d3_geo_centroidW0 = d3_geo_centroidW1 = d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;
    d3.geo.stream(object, d3_geo_centroid);
    var x = d3_geo_centroidX2, y = d3_geo_centroidY2, z = d3_geo_centroidZ2, m = x * x + y * y + z * z;
    if (m < ε2) {
      x = d3_geo_centroidX1, y = d3_geo_centroidY1, z = d3_geo_centroidZ1;
      if (d3_geo_centroidW1 < ε) x = d3_geo_centroidX0, y = d3_geo_centroidY0, z = d3_geo_centroidZ0;
      m = x * x + y * y + z * z;
      if (m < ε2) return [ NaN, NaN ];
    }
    return [ Math.atan2(y, x) * d3_degrees, d3_asin(z / Math.sqrt(m)) * d3_degrees ];
  };
  var d3_geo_centroidW0, d3_geo_centroidW1, d3_geo_centroidX0, d3_geo_centroidY0, d3_geo_centroidZ0, d3_geo_centroidX1, d3_geo_centroidY1, d3_geo_centroidZ1, d3_geo_centroidX2, d3_geo_centroidY2, d3_geo_centroidZ2;
  var d3_geo_centroid = {
    sphere: d3_noop,
    point: d3_geo_centroidPoint,
    lineStart: d3_geo_centroidLineStart,
    lineEnd: d3_geo_centroidLineEnd,
    polygonStart: function() {
      d3_geo_centroid.lineStart = d3_geo_centroidRingStart;
    },
    polygonEnd: function() {
      d3_geo_centroid.lineStart = d3_geo_centroidLineStart;
    }
  };
  function d3_geo_centroidPoint(λ, φ) {
    λ *= d3_radians;
    var cosφ = Math.cos(φ *= d3_radians);
    d3_geo_centroidPointXYZ(cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ));
  }
  function d3_geo_centroidPointXYZ(x, y, z) {
    ++d3_geo_centroidW0;
    d3_geo_centroidX0 += (x - d3_geo_centroidX0) / d3_geo_centroidW0;
    d3_geo_centroidY0 += (y - d3_geo_centroidY0) / d3_geo_centroidW0;
    d3_geo_centroidZ0 += (z - d3_geo_centroidZ0) / d3_geo_centroidW0;
  }
  function d3_geo_centroidLineStart() {
    var x0, y0, z0;
    d3_geo_centroid.point = function(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians);
      x0 = cosφ * Math.cos(λ);
      y0 = cosφ * Math.sin(λ);
      z0 = Math.sin(φ);
      d3_geo_centroid.point = nextPoint;
      d3_geo_centroidPointXYZ(x0, y0, z0);
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), w = Math.atan2(Math.sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
      d3_geo_centroidW1 += w;
      d3_geo_centroidX1 += w * (x0 + (x0 = x));
      d3_geo_centroidY1 += w * (y0 + (y0 = y));
      d3_geo_centroidZ1 += w * (z0 + (z0 = z));
      d3_geo_centroidPointXYZ(x0, y0, z0);
    }
  }
  function d3_geo_centroidLineEnd() {
    d3_geo_centroid.point = d3_geo_centroidPoint;
  }
  function d3_geo_centroidRingStart() {
    var λ00, φ00, x0, y0, z0;
    d3_geo_centroid.point = function(λ, φ) {
      λ00 = λ, φ00 = φ;
      d3_geo_centroid.point = nextPoint;
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians);
      x0 = cosφ * Math.cos(λ);
      y0 = cosφ * Math.sin(λ);
      z0 = Math.sin(φ);
      d3_geo_centroidPointXYZ(x0, y0, z0);
    };
    d3_geo_centroid.lineEnd = function() {
      nextPoint(λ00, φ00);
      d3_geo_centroid.lineEnd = d3_geo_centroidLineEnd;
      d3_geo_centroid.point = d3_geo_centroidPoint;
    };
    function nextPoint(λ, φ) {
      λ *= d3_radians;
      var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = Math.sqrt(cx * cx + cy * cy + cz * cz), u = x0 * x + y0 * y + z0 * z, v = m && -d3_acos(u) / m, w = Math.atan2(m, u);
      d3_geo_centroidX2 += v * cx;
      d3_geo_centroidY2 += v * cy;
      d3_geo_centroidZ2 += v * cz;
      d3_geo_centroidW1 += w;
      d3_geo_centroidX1 += w * (x0 + (x0 = x));
      d3_geo_centroidY1 += w * (y0 + (y0 = y));
      d3_geo_centroidZ1 += w * (z0 + (z0 = z));
      d3_geo_centroidPointXYZ(x0, y0, z0);
    }
  }
  function d3_geo_compose(a, b) {
    function compose(x, y) {
      return x = a(x, y), b(x[0], x[1]);
    }
    if (a.invert && b.invert) compose.invert = function(x, y) {
      return x = b.invert(x, y), x && a.invert(x[0], x[1]);
    };
    return compose;
  }
  function d3_true() {
    return true;
  }
  function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) {
    var subject = [], clip = [];
    segments.forEach(function(segment) {
      if ((n = segment.length - 1) <= 0) return;
      var n, p0 = segment[0], p1 = segment[n];
      if (d3_geo_sphericalEqual(p0, p1)) {
        listener.lineStart();
        for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]);
        listener.lineEnd();
        return;
      }
      var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true), b = new d3_geo_clipPolygonIntersection(p0, null, a, false);
      a.o = b;
      subject.push(a);
      clip.push(b);
      a = new d3_geo_clipPolygonIntersection(p1, segment, null, false);
      b = new d3_geo_clipPolygonIntersection(p1, null, a, true);
      a.o = b;
      subject.push(a);
      clip.push(b);
    });
    clip.sort(compare);
    d3_geo_clipPolygonLinkCircular(subject);
    d3_geo_clipPolygonLinkCircular(clip);
    if (!subject.length) return;
    for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) {
      clip[i].e = entry = !entry;
    }
    var start = subject[0], points, point;
    while (1) {
      var current = start, isSubject = true;
      while (current.v) if ((current = current.n) === start) return;
      points = current.z;
      listener.lineStart();
      do {
        current.v = current.o.v = true;
        if (current.e) {
          if (isSubject) {
            for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]);
          } else {
            interpolate(current.x, current.n.x, 1, listener);
          }
          current = current.n;
        } else {
          if (isSubject) {
            points = current.p.z;
            for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]);
          } else {
            interpolate(current.x, current.p.x, -1, listener);
          }
          current = current.p;
        }
        current = current.o;
        points = current.z;
        isSubject = !isSubject;
      } while (!current.v);
      listener.lineEnd();
    }
  }
  function d3_geo_clipPolygonLinkCircular(array) {
    if (!(n = array.length)) return;
    var n, i = 0, a = array[0], b;
    while (++i < n) {
      a.n = b = array[i];
      b.p = a;
      a = b;
    }
    a.n = b = array[0];
    b.p = a;
  }
  function d3_geo_clipPolygonIntersection(point, points, other, entry) {
    this.x = point;
    this.z = points;
    this.o = other;
    this.e = entry;
    this.v = false;
    this.n = this.p = null;
  }
  function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) {
    return function(rotate, listener) {
      var line = clipLine(listener), rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]);
      var clip = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          clip.point = pointRing;
          clip.lineStart = ringStart;
          clip.lineEnd = ringEnd;
          segments = [];
          polygon = [];
        },
        polygonEnd: function() {
          clip.point = point;
          clip.lineStart = lineStart;
          clip.lineEnd = lineEnd;
          segments = d3.merge(segments);
          var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon);
          if (segments.length) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener);
          } else if (clipStartInside) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            listener.lineStart();
            interpolate(null, null, 1, listener);
            listener.lineEnd();
          }
          if (polygonStarted) listener.polygonEnd(), polygonStarted = false;
          segments = polygon = null;
        },
        sphere: function() {
          listener.polygonStart();
          listener.lineStart();
          interpolate(null, null, 1, listener);
          listener.lineEnd();
          listener.polygonEnd();
        }
      };
      function point(λ, φ) {
        var point = rotate(λ, φ);
        if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ);
      }
      function pointLine(λ, φ) {
        var point = rotate(λ, φ);
        line.point(point[0], point[1]);
      }
      function lineStart() {
        clip.point = pointLine;
        line.lineStart();
      }
      function lineEnd() {
        clip.point = point;
        line.lineEnd();
      }
      var segments;
      var buffer = d3_geo_clipBufferListener(), ringListener = clipLine(buffer), polygonStarted = false, polygon, ring;
      function pointRing(λ, φ) {
        ring.push([ λ, φ ]);
        var point = rotate(λ, φ);
        ringListener.point(point[0], point[1]);
      }
      function ringStart() {
        ringListener.lineStart();
        ring = [];
      }
      function ringEnd() {
        pointRing(ring[0][0], ring[0][1]);
        ringListener.lineEnd();
        var clean = ringListener.clean(), ringSegments = buffer.buffer(), segment, n = ringSegments.length;
        ring.pop();
        polygon.push(ring);
        ring = null;
        if (!n) return;
        if (clean & 1) {
          segment = ringSegments[0];
          var n = segment.length - 1, i = -1, point;
          if (n > 0) {
            if (!polygonStarted) listener.polygonStart(), polygonStarted = true;
            listener.lineStart();
            while (++i < n) listener.point((point = segment[i])[0], point[1]);
            listener.lineEnd();
          }
          return;
        }
        if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
        segments.push(ringSegments.filter(d3_geo_clipSegmentLength1));
      }
      return clip;
    };
  }
  function d3_geo_clipSegmentLength1(segment) {
    return segment.length > 1;
  }
  function d3_geo_clipBufferListener() {
    var lines = [], line;
    return {
      lineStart: function() {
        lines.push(line = []);
      },
      point: function(λ, φ) {
        line.push([ λ, φ ]);
      },
      lineEnd: d3_noop,
      buffer: function() {
        var buffer = lines;
        lines = [];
        line = null;
        return buffer;
      },
      rejoin: function() {
        if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
      }
    };
  }
  function d3_geo_clipSort(a, b) {
    return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1]) - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]);
  }
  var d3_geo_clipAntimeridian = d3_geo_clip(d3_true, d3_geo_clipAntimeridianLine, d3_geo_clipAntimeridianInterpolate, [ -π, -π / 2 ]);
  function d3_geo_clipAntimeridianLine(listener) {
    var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
    return {
      lineStart: function() {
        listener.lineStart();
        clean = 1;
      },
      point: function(λ1, φ1) {
        var sλ1 = λ1 > 0 ? π : -π, dλ = abs(λ1 - λ0);
        if (abs(dλ - π) < ε) {
          listener.point(λ0, φ0 = (φ0 + φ1) / 2 > 0 ? halfπ : -halfπ);
          listener.point(sλ0, φ0);
          listener.lineEnd();
          listener.lineStart();
          listener.point(sλ1, φ0);
          listener.point(λ1, φ0);
          clean = 0;
        } else if (sλ0 !== sλ1 && dλ >= π) {
          if (abs(λ0 - sλ0) < ε) λ0 -= sλ0 * ε;
          if (abs(λ1 - sλ1) < ε) λ1 -= sλ1 * ε;
          φ0 = d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1);
          listener.point(sλ0, φ0);
          listener.lineEnd();
          listener.lineStart();
          listener.point(sλ1, φ0);
          clean = 0;
        }
        listener.point(λ0 = λ1, φ0 = φ1);
        sλ0 = sλ1;
      },
      lineEnd: function() {
        listener.lineEnd();
        λ0 = φ0 = NaN;
      },
      clean: function() {
        return 2 - clean;
      }
    };
  }
  function d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1) {
    var cosφ0, cosφ1, sinλ0_λ1 = Math.sin(λ0 - λ1);
    return abs(sinλ0_λ1) > ε ? Math.atan((Math.sin(φ0) * (cosφ1 = Math.cos(φ1)) * Math.sin(λ1) - Math.sin(φ1) * (cosφ0 = Math.cos(φ0)) * Math.sin(λ0)) / (cosφ0 * cosφ1 * sinλ0_λ1)) : (φ0 + φ1) / 2;
  }
  function d3_geo_clipAntimeridianInterpolate(from, to, direction, listener) {
    var φ;
    if (from == null) {
      φ = direction * halfπ;
      listener.point(-π, φ);
      listener.point(0, φ);
      listener.point(π, φ);
      listener.point(π, 0);
      listener.point(π, -φ);
      listener.point(0, -φ);
      listener.point(-π, -φ);
      listener.point(-π, 0);
      listener.point(-π, φ);
    } else if (abs(from[0] - to[0]) > ε) {
      var s = from[0] < to[0] ? π : -π;
      φ = direction * s / 2;
      listener.point(-s, φ);
      listener.point(0, φ);
      listener.point(s, φ);
    } else {
      listener.point(to[0], to[1]);
    }
  }
  function d3_geo_pointInPolygon(point, polygon) {
    var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, winding = 0;
    d3_geo_areaRingSum.reset();
    for (var i = 0, n = polygon.length; i < n; ++i) {
      var ring = polygon[i], m = ring.length;
      if (!m) continue;
      var point0 = ring[0], λ0 = point0[0], φ0 = point0[1] / 2 + π / 4, sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), j = 1;
      while (true) {
        if (j === m) j = 0;
        point = ring[j];
        var λ = point[0], φ = point[1] / 2 + π / 4, sinφ = Math.sin(φ), cosφ = Math.cos(φ), dλ = λ - λ0, sdλ = dλ >= 0 ? 1 : -1, adλ = sdλ * dλ, antimeridian = adλ > π, k = sinφ0 * sinφ;
        d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ)));
        polarAngle += antimeridian ? dλ + sdλ * τ : dλ;
        if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) {
          var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point));
          d3_geo_cartesianNormalize(arc);
          var intersection = d3_geo_cartesianCross(meridianNormal, arc);
          d3_geo_cartesianNormalize(intersection);
          var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]);
          if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) {
            winding += antimeridian ^ dλ >= 0 ? 1 : -1;
          }
        }
        if (!j++) break;
        λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point;
      }
    }
    return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < -ε) ^ winding & 1;
  }
  function d3_geo_clipCircle(radius) {
    var cr = Math.cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians);
    return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [ 0, -radius ] : [ -π, radius - π ]);
    function visible(λ, φ) {
      return Math.cos(λ) * Math.cos(φ) > cr;
    }
    function clipLine(listener) {
      var point0, c0, v0, v00, clean;
      return {
        lineStart: function() {
          v00 = v0 = false;
          clean = 1;
        },
        point: function(λ, φ) {
          var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;
          if (!point0 && (v00 = v0 = v)) listener.lineStart();
          if (v !== v0) {
            point2 = intersect(point0, point1);
            if (d3_geo_sphericalEqual(point0, point2) || d3_geo_sphericalEqual(point1, point2)) {
              point1[0] += ε;
              point1[1] += ε;
              v = visible(point1[0], point1[1]);
            }
          }
          if (v !== v0) {
            clean = 0;
            if (v) {
              listener.lineStart();
              point2 = intersect(point1, point0);
              listener.point(point2[0], point2[1]);
            } else {
              point2 = intersect(point0, point1);
              listener.point(point2[0], point2[1]);
              listener.lineEnd();
            }
            point0 = point2;
          } else if (notHemisphere && point0 && smallRadius ^ v) {
            var t;
            if (!(c & c0) && (t = intersect(point1, point0, true))) {
              clean = 0;
              if (smallRadius) {
                listener.lineStart();
                listener.point(t[0][0], t[0][1]);
                listener.point(t[1][0], t[1][1]);
                listener.lineEnd();
              } else {
                listener.point(t[1][0], t[1][1]);
                listener.lineEnd();
                listener.lineStart();
                listener.point(t[0][0], t[0][1]);
              }
            }
          }
          if (v && (!point0 || !d3_geo_sphericalEqual(point0, point1))) {
            listener.point(point1[0], point1[1]);
          }
          point0 = point1, v0 = v, c0 = c;
        },
        lineEnd: function() {
          if (v0) listener.lineEnd();
          point0 = null;
        },
        clean: function() {
          return clean | (v00 && v0) << 1;
        }
      };
    }
    function intersect(a, b, two) {
      var pa = d3_geo_cartesian(a), pb = d3_geo_cartesian(b);
      var n1 = [ 1, 0, 0 ], n2 = d3_geo_cartesianCross(pa, pb), n2n2 = d3_geo_cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2;
      if (!determinant) return !two && a;
      var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = d3_geo_cartesianCross(n1, n2), A = d3_geo_cartesianScale(n1, c1), B = d3_geo_cartesianScale(n2, c2);
      d3_geo_cartesianAdd(A, B);
      var u = n1xn2, w = d3_geo_cartesianDot(A, u), uu = d3_geo_cartesianDot(u, u), t2 = w * w - uu * (d3_geo_cartesianDot(A, A) - 1);
      if (t2 < 0) return;
      var t = Math.sqrt(t2), q = d3_geo_cartesianScale(u, (-w - t) / uu);
      d3_geo_cartesianAdd(q, A);
      q = d3_geo_spherical(q);
      if (!two) return q;
      var λ0 = a[0], λ1 = b[0], φ0 = a[1], φ1 = b[1], z;
      if (λ1 < λ0) z = λ0, λ0 = λ1, λ1 = z;
      var δλ = λ1 - λ0, polar = abs(δλ - π) < ε, meridian = polar || δλ < ε;
      if (!polar && φ1 < φ0) z = φ0, φ0 = φ1, φ1 = z;
      if (meridian ? polar ? φ0 + φ1 > 0 ^ q[1] < (abs(q[0] - λ0) < ε ? φ0 : φ1) : φ0 <= q[1] && q[1] <= φ1 : δλ > π ^ (λ0 <= q[0] && q[0] <= λ1)) {
        var q1 = d3_geo_cartesianScale(u, (-w + t) / uu);
        d3_geo_cartesianAdd(q1, A);
        return [ q, d3_geo_spherical(q1) ];
      }
    }
    function code(λ, φ) {
      var r = smallRadius ? radius : π - radius, code = 0;
      if (λ < -r) code |= 1; else if (λ > r) code |= 2;
      if (φ < -r) code |= 4; else if (φ > r) code |= 8;
      return code;
    }
  }
  function d3_geom_clipLine(x0, y0, x1, y1) {
    return function(line) {
      var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
      r = x0 - ax;
      if (!dx && r > 0) return;
      r /= dx;
      if (dx < 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      } else if (dx > 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      }
      r = x1 - ax;
      if (!dx && r < 0) return;
      r /= dx;
      if (dx < 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      } else if (dx > 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      }
      r = y0 - ay;
      if (!dy && r > 0) return;
      r /= dy;
      if (dy < 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      } else if (dy > 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      }
      r = y1 - ay;
      if (!dy && r < 0) return;
      r /= dy;
      if (dy < 0) {
        if (r > t1) return;
        if (r > t0) t0 = r;
      } else if (dy > 0) {
        if (r < t0) return;
        if (r < t1) t1 = r;
      }
      if (t0 > 0) line.a = {
        x: ax + t0 * dx,
        y: ay + t0 * dy
      };
      if (t1 < 1) line.b = {
        x: ax + t1 * dx,
        y: ay + t1 * dy
      };
      return line;
    };
  }
  var d3_geo_clipExtentMAX = 1e9;
  d3.geo.clipExtent = function() {
    var x0, y0, x1, y1, stream, clip, clipExtent = {
      stream: function(output) {
        if (stream) stream.valid = false;
        stream = clip(output);
        stream.valid = true;
        return stream;
      },
      extent: function(_) {
        if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];
        clip = d3_geo_clipExtent(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]);
        if (stream) stream.valid = false, stream = null;
        return clipExtent;
      }
    };
    return clipExtent.extent([ [ 0, 0 ], [ 960, 500 ] ]);
  };
  function d3_geo_clipExtent(x0, y0, x1, y1) {
    return function(listener) {
      var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), clipLine = d3_geom_clipLine(x0, y0, x1, y1), segments, polygon, ring;
      var clip = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          listener = bufferListener;
          segments = [];
          polygon = [];
          clean = true;
        },
        polygonEnd: function() {
          listener = listener_;
          segments = d3.merge(segments);
          var clipStartInside = insidePolygon([ x0, y1 ]), inside = clean && clipStartInside, visible = segments.length;
          if (inside || visible) {
            listener.polygonStart();
            if (inside) {
              listener.lineStart();
              interpolate(null, null, 1, listener);
              listener.lineEnd();
            }
            if (visible) {
              d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener);
            }
            listener.polygonEnd();
          }
          segments = polygon = ring = null;
        }
      };
      function insidePolygon(p) {
        var wn = 0, n = polygon.length, y = p[1];
        for (var i = 0; i < n; ++i) {
          for (var j = 1, v = polygon[i], m = v.length, a = v[0], b; j < m; ++j) {
            b = v[j];
            if (a[1] <= y) {
              if (b[1] > y && d3_cross2d(a, b, p) > 0) ++wn;
            } else {
              if (b[1] <= y && d3_cross2d(a, b, p) < 0) --wn;
            }
            a = b;
          }
        }
        return wn !== 0;
      }
      function interpolate(from, to, direction, listener) {
        var a = 0, a1 = 0;
        if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoints(from, to) < 0 ^ direction > 0) {
          do {
            listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
          } while ((a = (a + direction + 4) % 4) !== a1);
        } else {
          listener.point(to[0], to[1]);
        }
      }
      function pointVisible(x, y) {
        return x0 <= x && x <= x1 && y0 <= y && y <= y1;
      }
      function point(x, y) {
        if (pointVisible(x, y)) listener.point(x, y);
      }
      var x__, y__, v__, x_, y_, v_, first, clean;
      function lineStart() {
        clip.point = linePoint;
        if (polygon) polygon.push(ring = []);
        first = true;
        v_ = false;
        x_ = y_ = NaN;
      }
      function lineEnd() {
        if (segments) {
          linePoint(x__, y__);
          if (v__ && v_) bufferListener.rejoin();
          segments.push(bufferListener.buffer());
        }
        clip.point = point;
        if (v_) listener.lineEnd();
      }
      function linePoint(x, y) {
        x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
        y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
        var v = pointVisible(x, y);
        if (polygon) ring.push([ x, y ]);
        if (first) {
          x__ = x, y__ = y, v__ = v;
          first = false;
          if (v) {
            listener.lineStart();
            listener.point(x, y);
          }
        } else {
          if (v && v_) listener.point(x, y); else {
            var l = {
              a: {
                x: x_,
                y: y_
              },
              b: {
                x: x,
                y: y
              }
            };
            if (clipLine(l)) {
              if (!v_) {
                listener.lineStart();
                listener.point(l.a.x, l.a.y);
              }
              listener.point(l.b.x, l.b.y);
              if (!v) listener.lineEnd();
              clean = false;
            } else if (v) {
              listener.lineStart();
              listener.point(x, y);
              clean = false;
            }
          }
        }
        x_ = x, y_ = y, v_ = v;
      }
      return clip;
    };
    function corner(p, direction) {
      return abs(p[0] - x0) < ε ? direction > 0 ? 0 : 3 : abs(p[0] - x1) < ε ? direction > 0 ? 2 : 1 : abs(p[1] - y0) < ε ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2;
    }
    function compare(a, b) {
      return comparePoints(a.x, b.x);
    }
    function comparePoints(a, b) {
      var ca = corner(a, 1), cb = corner(b, 1);
      return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0];
    }
  }
  function d3_geo_conic(projectAt) {
    var φ0 = 0, φ1 = π / 3, m = d3_geo_projectionMutator(projectAt), p = m(φ0, φ1);
    p.parallels = function(_) {
      if (!arguments.length) return [ φ0 / π * 180, φ1 / π * 180 ];
      return m(φ0 = _[0] * π / 180, φ1 = _[1] * π / 180);
    };
    return p;
  }
  function d3_geo_conicEqualArea(φ0, φ1) {
    var sinφ0 = Math.sin(φ0), n = (sinφ0 + Math.sin(φ1)) / 2, C = 1 + sinφ0 * (2 * n - sinφ0), ρ0 = Math.sqrt(C) / n;
    function forward(λ, φ) {
      var ρ = Math.sqrt(C - 2 * n * Math.sin(φ)) / n;
      return [ ρ * Math.sin(λ *= n), ρ0 - ρ * Math.cos(λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = ρ0 - y;
      return [ Math.atan2(x, ρ0_y) / n, d3_asin((C - (x * x + ρ0_y * ρ0_y) * n * n) / (2 * n)) ];
    };
    return forward;
  }
  (d3.geo.conicEqualArea = function() {
    return d3_geo_conic(d3_geo_conicEqualArea);
  }).raw = d3_geo_conicEqualArea;
  d3.geo.albers = function() {
    return d3.geo.conicEqualArea().rotate([ 96, 0 ]).center([ -.6, 38.7 ]).parallels([ 29.5, 45.5 ]).scale(1070);
  };
  d3.geo.albersUsa = function() {
    var lower48 = d3.geo.albers();
    var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]);
    var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]);
    var point, pointStream = {
      point: function(x, y) {
        point = [ x, y ];
      }
    }, lower48Point, alaskaPoint, hawaiiPoint;
    function albersUsa(coordinates) {
      var x = coordinates[0], y = coordinates[1];
      point = null;
      (lower48Point(x, y), point) || (alaskaPoint(x, y), point) || hawaiiPoint(x, y);
      return point;
    }
    albersUsa.invert = function(coordinates) {
      var k = lower48.scale(), t = lower48.translate(), x = (coordinates[0] - t[0]) / k, y = (coordinates[1] - t[1]) / k;
      return (y >= .12 && y < .234 && x >= -.425 && x < -.214 ? alaska : y >= .166 && y < .234 && x >= -.214 && x < -.115 ? hawaii : lower48).invert(coordinates);
    };
    albersUsa.stream = function(stream) {
      var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream);
      return {
        point: function(x, y) {
          lower48Stream.point(x, y);
          alaskaStream.point(x, y);
          hawaiiStream.point(x, y);
        },
        sphere: function() {
          lower48Stream.sphere();
          alaskaStream.sphere();
          hawaiiStream.sphere();
        },
        lineStart: function() {
          lower48Stream.lineStart();
          alaskaStream.lineStart();
          hawaiiStream.lineStart();
        },
        lineEnd: function() {
          lower48Stream.lineEnd();
          alaskaStream.lineEnd();
          hawaiiStream.lineEnd();
        },
        polygonStart: function() {
          lower48Stream.polygonStart();
          alaskaStream.polygonStart();
          hawaiiStream.polygonStart();
        },
        polygonEnd: function() {
          lower48Stream.polygonEnd();
          alaskaStream.polygonEnd();
          hawaiiStream.polygonEnd();
        }
      };
    };
    albersUsa.precision = function(_) {
      if (!arguments.length) return lower48.precision();
      lower48.precision(_);
      alaska.precision(_);
      hawaii.precision(_);
      return albersUsa;
    };
    albersUsa.scale = function(_) {
      if (!arguments.length) return lower48.scale();
      lower48.scale(_);
      alaska.scale(_ * .35);
      hawaii.scale(_);
      return albersUsa.translate(lower48.translate());
    };
    albersUsa.translate = function(_) {
      if (!arguments.length) return lower48.translate();
      var k = lower48.scale(), x = +_[0], y = +_[1];
      lower48Point = lower48.translate(_).clipExtent([ [ x - .455 * k, y - .238 * k ], [ x + .455 * k, y + .238 * k ] ]).stream(pointStream).point;
      alaskaPoint = alaska.translate([ x - .307 * k, y + .201 * k ]).clipExtent([ [ x - .425 * k + ε, y + .12 * k + ε ], [ x - .214 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
      hawaiiPoint = hawaii.translate([ x - .205 * k, y + .212 * k ]).clipExtent([ [ x - .214 * k + ε, y + .166 * k + ε ], [ x - .115 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point;
      return albersUsa;
    };
    return albersUsa.scale(1070);
  };
  var d3_geo_pathAreaSum, d3_geo_pathAreaPolygon, d3_geo_pathArea = {
    point: d3_noop,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: function() {
      d3_geo_pathAreaPolygon = 0;
      d3_geo_pathArea.lineStart = d3_geo_pathAreaRingStart;
    },
    polygonEnd: function() {
      d3_geo_pathArea.lineStart = d3_geo_pathArea.lineEnd = d3_geo_pathArea.point = d3_noop;
      d3_geo_pathAreaSum += abs(d3_geo_pathAreaPolygon / 2);
    }
  };
  function d3_geo_pathAreaRingStart() {
    var x00, y00, x0, y0;
    d3_geo_pathArea.point = function(x, y) {
      d3_geo_pathArea.point = nextPoint;
      x00 = x0 = x, y00 = y0 = y;
    };
    function nextPoint(x, y) {
      d3_geo_pathAreaPolygon += y0 * x - x0 * y;
      x0 = x, y0 = y;
    }
    d3_geo_pathArea.lineEnd = function() {
      nextPoint(x00, y00);
    };
  }
  var d3_geo_pathBoundsX0, d3_geo_pathBoundsY0, d3_geo_pathBoundsX1, d3_geo_pathBoundsY1;
  var d3_geo_pathBounds = {
    point: d3_geo_pathBoundsPoint,
    lineStart: d3_noop,
    lineEnd: d3_noop,
    polygonStart: d3_noop,
    polygonEnd: d3_noop
  };
  function d3_geo_pathBoundsPoint(x, y) {
    if (x < d3_geo_pathBoundsX0) d3_geo_pathBoundsX0 = x;
    if (x > d3_geo_pathBoundsX1) d3_geo_pathBoundsX1 = x;
    if (y < d3_geo_pathBoundsY0) d3_geo_pathBoundsY0 = y;
    if (y > d3_geo_pathBoundsY1) d3_geo_pathBoundsY1 = y;
  }
  function d3_geo_pathBuffer() {
    var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];
    var stream = {
      point: point,
      lineStart: function() {
        stream.point = pointLineStart;
      },
      lineEnd: lineEnd,
      polygonStart: function() {
        stream.lineEnd = lineEndPolygon;
      },
      polygonEnd: function() {
        stream.lineEnd = lineEnd;
        stream.point = point;
      },
      pointRadius: function(_) {
        pointCircle = d3_geo_pathBufferCircle(_);
        return stream;
      },
      result: function() {
        if (buffer.length) {
          var result = buffer.join("");
          buffer = [];
          return result;
        }
      }
    };
    function point(x, y) {
      buffer.push("M", x, ",", y, pointCircle);
    }
    function pointLineStart(x, y) {
      buffer.push("M", x, ",", y);
      stream.point = pointLine;
    }
    function pointLine(x, y) {
      buffer.push("L", x, ",", y);
    }
    function lineEnd() {
      stream.point = point;
    }
    function lineEndPolygon() {
      buffer.push("Z");
    }
    return stream;
  }
  function d3_geo_pathBufferCircle(radius) {
    return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z";
  }
  var d3_geo_pathCentroid = {
    point: d3_geo_pathCentroidPoint,
    lineStart: d3_geo_pathCentroidLineStart,
    lineEnd: d3_geo_pathCentroidLineEnd,
    polygonStart: function() {
      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidRingStart;
    },
    polygonEnd: function() {
      d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;
      d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidLineStart;
      d3_geo_pathCentroid.lineEnd = d3_geo_pathCentroidLineEnd;
    }
  };
  function d3_geo_pathCentroidPoint(x, y) {
    d3_geo_centroidX0 += x;
    d3_geo_centroidY0 += y;
    ++d3_geo_centroidZ0;
  }
  function d3_geo_pathCentroidLineStart() {
    var x0, y0;
    d3_geo_pathCentroid.point = function(x, y) {
      d3_geo_pathCentroid.point = nextPoint;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    };
    function nextPoint(x, y) {
      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
      d3_geo_centroidX1 += z * (x0 + x) / 2;
      d3_geo_centroidY1 += z * (y0 + y) / 2;
      d3_geo_centroidZ1 += z;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    }
  }
  function d3_geo_pathCentroidLineEnd() {
    d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint;
  }
  function d3_geo_pathCentroidRingStart() {
    var x00, y00, x0, y0;
    d3_geo_pathCentroid.point = function(x, y) {
      d3_geo_pathCentroid.point = nextPoint;
      d3_geo_pathCentroidPoint(x00 = x0 = x, y00 = y0 = y);
    };
    function nextPoint(x, y) {
      var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy);
      d3_geo_centroidX1 += z * (x0 + x) / 2;
      d3_geo_centroidY1 += z * (y0 + y) / 2;
      d3_geo_centroidZ1 += z;
      z = y0 * x - x0 * y;
      d3_geo_centroidX2 += z * (x0 + x);
      d3_geo_centroidY2 += z * (y0 + y);
      d3_geo_centroidZ2 += z * 3;
      d3_geo_pathCentroidPoint(x0 = x, y0 = y);
    }
    d3_geo_pathCentroid.lineEnd = function() {
      nextPoint(x00, y00);
    };
  }
  function d3_geo_pathContext(context) {
    var pointRadius = 4.5;
    var stream = {
      point: point,
      lineStart: function() {
        stream.point = pointLineStart;
      },
      lineEnd: lineEnd,
      polygonStart: function() {
        stream.lineEnd = lineEndPolygon;
      },
      polygonEnd: function() {
        stream.lineEnd = lineEnd;
        stream.point = point;
      },
      pointRadius: function(_) {
        pointRadius = _;
        return stream;
      },
      result: d3_noop
    };
    function point(x, y) {
      context.moveTo(x + pointRadius, y);
      context.arc(x, y, pointRadius, 0, τ);
    }
    function pointLineStart(x, y) {
      context.moveTo(x, y);
      stream.point = pointLine;
    }
    function pointLine(x, y) {
      context.lineTo(x, y);
    }
    function lineEnd() {
      stream.point = point;
    }
    function lineEndPolygon() {
      context.closePath();
    }
    return stream;
  }
  function d3_geo_resample(project) {
    var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16;
    function resample(stream) {
      return (maxDepth ? resampleRecursive : resampleNone)(stream);
    }
    function resampleNone(stream) {
      return d3_geo_transformPoint(stream, function(x, y) {
        x = project(x, y);
        stream.point(x[0], x[1]);
      });
    }
    function resampleRecursive(stream) {
      var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
      var resample = {
        point: point,
        lineStart: lineStart,
        lineEnd: lineEnd,
        polygonStart: function() {
          stream.polygonStart();
          resample.lineStart = ringStart;
        },
        polygonEnd: function() {
          stream.polygonEnd();
          resample.lineStart = lineStart;
        }
      };
      function point(x, y) {
        x = project(x, y);
        stream.point(x[0], x[1]);
      }
      function lineStart() {
        x0 = NaN;
        resample.point = linePoint;
        stream.lineStart();
      }
      function linePoint(λ, φ) {
        var c = d3_geo_cartesian([ λ, φ ]), p = project(λ, φ);
        resampleLineTo(x0, y0, λ0, a0, b0, c0, x0 = p[0], y0 = p[1], λ0 = λ, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
        stream.point(x0, y0);
      }
      function lineEnd() {
        resample.point = point;
        stream.lineEnd();
      }
      function ringStart() {
        lineStart();
        resample.point = ringPoint;
        resample.lineEnd = ringEnd;
      }
      function ringPoint(λ, φ) {
        linePoint(λ00 = λ, φ00 = φ), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
        resample.point = linePoint;
      }
      function ringEnd() {
        resampleLineTo(x0, y0, λ0, a0, b0, c0, x00, y00, λ00, a00, b00, c00, maxDepth, stream);
        resample.lineEnd = lineEnd;
        lineEnd();
      }
      return resample;
    }
    function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {
      var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy;
      if (d2 > 4 * δ2 && depth--) {
        var a = a0 + a1, b = b0 + b1, c = c0 + c1, m = Math.sqrt(a * a + b * b + c * c), φ2 = Math.asin(c /= m), λ2 = abs(abs(c) - 1) < ε || abs(λ0 - λ1) < ε ? (λ0 + λ1) / 2 : Math.atan2(b, a), p = project(λ2, φ2), x2 = p[0], y2 = p[1], dx2 = x2 - x0, dy2 = y2 - y0, dz = dy * dx2 - dx * dy2;
        if (dz * dz / d2 > δ2 || abs((dx * dx2 + dy * dy2) / d2 - .5) > .3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {
          resampleLineTo(x0, y0, λ0, a0, b0, c0, x2, y2, λ2, a /= m, b /= m, c, depth, stream);
          stream.point(x2, y2);
          resampleLineTo(x2, y2, λ2, a, b, c, x1, y1, λ1, a1, b1, c1, depth, stream);
        }
      }
    }
    resample.precision = function(_) {
      if (!arguments.length) return Math.sqrt(δ2);
      maxDepth = (δ2 = _ * _) > 0 && 16;
      return resample;
    };
    return resample;
  }
  d3.geo.path = function() {
    var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
    function path(object) {
      if (object) {
        if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
        if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream);
        d3.geo.stream(object, cacheStream);
      }
      return contextStream.result();
    }
    path.area = function(object) {
      d3_geo_pathAreaSum = 0;
      d3.geo.stream(object, projectStream(d3_geo_pathArea));
      return d3_geo_pathAreaSum;
    };
    path.centroid = function(object) {
      d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0;
      d3.geo.stream(object, projectStream(d3_geo_pathCentroid));
      return d3_geo_centroidZ2 ? [ d3_geo_centroidX2 / d3_geo_centroidZ2, d3_geo_centroidY2 / d3_geo_centroidZ2 ] : d3_geo_centroidZ1 ? [ d3_geo_centroidX1 / d3_geo_centroidZ1, d3_geo_centroidY1 / d3_geo_centroidZ1 ] : d3_geo_centroidZ0 ? [ d3_geo_centroidX0 / d3_geo_centroidZ0, d3_geo_centroidY0 / d3_geo_centroidZ0 ] : [ NaN, NaN ];
    };
    path.bounds = function(object) {
      d3_geo_pathBoundsX1 = d3_geo_pathBoundsY1 = -(d3_geo_pathBoundsX0 = d3_geo_pathBoundsY0 = Infinity);
      d3.geo.stream(object, projectStream(d3_geo_pathBounds));
      return [ [ d3_geo_pathBoundsX0, d3_geo_pathBoundsY0 ], [ d3_geo_pathBoundsX1, d3_geo_pathBoundsY1 ] ];
    };
    path.projection = function(_) {
      if (!arguments.length) return projection;
      projectStream = (projection = _) ? _.stream || d3_geo_pathProjectStream(_) : d3_identity;
      return reset();
    };
    path.context = function(_) {
      if (!arguments.length) return context;
      contextStream = (context = _) == null ? new d3_geo_pathBuffer() : new d3_geo_pathContext(_);
      if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
      return reset();
    };
    path.pointRadius = function(_) {
      if (!arguments.length) return pointRadius;
      pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
      return path;
    };
    function reset() {
      cacheStream = null;
      return path;
    }
    return path.projection(d3.geo.albersUsa()).context(null);
  };
  function d3_geo_pathProjectStream(project) {
    var resample = d3_geo_resample(function(x, y) {
      return project([ x * d3_degrees, y * d3_degrees ]);
    });
    return function(stream) {
      return d3_geo_projectionRadians(resample(stream));
    };
  }
  d3.geo.transform = function(methods) {
    return {
      stream: function(stream) {
        var transform = new d3_geo_transform(stream);
        for (var k in methods) transform[k] = methods[k];
        return transform;
      }
    };
  };
  function d3_geo_transform(stream) {
    this.stream = stream;
  }
  d3_geo_transform.prototype = {
    point: function(x, y) {
      this.stream.point(x, y);
    },
    sphere: function() {
      this.stream.sphere();
    },
    lineStart: function() {
      this.stream.lineStart();
    },
    lineEnd: function() {
      this.stream.lineEnd();
    },
    polygonStart: function() {
      this.stream.polygonStart();
    },
    polygonEnd: function() {
      this.stream.polygonEnd();
    }
  };
  function d3_geo_transformPoint(stream, point) {
    return {
      point: point,
      sphere: function() {
        stream.sphere();
      },
      lineStart: function() {
        stream.lineStart();
      },
      lineEnd: function() {
        stream.lineEnd();
      },
      polygonStart: function() {
        stream.polygonStart();
      },
      polygonEnd: function() {
        stream.polygonEnd();
      }
    };
  }
  d3.geo.projection = d3_geo_projection;
  d3.geo.projectionMutator = d3_geo_projectionMutator;
  function d3_geo_projection(project) {
    return d3_geo_projectionMutator(function() {
      return project;
    })();
  }
  function d3_geo_projectionMutator(projectAt) {
    var project, rotate, projectRotate, projectResample = d3_geo_resample(function(x, y) {
      x = project(x, y);
      return [ x[0] * k + δx, δy - x[1] * k ];
    }), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null, stream;
    function projection(point) {
      point = projectRotate(point[0] * d3_radians, point[1] * d3_radians);
      return [ point[0] * k + δx, δy - point[1] * k ];
    }
    function invert(point) {
      point = projectRotate.invert((point[0] - δx) / k, (δy - point[1]) / k);
      return point && [ point[0] * d3_degrees, point[1] * d3_degrees ];
    }
    projection.stream = function(output) {
      if (stream) stream.valid = false;
      stream = d3_geo_projectionRadians(preclip(rotate, projectResample(postclip(output))));
      stream.valid = true;
      return stream;
    };
    projection.clipAngle = function(_) {
      if (!arguments.length) return clipAngle;
      preclip = _ == null ? (clipAngle = _, d3_geo_clipAntimeridian) : d3_geo_clipCircle((clipAngle = +_) * d3_radians);
      return invalidate();
    };
    projection.clipExtent = function(_) {
      if (!arguments.length) return clipExtent;
      clipExtent = _;
      postclip = _ ? d3_geo_clipExtent(_[0][0], _[0][1], _[1][0], _[1][1]) : d3_identity;
      return invalidate();
    };
    projection.scale = function(_) {
      if (!arguments.length) return k;
      k = +_;
      return reset();
    };
    projection.translate = function(_) {
      if (!arguments.length) return [ x, y ];
      x = +_[0];
      y = +_[1];
      return reset();
    };
    projection.center = function(_) {
      if (!arguments.length) return [ λ * d3_degrees, φ * d3_degrees ];
      λ = _[0] % 360 * d3_radians;
      φ = _[1] % 360 * d3_radians;
      return reset();
    };
    projection.rotate = function(_) {
      if (!arguments.length) return [ δλ * d3_degrees, δφ * d3_degrees, δγ * d3_degrees ];
      δλ = _[0] % 360 * d3_radians;
      δφ = _[1] % 360 * d3_radians;
      δγ = _.length > 2 ? _[2] % 360 * d3_radians : 0;
      return reset();
    };
    d3.rebind(projection, projectResample, "precision");
    function reset() {
      projectRotate = d3_geo_compose(rotate = d3_geo_rotation(δλ, δφ, δγ), project);
      var center = project(λ, φ);
      δx = x - center[0] * k;
      δy = y + center[1] * k;
      return invalidate();
    }
    function invalidate() {
      if (stream) stream.valid = false, stream = null;
      return projection;
    }
    return function() {
      project = projectAt.apply(this, arguments);
      projection.invert = project.invert && invert;
      return reset();
    };
  }
  function d3_geo_projectionRadians(stream) {
    return d3_geo_transformPoint(stream, function(x, y) {
      stream.point(x * d3_radians, y * d3_radians);
    });
  }
  function d3_geo_equirectangular(λ, φ) {
    return [ λ, φ ];
  }
  (d3.geo.equirectangular = function() {
    return d3_geo_projection(d3_geo_equirectangular);
  }).raw = d3_geo_equirectangular.invert = d3_geo_equirectangular;
  d3.geo.rotation = function(rotate) {
    rotate = d3_geo_rotation(rotate[0] % 360 * d3_radians, rotate[1] * d3_radians, rotate.length > 2 ? rotate[2] * d3_radians : 0);
    function forward(coordinates) {
      coordinates = rotate(coordinates[0] * d3_radians, coordinates[1] * d3_radians);
      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;
    }
    forward.invert = function(coordinates) {
      coordinates = rotate.invert(coordinates[0] * d3_radians, coordinates[1] * d3_radians);
      return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates;
    };
    return forward;
  };
  function d3_geo_identityRotation(λ, φ) {
    return [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];
  }
  d3_geo_identityRotation.invert = d3_geo_equirectangular;
  function d3_geo_rotation(δλ, δφ, δγ) {
    return δλ ? δφ || δγ ? d3_geo_compose(d3_geo_rotationλ(δλ), d3_geo_rotationφγ(δφ, δγ)) : d3_geo_rotationλ(δλ) : δφ || δγ ? d3_geo_rotationφγ(δφ, δγ) : d3_geo_identityRotation;
  }
  function d3_geo_forwardRotationλ(δλ) {
    return function(λ, φ) {
      return λ += δλ, [ λ > π ? λ - τ : λ < -π ? λ + τ : λ, φ ];
    };
  }
  function d3_geo_rotationλ(δλ) {
    var rotation = d3_geo_forwardRotationλ(δλ);
    rotation.invert = d3_geo_forwardRotationλ(-δλ);
    return rotation;
  }
  function d3_geo_rotationφγ(δφ, δγ) {
    var cosδφ = Math.cos(δφ), sinδφ = Math.sin(δφ), cosδγ = Math.cos(δγ), sinδγ = Math.sin(δγ);
    function rotation(λ, φ) {
      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδφ + x * sinδφ;
      return [ Math.atan2(y * cosδγ - k * sinδγ, x * cosδφ - z * sinδφ), d3_asin(k * cosδγ + y * sinδγ) ];
    }
    rotation.invert = function(λ, φ) {
      var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδγ - y * sinδγ;
      return [ Math.atan2(y * cosδγ + z * sinδγ, x * cosδφ + k * sinδφ), d3_asin(k * cosδφ - x * sinδφ) ];
    };
    return rotation;
  }
  d3.geo.circle = function() {
    var origin = [ 0, 0 ], angle, precision = 6, interpolate;
    function circle() {
      var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = [];
      interpolate(null, null, 1, {
        point: function(x, y) {
          ring.push(x = rotate(x, y));
          x[0] *= d3_degrees, x[1] *= d3_degrees;
        }
      });
      return {
        type: "Polygon",
        coordinates: [ ring ]
      };
    }
    circle.origin = function(x) {
      if (!arguments.length) return origin;
      origin = x;
      return circle;
    };
    circle.angle = function(x) {
      if (!arguments.length) return angle;
      interpolate = d3_geo_circleInterpolate((angle = +x) * d3_radians, precision * d3_radians);
      return circle;
    };
    circle.precision = function(_) {
      if (!arguments.length) return precision;
      interpolate = d3_geo_circleInterpolate(angle * d3_radians, (precision = +_) * d3_radians);
      return circle;
    };
    return circle.angle(90);
  };
  function d3_geo_circleInterpolate(radius, precision) {
    var cr = Math.cos(radius), sr = Math.sin(radius);
    return function(from, to, direction, listener) {
      var step = direction * precision;
      if (from != null) {
        from = d3_geo_circleAngle(cr, from);
        to = d3_geo_circleAngle(cr, to);
        if (direction > 0 ? from < to : from > to) from += direction * τ;
      } else {
        from = radius + direction * τ;
        to = radius - .5 * step;
      }
      for (var point, t = from; direction > 0 ? t > to : t < to; t -= step) {
        listener.point((point = d3_geo_spherical([ cr, -sr * Math.cos(t), -sr * Math.sin(t) ]))[0], point[1]);
      }
    };
  }
  function d3_geo_circleAngle(cr, point) {
    var a = d3_geo_cartesian(point);
    a[0] -= cr;
    d3_geo_cartesianNormalize(a);
    var angle = d3_acos(-a[1]);
    return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI);
  }
  d3.geo.distance = function(a, b) {
    var Δλ = (b[0] - a[0]) * d3_radians, φ0 = a[1] * d3_radians, φ1 = b[1] * d3_radians, sinΔλ = Math.sin(Δλ), cosΔλ = Math.cos(Δλ), sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1), t;
    return Math.atan2(Math.sqrt((t = cosφ1 * sinΔλ) * t + (t = cosφ0 * sinφ1 - sinφ0 * cosφ1 * cosΔλ) * t), sinφ0 * sinφ1 + cosφ0 * cosφ1 * cosΔλ);
  };
  d3.geo.graticule = function() {
    var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5;
    function graticule() {
      return {
        type: "MultiLineString",
        coordinates: lines()
      };
    }
    function lines() {
      return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) {
        return abs(x % DX) > ε;
      }).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) {
        return abs(y % DY) > ε;
      }).map(y));
    }
    graticule.lines = function() {
      return lines().map(function(coordinates) {
        return {
          type: "LineString",
          coordinates: coordinates
        };
      });
    };
    graticule.outline = function() {
      return {
        type: "Polygon",
        coordinates: [ X(X0).concat(Y(Y1).slice(1), X(X1).reverse().slice(1), Y(Y0).reverse().slice(1)) ]
      };
    };
    graticule.extent = function(_) {
      if (!arguments.length) return graticule.minorExtent();
      return graticule.majorExtent(_).minorExtent(_);
    };
    graticule.majorExtent = function(_) {
      if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ];
      X0 = +_[0][0], X1 = +_[1][0];
      Y0 = +_[0][1], Y1 = +_[1][1];
      if (X0 > X1) _ = X0, X0 = X1, X1 = _;
      if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;
      return graticule.precision(precision);
    };
    graticule.minorExtent = function(_) {
      if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ];
      x0 = +_[0][0], x1 = +_[1][0];
      y0 = +_[0][1], y1 = +_[1][1];
      if (x0 > x1) _ = x0, x0 = x1, x1 = _;
      if (y0 > y1) _ = y0, y0 = y1, y1 = _;
      return graticule.precision(precision);
    };
    graticule.step = function(_) {
      if (!arguments.length) return graticule.minorStep();
      return graticule.majorStep(_).minorStep(_);
    };
    graticule.majorStep = function(_) {
      if (!arguments.length) return [ DX, DY ];
      DX = +_[0], DY = +_[1];
      return graticule;
    };
    graticule.minorStep = function(_) {
      if (!arguments.length) return [ dx, dy ];
      dx = +_[0], dy = +_[1];
      return graticule;
    };
    graticule.precision = function(_) {
      if (!arguments.length) return precision;
      precision = +_;
      x = d3_geo_graticuleX(y0, y1, 90);
      y = d3_geo_graticuleY(x0, x1, precision);
      X = d3_geo_graticuleX(Y0, Y1, 90);
      Y = d3_geo_graticuleY(X0, X1, precision);
      return graticule;
    };
    return graticule.majorExtent([ [ -180, -90 + ε ], [ 180, 90 - ε ] ]).minorExtent([ [ -180, -80 - ε ], [ 180, 80 + ε ] ]);
  };
  function d3_geo_graticuleX(y0, y1, dy) {
    var y = d3.range(y0, y1 - ε, dy).concat(y1);
    return function(x) {
      return y.map(function(y) {
        return [ x, y ];
      });
    };
  }
  function d3_geo_graticuleY(x0, x1, dx) {
    var x = d3.range(x0, x1 - ε, dx).concat(x1);
    return function(y) {
      return x.map(function(x) {
        return [ x, y ];
      });
    };
  }
  function d3_source(d) {
    return d.source;
  }
  function d3_target(d) {
    return d.target;
  }
  d3.geo.greatArc = function() {
    var source = d3_source, source_, target = d3_target, target_;
    function greatArc() {
      return {
        type: "LineString",
        coordinates: [ source_ || source.apply(this, arguments), target_ || target.apply(this, arguments) ]
      };
    }
    greatArc.distance = function() {
      return d3.geo.distance(source_ || source.apply(this, arguments), target_ || target.apply(this, arguments));
    };
    greatArc.source = function(_) {
      if (!arguments.length) return source;
      source = _, source_ = typeof _ === "function" ? null : _;
      return greatArc;
    };
    greatArc.target = function(_) {
      if (!arguments.length) return target;
      target = _, target_ = typeof _ === "function" ? null : _;
      return greatArc;
    };
    greatArc.precision = function() {
      return arguments.length ? greatArc : 0;
    };
    return greatArc;
  };
  d3.geo.interpolate = function(source, target) {
    return d3_geo_interpolate(source[0] * d3_radians, source[1] * d3_radians, target[0] * d3_radians, target[1] * d3_radians);
  };
  function d3_geo_interpolate(x0, y0, x1, y1) {
    var cy0 = Math.cos(y0), sy0 = Math.sin(y0), cy1 = Math.cos(y1), sy1 = Math.sin(y1), kx0 = cy0 * Math.cos(x0), ky0 = cy0 * Math.sin(x0), kx1 = cy1 * Math.cos(x1), ky1 = cy1 * Math.sin(x1), d = 2 * Math.asin(Math.sqrt(d3_haversin(y1 - y0) + cy0 * cy1 * d3_haversin(x1 - x0))), k = 1 / Math.sin(d);
    var interpolate = d ? function(t) {
      var B = Math.sin(t *= d) * k, A = Math.sin(d - t) * k, x = A * kx0 + B * kx1, y = A * ky0 + B * ky1, z = A * sy0 + B * sy1;
      return [ Math.atan2(y, x) * d3_degrees, Math.atan2(z, Math.sqrt(x * x + y * y)) * d3_degrees ];
    } : function() {
      return [ x0 * d3_degrees, y0 * d3_degrees ];
    };
    interpolate.distance = d;
    return interpolate;
  }
  d3.geo.length = function(object) {
    d3_geo_lengthSum = 0;
    d3.geo.stream(object, d3_geo_length);
    return d3_geo_lengthSum;
  };
  var d3_geo_lengthSum;
  var d3_geo_length = {
    sphere: d3_noop,
    point: d3_noop,
    lineStart: d3_geo_lengthLineStart,
    lineEnd: d3_noop,
    polygonStart: d3_noop,
    polygonEnd: d3_noop
  };
  function d3_geo_lengthLineStart() {
    var λ0, sinφ0, cosφ0;
    d3_geo_length.point = function(λ, φ) {
      λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ);
      d3_geo_length.point = nextPoint;
    };
    d3_geo_length.lineEnd = function() {
      d3_geo_length.point = d3_geo_length.lineEnd = d3_noop;
    };
    function nextPoint(λ, φ) {
      var sinφ = Math.sin(φ *= d3_radians), cosφ = Math.cos(φ), t = abs((λ *= d3_radians) - λ0), cosΔλ = Math.cos(t);
      d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ);
      λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ;
    }
  }
  function d3_geo_azimuthal(scale, angle) {
    function azimuthal(λ, φ) {
      var cosλ = Math.cos(λ), cosφ = Math.cos(φ), k = scale(cosλ * cosφ);
      return [ k * cosφ * Math.sin(λ), k * Math.sin(φ) ];
    }
    azimuthal.invert = function(x, y) {
      var ρ = Math.sqrt(x * x + y * y), c = angle(ρ), sinc = Math.sin(c), cosc = Math.cos(c);
      return [ Math.atan2(x * sinc, ρ * cosc), Math.asin(ρ && y * sinc / ρ) ];
    };
    return azimuthal;
  }
  var d3_geo_azimuthalEqualArea = d3_geo_azimuthal(function(cosλcosφ) {
    return Math.sqrt(2 / (1 + cosλcosφ));
  }, function(ρ) {
    return 2 * Math.asin(ρ / 2);
  });
  (d3.geo.azimuthalEqualArea = function() {
    return d3_geo_projection(d3_geo_azimuthalEqualArea);
  }).raw = d3_geo_azimuthalEqualArea;
  var d3_geo_azimuthalEquidistant = d3_geo_azimuthal(function(cosλcosφ) {
    var c = Math.acos(cosλcosφ);
    return c && c / Math.sin(c);
  }, d3_identity);
  (d3.geo.azimuthalEquidistant = function() {
    return d3_geo_projection(d3_geo_azimuthalEquidistant);
  }).raw = d3_geo_azimuthalEquidistant;
  function d3_geo_conicConformal(φ0, φ1) {
    var cosφ0 = Math.cos(φ0), t = function(φ) {
      return Math.tan(π / 4 + φ / 2);
    }, n = φ0 === φ1 ? Math.sin(φ0) : Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / t(φ0)), F = cosφ0 * Math.pow(t(φ0), n) / n;
    if (!n) return d3_geo_mercator;
    function forward(λ, φ) {
      if (F > 0) {
        if (φ < -halfπ + ε) φ = -halfπ + ε;
      } else {
        if (φ > halfπ - ε) φ = halfπ - ε;
      }
      var ρ = F / Math.pow(t(φ), n);
      return [ ρ * Math.sin(n * λ), F - ρ * Math.cos(n * λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = F - y, ρ = d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y);
      return [ Math.atan2(x, ρ0_y) / n, 2 * Math.atan(Math.pow(F / ρ, 1 / n)) - halfπ ];
    };
    return forward;
  }
  (d3.geo.conicConformal = function() {
    return d3_geo_conic(d3_geo_conicConformal);
  }).raw = d3_geo_conicConformal;
  function d3_geo_conicEquidistant(φ0, φ1) {
    var cosφ0 = Math.cos(φ0), n = φ0 === φ1 ? Math.sin(φ0) : (cosφ0 - Math.cos(φ1)) / (φ1 - φ0), G = cosφ0 / n + φ0;
    if (abs(n) < ε) return d3_geo_equirectangular;
    function forward(λ, φ) {
      var ρ = G - φ;
      return [ ρ * Math.sin(n * λ), G - ρ * Math.cos(n * λ) ];
    }
    forward.invert = function(x, y) {
      var ρ0_y = G - y;
      return [ Math.atan2(x, ρ0_y) / n, G - d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y) ];
    };
    return forward;
  }
  (d3.geo.conicEquidistant = function() {
    return d3_geo_conic(d3_geo_conicEquidistant);
  }).raw = d3_geo_conicEquidistant;
  var d3_geo_gnomonic = d3_geo_azimuthal(function(cosλcosφ) {
    return 1 / cosλcosφ;
  }, Math.atan);
  (d3.geo.gnomonic = function() {
    return d3_geo_projection(d3_geo_gnomonic);
  }).raw = d3_geo_gnomonic;
  function d3_geo_mercator(λ, φ) {
    return [ λ, Math.log(Math.tan(π / 4 + φ / 2)) ];
  }
  d3_geo_mercator.invert = function(x, y) {
    return [ x, 2 * Math.atan(Math.exp(y)) - halfπ ];
  };
  function d3_geo_mercatorProjection(project) {
    var m = d3_geo_projection(project), scale = m.scale, translate = m.translate, clipExtent = m.clipExtent, clipAuto;
    m.scale = function() {
      var v = scale.apply(m, arguments);
      return v === m ? clipAuto ? m.clipExtent(null) : m : v;
    };
    m.translate = function() {
      var v = translate.apply(m, arguments);
      return v === m ? clipAuto ? m.clipExtent(null) : m : v;
    };
    m.clipExtent = function(_) {
      var v = clipExtent.apply(m, arguments);
      if (v === m) {
        if (clipAuto = _ == null) {
          var k = π * scale(), t = translate();
          clipExtent([ [ t[0] - k, t[1] - k ], [ t[0] + k, t[1] + k ] ]);
        }
      } else if (clipAuto) {
        v = null;
      }
      return v;
    };
    return m.clipExtent(null);
  }
  (d3.geo.mercator = function() {
    return d3_geo_mercatorProjection(d3_geo_mercator);
  }).raw = d3_geo_mercator;
  var d3_geo_orthographic = d3_geo_azimuthal(function() {
    return 1;
  }, Math.asin);
  (d3.geo.orthographic = function() {
    return d3_geo_projection(d3_geo_orthographic);
  }).raw = d3_geo_orthographic;
  var d3_geo_stereographic = d3_geo_azimuthal(function(cosλcosφ) {
    return 1 / (1 + cosλcosφ);
  }, function(ρ) {
    return 2 * Math.atan(ρ);
  });
  (d3.geo.stereographic = function() {
    return d3_geo_projection(d3_geo_stereographic);
  }).raw = d3_geo_stereographic;
  function d3_geo_transverseMercator(λ, φ) {
    return [ Math.log(Math.tan(π / 4 + φ / 2)), -λ ];
  }
  d3_geo_transverseMercator.invert = function(x, y) {
    return [ -y, 2 * Math.atan(Math.exp(x)) - halfπ ];
  };
  (d3.geo.transverseMercator = function() {
    var projection = d3_geo_mercatorProjection(d3_geo_transverseMercator), center = projection.center, rotate = projection.rotate;
    projection.center = function(_) {
      return _ ? center([ -_[1], _[0] ]) : (_ = center(), [ _[1], -_[0] ]);
    };
    projection.rotate = function(_) {
      return _ ? rotate([ _[0], _[1], _.length > 2 ? _[2] + 90 : 90 ]) : (_ = rotate(), 
      [ _[0], _[1], _[2] - 90 ]);
    };
    return rotate([ 0, 0, 90 ]);
  }).raw = d3_geo_transverseMercator;
  d3.geom = {};
  function d3_geom_pointX(d) {
    return d[0];
  }
  function d3_geom_pointY(d) {
    return d[1];
  }
  d3.geom.hull = function(vertices) {
    var x = d3_geom_pointX, y = d3_geom_pointY;
    if (arguments.length) return hull(vertices);
    function hull(data) {
      if (data.length < 3) return [];
      var fx = d3_functor(x), fy = d3_functor(y), i, n = data.length, points = [], flippedPoints = [];
      for (i = 0; i < n; i++) {
        points.push([ +fx.call(this, data[i], i), +fy.call(this, data[i], i), i ]);
      }
      points.sort(d3_geom_hullOrder);
      for (i = 0; i < n; i++) flippedPoints.push([ points[i][0], -points[i][1] ]);
      var upper = d3_geom_hullUpper(points), lower = d3_geom_hullUpper(flippedPoints);
      var skipLeft = lower[0] === upper[0], skipRight = lower[lower.length - 1] === upper[upper.length - 1], polygon = [];
      for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]);
      for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]);
      return polygon;
    }
    hull.x = function(_) {
      return arguments.length ? (x = _, hull) : x;
    };
    hull.y = function(_) {
      return arguments.length ? (y = _, hull) : y;
    };
    return hull;
  };
  function d3_geom_hullUpper(points) {
    var n = points.length, hull = [ 0, 1 ], hs = 2;
    for (var i = 2; i < n; i++) {
      while (hs > 1 && d3_cross2d(points[hull[hs - 2]], points[hull[hs - 1]], points[i]) <= 0) --hs;
      hull[hs++] = i;
    }
    return hull.slice(0, hs);
  }
  function d3_geom_hullOrder(a, b) {
    return a[0] - b[0] || a[1] - b[1];
  }
  d3.geom.polygon = function(coordinates) {
    d3_subclass(coordinates, d3_geom_polygonPrototype);
    return coordinates;
  };
  var d3_geom_polygonPrototype = d3.geom.polygon.prototype = [];
  d3_geom_polygonPrototype.area = function() {
    var i = -1, n = this.length, a, b = this[n - 1], area = 0;
    while (++i < n) {
      a = b;
      b = this[i];
      area += a[1] * b[0] - a[0] * b[1];
    }
    return area * .5;
  };
  d3_geom_polygonPrototype.centroid = function(k) {
    var i = -1, n = this.length, x = 0, y = 0, a, b = this[n - 1], c;
    if (!arguments.length) k = -1 / (6 * this.area());
    while (++i < n) {
      a = b;
      b = this[i];
      c = a[0] * b[1] - b[0] * a[1];
      x += (a[0] + b[0]) * c;
      y += (a[1] + b[1]) * c;
    }
    return [ x * k, y * k ];
  };
  d3_geom_polygonPrototype.clip = function(subject) {
    var input, closed = d3_geom_polygonClosed(subject), i = -1, n = this.length - d3_geom_polygonClosed(this), j, m, a = this[n - 1], b, c, d;
    while (++i < n) {
      input = subject.slice();
      subject.length = 0;
      b = this[i];
      c = input[(m = input.length - closed) - 1];
      j = -1;
      while (++j < m) {
        d = input[j];
        if (d3_geom_polygonInside(d, a, b)) {
          if (!d3_geom_polygonInside(c, a, b)) {
            subject.push(d3_geom_polygonIntersect(c, d, a, b));
          }
          subject.push(d);
        } else if (d3_geom_polygonInside(c, a, b)) {
          subject.push(d3_geom_polygonIntersect(c, d, a, b));
        }
        c = d;
      }
      if (closed) subject.push(subject[0]);
      a = b;
    }
    return subject;
  };
  function d3_geom_polygonInside(p, a, b) {
    return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);
  }
  function d3_geom_polygonIntersect(c, d, a, b) {
    var x1 = c[0], x3 = a[0], x21 = d[0] - x1, x43 = b[0] - x3, y1 = c[1], y3 = a[1], y21 = d[1] - y1, y43 = b[1] - y3, ua = (x43 * (y1 - y3) - y43 * (x1 - x3)) / (y43 * x21 - x43 * y21);
    return [ x1 + ua * x21, y1 + ua * y21 ];
  }
  function d3_geom_polygonClosed(coordinates) {
    var a = coordinates[0], b = coordinates[coordinates.length - 1];
    return !(a[0] - b[0] || a[1] - b[1]);
  }
  var d3_geom_voronoiEdges, d3_geom_voronoiCells, d3_geom_voronoiBeaches, d3_geom_voronoiBeachPool = [], d3_geom_voronoiFirstCircle, d3_geom_voronoiCircles, d3_geom_voronoiCirclePool = [];
  function d3_geom_voronoiBeach() {
    d3_geom_voronoiRedBlackNode(this);
    this.edge = this.site = this.circle = null;
  }
  function d3_geom_voronoiCreateBeach(site) {
    var beach = d3_geom_voronoiBeachPool.pop() || new d3_geom_voronoiBeach();
    beach.site = site;
    return beach;
  }
  function d3_geom_voronoiDetachBeach(beach) {
    d3_geom_voronoiDetachCircle(beach);
    d3_geom_voronoiBeaches.remove(beach);
    d3_geom_voronoiBeachPool.push(beach);
    d3_geom_voronoiRedBlackNode(beach);
  }
  function d3_geom_voronoiRemoveBeach(beach) {
    var circle = beach.circle, x = circle.x, y = circle.cy, vertex = {
      x: x,
      y: y
    }, previous = beach.P, next = beach.N, disappearing = [ beach ];
    d3_geom_voronoiDetachBeach(beach);
    var lArc = previous;
    while (lArc.circle && abs(x - lArc.circle.x) < ε && abs(y - lArc.circle.cy) < ε) {
      previous = lArc.P;
      disappearing.unshift(lArc);
      d3_geom_voronoiDetachBeach(lArc);
      lArc = previous;
    }
    disappearing.unshift(lArc);
    d3_geom_voronoiDetachCircle(lArc);
    var rArc = next;
    while (rArc.circle && abs(x - rArc.circle.x) < ε && abs(y - rArc.circle.cy) < ε) {
      next = rArc.N;
      disappearing.push(rArc);
      d3_geom_voronoiDetachBeach(rArc);
      rArc = next;
    }
    disappearing.push(rArc);
    d3_geom_voronoiDetachCircle(rArc);
    var nArcs = disappearing.length, iArc;
    for (iArc = 1; iArc < nArcs; ++iArc) {
      rArc = disappearing[iArc];
      lArc = disappearing[iArc - 1];
      d3_geom_voronoiSetEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);
    }
    lArc = disappearing[0];
    rArc = disappearing[nArcs - 1];
    rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, rArc.site, null, vertex);
    d3_geom_voronoiAttachCircle(lArc);
    d3_geom_voronoiAttachCircle(rArc);
  }
  function d3_geom_voronoiAddBeach(site) {
    var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;
    while (node) {
      dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;
      if (dxl > ε) node = node.L; else {
        dxr = x - d3_geom_voronoiRightBreakPoint(node, directrix);
        if (dxr > ε) {
          if (!node.R) {
            lArc = node;
            break;
          }
          node = node.R;
        } else {
          if (dxl > -ε) {
            lArc = node.P;
            rArc = node;
          } else if (dxr > -ε) {
            lArc = node;
            rArc = node.N;
          } else {
            lArc = rArc = node;
          }
          break;
        }
      }
    }
    var newArc = d3_geom_voronoiCreateBeach(site);
    d3_geom_voronoiBeaches.insert(lArc, newArc);
    if (!lArc && !rArc) return;
    if (lArc === rArc) {
      d3_geom_voronoiDetachCircle(lArc);
      rArc = d3_geom_voronoiCreateBeach(lArc.site);
      d3_geom_voronoiBeaches.insert(newArc, rArc);
      newArc.edge = rArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);
      d3_geom_voronoiAttachCircle(lArc);
      d3_geom_voronoiAttachCircle(rArc);
      return;
    }
    if (!rArc) {
      newArc.edge = d3_geom_voronoiCreateEdge(lArc.site, newArc.site);
      return;
    }
    d3_geom_voronoiDetachCircle(lArc);
    d3_geom_voronoiDetachCircle(rArc);
    var lSite = lArc.site, ax = lSite.x, ay = lSite.y, bx = site.x - ax, by = site.y - ay, rSite = rArc.site, cx = rSite.x - ax, cy = rSite.y - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = {
      x: (cy * hb - by * hc) / d + ax,
      y: (bx * hc - cx * hb) / d + ay
    };
    d3_geom_voronoiSetEdgeEnd(rArc.edge, lSite, rSite, vertex);
    newArc.edge = d3_geom_voronoiCreateEdge(lSite, site, null, vertex);
    rArc.edge = d3_geom_voronoiCreateEdge(site, rSite, null, vertex);
    d3_geom_voronoiAttachCircle(lArc);
    d3_geom_voronoiAttachCircle(rArc);
  }
  function d3_geom_voronoiLeftBreakPoint(arc, directrix) {
    var site = arc.site, rfocx = site.x, rfocy = site.y, pby2 = rfocy - directrix;
    if (!pby2) return rfocx;
    var lArc = arc.P;
    if (!lArc) return -Infinity;
    site = lArc.site;
    var lfocx = site.x, lfocy = site.y, plby2 = lfocy - directrix;
    if (!plby2) return lfocx;
    var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2;
    if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
    return (rfocx + lfocx) / 2;
  }
  function d3_geom_voronoiRightBreakPoint(arc, directrix) {
    var rArc = arc.N;
    if (rArc) return d3_geom_voronoiLeftBreakPoint(rArc, directrix);
    var site = arc.site;
    return site.y === directrix ? site.x : Infinity;
  }
  function d3_geom_voronoiCell(site) {
    this.site = site;
    this.edges = [];
  }
  d3_geom_voronoiCell.prototype.prepare = function() {
    var halfEdges = this.edges, iHalfEdge = halfEdges.length, edge;
    while (iHalfEdge--) {
      edge = halfEdges[iHalfEdge].edge;
      if (!edge.b || !edge.a) halfEdges.splice(iHalfEdge, 1);
    }
    halfEdges.sort(d3_geom_voronoiHalfEdgeOrder);
    return halfEdges.length;
  };
  function d3_geom_voronoiCloseCells(extent) {
    var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;
    while (iCell--) {
      cell = cells[iCell];
      if (!cell || !cell.prepare()) continue;
      halfEdges = cell.edges;
      nHalfEdges = halfEdges.length;
      iHalfEdge = 0;
      while (iHalfEdge < nHalfEdges) {
        end = halfEdges[iHalfEdge].end(), x3 = end.x, y3 = end.y;
        start = halfEdges[++iHalfEdge % nHalfEdges].start(), x2 = start.x, y2 = start.y;
        if (abs(x3 - x2) > ε || abs(y3 - y2) > ε) {
          halfEdges.splice(iHalfEdge, 0, new d3_geom_voronoiHalfEdge(d3_geom_voronoiCreateBorderEdge(cell.site, end, abs(x3 - x0) < ε && y1 - y3 > ε ? {
            x: x0,
            y: abs(x2 - x0) < ε ? y2 : y1
          } : abs(y3 - y1) < ε && x1 - x3 > ε ? {
            x: abs(y2 - y1) < ε ? x2 : x1,
            y: y1
          } : abs(x3 - x1) < ε && y3 - y0 > ε ? {
            x: x1,
            y: abs(x2 - x1) < ε ? y2 : y0
          } : abs(y3 - y0) < ε && x3 - x0 > ε ? {
            x: abs(y2 - y0) < ε ? x2 : x0,
            y: y0
          } : null), cell.site, null));
          ++nHalfEdges;
        }
      }
    }
  }
  function d3_geom_voronoiHalfEdgeOrder(a, b) {
    return b.angle - a.angle;
  }
  function d3_geom_voronoiCircle() {
    d3_geom_voronoiRedBlackNode(this);
    this.x = this.y = this.arc = this.site = this.cy = null;
  }
  function d3_geom_voronoiAttachCircle(arc) {
    var lArc = arc.P, rArc = arc.N;
    if (!lArc || !rArc) return;
    var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;
    if (lSite === rSite) return;
    var bx = cSite.x, by = cSite.y, ax = lSite.x - bx, ay = lSite.y - by, cx = rSite.x - bx, cy = rSite.y - by;
    var d = 2 * (ax * cy - ay * cx);
    if (d >= -ε2) return;
    var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x = (cy * ha - ay * hc) / d, y = (ax * hc - cx * ha) / d, cy = y + by;
    var circle = d3_geom_voronoiCirclePool.pop() || new d3_geom_voronoiCircle();
    circle.arc = arc;
    circle.site = cSite;
    circle.x = x + bx;
    circle.y = cy + Math.sqrt(x * x + y * y);
    circle.cy = cy;
    arc.circle = circle;
    var before = null, node = d3_geom_voronoiCircles._;
    while (node) {
      if (circle.y < node.y || circle.y === node.y && circle.x <= node.x) {
        if (node.L) node = node.L; else {
          before = node.P;
          break;
        }
      } else {
        if (node.R) node = node.R; else {
          before = node;
          break;
        }
      }
    }
    d3_geom_voronoiCircles.insert(before, circle);
    if (!before) d3_geom_voronoiFirstCircle = circle;
  }
  function d3_geom_voronoiDetachCircle(arc) {
    var circle = arc.circle;
    if (circle) {
      if (!circle.P) d3_geom_voronoiFirstCircle = circle.N;
      d3_geom_voronoiCircles.remove(circle);
      d3_geom_voronoiCirclePool.push(circle);
      d3_geom_voronoiRedBlackNode(circle);
      arc.circle = null;
    }
  }
  function d3_geom_voronoiClipEdges(extent) {
    var edges = d3_geom_voronoiEdges, clip = d3_geom_clipLine(extent[0][0], extent[0][1], extent[1][0], extent[1][1]), i = edges.length, e;
    while (i--) {
      e = edges[i];
      if (!d3_geom_voronoiConnectEdge(e, extent) || !clip(e) || abs(e.a.x - e.b.x) < ε && abs(e.a.y - e.b.y) < ε) {
        e.a = e.b = null;
        edges.splice(i, 1);
      }
    }
  }
  function d3_geom_voronoiConnectEdge(edge, extent) {
    var vb = edge.b;
    if (vb) return true;
    var va = edge.a, x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], lSite = edge.l, rSite = edge.r, lx = lSite.x, ly = lSite.y, rx = rSite.x, ry = rSite.y, fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;
    if (ry === ly) {
      if (fx < x0 || fx >= x1) return;
      if (lx > rx) {
        if (!va) va = {
          x: fx,
          y: y0
        }; else if (va.y >= y1) return;
        vb = {
          x: fx,
          y: y1
        };
      } else {
        if (!va) va = {
          x: fx,
          y: y1
        }; else if (va.y < y0) return;
        vb = {
          x: fx,
          y: y0
        };
      }
    } else {
      fm = (lx - rx) / (ry - ly);
      fb = fy - fm * fx;
      if (fm < -1 || fm > 1) {
        if (lx > rx) {
          if (!va) va = {
            x: (y0 - fb) / fm,
            y: y0
          }; else if (va.y >= y1) return;
          vb = {
            x: (y1 - fb) / fm,
            y: y1
          };
        } else {
          if (!va) va = {
            x: (y1 - fb) / fm,
            y: y1
          }; else if (va.y < y0) return;
          vb = {
            x: (y0 - fb) / fm,
            y: y0
          };
        }
      } else {
        if (ly < ry) {
          if (!va) va = {
            x: x0,
            y: fm * x0 + fb
          }; else if (va.x >= x1) return;
          vb = {
            x: x1,
            y: fm * x1 + fb
          };
        } else {
          if (!va) va = {
            x: x1,
            y: fm * x1 + fb
          }; else if (va.x < x0) return;
          vb = {
            x: x0,
            y: fm * x0 + fb
          };
        }
      }
    }
    edge.a = va;
    edge.b = vb;
    return true;
  }
  function d3_geom_voronoiEdge(lSite, rSite) {
    this.l = lSite;
    this.r = rSite;
    this.a = this.b = null;
  }
  function d3_geom_voronoiCreateEdge(lSite, rSite, va, vb) {
    var edge = new d3_geom_voronoiEdge(lSite, rSite);
    d3_geom_voronoiEdges.push(edge);
    if (va) d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, va);
    if (vb) d3_geom_voronoiSetEdgeEnd(edge, rSite, lSite, vb);
    d3_geom_voronoiCells[lSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, lSite, rSite));
    d3_geom_voronoiCells[rSite.i].edges.push(new d3_geom_voronoiHalfEdge(edge, rSite, lSite));
    return edge;
  }
  function d3_geom_voronoiCreateBorderEdge(lSite, va, vb) {
    var edge = new d3_geom_voronoiEdge(lSite, null);
    edge.a = va;
    edge.b = vb;
    d3_geom_voronoiEdges.push(edge);
    return edge;
  }
  function d3_geom_voronoiSetEdgeEnd(edge, lSite, rSite, vertex) {
    if (!edge.a && !edge.b) {
      edge.a = vertex;
      edge.l = lSite;
      edge.r = rSite;
    } else if (edge.l === rSite) {
      edge.b = vertex;
    } else {
      edge.a = vertex;
    }
  }
  function d3_geom_voronoiHalfEdge(edge, lSite, rSite) {
    var va = edge.a, vb = edge.b;
    this.edge = edge;
    this.site = lSite;
    this.angle = rSite ? Math.atan2(rSite.y - lSite.y, rSite.x - lSite.x) : edge.l === lSite ? Math.atan2(vb.x - va.x, va.y - vb.y) : Math.atan2(va.x - vb.x, vb.y - va.y);
  }
  d3_geom_voronoiHalfEdge.prototype = {
    start: function() {
      return this.edge.l === this.site ? this.edge.a : this.edge.b;
    },
    end: function() {
      return this.edge.l === this.site ? this.edge.b : this.edge.a;
    }
  };
  function d3_geom_voronoiRedBlackTree() {
    this._ = null;
  }
  function d3_geom_voronoiRedBlackNode(node) {
    node.U = node.C = node.L = node.R = node.P = node.N = null;
  }
  d3_geom_voronoiRedBlackTree.prototype = {
    insert: function(after, node) {
      var parent, grandpa, uncle;
      if (after) {
        node.P = after;
        node.N = after.N;
        if (after.N) after.N.P = node;
        after.N = node;
        if (after.R) {
          after = after.R;
          while (after.L) after = after.L;
          after.L = node;
        } else {
          after.R = node;
        }
        parent = after;
      } else if (this._) {
        after = d3_geom_voronoiRedBlackFirst(this._);
        node.P = null;
        node.N = after;
        after.P = after.L = node;
        parent = after;
      } else {
        node.P = node.N = null;
        this._ = node;
        parent = null;
      }
      node.L = node.R = null;
      node.U = parent;
      node.C = true;
      after = node;
      while (parent && parent.C) {
        grandpa = parent.U;
        if (parent === grandpa.L) {
          uncle = grandpa.R;
          if (uncle && uncle.C) {
            parent.C = uncle.C = false;
            grandpa.C = true;
            after = grandpa;
          } else {
            if (after === parent.R) {
              d3_geom_voronoiRedBlackRotateLeft(this, parent);
              after = parent;
              parent = after.U;
            }
            parent.C = false;
            grandpa.C = true;
            d3_geom_voronoiRedBlackRotateRight(this, grandpa);
          }
        } else {
          uncle = grandpa.L;
          if (uncle && uncle.C) {
            parent.C = uncle.C = false;
            grandpa.C = true;
            after = grandpa;
          } else {
            if (after === parent.L) {
              d3_geom_voronoiRedBlackRotateRight(this, parent);
              after = parent;
              parent = after.U;
            }
            parent.C = false;
            grandpa.C = true;
            d3_geom_voronoiRedBlackRotateLeft(this, grandpa);
          }
        }
        parent = after.U;
      }
      this._.C = false;
    },
    remove: function(node) {
      if (node.N) node.N.P = node.P;
      if (node.P) node.P.N = node.N;
      node.N = node.P = null;
      var parent = node.U, sibling, left = node.L, right = node.R, next, red;
      if (!left) next = right; else if (!right) next = left; else next = d3_geom_voronoiRedBlackFirst(right);
      if (parent) {
        if (parent.L === node) parent.L = next; else parent.R = next;
      } else {
        this._ = next;
      }
      if (left && right) {
        red = next.C;
        next.C = node.C;
        next.L = left;
        left.U = next;
        if (next !== right) {
          parent = next.U;
          next.U = node.U;
          node = next.R;
          parent.L = node;
          next.R = right;
          right.U = next;
        } else {
          next.U = parent;
          parent = next;
          node = next.R;
        }
      } else {
        red = node.C;
        node = next;
      }
      if (node) node.U = parent;
      if (red) return;
      if (node && node.C) {
        node.C = false;
        return;
      }
      do {
        if (node === this._) break;
        if (node === parent.L) {
          sibling = parent.R;
          if (sibling.C) {
            sibling.C = false;
            parent.C = true;
            d3_geom_voronoiRedBlackRotateLeft(this, parent);
            sibling = parent.R;
          }
          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
            if (!sibling.R || !sibling.R.C) {
              sibling.L.C = false;
              sibling.C = true;
              d3_geom_voronoiRedBlackRotateRight(this, sibling);
              sibling = parent.R;
            }
            sibling.C = parent.C;
            parent.C = sibling.R.C = false;
            d3_geom_voronoiRedBlackRotateLeft(this, parent);
            node = this._;
            break;
          }
        } else {
          sibling = parent.L;
          if (sibling.C) {
            sibling.C = false;
            parent.C = true;
            d3_geom_voronoiRedBlackRotateRight(this, parent);
            sibling = parent.L;
          }
          if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
            if (!sibling.L || !sibling.L.C) {
              sibling.R.C = false;
              sibling.C = true;
              d3_geom_voronoiRedBlackRotateLeft(this, sibling);
              sibling = parent.L;
            }
            sibling.C = parent.C;
            parent.C = sibling.L.C = false;
            d3_geom_voronoiRedBlackRotateRight(this, parent);
            node = this._;
            break;
          }
        }
        sibling.C = true;
        node = parent;
        parent = parent.U;
      } while (!node.C);
      if (node) node.C = false;
    }
  };
  function d3_geom_voronoiRedBlackRotateLeft(tree, node) {
    var p = node, q = node.R, parent = p.U;
    if (parent) {
      if (parent.L === p) parent.L = q; else parent.R = q;
    } else {
      tree._ = q;
    }
    q.U = parent;
    p.U = q;
    p.R = q.L;
    if (p.R) p.R.U = p;
    q.L = p;
  }
  function d3_geom_voronoiRedBlackRotateRight(tree, node) {
    var p = node, q = node.L, parent = p.U;
    if (parent) {
      if (parent.L === p) parent.L = q; else parent.R = q;
    } else {
      tree._ = q;
    }
    q.U = parent;
    p.U = q;
    p.L = q.R;
    if (p.L) p.L.U = p;
    q.R = p;
  }
  function d3_geom_voronoiRedBlackFirst(node) {
    while (node.L) node = node.L;
    return node;
  }
  function d3_geom_voronoi(sites, bbox) {
    var site = sites.sort(d3_geom_voronoiVertexOrder).pop(), x0, y0, circle;
    d3_geom_voronoiEdges = [];
    d3_geom_voronoiCells = new Array(sites.length);
    d3_geom_voronoiBeaches = new d3_geom_voronoiRedBlackTree();
    d3_geom_voronoiCircles = new d3_geom_voronoiRedBlackTree();
    while (true) {
      circle = d3_geom_voronoiFirstCircle;
      if (site && (!circle || site.y < circle.y || site.y === circle.y && site.x < circle.x)) {
        if (site.x !== x0 || site.y !== y0) {
          d3_geom_voronoiCells[site.i] = new d3_geom_voronoiCell(site);
          d3_geom_voronoiAddBeach(site);
          x0 = site.x, y0 = site.y;
        }
        site = sites.pop();
      } else if (circle) {
        d3_geom_voronoiRemoveBeach(circle.arc);
      } else {
        break;
      }
    }
    if (bbox) d3_geom_voronoiClipEdges(bbox), d3_geom_voronoiCloseCells(bbox);
    var diagram = {
      cells: d3_geom_voronoiCells,
      edges: d3_geom_voronoiEdges
    };
    d3_geom_voronoiBeaches = d3_geom_voronoiCircles = d3_geom_voronoiEdges = d3_geom_voronoiCells = null;
    return diagram;
  }
  function d3_geom_voronoiVertexOrder(a, b) {
    return b.y - a.y || b.x - a.x;
  }
  d3.geom.voronoi = function(points) {
    var x = d3_geom_pointX, y = d3_geom_pointY, fx = x, fy = y, clipExtent = d3_geom_voronoiClipExtent;
    if (points) return voronoi(points);
    function voronoi(data) {
      var polygons = new Array(data.length), x0 = clipExtent[0][0], y0 = clipExtent[0][1], x1 = clipExtent[1][0], y1 = clipExtent[1][1];
      d3_geom_voronoi(sites(data), clipExtent).cells.forEach(function(cell, i) {
        var edges = cell.edges, site = cell.site, polygon = polygons[i] = edges.length ? edges.map(function(e) {
          var s = e.start();
          return [ s.x, s.y ];
        }) : site.x >= x0 && site.x <= x1 && site.y >= y0 && site.y <= y1 ? [ [ x0, y1 ], [ x1, y1 ], [ x1, y0 ], [ x0, y0 ] ] : [];
        polygon.point = data[i];
      });
      return polygons;
    }
    function sites(data) {
      return data.map(function(d, i) {
        return {
          x: Math.round(fx(d, i) / ε) * ε,
          y: Math.round(fy(d, i) / ε) * ε,
          i: i
        };
      });
    }
    voronoi.links = function(data) {
      return d3_geom_voronoi(sites(data)).edges.filter(function(edge) {
        return edge.l && edge.r;
      }).map(function(edge) {
        return {
          source: data[edge.l.i],
          target: data[edge.r.i]
        };
      });
    };
    voronoi.triangles = function(data) {
      var triangles = [];
      d3_geom_voronoi(sites(data)).cells.forEach(function(cell, i) {
        var site = cell.site, edges = cell.edges.sort(d3_geom_voronoiHalfEdgeOrder), j = -1, m = edges.length, e0, s0, e1 = edges[m - 1].edge, s1 = e1.l === site ? e1.r : e1.l;
        while (++j < m) {
          e0 = e1;
          s0 = s1;
          e1 = edges[j].edge;
          s1 = e1.l === site ? e1.r : e1.l;
          if (i < s0.i && i < s1.i && d3_geom_voronoiTriangleArea(site, s0, s1) < 0) {
            triangles.push([ data[i], data[s0.i], data[s1.i] ]);
          }
        }
      });
      return triangles;
    };
    voronoi.x = function(_) {
      return arguments.length ? (fx = d3_functor(x = _), voronoi) : x;
    };
    voronoi.y = function(_) {
      return arguments.length ? (fy = d3_functor(y = _), voronoi) : y;
    };
    voronoi.clipExtent = function(_) {
      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent;
      clipExtent = _ == null ? d3_geom_voronoiClipExtent : _;
      return voronoi;
    };
    voronoi.size = function(_) {
      if (!arguments.length) return clipExtent === d3_geom_voronoiClipExtent ? null : clipExtent && clipExtent[1];
      return voronoi.clipExtent(_ && [ [ 0, 0 ], _ ]);
    };
    return voronoi;
  };
  var d3_geom_voronoiClipExtent = [ [ -1e6, -1e6 ], [ 1e6, 1e6 ] ];
  function d3_geom_voronoiTriangleArea(a, b, c) {
    return (a.x - c.x) * (b.y - a.y) - (a.x - b.x) * (c.y - a.y);
  }
  d3.geom.delaunay = function(vertices) {
    return d3.geom.voronoi().triangles(vertices);
  };
  d3.geom.quadtree = function(points, x1, y1, x2, y2) {
    var x = d3_geom_pointX, y = d3_geom_pointY, compat;
    if (compat = arguments.length) {
      x = d3_geom_quadtreeCompatX;
      y = d3_geom_quadtreeCompatY;
      if (compat === 3) {
        y2 = y1;
        x2 = x1;
        y1 = x1 = 0;
      }
      return quadtree(points);
    }
    function quadtree(data) {
      var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_;
      if (x1 != null) {
        x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2;
      } else {
        x2_ = y2_ = -(x1_ = y1_ = Infinity);
        xs = [], ys = [];
        n = data.length;
        if (compat) for (i = 0; i < n; ++i) {
          d = data[i];
          if (d.x < x1_) x1_ = d.x;
          if (d.y < y1_) y1_ = d.y;
          if (d.x > x2_) x2_ = d.x;
          if (d.y > y2_) y2_ = d.y;
          xs.push(d.x);
          ys.push(d.y);
        } else for (i = 0; i < n; ++i) {
          var x_ = +fx(d = data[i], i), y_ = +fy(d, i);
          if (x_ < x1_) x1_ = x_;
          if (y_ < y1_) y1_ = y_;
          if (x_ > x2_) x2_ = x_;
          if (y_ > y2_) y2_ = y_;
          xs.push(x_);
          ys.push(y_);
        }
      }
      var dx = x2_ - x1_, dy = y2_ - y1_;
      if (dx > dy) y2_ = y1_ + dx; else x2_ = x1_ + dy;
      function insert(n, d, x, y, x1, y1, x2, y2) {
        if (isNaN(x) || isNaN(y)) return;
        if (n.leaf) {
          var nx = n.x, ny = n.y;
          if (nx != null) {
            if (abs(nx - x) + abs(ny - y) < .01) {
              insertChild(n, d, x, y, x1, y1, x2, y2);
            } else {
              var nPoint = n.point;
              n.x = n.y = n.point = null;
              insertChild(n, nPoint, nx, ny, x1, y1, x2, y2);
              insertChild(n, d, x, y, x1, y1, x2, y2);
            }
          } else {
            n.x = x, n.y = y, n.point = d;
          }
        } else {
          insertChild(n, d, x, y, x1, y1, x2, y2);
        }
      }
      function insertChild(n, d, x, y, x1, y1, x2, y2) {
        var xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym, i = below << 1 | right;
        n.leaf = false;
        n = n.nodes[i] || (n.nodes[i] = d3_geom_quadtreeNode());
        if (right) x1 = xm; else x2 = xm;
        if (below) y1 = ym; else y2 = ym;
        insert(n, d, x, y, x1, y1, x2, y2);
      }
      var root = d3_geom_quadtreeNode();
      root.add = function(d) {
        insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_);
      };
      root.visit = function(f) {
        d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_);
      };
      root.find = function(point) {
        return d3_geom_quadtreeFind(root, point[0], point[1], x1_, y1_, x2_, y2_);
      };
      i = -1;
      if (x1 == null) {
        while (++i < n) {
          insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_);
        }
        --i;
      } else data.forEach(root.add);
      xs = ys = data = d = null;
      return root;
    }
    quadtree.x = function(_) {
      return arguments.length ? (x = _, quadtree) : x;
    };
    quadtree.y = function(_) {
      return arguments.length ? (y = _, quadtree) : y;
    };
    quadtree.extent = function(_) {
      if (!arguments.length) return x1 == null ? null : [ [ x1, y1 ], [ x2, y2 ] ];
      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], 
      y2 = +_[1][1];
      return quadtree;
    };
    quadtree.size = function(_) {
      if (!arguments.length) return x1 == null ? null : [ x2 - x1, y2 - y1 ];
      if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = y1 = 0, x2 = +_[0], y2 = +_[1];
      return quadtree;
    };
    return quadtree;
  };
  function d3_geom_quadtreeCompatX(d) {
    return d.x;
  }
  function d3_geom_quadtreeCompatY(d) {
    return d.y;
  }
  function d3_geom_quadtreeNode() {
    return {
      leaf: true,
      nodes: [],
      point: null,
      x: null,
      y: null
    };
  }
  function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
    if (!f(node, x1, y1, x2, y2)) {
      var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes;
      if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy);
      if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy);
      if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2);
      if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2);
    }
  }
  function d3_geom_quadtreeFind(root, x, y, x0, y0, x3, y3) {
    var minDistance2 = Infinity, closestPoint;
    (function find(node, x1, y1, x2, y2) {
      if (x1 > x3 || y1 > y3 || x2 < x0 || y2 < y0) return;
      if (point = node.point) {
        var point, dx = x - node.x, dy = y - node.y, distance2 = dx * dx + dy * dy;
        if (distance2 < minDistance2) {
          var distance = Math.sqrt(minDistance2 = distance2);
          x0 = x - distance, y0 = y - distance;
          x3 = x + distance, y3 = y + distance;
          closestPoint = point;
        }
      }
      var children = node.nodes, xm = (x1 + x2) * .5, ym = (y1 + y2) * .5, right = x >= xm, below = y >= ym;
      for (var i = below << 1 | right, j = i + 4; i < j; ++i) {
        if (node = children[i & 3]) switch (i & 3) {
         case 0:
          find(node, x1, y1, xm, ym);
          break;

         case 1:
          find(node, xm, y1, x2, ym);
          break;

         case 2:
          find(node, x1, ym, xm, y2);
          break;

         case 3:
          find(node, xm, ym, x2, y2);
          break;
        }
      }
    })(root, x0, y0, x3, y3);
    return closestPoint;
  }
  d3.interpolateRgb = d3_interpolateRgb;
  function d3_interpolateRgb(a, b) {
    a = d3.rgb(a);
    b = d3.rgb(b);
    var ar = a.r, ag = a.g, ab = a.b, br = b.r - ar, bg = b.g - ag, bb = b.b - ab;
    return function(t) {
      return "#" + d3_rgb_hex(Math.round(ar + br * t)) + d3_rgb_hex(Math.round(ag + bg * t)) + d3_rgb_hex(Math.round(ab + bb * t));
    };
  }
  d3.interpolateObject = d3_interpolateObject;
  function d3_interpolateObject(a, b) {
    var i = {}, c = {}, k;
    for (k in a) {
      if (k in b) {
        i[k] = d3_interpolate(a[k], b[k]);
      } else {
        c[k] = a[k];
      }
    }
    for (k in b) {
      if (!(k in a)) {
        c[k] = b[k];
      }
    }
    return function(t) {
      for (k in i) c[k] = i[k](t);
      return c;
    };
  }
  d3.interpolateNumber = d3_interpolateNumber;
  function d3_interpolateNumber(a, b) {
    a = +a, b = +b;
    return function(t) {
      return a * (1 - t) + b * t;
    };
  }
  d3.interpolateString = d3_interpolateString;
  function d3_interpolateString(a, b) {
    var bi = d3_interpolate_numberA.lastIndex = d3_interpolate_numberB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
    a = a + "", b = b + "";
    while ((am = d3_interpolate_numberA.exec(a)) && (bm = d3_interpolate_numberB.exec(b))) {
      if ((bs = bm.index) > bi) {
        bs = b.slice(bi, bs);
        if (s[i]) s[i] += bs; else s[++i] = bs;
      }
      if ((am = am[0]) === (bm = bm[0])) {
        if (s[i]) s[i] += bm; else s[++i] = bm;
      } else {
        s[++i] = null;
        q.push({
          i: i,
          x: d3_interpolateNumber(am, bm)
        });
      }
      bi = d3_interpolate_numberB.lastIndex;
    }
    if (bi < b.length) {
      bs = b.slice(bi);
      if (s[i]) s[i] += bs; else s[++i] = bs;
    }
    return s.length < 2 ? q[0] ? (b = q[0].x, function(t) {
      return b(t) + "";
    }) : function() {
      return b;
    } : (b = q.length, function(t) {
      for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
      return s.join("");
    });
  }
  var d3_interpolate_numberA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, d3_interpolate_numberB = new RegExp(d3_interpolate_numberA.source, "g");
  d3.interpolate = d3_interpolate;
  function d3_interpolate(a, b) {
    var i = d3.interpolators.length, f;
    while (--i >= 0 && !(f = d3.interpolators[i](a, b))) ;
    return f;
  }
  d3.interpolators = [ function(a, b) {
    var t = typeof b;
    return (t === "string" ? d3_rgb_names.has(b.toLowerCase()) || /^(#|rgb\(|hsl\()/i.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === "object" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b);
  } ];
  d3.interpolateArray = d3_interpolateArray;
  function d3_interpolateArray(a, b) {
    var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i;
    for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i]));
    for (;i < na; ++i) c[i] = a[i];
    for (;i < nb; ++i) c[i] = b[i];
    return function(t) {
      for (i = 0; i < n0; ++i) c[i] = x[i](t);
      return c;
    };
  }
  var d3_ease_default = function() {
    return d3_identity;
  };
  var d3_ease = d3.map({
    linear: d3_ease_default,
    poly: d3_ease_poly,
    quad: function() {
      return d3_ease_quad;
    },
    cubic: function() {
      return d3_ease_cubic;
    },
    sin: function() {
      return d3_ease_sin;
    },
    exp: function() {
      return d3_ease_exp;
    },
    circle: function() {
      return d3_ease_circle;
    },
    elastic: d3_ease_elastic,
    back: d3_ease_back,
    bounce: function() {
      return d3_ease_bounce;
    }
  });
  var d3_ease_mode = d3.map({
    "in": d3_identity,
    out: d3_ease_reverse,
    "in-out": d3_ease_reflect,
    "out-in": function(f) {
      return d3_ease_reflect(d3_ease_reverse(f));
    }
  });
  d3.ease = function(name) {
    var i = name.indexOf("-"), t = i >= 0 ? name.slice(0, i) : name, m = i >= 0 ? name.slice(i + 1) : "in";
    t = d3_ease.get(t) || d3_ease_default;
    m = d3_ease_mode.get(m) || d3_identity;
    return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1))));
  };
  function d3_ease_clamp(f) {
    return function(t) {
      return t <= 0 ? 0 : t >= 1 ? 1 : f(t);
    };
  }
  function d3_ease_reverse(f) {
    return function(t) {
      return 1 - f(1 - t);
    };
  }
  function d3_ease_reflect(f) {
    return function(t) {
      return .5 * (t < .5 ? f(2 * t) : 2 - f(2 - 2 * t));
    };
  }
  function d3_ease_quad(t) {
    return t * t;
  }
  function d3_ease_cubic(t) {
    return t * t * t;
  }
  function d3_ease_cubicInOut(t) {
    if (t <= 0) return 0;
    if (t >= 1) return 1;
    var t2 = t * t, t3 = t2 * t;
    return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75);
  }
  function d3_ease_poly(e) {
    return function(t) {
      return Math.pow(t, e);
    };
  }
  function d3_ease_sin(t) {
    return 1 - Math.cos(t * halfπ);
  }
  function d3_ease_exp(t) {
    return Math.pow(2, 10 * (t - 1));
  }
  function d3_ease_circle(t) {
    return 1 - Math.sqrt(1 - t * t);
  }
  function d3_ease_elastic(a, p) {
    var s;
    if (arguments.length < 2) p = .45;
    if (arguments.length) s = p / τ * Math.asin(1 / a); else a = 1, s = p / 4;
    return function(t) {
      return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p);
    };
  }
  function d3_ease_back(s) {
    if (!s) s = 1.70158;
    return function(t) {
      return t * t * ((s + 1) * t - s);
    };
  }
  function d3_ease_bounce(t) {
    return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;
  }
  d3.interpolateHcl = d3_interpolateHcl;
  function d3_interpolateHcl(a, b) {
    a = d3.hcl(a);
    b = d3.hcl(b);
    var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al;
    if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac;
    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;
    return function(t) {
      return d3_hcl_lab(ah + bh * t, ac + bc * t, al + bl * t) + "";
    };
  }
  d3.interpolateHsl = d3_interpolateHsl;
  function d3_interpolateHsl(a, b) {
    a = d3.hsl(a);
    b = d3.hsl(b);
    var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al;
    if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as;
    if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360;
    return function(t) {
      return d3_hsl_rgb(ah + bh * t, as + bs * t, al + bl * t) + "";
    };
  }
  d3.interpolateLab = d3_interpolateLab;
  function d3_interpolateLab(a, b) {
    a = d3.lab(a);
    b = d3.lab(b);
    var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab;
    return function(t) {
      return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + "";
    };
  }
  d3.interpolateRound = d3_interpolateRound;
  function d3_interpolateRound(a, b) {
    b -= a;
    return function(t) {
      return Math.round(a + b * t);
    };
  }
  d3.transform = function(string) {
    var g = d3_document.createElementNS(d3.ns.prefix.svg, "g");
    return (d3.transform = function(string) {
      if (string != null) {
        g.setAttribute("transform", string);
        var t = g.transform.baseVal.consolidate();
      }
      return new d3_transform(t ? t.matrix : d3_transformIdentity);
    })(string);
  };
  function d3_transform(m) {
    var r0 = [ m.a, m.b ], r1 = [ m.c, m.d ], kx = d3_transformNormalize(r0), kz = d3_transformDot(r0, r1), ky = d3_transformNormalize(d3_transformCombine(r1, r0, -kz)) || 0;
    if (r0[0] * r1[1] < r1[0] * r0[1]) {
      r0[0] *= -1;
      r0[1] *= -1;
      kx *= -1;
      kz *= -1;
    }
    this.rotate = (kx ? Math.atan2(r0[1], r0[0]) : Math.atan2(-r1[0], r1[1])) * d3_degrees;
    this.translate = [ m.e, m.f ];
    this.scale = [ kx, ky ];
    this.skew = ky ? Math.atan2(kz, ky) * d3_degrees : 0;
  }
  d3_transform.prototype.toString = function() {
    return "translate(" + this.translate + ")rotate(" + this.rotate + ")skewX(" + this.skew + ")scale(" + this.scale + ")";
  };
  function d3_transformDot(a, b) {
    return a[0] * b[0] + a[1] * b[1];
  }
  function d3_transformNormalize(a) {
    var k = Math.sqrt(d3_transformDot(a, a));
    if (k) {
      a[0] /= k;
      a[1] /= k;
    }
    return k;
  }
  function d3_transformCombine(a, b, k) {
    a[0] += k * b[0];
    a[1] += k * b[1];
    return a;
  }
  var d3_transformIdentity = {
    a: 1,
    b: 0,
    c: 0,
    d: 1,
    e: 0,
    f: 0
  };
  d3.interpolateTransform = d3_interpolateTransform;
  function d3_interpolateTransformPop(s) {
    return s.length ? s.pop() + "," : "";
  }
  function d3_interpolateTranslate(ta, tb, s, q) {
    if (ta[0] !== tb[0] || ta[1] !== tb[1]) {
      var i = s.push("translate(", null, ",", null, ")");
      q.push({
        i: i - 4,
        x: d3_interpolateNumber(ta[0], tb[0])
      }, {
        i: i - 2,
        x: d3_interpolateNumber(ta[1], tb[1])
      });
    } else if (tb[0] || tb[1]) {
      s.push("translate(" + tb + ")");
    }
  }
  function d3_interpolateRotate(ra, rb, s, q) {
    if (ra !== rb) {
      if (ra - rb > 180) rb += 360; else if (rb - ra > 180) ra += 360;
      q.push({
        i: s.push(d3_interpolateTransformPop(s) + "rotate(", null, ")") - 2,
        x: d3_interpolateNumber(ra, rb)
      });
    } else if (rb) {
      s.push(d3_interpolateTransformPop(s) + "rotate(" + rb + ")");
    }
  }
  function d3_interpolateSkew(wa, wb, s, q) {
    if (wa !== wb) {
      q.push({
        i: s.push(d3_interpolateTransformPop(s) + "skewX(", null, ")") - 2,
        x: d3_interpolateNumber(wa, wb)
      });
    } else if (wb) {
      s.push(d3_interpolateTransformPop(s) + "skewX(" + wb + ")");
    }
  }
  function d3_interpolateScale(ka, kb, s, q) {
    if (ka[0] !== kb[0] || ka[1] !== kb[1]) {
      var i = s.push(d3_interpolateTransformPop(s) + "scale(", null, ",", null, ")");
      q.push({
        i: i - 4,
        x: d3_interpolateNumber(ka[0], kb[0])
      }, {
        i: i - 2,
        x: d3_interpolateNumber(ka[1], kb[1])
      });
    } else if (kb[0] !== 1 || kb[1] !== 1) {
      s.push(d3_interpolateTransformPop(s) + "scale(" + kb + ")");
    }
  }
  function d3_interpolateTransform(a, b) {
    var s = [], q = [];
    a = d3.transform(a), b = d3.transform(b);
    d3_interpolateTranslate(a.translate, b.translate, s, q);
    d3_interpolateRotate(a.rotate, b.rotate, s, q);
    d3_interpolateSkew(a.skew, b.skew, s, q);
    d3_interpolateScale(a.scale, b.scale, s, q);
    a = b = null;
    return function(t) {
      var i = -1, n = q.length, o;
      while (++i < n) s[(o = q[i]).i] = o.x(t);
      return s.join("");
    };
  }
  function d3_uninterpolateNumber(a, b) {
    b = (b -= a = +a) || 1 / b;
    return function(x) {
      return (x - a) / b;
    };
  }
  function d3_uninterpolateClamp(a, b) {
    b = (b -= a = +a) || 1 / b;
    return function(x) {
      return Math.max(0, Math.min(1, (x - a) / b));
    };
  }
  d3.layout = {};
  d3.layout.bundle = function() {
    return function(links) {
      var paths = [], i = -1, n = links.length;
      while (++i < n) paths.push(d3_layout_bundlePath(links[i]));
      return paths;
    };
  };
  function d3_layout_bundlePath(link) {
    var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ];
    while (start !== lca) {
      start = start.parent;
      points.push(start);
    }
    var k = points.length;
    while (end !== lca) {
      points.splice(k, 0, end);
      end = end.parent;
    }
    return points;
  }
  function d3_layout_bundleAncestors(node) {
    var ancestors = [], parent = node.parent;
    while (parent != null) {
      ancestors.push(node);
      node = parent;
      parent = parent.parent;
    }
    ancestors.push(node);
    return ancestors;
  }
  function d3_layout_bundleLeastCommonAncestor(a, b) {
    if (a === b) return a;
    var aNodes = d3_layout_bundleAncestors(a), bNodes = d3_layout_bundleAncestors(b), aNode = aNodes.pop(), bNode = bNodes.pop(), sharedNode = null;
    while (aNode === bNode) {
      sharedNode = aNode;
      aNode = aNodes.pop();
      bNode = bNodes.pop();
    }
    return sharedNode;
  }
  d3.layout.chord = function() {
    var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
    function relayout() {
      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
      chords = [];
      groups = [];
      k = 0, i = -1;
      while (++i < n) {
        x = 0, j = -1;
        while (++j < n) {
          x += matrix[i][j];
        }
        groupSums.push(x);
        subgroupIndex.push(d3.range(n));
        k += x;
      }
      if (sortGroups) {
        groupIndex.sort(function(a, b) {
          return sortGroups(groupSums[a], groupSums[b]);
        });
      }
      if (sortSubgroups) {
        subgroupIndex.forEach(function(d, i) {
          d.sort(function(a, b) {
            return sortSubgroups(matrix[i][a], matrix[i][b]);
          });
        });
      }
      k = (τ - padding * n) / k;
      x = 0, i = -1;
      while (++i < n) {
        x0 = x, j = -1;
        while (++j < n) {
          var di = groupIndex[i], dj = subgroupIndex[di][j], v = matrix[di][dj], a0 = x, a1 = x += v * k;
          subgroups[di + "-" + dj] = {
            index: di,
            subindex: dj,
            startAngle: a0,
            endAngle: a1,
            value: v
          };
        }
        groups[di] = {
          index: di,
          startAngle: x0,
          endAngle: x,
          value: groupSums[di]
        };
        x += padding;
      }
      i = -1;
      while (++i < n) {
        j = i - 1;
        while (++j < n) {
          var source = subgroups[i + "-" + j], target = subgroups[j + "-" + i];
          if (source.value || target.value) {
            chords.push(source.value < target.value ? {
              source: target,
              target: source
            } : {
              source: source,
              target: target
            });
          }
        }
      }
      if (sortChords) resort();
    }
    function resort() {
      chords.sort(function(a, b) {
        return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2);
      });
    }
    chord.matrix = function(x) {
      if (!arguments.length) return matrix;
      n = (matrix = x) && matrix.length;
      chords = groups = null;
      return chord;
    };
    chord.padding = function(x) {
      if (!arguments.length) return padding;
      padding = x;
      chords = groups = null;
      return chord;
    };
    chord.sortGroups = function(x) {
      if (!arguments.length) return sortGroups;
      sortGroups = x;
      chords = groups = null;
      return chord;
    };
    chord.sortSubgroups = function(x) {
      if (!arguments.length) return sortSubgroups;
      sortSubgroups = x;
      chords = null;
      return chord;
    };
    chord.sortChords = function(x) {
      if (!arguments.length) return sortChords;
      sortChords = x;
      if (chords) resort();
      return chord;
    };
    chord.chords = function() {
      if (!chords) relayout();
      return chords;
    };
    chord.groups = function() {
      if (!groups) relayout();
      return groups;
    };
    return chord;
  };
  d3.layout.force = function() {
    var force = {}, event = d3.dispatch("start", "tick", "end"), timer, size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, chargeDistance2 = d3_layout_forceChargeDistance2, gravity = .1, theta2 = .64, nodes = [], links = [], distances, strengths, charges;
    function repulse(node) {
      return function(quad, x1, _, x2) {
        if (quad.point !== node) {
          var dx = quad.cx - node.x, dy = quad.cy - node.y, dw = x2 - x1, dn = dx * dx + dy * dy;
          if (dw * dw / theta2 < dn) {
            if (dn < chargeDistance2) {
              var k = quad.charge / dn;
              node.px -= dx * k;
              node.py -= dy * k;
            }
            return true;
          }
          if (quad.point && dn && dn < chargeDistance2) {
            var k = quad.pointCharge / dn;
            node.px -= dx * k;
            node.py -= dy * k;
          }
        }
        return !quad.charge;
      };
    }
    force.tick = function() {
      if ((alpha *= .99) < .005) {
        timer = null;
        event.end({
          type: "end",
          alpha: alpha = 0
        });
        return true;
      }
      var n = nodes.length, m = links.length, q, i, o, s, t, l, k, x, y;
      for (i = 0; i < m; ++i) {
        o = links[i];
        s = o.source;
        t = o.target;
        x = t.x - s.x;
        y = t.y - s.y;
        if (l = x * x + y * y) {
          l = alpha * strengths[i] * ((l = Math.sqrt(l)) - distances[i]) / l;
          x *= l;
          y *= l;
          t.x -= x * (k = s.weight + t.weight ? s.weight / (s.weight + t.weight) : .5);
          t.y -= y * k;
          s.x += x * (k = 1 - k);
          s.y += y * k;
        }
      }
      if (k = alpha * gravity) {
        x = size[0] / 2;
        y = size[1] / 2;
        i = -1;
        if (k) while (++i < n) {
          o = nodes[i];
          o.x += (x - o.x) * k;
          o.y += (y - o.y) * k;
        }
      }
      if (charge) {
        d3_layout_forceAccumulate(q = d3.geom.quadtree(nodes), alpha, charges);
        i = -1;
        while (++i < n) {
          if (!(o = nodes[i]).fixed) {
            q.visit(repulse(o));
          }
        }
      }
      i = -1;
      while (++i < n) {
        o = nodes[i];
        if (o.fixed) {
          o.x = o.px;
          o.y = o.py;
        } else {
          o.x -= (o.px - (o.px = o.x)) * friction;
          o.y -= (o.py - (o.py = o.y)) * friction;
        }
      }
      event.tick({
        type: "tick",
        alpha: alpha
      });
    };
    force.nodes = function(x) {
      if (!arguments.length) return nodes;
      nodes = x;
      return force;
    };
    force.links = function(x) {
      if (!arguments.length) return links;
      links = x;
      return force;
    };
    force.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return force;
    };
    force.linkDistance = function(x) {
      if (!arguments.length) return linkDistance;
      linkDistance = typeof x === "function" ? x : +x;
      return force;
    };
    force.distance = force.linkDistance;
    force.linkStrength = function(x) {
      if (!arguments.length) return linkStrength;
      linkStrength = typeof x === "function" ? x : +x;
      return force;
    };
    force.friction = function(x) {
      if (!arguments.length) return friction;
      friction = +x;
      return force;
    };
    force.charge = function(x) {
      if (!arguments.length) return charge;
      charge = typeof x === "function" ? x : +x;
      return force;
    };
    force.chargeDistance = function(x) {
      if (!arguments.length) return Math.sqrt(chargeDistance2);
      chargeDistance2 = x * x;
      return force;
    };
    force.gravity = function(x) {
      if (!arguments.length) return gravity;
      gravity = +x;
      return force;
    };
    force.theta = function(x) {
      if (!arguments.length) return Math.sqrt(theta2);
      theta2 = x * x;
      return force;
    };
    force.alpha = function(x) {
      if (!arguments.length) return alpha;
      x = +x;
      if (alpha) {
        if (x > 0) {
          alpha = x;
        } else {
          timer.c = null, timer.t = NaN, timer = null;
          event.end({
            type: "end",
            alpha: alpha = 0
          });
        }
      } else if (x > 0) {
        event.start({
          type: "start",
          alpha: alpha = x
        });
        timer = d3_timer(force.tick);
      }
      return force;
    };
    force.start = function() {
      var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
      for (i = 0; i < n; ++i) {
        (o = nodes[i]).index = i;
        o.weight = 0;
      }
      for (i = 0; i < m; ++i) {
        o = links[i];
        if (typeof o.source == "number") o.source = nodes[o.source];
        if (typeof o.target == "number") o.target = nodes[o.target];
        ++o.source.weight;
        ++o.target.weight;
      }
      for (i = 0; i < n; ++i) {
        o = nodes[i];
        if (isNaN(o.x)) o.x = position("x", w);
        if (isNaN(o.y)) o.y = position("y", h);
        if (isNaN(o.px)) o.px = o.x;
        if (isNaN(o.py)) o.py = o.y;
      }
      distances = [];
      if (typeof linkDistance === "function") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance;
      strengths = [];
      if (typeof linkStrength === "function") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength;
      charges = [];
      if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;
      function position(dimension, size) {
        if (!neighbors) {
          neighbors = new Array(n);
          for (j = 0; j < n; ++j) {
            neighbors[j] = [];
          }
          for (j = 0; j < m; ++j) {
            var o = links[j];
            neighbors[o.source.index].push(o.target);
            neighbors[o.target.index].push(o.source);
          }
        }
        var candidates = neighbors[i], j = -1, l = candidates.length, x;
        while (++j < l) if (!isNaN(x = candidates[j][dimension])) return x;
        return Math.random() * size;
      }
      return force.resume();
    };
    force.resume = function() {
      return force.alpha(.1);
    };
    force.stop = function() {
      return force.alpha(0);
    };
    force.drag = function() {
      if (!drag) drag = d3.behavior.drag().origin(d3_identity).on("dragstart.force", d3_layout_forceDragstart).on("drag.force", dragmove).on("dragend.force", d3_layout_forceDragend);
      if (!arguments.length) return drag;
      this.on("mouseover.force", d3_layout_forceMouseover).on("mouseout.force", d3_layout_forceMouseout).call(drag);
    };
    function dragmove(d) {
      d.px = d3.event.x, d.py = d3.event.y;
      force.resume();
    }
    return d3.rebind(force, event, "on");
  };
  function d3_layout_forceDragstart(d) {
    d.fixed |= 2;
  }
  function d3_layout_forceDragend(d) {
    d.fixed &= ~6;
  }
  function d3_layout_forceMouseover(d) {
    d.fixed |= 4;
    d.px = d.x, d.py = d.y;
  }
  function d3_layout_forceMouseout(d) {
    d.fixed &= ~4;
  }
  function d3_layout_forceAccumulate(quad, alpha, charges) {
    var cx = 0, cy = 0;
    quad.charge = 0;
    if (!quad.leaf) {
      var nodes = quad.nodes, n = nodes.length, i = -1, c;
      while (++i < n) {
        c = nodes[i];
        if (c == null) continue;
        d3_layout_forceAccumulate(c, alpha, charges);
        quad.charge += c.charge;
        cx += c.charge * c.cx;
        cy += c.charge * c.cy;
      }
    }
    if (quad.point) {
      if (!quad.leaf) {
        quad.point.x += Math.random() - .5;
        quad.point.y += Math.random() - .5;
      }
      var k = alpha * charges[quad.point.index];
      quad.charge += quad.pointCharge = k;
      cx += k * quad.point.x;
      cy += k * quad.point.y;
    }
    quad.cx = cx / quad.charge;
    quad.cy = cy / quad.charge;
  }
  var d3_layout_forceLinkDistance = 20, d3_layout_forceLinkStrength = 1, d3_layout_forceChargeDistance2 = Infinity;
  d3.layout.hierarchy = function() {
    var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue;
    function hierarchy(root) {
      var stack = [ root ], nodes = [], node;
      root.depth = 0;
      while ((node = stack.pop()) != null) {
        nodes.push(node);
        if ((childs = children.call(hierarchy, node, node.depth)) && (n = childs.length)) {
          var n, childs, child;
          while (--n >= 0) {
            stack.push(child = childs[n]);
            child.parent = node;
            child.depth = node.depth + 1;
          }
          if (value) node.value = 0;
          node.children = childs;
        } else {
          if (value) node.value = +value.call(hierarchy, node, node.depth) || 0;
          delete node.children;
        }
      }
      d3_layout_hierarchyVisitAfter(root, function(node) {
        var childs, parent;
        if (sort && (childs = node.children)) childs.sort(sort);
        if (value && (parent = node.parent)) parent.value += node.value;
      });
      return nodes;
    }
    hierarchy.sort = function(x) {
      if (!arguments.length) return sort;
      sort = x;
      return hierarchy;
    };
    hierarchy.children = function(x) {
      if (!arguments.length) return children;
      children = x;
      return hierarchy;
    };
    hierarchy.value = function(x) {
      if (!arguments.length) return value;
      value = x;
      return hierarchy;
    };
    hierarchy.revalue = function(root) {
      if (value) {
        d3_layout_hierarchyVisitBefore(root, function(node) {
          if (node.children) node.value = 0;
        });
        d3_layout_hierarchyVisitAfter(root, function(node) {
          var parent;
          if (!node.children) node.value = +value.call(hierarchy, node, node.depth) || 0;
          if (parent = node.parent) parent.value += node.value;
        });
      }
      return root;
    };
    return hierarchy;
  };
  function d3_layout_hierarchyRebind(object, hierarchy) {
    d3.rebind(object, hierarchy, "sort", "children", "value");
    object.nodes = object;
    object.links = d3_layout_hierarchyLinks;
    return object;
  }
  function d3_layout_hierarchyVisitBefore(node, callback) {
    var nodes = [ node ];
    while ((node = nodes.pop()) != null) {
      callback(node);
      if ((children = node.children) && (n = children.length)) {
        var n, children;
        while (--n >= 0) nodes.push(children[n]);
      }
    }
  }
  function d3_layout_hierarchyVisitAfter(node, callback) {
    var nodes = [ node ], nodes2 = [];
    while ((node = nodes.pop()) != null) {
      nodes2.push(node);
      if ((children = node.children) && (n = children.length)) {
        var i = -1, n, children;
        while (++i < n) nodes.push(children[i]);
      }
    }
    while ((node = nodes2.pop()) != null) {
      callback(node);
    }
  }
  function d3_layout_hierarchyChildren(d) {
    return d.children;
  }
  function d3_layout_hierarchyValue(d) {
    return d.value;
  }
  function d3_layout_hierarchySort(a, b) {
    return b.value - a.value;
  }
  function d3_layout_hierarchyLinks(nodes) {
    return d3.merge(nodes.map(function(parent) {
      return (parent.children || []).map(function(child) {
        return {
          source: parent,
          target: child
        };
      });
    }));
  }
  d3.layout.partition = function() {
    var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
    function position(node, x, dx, dy) {
      var children = node.children;
      node.x = x;
      node.y = node.depth * dy;
      node.dx = dx;
      node.dy = dy;
      if (children && (n = children.length)) {
        var i = -1, n, c, d;
        dx = node.value ? dx / node.value : 0;
        while (++i < n) {
          position(c = children[i], x, d = c.value * dx, dy);
          x += d;
        }
      }
    }
    function depth(node) {
      var children = node.children, d = 0;
      if (children && (n = children.length)) {
        var i = -1, n;
        while (++i < n) d = Math.max(d, depth(children[i]));
      }
      return 1 + d;
    }
    function partition(d, i) {
      var nodes = hierarchy.call(this, d, i);
      position(nodes[0], 0, size[0], size[1] / depth(nodes[0]));
      return nodes;
    }
    partition.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return partition;
    };
    return d3_layout_hierarchyRebind(partition, hierarchy);
  };
  d3.layout.pie = function() {
    var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ, padAngle = 0;
    function pie(data) {
      var n = data.length, values = data.map(function(d, i) {
        return +value.call(pie, d, i);
      }), a = +(typeof startAngle === "function" ? startAngle.apply(this, arguments) : startAngle), da = (typeof endAngle === "function" ? endAngle.apply(this, arguments) : endAngle) - a, p = Math.min(Math.abs(da) / n, +(typeof padAngle === "function" ? padAngle.apply(this, arguments) : padAngle)), pa = p * (da < 0 ? -1 : 1), sum = d3.sum(values), k = sum ? (da - n * pa) / sum : 0, index = d3.range(n), arcs = [], v;
      if (sort != null) index.sort(sort === d3_layout_pieSortByValue ? function(i, j) {
        return values[j] - values[i];
      } : function(i, j) {
        return sort(data[i], data[j]);
      });
      index.forEach(function(i) {
        arcs[i] = {
          data: data[i],
          value: v = values[i],
          startAngle: a,
          endAngle: a += v * k + pa,
          padAngle: p
        };
      });
      return arcs;
    }
    pie.value = function(_) {
      if (!arguments.length) return value;
      value = _;
      return pie;
    };
    pie.sort = function(_) {
      if (!arguments.length) return sort;
      sort = _;
      return pie;
    };
    pie.startAngle = function(_) {
      if (!arguments.length) return startAngle;
      startAngle = _;
      return pie;
    };
    pie.endAngle = function(_) {
      if (!arguments.length) return endAngle;
      endAngle = _;
      return pie;
    };
    pie.padAngle = function(_) {
      if (!arguments.length) return padAngle;
      padAngle = _;
      return pie;
    };
    return pie;
  };
  var d3_layout_pieSortByValue = {};
  d3.layout.stack = function() {
    var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY;
    function stack(data, index) {
      if (!(n = data.length)) return data;
      var series = data.map(function(d, i) {
        return values.call(stack, d, i);
      });
      var points = series.map(function(d) {
        return d.map(function(v, i) {
          return [ x.call(stack, v, i), y.call(stack, v, i) ];
        });
      });
      var orders = order.call(stack, points, index);
      series = d3.permute(series, orders);
      points = d3.permute(points, orders);
      var offsets = offset.call(stack, points, index);
      var m = series[0].length, n, i, j, o;
      for (j = 0; j < m; ++j) {
        out.call(stack, series[0][j], o = offsets[j], points[0][j][1]);
        for (i = 1; i < n; ++i) {
          out.call(stack, series[i][j], o += points[i - 1][j][1], points[i][j][1]);
        }
      }
      return data;
    }
    stack.values = function(x) {
      if (!arguments.length) return values;
      values = x;
      return stack;
    };
    stack.order = function(x) {
      if (!arguments.length) return order;
      order = typeof x === "function" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault;
      return stack;
    };
    stack.offset = function(x) {
      if (!arguments.length) return offset;
      offset = typeof x === "function" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero;
      return stack;
    };
    stack.x = function(z) {
      if (!arguments.length) return x;
      x = z;
      return stack;
    };
    stack.y = function(z) {
      if (!arguments.length) return y;
      y = z;
      return stack;
    };
    stack.out = function(z) {
      if (!arguments.length) return out;
      out = z;
      return stack;
    };
    return stack;
  };
  function d3_layout_stackX(d) {
    return d.x;
  }
  function d3_layout_stackY(d) {
    return d.y;
  }
  function d3_layout_stackOut(d, y0, y) {
    d.y0 = y0;
    d.y = y;
  }
  var d3_layout_stackOrders = d3.map({
    "inside-out": function(data) {
      var n = data.length, i, j, max = data.map(d3_layout_stackMaxIndex), sums = data.map(d3_layout_stackReduceSum), index = d3.range(n).sort(function(a, b) {
        return max[a] - max[b];
      }), top = 0, bottom = 0, tops = [], bottoms = [];
      for (i = 0; i < n; ++i) {
        j = index[i];
        if (top < bottom) {
          top += sums[j];
          tops.push(j);
        } else {
          bottom += sums[j];
          bottoms.push(j);
        }
      }
      return bottoms.reverse().concat(tops);
    },
    reverse: function(data) {
      return d3.range(data.length).reverse();
    },
    "default": d3_layout_stackOrderDefault
  });
  var d3_layout_stackOffsets = d3.map({
    silhouette: function(data) {
      var n = data.length, m = data[0].length, sums = [], max = 0, i, j, o, y0 = [];
      for (j = 0; j < m; ++j) {
        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];
        if (o > max) max = o;
        sums.push(o);
      }
      for (j = 0; j < m; ++j) {
        y0[j] = (max - sums[j]) / 2;
      }
      return y0;
    },
    wiggle: function(data) {
      var n = data.length, x = data[0], m = x.length, i, j, k, s1, s2, s3, dx, o, o0, y0 = [];
      y0[0] = o = o0 = 0;
      for (j = 1; j < m; ++j) {
        for (i = 0, s1 = 0; i < n; ++i) s1 += data[i][j][1];
        for (i = 0, s2 = 0, dx = x[j][0] - x[j - 1][0]; i < n; ++i) {
          for (k = 0, s3 = (data[i][j][1] - data[i][j - 1][1]) / (2 * dx); k < i; ++k) {
            s3 += (data[k][j][1] - data[k][j - 1][1]) / dx;
          }
          s2 += s3 * data[i][j][1];
        }
        y0[j] = o -= s1 ? s2 / s1 * dx : 0;
        if (o < o0) o0 = o;
      }
      for (j = 0; j < m; ++j) y0[j] -= o0;
      return y0;
    },
    expand: function(data) {
      var n = data.length, m = data[0].length, k = 1 / n, i, j, o, y0 = [];
      for (j = 0; j < m; ++j) {
        for (i = 0, o = 0; i < n; i++) o += data[i][j][1];
        if (o) for (i = 0; i < n; i++) data[i][j][1] /= o; else for (i = 0; i < n; i++) data[i][j][1] = k;
      }
      for (j = 0; j < m; ++j) y0[j] = 0;
      return y0;
    },
    zero: d3_layout_stackOffsetZero
  });
  function d3_layout_stackOrderDefault(data) {
    return d3.range(data.length);
  }
  function d3_layout_stackOffsetZero(data) {
    var j = -1, m = data[0].length, y0 = [];
    while (++j < m) y0[j] = 0;
    return y0;
  }
  function d3_layout_stackMaxIndex(array) {
    var i = 1, j = 0, v = array[0][1], k, n = array.length;
    for (;i < n; ++i) {
      if ((k = array[i][1]) > v) {
        j = i;
        v = k;
      }
    }
    return j;
  }
  function d3_layout_stackReduceSum(d) {
    return d.reduce(d3_layout_stackSum, 0);
  }
  function d3_layout_stackSum(p, d) {
    return p + d[1];
  }
  d3.layout.histogram = function() {
    var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
    function histogram(data, i) {
      var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
      while (++i < m) {
        bin = bins[i] = [];
        bin.dx = thresholds[i + 1] - (bin.x = thresholds[i]);
        bin.y = 0;
      }
      if (m > 0) {
        i = -1;
        while (++i < n) {
          x = values[i];
          if (x >= range[0] && x <= range[1]) {
            bin = bins[d3.bisect(thresholds, x, 1, m) - 1];
            bin.y += k;
            bin.push(data[i]);
          }
        }
      }
      return bins;
    }
    histogram.value = function(x) {
      if (!arguments.length) return valuer;
      valuer = x;
      return histogram;
    };
    histogram.range = function(x) {
      if (!arguments.length) return ranger;
      ranger = d3_functor(x);
      return histogram;
    };
    histogram.bins = function(x) {
      if (!arguments.length) return binner;
      binner = typeof x === "number" ? function(range) {
        return d3_layout_histogramBinFixed(range, x);
      } : d3_functor(x);
      return histogram;
    };
    histogram.frequency = function(x) {
      if (!arguments.length) return frequency;
      frequency = !!x;
      return histogram;
    };
    return histogram;
  };
  function d3_layout_histogramBinSturges(range, values) {
    return d3_layout_histogramBinFixed(range, Math.ceil(Math.log(values.length) / Math.LN2 + 1));
  }
  function d3_layout_histogramBinFixed(range, n) {
    var x = -1, b = +range[0], m = (range[1] - b) / n, f = [];
    while (++x <= n) f[x] = m * x + b;
    return f;
  }
  function d3_layout_histogramRange(values) {
    return [ d3.min(values), d3.max(values) ];
  }
  d3.layout.pack = function() {
    var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;
    function pack(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() {
        return radius;
      };
      root.x = root.y = 0;
      d3_layout_hierarchyVisitAfter(root, function(d) {
        d.r = +r(d.value);
      });
      d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);
      if (padding) {
        var dr = padding * (radius ? 1 : Math.max(2 * root.r / w, 2 * root.r / h)) / 2;
        d3_layout_hierarchyVisitAfter(root, function(d) {
          d.r += dr;
        });
        d3_layout_hierarchyVisitAfter(root, d3_layout_packSiblings);
        d3_layout_hierarchyVisitAfter(root, function(d) {
          d.r -= dr;
        });
      }
      d3_layout_packTransform(root, w / 2, h / 2, radius ? 1 : 1 / Math.max(2 * root.r / w, 2 * root.r / h));
      return nodes;
    }
    pack.size = function(_) {
      if (!arguments.length) return size;
      size = _;
      return pack;
    };
    pack.radius = function(_) {
      if (!arguments.length) return radius;
      radius = _ == null || typeof _ === "function" ? _ : +_;
      return pack;
    };
    pack.padding = function(_) {
      if (!arguments.length) return padding;
      padding = +_;
      return pack;
    };
    return d3_layout_hierarchyRebind(pack, hierarchy);
  };
  function d3_layout_packSort(a, b) {
    return a.value - b.value;
  }
  function d3_layout_packInsert(a, b) {
    var c = a._pack_next;
    a._pack_next = b;
    b._pack_prev = a;
    b._pack_next = c;
    c._pack_prev = b;
  }
  function d3_layout_packSplice(a, b) {
    a._pack_next = b;
    b._pack_prev = a;
  }
  function d3_layout_packIntersects(a, b) {
    var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r;
    return .999 * dr * dr > dx * dx + dy * dy;
  }
  function d3_layout_packSiblings(node) {
    if (!(nodes = node.children) || !(n = nodes.length)) return;
    var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n;
    function bound(node) {
      xMin = Math.min(node.x - node.r, xMin);
      xMax = Math.max(node.x + node.r, xMax);
      yMin = Math.min(node.y - node.r, yMin);
      yMax = Math.max(node.y + node.r, yMax);
    }
    nodes.forEach(d3_layout_packLink);
    a = nodes[0];
    a.x = -a.r;
    a.y = 0;
    bound(a);
    if (n > 1) {
      b = nodes[1];
      b.x = b.r;
      b.y = 0;
      bound(b);
      if (n > 2) {
        c = nodes[2];
        d3_layout_packPlace(a, b, c);
        bound(c);
        d3_layout_packInsert(a, c);
        a._pack_prev = c;
        d3_layout_packInsert(c, b);
        b = a._pack_next;
        for (i = 3; i < n; i++) {
          d3_layout_packPlace(a, b, c = nodes[i]);
          var isect = 0, s1 = 1, s2 = 1;
          for (j = b._pack_next; j !== b; j = j._pack_next, s1++) {
            if (d3_layout_packIntersects(j, c)) {
              isect = 1;
              break;
            }
          }
          if (isect == 1) {
            for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {
              if (d3_layout_packIntersects(k, c)) {
                break;
              }
            }
          }
          if (isect) {
            if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b);
            i--;
          } else {
            d3_layout_packInsert(a, c);
            b = c;
            bound(c);
          }
        }
      }
    }
    var cx = (xMin + xMax) / 2, cy = (yMin + yMax) / 2, cr = 0;
    for (i = 0; i < n; i++) {
      c = nodes[i];
      c.x -= cx;
      c.y -= cy;
      cr = Math.max(cr, c.r + Math.sqrt(c.x * c.x + c.y * c.y));
    }
    node.r = cr;
    nodes.forEach(d3_layout_packUnlink);
  }
  function d3_layout_packLink(node) {
    node._pack_next = node._pack_prev = node;
  }
  function d3_layout_packUnlink(node) {
    delete node._pack_next;
    delete node._pack_prev;
  }
  function d3_layout_packTransform(node, x, y, k) {
    var children = node.children;
    node.x = x += k * node.x;
    node.y = y += k * node.y;
    node.r *= k;
    if (children) {
      var i = -1, n = children.length;
      while (++i < n) d3_layout_packTransform(children[i], x, y, k);
    }
  }
  function d3_layout_packPlace(a, b, c) {
    var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y;
    if (db && (dx || dy)) {
      var da = b.r + c.r, dc = dx * dx + dy * dy;
      da *= da;
      db *= db;
      var x = .5 + (db - da) / (2 * dc), y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc);
      c.x = a.x + x * dx + y * dy;
      c.y = a.y + x * dy - y * dx;
    } else {
      c.x = a.x + db;
      c.y = a.y;
    }
  }
  d3.layout.tree = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;
    function tree(d, i) {
      var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);
      d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;
      d3_layout_hierarchyVisitBefore(root1, secondWalk);
      if (nodeSize) d3_layout_hierarchyVisitBefore(root0, sizeNode); else {
        var left = root0, right = root0, bottom = root0;
        d3_layout_hierarchyVisitBefore(root0, function(node) {
          if (node.x < left.x) left = node;
          if (node.x > right.x) right = node;
          if (node.depth > bottom.depth) bottom = node;
        });
        var tx = separation(left, right) / 2 - left.x, kx = size[0] / (right.x + separation(right, left) / 2 + tx), ky = size[1] / (bottom.depth || 1);
        d3_layout_hierarchyVisitBefore(root0, function(node) {
          node.x = (node.x + tx) * kx;
          node.y = node.depth * ky;
        });
      }
      return nodes;
    }
    function wrapTree(root0) {
      var root1 = {
        A: null,
        children: [ root0 ]
      }, queue = [ root1 ], node1;
      while ((node1 = queue.pop()) != null) {
        for (var children = node1.children, child, i = 0, n = children.length; i < n; ++i) {
          queue.push((children[i] = child = {
            _: children[i],
            parent: node1,
            children: (child = children[i].children) && child.slice() || [],
            A: null,
            a: null,
            z: 0,
            m: 0,
            c: 0,
            s: 0,
            t: null,
            i: i
          }).a = child);
        }
      }
      return root1.children[0];
    }
    function firstWalk(v) {
      var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null;
      if (children.length) {
        d3_layout_treeShift(v);
        var midpoint = (children[0].z + children[children.length - 1].z) / 2;
        if (w) {
          v.z = w.z + separation(v._, w._);
          v.m = v.z - midpoint;
        } else {
          v.z = midpoint;
        }
      } else if (w) {
        v.z = w.z + separation(v._, w._);
      }
      v.parent.A = apportion(v, w, v.parent.A || siblings[0]);
    }
    function secondWalk(v) {
      v._.x = v.z + v.parent.m;
      v.m += v.parent.m;
    }
    function apportion(v, w, ancestor) {
      if (w) {
        var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift;
        while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
          vom = d3_layout_treeLeft(vom);
          vop = d3_layout_treeRight(vop);
          vop.a = v;
          shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);
          if (shift > 0) {
            d3_layout_treeMove(d3_layout_treeAncestor(vim, v, ancestor), v, shift);
            sip += shift;
            sop += shift;
          }
          sim += vim.m;
          sip += vip.m;
          som += vom.m;
          sop += vop.m;
        }
        if (vim && !d3_layout_treeRight(vop)) {
          vop.t = vim;
          vop.m += sim - sop;
        }
        if (vip && !d3_layout_treeLeft(vom)) {
          vom.t = vip;
          vom.m += sip - som;
          ancestor = v;
        }
      }
      return ancestor;
    }
    function sizeNode(node) {
      node.x *= size[0];
      node.y = node.depth * size[1];
    }
    tree.separation = function(x) {
      if (!arguments.length) return separation;
      separation = x;
      return tree;
    };
    tree.size = function(x) {
      if (!arguments.length) return nodeSize ? null : size;
      nodeSize = (size = x) == null ? sizeNode : null;
      return tree;
    };
    tree.nodeSize = function(x) {
      if (!arguments.length) return nodeSize ? size : null;
      nodeSize = (size = x) == null ? null : sizeNode;
      return tree;
    };
    return d3_layout_hierarchyRebind(tree, hierarchy);
  };
  function d3_layout_treeSeparation(a, b) {
    return a.parent == b.parent ? 1 : 2;
  }
  function d3_layout_treeLeft(v) {
    var children = v.children;
    return children.length ? children[0] : v.t;
  }
  function d3_layout_treeRight(v) {
    var children = v.children, n;
    return (n = children.length) ? children[n - 1] : v.t;
  }
  function d3_layout_treeMove(wm, wp, shift) {
    var change = shift / (wp.i - wm.i);
    wp.c -= change;
    wp.s += shift;
    wm.c += change;
    wp.z += shift;
    wp.m += shift;
  }
  function d3_layout_treeShift(v) {
    var shift = 0, change = 0, children = v.children, i = children.length, w;
    while (--i >= 0) {
      w = children[i];
      w.z += shift;
      w.m += shift;
      shift += w.s + (change += w.c);
    }
  }
  function d3_layout_treeAncestor(vim, v, ancestor) {
    return vim.a.parent === v.parent ? vim.a : ancestor;
  }
  d3.layout.cluster = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
    function cluster(d, i) {
      var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
      d3_layout_hierarchyVisitAfter(root, function(node) {
        var children = node.children;
        if (children && children.length) {
          node.x = d3_layout_clusterX(children);
          node.y = d3_layout_clusterY(children);
        } else {
          node.x = previousNode ? x += separation(node, previousNode) : 0;
          node.y = 0;
          previousNode = node;
        }
      });
      var left = d3_layout_clusterLeft(root), right = d3_layout_clusterRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2;
      d3_layout_hierarchyVisitAfter(root, nodeSize ? function(node) {
        node.x = (node.x - root.x) * size[0];
        node.y = (root.y - node.y) * size[1];
      } : function(node) {
        node.x = (node.x - x0) / (x1 - x0) * size[0];
        node.y = (1 - (root.y ? node.y / root.y : 1)) * size[1];
      });
      return nodes;
    }
    cluster.separation = function(x) {
      if (!arguments.length) return separation;
      separation = x;
      return cluster;
    };
    cluster.size = function(x) {
      if (!arguments.length) return nodeSize ? null : size;
      nodeSize = (size = x) == null;
      return cluster;
    };
    cluster.nodeSize = function(x) {
      if (!arguments.length) return nodeSize ? size : null;
      nodeSize = (size = x) != null;
      return cluster;
    };
    return d3_layout_hierarchyRebind(cluster, hierarchy);
  };
  function d3_layout_clusterY(children) {
    return 1 + d3.max(children, function(child) {
      return child.y;
    });
  }
  function d3_layout_clusterX(children) {
    return children.reduce(function(x, child) {
      return x + child.x;
    }, 0) / children.length;
  }
  function d3_layout_clusterLeft(node) {
    var children = node.children;
    return children && children.length ? d3_layout_clusterLeft(children[0]) : node;
  }
  function d3_layout_clusterRight(node) {
    var children = node.children, n;
    return children && (n = children.length) ? d3_layout_clusterRight(children[n - 1]) : node;
  }
  d3.layout.treemap = function() {
    var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = "squarify", ratio = .5 * (1 + Math.sqrt(5));
    function scale(children, k) {
      var i = -1, n = children.length, child, area;
      while (++i < n) {
        area = (child = children[i]).value * (k < 0 ? 0 : k);
        child.area = isNaN(area) || area <= 0 ? 0 : area;
      }
    }
    function squarify(node) {
      var children = node.children;
      if (children && children.length) {
        var rect = pad(node), row = [], remaining = children.slice(), child, best = Infinity, score, u = mode === "slice" ? rect.dx : mode === "dice" ? rect.dy : mode === "slice-dice" ? node.depth & 1 ? rect.dy : rect.dx : Math.min(rect.dx, rect.dy), n;
        scale(remaining, rect.dx * rect.dy / node.value);
        row.area = 0;
        while ((n = remaining.length) > 0) {
          row.push(child = remaining[n - 1]);
          row.area += child.area;
          if (mode !== "squarify" || (score = worst(row, u)) <= best) {
            remaining.pop();
            best = score;
          } else {
            row.area -= row.pop().area;
            position(row, u, rect, false);
            u = Math.min(rect.dx, rect.dy);
            row.length = row.area = 0;
            best = Infinity;
          }
        }
        if (row.length) {
          position(row, u, rect, true);
          row.length = row.area = 0;
        }
        children.forEach(squarify);
      }
    }
    function stickify(node) {
      var children = node.children;
      if (children && children.length) {
        var rect = pad(node), remaining = children.slice(), child, row = [];
        scale(remaining, rect.dx * rect.dy / node.value);
        row.area = 0;
        while (child = remaining.pop()) {
          row.push(child);
          row.area += child.area;
          if (child.z != null) {
            position(row, child.z ? rect.dx : rect.dy, rect, !remaining.length);
            row.length = row.area = 0;
          }
        }
        children.forEach(stickify);
      }
    }
    function worst(row, u) {
      var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length;
      while (++i < n) {
        if (!(r = row[i].area)) continue;
        if (r < rmin) rmin = r;
        if (r > rmax) rmax = r;
      }
      s *= s;
      u *= u;
      return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity;
    }
    function position(row, u, rect, flush) {
      var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
      if (u == rect.dx) {
        if (flush || v > rect.dy) v = rect.dy;
        while (++i < n) {
          o = row[i];
          o.x = x;
          o.y = y;
          o.dy = v;
          x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);
        }
        o.z = true;
        o.dx += rect.x + rect.dx - x;
        rect.y += v;
        rect.dy -= v;
      } else {
        if (flush || v > rect.dx) v = rect.dx;
        while (++i < n) {
          o = row[i];
          o.x = x;
          o.y = y;
          o.dx = v;
          y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);
        }
        o.z = false;
        o.dy += rect.y + rect.dy - y;
        rect.x += v;
        rect.dx -= v;
      }
    }
    function treemap(d) {
      var nodes = stickies || hierarchy(d), root = nodes[0];
      root.x = root.y = 0;
      if (root.value) root.dx = size[0], root.dy = size[1]; else root.dx = root.dy = 0;
      if (stickies) hierarchy.revalue(root);
      scale([ root ], root.dx * root.dy / root.value);
      (stickies ? stickify : squarify)(root);
      if (sticky) stickies = nodes;
      return nodes;
    }
    treemap.size = function(x) {
      if (!arguments.length) return size;
      size = x;
      return treemap;
    };
    treemap.padding = function(x) {
      if (!arguments.length) return padding;
      function padFunction(node) {
        var p = x.call(treemap, node, node.depth);
        return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === "number" ? [ p, p, p, p ] : p);
      }
      function padConstant(node) {
        return d3_layout_treemapPad(node, x);
      }
      var type;
      pad = (padding = x) == null ? d3_layout_treemapPadNull : (type = typeof x) === "function" ? padFunction : type === "number" ? (x = [ x, x, x, x ], 
      padConstant) : padConstant;
      return treemap;
    };
    treemap.round = function(x) {
      if (!arguments.length) return round != Number;
      round = x ? Math.round : Number;
      return treemap;
    };
    treemap.sticky = function(x) {
      if (!arguments.length) return sticky;
      sticky = x;
      stickies = null;
      return treemap;
    };
    treemap.ratio = function(x) {
      if (!arguments.length) return ratio;
      ratio = x;
      return treemap;
    };
    treemap.mode = function(x) {
      if (!arguments.length) return mode;
      mode = x + "";
      return treemap;
    };
    return d3_layout_hierarchyRebind(treemap, hierarchy);
  };
  function d3_layout_treemapPadNull(node) {
    return {
      x: node.x,
      y: node.y,
      dx: node.dx,
      dy: node.dy
    };
  }
  function d3_layout_treemapPad(node, padding) {
    var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2];
    if (dx < 0) {
      x += dx / 2;
      dx = 0;
    }
    if (dy < 0) {
      y += dy / 2;
      dy = 0;
    }
    return {
      x: x,
      y: y,
      dx: dx,
      dy: dy
    };
  }
  d3.random = {
    normal: function(µ, σ) {
      var n = arguments.length;
      if (n < 2) σ = 1;
      if (n < 1) µ = 0;
      return function() {
        var x, y, r;
        do {
          x = Math.random() * 2 - 1;
          y = Math.random() * 2 - 1;
          r = x * x + y * y;
        } while (!r || r > 1);
        return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);
      };
    },
    logNormal: function() {
      var random = d3.random.normal.apply(d3, arguments);
      return function() {
        return Math.exp(random());
      };
    },
    bates: function(m) {
      var random = d3.random.irwinHall(m);
      return function() {
        return random() / m;
      };
    },
    irwinHall: function(m) {
      return function() {
        for (var s = 0, j = 0; j < m; j++) s += Math.random();
        return s;
      };
    }
  };
  d3.scale = {};
  function d3_scaleExtent(domain) {
    var start = domain[0], stop = domain[domain.length - 1];
    return start < stop ? [ start, stop ] : [ stop, start ];
  }
  function d3_scaleRange(scale) {
    return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());
  }
  function d3_scale_bilinear(domain, range, uninterpolate, interpolate) {
    var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]);
    return function(x) {
      return i(u(x));
    };
  }
  function d3_scale_nice(domain, nice) {
    var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx;
    if (x1 < x0) {
      dx = i0, i0 = i1, i1 = dx;
      dx = x0, x0 = x1, x1 = dx;
    }
    domain[i0] = nice.floor(x0);
    domain[i1] = nice.ceil(x1);
    return domain;
  }
  function d3_scale_niceStep(step) {
    return step ? {
      floor: function(x) {
        return Math.floor(x / step) * step;
      },
      ceil: function(x) {
        return Math.ceil(x / step) * step;
      }
    } : d3_scale_niceIdentity;
  }
  var d3_scale_niceIdentity = {
    floor: d3_identity,
    ceil: d3_identity
  };
  function d3_scale_polylinear(domain, range, uninterpolate, interpolate) {
    var u = [], i = [], j = 0, k = Math.min(domain.length, range.length) - 1;
    if (domain[k] < domain[0]) {
      domain = domain.slice().reverse();
      range = range.slice().reverse();
    }
    while (++j <= k) {
      u.push(uninterpolate(domain[j - 1], domain[j]));
      i.push(interpolate(range[j - 1], range[j]));
    }
    return function(x) {
      var j = d3.bisect(domain, x, 1, k) - 1;
      return i[j](u[j](x));
    };
  }
  d3.scale.linear = function() {
    return d3_scale_linear([ 0, 1 ], [ 0, 1 ], d3_interpolate, false);
  };
  function d3_scale_linear(domain, range, interpolate, clamp) {
    var output, input;
    function rescale() {
      var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
      output = linear(domain, range, uninterpolate, interpolate);
      input = linear(range, domain, uninterpolate, d3_interpolate);
      return scale;
    }
    function scale(x) {
      return output(x);
    }
    scale.invert = function(y) {
      return input(y);
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(Number);
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.rangeRound = function(x) {
      return scale.range(x).interpolate(d3_interpolateRound);
    };
    scale.clamp = function(x) {
      if (!arguments.length) return clamp;
      clamp = x;
      return rescale();
    };
    scale.interpolate = function(x) {
      if (!arguments.length) return interpolate;
      interpolate = x;
      return rescale();
    };
    scale.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    scale.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    scale.nice = function(m) {
      d3_scale_linearNice(domain, m);
      return rescale();
    };
    scale.copy = function() {
      return d3_scale_linear(domain, range, interpolate, clamp);
    };
    return rescale();
  }
  function d3_scale_linearRebind(scale, linear) {
    return d3.rebind(scale, linear, "range", "rangeRound", "interpolate", "clamp");
  }
  function d3_scale_linearNice(domain, m) {
    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));
    d3_scale_nice(domain, d3_scale_niceStep(d3_scale_linearTickRange(domain, m)[2]));
    return domain;
  }
  function d3_scale_linearTickRange(domain, m) {
    if (m == null) m = 10;
    var extent = d3_scaleExtent(domain), span = extent[1] - extent[0], step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)), err = m / span * step;
    if (err <= .15) step *= 10; else if (err <= .35) step *= 5; else if (err <= .75) step *= 2;
    extent[0] = Math.ceil(extent[0] / step) * step;
    extent[1] = Math.floor(extent[1] / step) * step + step * .5;
    extent[2] = step;
    return extent;
  }
  function d3_scale_linearTicks(domain, m) {
    return d3.range.apply(d3, d3_scale_linearTickRange(domain, m));
  }
  function d3_scale_linearTickFormat(domain, m, format) {
    var range = d3_scale_linearTickRange(domain, m);
    if (format) {
      var match = d3_format_re.exec(format);
      match.shift();
      if (match[8] === "s") {
        var prefix = d3.formatPrefix(Math.max(abs(range[0]), abs(range[1])));
        if (!match[7]) match[7] = "." + d3_scale_linearPrecision(prefix.scale(range[2]));
        match[8] = "f";
        format = d3.format(match.join(""));
        return function(d) {
          return format(prefix.scale(d)) + prefix.symbol;
        };
      }
      if (!match[7]) match[7] = "." + d3_scale_linearFormatPrecision(match[8], range);
      format = match.join("");
    } else {
      format = ",." + d3_scale_linearPrecision(range[2]) + "f";
    }
    return d3.format(format);
  }
  var d3_scale_linearFormatSignificant = {
    s: 1,
    g: 1,
    p: 1,
    r: 1,
    e: 1
  };
  function d3_scale_linearPrecision(value) {
    return -Math.floor(Math.log(value) / Math.LN10 + .01);
  }
  function d3_scale_linearFormatPrecision(type, range) {
    var p = d3_scale_linearPrecision(range[2]);
    return type in d3_scale_linearFormatSignificant ? Math.abs(p - d3_scale_linearPrecision(Math.max(abs(range[0]), abs(range[1])))) + +(type !== "e") : p - (type === "%") * 2;
  }
  d3.scale.log = function() {
    return d3_scale_log(d3.scale.linear().domain([ 0, 1 ]), 10, true, [ 1, 10 ]);
  };
  function d3_scale_log(linear, base, positive, domain) {
    function log(x) {
      return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
    }
    function pow(x) {
      return positive ? Math.pow(base, x) : -Math.pow(base, -x);
    }
    function scale(x) {
      return linear(log(x));
    }
    scale.invert = function(x) {
      return pow(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      positive = x[0] >= 0;
      linear.domain((domain = x.map(Number)).map(log));
      return scale;
    };
    scale.base = function(_) {
      if (!arguments.length) return base;
      base = +_;
      linear.domain(domain.map(log));
      return scale;
    };
    scale.nice = function() {
      var niced = d3_scale_nice(domain.map(log), positive ? Math : d3_scale_logNiceNegative);
      linear.domain(niced);
      domain = niced.map(pow);
      return scale;
    };
    scale.ticks = function() {
      var extent = d3_scaleExtent(domain), ticks = [], u = extent[0], v = extent[1], i = Math.floor(log(u)), j = Math.ceil(log(v)), n = base % 1 ? 2 : base;
      if (isFinite(j - i)) {
        if (positive) {
          for (;i < j; i++) for (var k = 1; k < n; k++) ticks.push(pow(i) * k);
          ticks.push(pow(i));
        } else {
          ticks.push(pow(i));
          for (;i++ < j; ) for (var k = n - 1; k > 0; k--) ticks.push(pow(i) * k);
        }
        for (i = 0; ticks[i] < u; i++) {}
        for (j = ticks.length; ticks[j - 1] > v; j--) {}
        ticks = ticks.slice(i, j);
      }
      return ticks;
    };
    scale.tickFormat = function(n, format) {
      if (!arguments.length) return d3_scale_logFormat;
      if (arguments.length < 2) format = d3_scale_logFormat; else if (typeof format !== "function") format = d3.format(format);
      var k = Math.max(1, base * n / scale.ticks().length);
      return function(d) {
        var i = d / pow(Math.round(log(d)));
        if (i * base < base - .5) i *= base;
        return i <= k ? format(d) : "";
      };
    };
    scale.copy = function() {
      return d3_scale_log(linear.copy(), base, positive, domain);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  var d3_scale_logFormat = d3.format(".0e"), d3_scale_logNiceNegative = {
    floor: function(x) {
      return -Math.ceil(-x);
    },
    ceil: function(x) {
      return -Math.floor(-x);
    }
  };
  d3.scale.pow = function() {
    return d3_scale_pow(d3.scale.linear(), 1, [ 0, 1 ]);
  };
  function d3_scale_pow(linear, exponent, domain) {
    var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
    function scale(x) {
      return linear(powp(x));
    }
    scale.invert = function(x) {
      return powb(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      linear.domain((domain = x.map(Number)).map(powp));
      return scale;
    };
    scale.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    scale.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    scale.nice = function(m) {
      return scale.domain(d3_scale_linearNice(domain, m));
    };
    scale.exponent = function(x) {
      if (!arguments.length) return exponent;
      powp = d3_scale_powPow(exponent = x);
      powb = d3_scale_powPow(1 / exponent);
      linear.domain(domain.map(powp));
      return scale;
    };
    scale.copy = function() {
      return d3_scale_pow(linear.copy(), exponent, domain);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  function d3_scale_powPow(e) {
    return function(x) {
      return x < 0 ? -Math.pow(-x, e) : Math.pow(x, e);
    };
  }
  d3.scale.sqrt = function() {
    return d3.scale.pow().exponent(.5);
  };
  d3.scale.ordinal = function() {
    return d3_scale_ordinal([], {
      t: "range",
      a: [ [] ]
    });
  };
  function d3_scale_ordinal(domain, ranger) {
    var index, range, rangeBand;
    function scale(x) {
      return range[((index.get(x) || (ranger.t === "range" ? index.set(x, domain.push(x)) : NaN)) - 1) % range.length];
    }
    function steps(start, step) {
      return d3.range(domain.length).map(function(i) {
        return start + step * i;
      });
    }
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = [];
      index = new d3_Map();
      var i = -1, n = x.length, xi;
      while (++i < n) if (!index.has(xi = x[i])) index.set(xi, domain.push(xi));
      return scale[ranger.t].apply(scale, ranger.a);
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      rangeBand = 0;
      ranger = {
        t: "range",
        a: arguments
      };
      return scale;
    };
    scale.rangePoints = function(x, padding) {
      if (arguments.length < 2) padding = 0;
      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = (start + stop) / 2, 
      0) : (stop - start) / (domain.length - 1 + padding);
      range = steps(start + step * padding / 2, step);
      rangeBand = 0;
      ranger = {
        t: "rangePoints",
        a: arguments
      };
      return scale;
    };
    scale.rangeRoundPoints = function(x, padding) {
      if (arguments.length < 2) padding = 0;
      var start = x[0], stop = x[1], step = domain.length < 2 ? (start = stop = Math.round((start + stop) / 2), 
      0) : (stop - start) / (domain.length - 1 + padding) | 0;
      range = steps(start + Math.round(step * padding / 2 + (stop - start - (domain.length - 1 + padding) * step) / 2), step);
      rangeBand = 0;
      ranger = {
        t: "rangeRoundPoints",
        a: arguments
      };
      return scale;
    };
    scale.rangeBands = function(x, padding, outerPadding) {
      if (arguments.length < 2) padding = 0;
      if (arguments.length < 3) outerPadding = padding;
      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = (stop - start) / (domain.length - padding + 2 * outerPadding);
      range = steps(start + step * outerPadding, step);
      if (reverse) range.reverse();
      rangeBand = step * (1 - padding);
      ranger = {
        t: "rangeBands",
        a: arguments
      };
      return scale;
    };
    scale.rangeRoundBands = function(x, padding, outerPadding) {
      if (arguments.length < 2) padding = 0;
      if (arguments.length < 3) outerPadding = padding;
      var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = Math.floor((stop - start) / (domain.length - padding + 2 * outerPadding));
      range = steps(start + Math.round((stop - start - (domain.length - padding) * step) / 2), step);
      if (reverse) range.reverse();
      rangeBand = Math.round(step * (1 - padding));
      ranger = {
        t: "rangeRoundBands",
        a: arguments
      };
      return scale;
    };
    scale.rangeBand = function() {
      return rangeBand;
    };
    scale.rangeExtent = function() {
      return d3_scaleExtent(ranger.a[0]);
    };
    scale.copy = function() {
      return d3_scale_ordinal(domain, ranger);
    };
    return scale.domain(domain);
  }
  d3.scale.category10 = function() {
    return d3.scale.ordinal().range(d3_category10);
  };
  d3.scale.category20 = function() {
    return d3.scale.ordinal().range(d3_category20);
  };
  d3.scale.category20b = function() {
    return d3.scale.ordinal().range(d3_category20b);
  };
  d3.scale.category20c = function() {
    return d3.scale.ordinal().range(d3_category20c);
  };
  var d3_category10 = [ 2062260, 16744206, 2924588, 14034728, 9725885, 9197131, 14907330, 8355711, 12369186, 1556175 ].map(d3_rgbString);
  var d3_category20 = [ 2062260, 11454440, 16744206, 16759672, 2924588, 10018698, 14034728, 16750742, 9725885, 12955861, 9197131, 12885140, 14907330, 16234194, 8355711, 13092807, 12369186, 14408589, 1556175, 10410725 ].map(d3_rgbString);
  var d3_category20b = [ 3750777, 5395619, 7040719, 10264286, 6519097, 9216594, 11915115, 13556636, 9202993, 12426809, 15186514, 15190932, 8666169, 11356490, 14049643, 15177372, 8077683, 10834324, 13528509, 14589654 ].map(d3_rgbString);
  var d3_category20c = [ 3244733, 7057110, 10406625, 13032431, 15095053, 16616764, 16625259, 16634018, 3253076, 7652470, 10607003, 13101504, 7695281, 10394312, 12369372, 14342891, 6513507, 9868950, 12434877, 14277081 ].map(d3_rgbString);
  d3.scale.quantile = function() {
    return d3_scale_quantile([], []);
  };
  function d3_scale_quantile(domain, range) {
    var thresholds;
    function rescale() {
      var k = 0, q = range.length;
      thresholds = [];
      while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q);
      return scale;
    }
    function scale(x) {
      if (!isNaN(x = +x)) return range[d3.bisect(thresholds, x)];
    }
    scale.domain = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(d3_number).filter(d3_numeric).sort(d3_ascending);
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.quantiles = function() {
      return thresholds;
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      return y < 0 ? [ NaN, NaN ] : [ y > 0 ? thresholds[y - 1] : domain[0], y < thresholds.length ? thresholds[y] : domain[domain.length - 1] ];
    };
    scale.copy = function() {
      return d3_scale_quantile(domain, range);
    };
    return rescale();
  }
  d3.scale.quantize = function() {
    return d3_scale_quantize(0, 1, [ 0, 1 ]);
  };
  function d3_scale_quantize(x0, x1, range) {
    var kx, i;
    function scale(x) {
      return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))];
    }
    function rescale() {
      kx = range.length / (x1 - x0);
      i = range.length - 1;
      return scale;
    }
    scale.domain = function(x) {
      if (!arguments.length) return [ x0, x1 ];
      x0 = +x[0];
      x1 = +x[x.length - 1];
      return rescale();
    };
    scale.range = function(x) {
      if (!arguments.length) return range;
      range = x;
      return rescale();
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      y = y < 0 ? NaN : y / kx + x0;
      return [ y, y + 1 / kx ];
    };
    scale.copy = function() {
      return d3_scale_quantize(x0, x1, range);
    };
    return rescale();
  }
  d3.scale.threshold = function() {
    return d3_scale_threshold([ .5 ], [ 0, 1 ]);
  };
  function d3_scale_threshold(domain, range) {
    function scale(x) {
      if (x <= x) return range[d3.bisect(domain, x)];
    }
    scale.domain = function(_) {
      if (!arguments.length) return domain;
      domain = _;
      return scale;
    };
    scale.range = function(_) {
      if (!arguments.length) return range;
      range = _;
      return scale;
    };
    scale.invertExtent = function(y) {
      y = range.indexOf(y);
      return [ domain[y - 1], domain[y] ];
    };
    scale.copy = function() {
      return d3_scale_threshold(domain, range);
    };
    return scale;
  }
  d3.scale.identity = function() {
    return d3_scale_identity([ 0, 1 ]);
  };
  function d3_scale_identity(domain) {
    function identity(x) {
      return +x;
    }
    identity.invert = identity;
    identity.domain = identity.range = function(x) {
      if (!arguments.length) return domain;
      domain = x.map(identity);
      return identity;
    };
    identity.ticks = function(m) {
      return d3_scale_linearTicks(domain, m);
    };
    identity.tickFormat = function(m, format) {
      return d3_scale_linearTickFormat(domain, m, format);
    };
    identity.copy = function() {
      return d3_scale_identity(domain);
    };
    return identity;
  }
  d3.svg = {};
  function d3_zero() {
    return 0;
  }
  d3.svg.arc = function() {
    var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, cornerRadius = d3_zero, padRadius = d3_svg_arcAuto, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle, padAngle = d3_svg_arcPadAngle;
    function arc() {
      var r0 = Math.max(0, +innerRadius.apply(this, arguments)), r1 = Math.max(0, +outerRadius.apply(this, arguments)), a0 = startAngle.apply(this, arguments) - halfπ, a1 = endAngle.apply(this, arguments) - halfπ, da = Math.abs(a1 - a0), cw = a0 > a1 ? 0 : 1;
      if (r1 < r0) rc = r1, r1 = r0, r0 = rc;
      if (da >= τε) return circleSegment(r1, cw) + (r0 ? circleSegment(r0, 1 - cw) : "") + "Z";
      var rc, cr, rp, ap, p0 = 0, p1 = 0, x0, y0, x1, y1, x2, y2, x3, y3, path = [];
      if (ap = (+padAngle.apply(this, arguments) || 0) / 2) {
        rp = padRadius === d3_svg_arcAuto ? Math.sqrt(r0 * r0 + r1 * r1) : +padRadius.apply(this, arguments);
        if (!cw) p1 *= -1;
        if (r1) p1 = d3_asin(rp / r1 * Math.sin(ap));
        if (r0) p0 = d3_asin(rp / r0 * Math.sin(ap));
      }
      if (r1) {
        x0 = r1 * Math.cos(a0 + p1);
        y0 = r1 * Math.sin(a0 + p1);
        x1 = r1 * Math.cos(a1 - p1);
        y1 = r1 * Math.sin(a1 - p1);
        var l1 = Math.abs(a1 - a0 - 2 * p1) <= π ? 0 : 1;
        if (p1 && d3_svg_arcSweep(x0, y0, x1, y1) === cw ^ l1) {
          var h1 = (a0 + a1) / 2;
          x0 = r1 * Math.cos(h1);
          y0 = r1 * Math.sin(h1);
          x1 = y1 = null;
        }
      } else {
        x0 = y0 = 0;
      }
      if (r0) {
        x2 = r0 * Math.cos(a1 - p0);
        y2 = r0 * Math.sin(a1 - p0);
        x3 = r0 * Math.cos(a0 + p0);
        y3 = r0 * Math.sin(a0 + p0);
        var l0 = Math.abs(a0 - a1 + 2 * p0) <= π ? 0 : 1;
        if (p0 && d3_svg_arcSweep(x2, y2, x3, y3) === 1 - cw ^ l0) {
          var h0 = (a0 + a1) / 2;
          x2 = r0 * Math.cos(h0);
          y2 = r0 * Math.sin(h0);
          x3 = y3 = null;
        }
      } else {
        x2 = y2 = 0;
      }
      if (da > ε && (rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments))) > .001) {
        cr = r0 < r1 ^ cw ? 0 : 1;
        var rc1 = rc, rc0 = rc;
        if (da < π) {
          var oc = x3 == null ? [ x2, y2 ] : x1 == null ? [ x0, y0 ] : d3_geom_polygonIntersect([ x0, y0 ], [ x3, y3 ], [ x1, y1 ], [ x2, y2 ]), ax = x0 - oc[0], ay = y0 - oc[1], bx = x1 - oc[0], by = y1 - oc[1], kc = 1 / Math.sin(Math.acos((ax * bx + ay * by) / (Math.sqrt(ax * ax + ay * ay) * Math.sqrt(bx * bx + by * by))) / 2), lc = Math.sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
          rc0 = Math.min(rc, (r0 - lc) / (kc - 1));
          rc1 = Math.min(rc, (r1 - lc) / (kc + 1));
        }
        if (x1 != null) {
          var t30 = d3_svg_arcCornerTangents(x3 == null ? [ x2, y2 ] : [ x3, y3 ], [ x0, y0 ], r1, rc1, cw), t12 = d3_svg_arcCornerTangents([ x1, y1 ], [ x2, y2 ], r1, rc1, cw);
          if (rc === rc1) {
            path.push("M", t30[0], "A", rc1, ",", rc1, " 0 0,", cr, " ", t30[1], "A", r1, ",", r1, " 0 ", 1 - cw ^ d3_svg_arcSweep(t30[1][0], t30[1][1], t12[1][0], t12[1][1]), ",", cw, " ", t12[1], "A", rc1, ",", rc1, " 0 0,", cr, " ", t12[0]);
          } else {
            path.push("M", t30[0], "A", rc1, ",", rc1, " 0 1,", cr, " ", t12[0]);
          }
        } else {
          path.push("M", x0, ",", y0);
        }
        if (x3 != null) {
          var t03 = d3_svg_arcCornerTangents([ x0, y0 ], [ x3, y3 ], r0, -rc0, cw), t21 = d3_svg_arcCornerTangents([ x2, y2 ], x1 == null ? [ x0, y0 ] : [ x1, y1 ], r0, -rc0, cw);
          if (rc === rc0) {
            path.push("L", t21[0], "A", rc0, ",", rc0, " 0 0,", cr, " ", t21[1], "A", r0, ",", r0, " 0 ", cw ^ d3_svg_arcSweep(t21[1][0], t21[1][1], t03[1][0], t03[1][1]), ",", 1 - cw, " ", t03[1], "A", rc0, ",", rc0, " 0 0,", cr, " ", t03[0]);
          } else {
            path.push("L", t21[0], "A", rc0, ",", rc0, " 0 0,", cr, " ", t03[0]);
          }
        } else {
          path.push("L", x2, ",", y2);
        }
      } else {
        path.push("M", x0, ",", y0);
        if (x1 != null) path.push("A", r1, ",", r1, " 0 ", l1, ",", cw, " ", x1, ",", y1);
        path.push("L", x2, ",", y2);
        if (x3 != null) path.push("A", r0, ",", r0, " 0 ", l0, ",", 1 - cw, " ", x3, ",", y3);
      }
      path.push("Z");
      return path.join("");
    }
    function circleSegment(r1, cw) {
      return "M0," + r1 + "A" + r1 + "," + r1 + " 0 1," + cw + " 0," + -r1 + "A" + r1 + "," + r1 + " 0 1," + cw + " 0," + r1;
    }
    arc.innerRadius = function(v) {
      if (!arguments.length) return innerRadius;
      innerRadius = d3_functor(v);
      return arc;
    };
    arc.outerRadius = function(v) {
      if (!arguments.length) return outerRadius;
      outerRadius = d3_functor(v);
      return arc;
    };
    arc.cornerRadius = function(v) {
      if (!arguments.length) return cornerRadius;
      cornerRadius = d3_functor(v);
      return arc;
    };
    arc.padRadius = function(v) {
      if (!arguments.length) return padRadius;
      padRadius = v == d3_svg_arcAuto ? d3_svg_arcAuto : d3_functor(v);
      return arc;
    };
    arc.startAngle = function(v) {
      if (!arguments.length) return startAngle;
      startAngle = d3_functor(v);
      return arc;
    };
    arc.endAngle = function(v) {
      if (!arguments.length) return endAngle;
      endAngle = d3_functor(v);
      return arc;
    };
    arc.padAngle = function(v) {
      if (!arguments.length) return padAngle;
      padAngle = d3_functor(v);
      return arc;
    };
    arc.centroid = function() {
      var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - halfπ;
      return [ Math.cos(a) * r, Math.sin(a) * r ];
    };
    return arc;
  };
  var d3_svg_arcAuto = "auto";
  function d3_svg_arcInnerRadius(d) {
    return d.innerRadius;
  }
  function d3_svg_arcOuterRadius(d) {
    return d.outerRadius;
  }
  function d3_svg_arcStartAngle(d) {
    return d.startAngle;
  }
  function d3_svg_arcEndAngle(d) {
    return d.endAngle;
  }
  function d3_svg_arcPadAngle(d) {
    return d && d.padAngle;
  }
  function d3_svg_arcSweep(x0, y0, x1, y1) {
    return (x0 - x1) * y0 - (y0 - y1) * x0 > 0 ? 0 : 1;
  }
  function d3_svg_arcCornerTangents(p0, p1, r1, rc, cw) {
    var x01 = p0[0] - p1[0], y01 = p0[1] - p1[1], lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x1 = p0[0] + ox, y1 = p0[1] + oy, x2 = p1[0] + ox, y2 = p1[1] + oy, x3 = (x1 + x2) / 2, y3 = (y1 + y2) / 2, dx = x2 - x1, dy = y2 - y1, d2 = dx * dx + dy * dy, r = r1 - rc, D = x1 * y2 - x2 * y1, d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x3, dy0 = cy0 - y3, dx1 = cx1 - x3, dy1 = cy1 - y3;
    if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
    return [ [ cx0 - ox, cy0 - oy ], [ cx0 * r1 / r, cy0 * r1 / r ] ];
  }
  function d3_svg_line(projection) {
    var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;
    function line(data) {
      var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
      function segment() {
        segments.push("M", interpolate(projection(points), tension));
      }
      while (++i < n) {
        if (defined.call(this, d = data[i], i)) {
          points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]);
        } else if (points.length) {
          segment();
          points = [];
        }
      }
      if (points.length) segment();
      return segments.length ? segments.join("") : null;
    }
    line.x = function(_) {
      if (!arguments.length) return x;
      x = _;
      return line;
    };
    line.y = function(_) {
      if (!arguments.length) return y;
      y = _;
      return line;
    };
    line.defined = function(_) {
      if (!arguments.length) return defined;
      defined = _;
      return line;
    };
    line.interpolate = function(_) {
      if (!arguments.length) return interpolateKey;
      if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
      return line;
    };
    line.tension = function(_) {
      if (!arguments.length) return tension;
      tension = _;
      return line;
    };
    return line;
  }
  d3.svg.line = function() {
    return d3_svg_line(d3_identity);
  };
  var d3_svg_lineInterpolators = d3.map({
    linear: d3_svg_lineLinear,
    "linear-closed": d3_svg_lineLinearClosed,
    step: d3_svg_lineStep,
    "step-before": d3_svg_lineStepBefore,
    "step-after": d3_svg_lineStepAfter,
    basis: d3_svg_lineBasis,
    "basis-open": d3_svg_lineBasisOpen,
    "basis-closed": d3_svg_lineBasisClosed,
    bundle: d3_svg_lineBundle,
    cardinal: d3_svg_lineCardinal,
    "cardinal-open": d3_svg_lineCardinalOpen,
    "cardinal-closed": d3_svg_lineCardinalClosed,
    monotone: d3_svg_lineMonotone
  });
  d3_svg_lineInterpolators.forEach(function(key, value) {
    value.key = key;
    value.closed = /-closed$/.test(key);
  });
  function d3_svg_lineLinear(points) {
    return points.length > 1 ? points.join("L") : points + "Z";
  }
  function d3_svg_lineLinearClosed(points) {
    return points.join("L") + "Z";
  }
  function d3_svg_lineStep(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("H", (p[0] + (p = points[i])[0]) / 2, "V", p[1]);
    if (n > 1) path.push("H", p[0]);
    return path.join("");
  }
  function d3_svg_lineStepBefore(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]);
    return path.join("");
  }
  function d3_svg_lineStepAfter(points) {
    var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ];
    while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]);
    return path.join("");
  }
  function d3_svg_lineCardinalOpen(points, tension) {
    return points.length < 4 ? d3_svg_lineLinear(points) : points[1] + d3_svg_lineHermite(points.slice(1, -1), d3_svg_lineCardinalTangents(points, tension));
  }
  function d3_svg_lineCardinalClosed(points, tension) {
    return points.length < 3 ? d3_svg_lineLinearClosed(points) : points[0] + d3_svg_lineHermite((points.push(points[0]), 
    points), d3_svg_lineCardinalTangents([ points[points.length - 2] ].concat(points, [ points[1] ]), tension));
  }
  function d3_svg_lineCardinal(points, tension) {
    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineCardinalTangents(points, tension));
  }
  function d3_svg_lineHermite(points, tangents) {
    if (tangents.length < 1 || points.length != tangents.length && points.length != tangents.length + 2) {
      return d3_svg_lineLinear(points);
    }
    var quad = points.length != tangents.length, path = "", p0 = points[0], p = points[1], t0 = tangents[0], t = t0, pi = 1;
    if (quad) {
      path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3) + "," + p[0] + "," + p[1];
      p0 = points[1];
      pi = 2;
    }
    if (tangents.length > 1) {
      t = tangents[1];
      p = points[pi];
      pi++;
      path += "C" + (p0[0] + t0[0]) + "," + (p0[1] + t0[1]) + "," + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1];
      for (var i = 2; i < tangents.length; i++, pi++) {
        p = points[pi];
        t = tangents[i];
        path += "S" + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1];
      }
    }
    if (quad) {
      var lp = points[pi];
      path += "Q" + (p[0] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3) + "," + lp[0] + "," + lp[1];
    }
    return path;
  }
  function d3_svg_lineCardinalTangents(points, tension) {
    var tangents = [], a = (1 - tension) / 2, p0, p1 = points[0], p2 = points[1], i = 1, n = points.length;
    while (++i < n) {
      p0 = p1;
      p1 = p2;
      p2 = points[i];
      tangents.push([ a * (p2[0] - p0[0]), a * (p2[1] - p0[1]) ]);
    }
    return tangents;
  }
  function d3_svg_lineBasis(points) {
    if (points.length < 3) return d3_svg_lineLinear(points);
    var i = 1, n = points.length, pi = points[0], x0 = pi[0], y0 = pi[1], px = [ x0, x0, x0, (pi = points[1])[0] ], py = [ y0, y0, y0, pi[1] ], path = [ x0, ",", y0, "L", d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];
    points.push(points[n - 1]);
    while (++i <= n) {
      pi = points[i];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    points.pop();
    path.push("L", pi);
    return path.join("");
  }
  function d3_svg_lineBasisOpen(points) {
    if (points.length < 4) return d3_svg_lineLinear(points);
    var path = [], i = -1, n = points.length, pi, px = [ 0 ], py = [ 0 ];
    while (++i < 3) {
      pi = points[i];
      px.push(pi[0]);
      py.push(pi[1]);
    }
    path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3, px) + "," + d3_svg_lineDot4(d3_svg_lineBasisBezier3, py));
    --i;
    while (++i < n) {
      pi = points[i];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    return path.join("");
  }
  function d3_svg_lineBasisClosed(points) {
    var path, i = -1, n = points.length, m = n + 4, pi, px = [], py = [];
    while (++i < 4) {
      pi = points[i % n];
      px.push(pi[0]);
      py.push(pi[1]);
    }
    path = [ d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ];
    --i;
    while (++i < m) {
      pi = points[i % n];
      px.shift();
      px.push(pi[0]);
      py.shift();
      py.push(pi[1]);
      d3_svg_lineBasisBezier(path, px, py);
    }
    return path.join("");
  }
  function d3_svg_lineBundle(points, tension) {
    var n = points.length - 1;
    if (n) {
      var x0 = points[0][0], y0 = points[0][1], dx = points[n][0] - x0, dy = points[n][1] - y0, i = -1, p, t;
      while (++i <= n) {
        p = points[i];
        t = i / n;
        p[0] = tension * p[0] + (1 - tension) * (x0 + t * dx);
        p[1] = tension * p[1] + (1 - tension) * (y0 + t * dy);
      }
    }
    return d3_svg_lineBasis(points);
  }
  function d3_svg_lineDot4(a, b) {
    return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
  }
  var d3_svg_lineBasisBezier1 = [ 0, 2 / 3, 1 / 3, 0 ], d3_svg_lineBasisBezier2 = [ 0, 1 / 3, 2 / 3, 0 ], d3_svg_lineBasisBezier3 = [ 0, 1 / 6, 2 / 3, 1 / 6 ];
  function d3_svg_lineBasisBezier(path, x, y) {
    path.push("C", d3_svg_lineDot4(d3_svg_lineBasisBezier1, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier1, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, y));
  }
  function d3_svg_lineSlope(p0, p1) {
    return (p1[1] - p0[1]) / (p1[0] - p0[0]);
  }
  function d3_svg_lineFiniteDifferences(points) {
    var i = 0, j = points.length - 1, m = [], p0 = points[0], p1 = points[1], d = m[0] = d3_svg_lineSlope(p0, p1);
    while (++i < j) {
      m[i] = (d + (d = d3_svg_lineSlope(p0 = p1, p1 = points[i + 1]))) / 2;
    }
    m[i] = d;
    return m;
  }
  function d3_svg_lineMonotoneTangents(points) {
    var tangents = [], d, a, b, s, m = d3_svg_lineFiniteDifferences(points), i = -1, j = points.length - 1;
    while (++i < j) {
      d = d3_svg_lineSlope(points[i], points[i + 1]);
      if (abs(d) < ε) {
        m[i] = m[i + 1] = 0;
      } else {
        a = m[i] / d;
        b = m[i + 1] / d;
        s = a * a + b * b;
        if (s > 9) {
          s = d * 3 / Math.sqrt(s);
          m[i] = s * a;
          m[i + 1] = s * b;
        }
      }
    }
    i = -1;
    while (++i <= j) {
      s = (points[Math.min(j, i + 1)][0] - points[Math.max(0, i - 1)][0]) / (6 * (1 + m[i] * m[i]));
      tangents.push([ s || 0, m[i] * s || 0 ]);
    }
    return tangents;
  }
  function d3_svg_lineMonotone(points) {
    return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineMonotoneTangents(points));
  }
  d3.svg.line.radial = function() {
    var line = d3_svg_line(d3_svg_lineRadial);
    line.radius = line.x, delete line.x;
    line.angle = line.y, delete line.y;
    return line;
  };
  function d3_svg_lineRadial(points) {
    var point, i = -1, n = points.length, r, a;
    while (++i < n) {
      point = points[i];
      r = point[0];
      a = point[1] - halfπ;
      point[0] = r * Math.cos(a);
      point[1] = r * Math.sin(a);
    }
    return points;
  }
  function d3_svg_area(projection) {
    var x0 = d3_geom_pointX, x1 = d3_geom_pointX, y0 = 0, y1 = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = "L", tension = .7;
    function area(data) {
      var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() {
        return x;
      } : d3_functor(x1), fy1 = y0 === y1 ? function() {
        return y;
      } : d3_functor(y1), x, y;
      function segment() {
        segments.push("M", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), "Z");
      }
      while (++i < n) {
        if (defined.call(this, d = data[i], i)) {
          points0.push([ x = +fx0.call(this, d, i), y = +fy0.call(this, d, i) ]);
          points1.push([ +fx1.call(this, d, i), +fy1.call(this, d, i) ]);
        } else if (points0.length) {
          segment();
          points0 = [];
          points1 = [];
        }
      }
      if (points0.length) segment();
      return segments.length ? segments.join("") : null;
    }
    area.x = function(_) {
      if (!arguments.length) return x1;
      x0 = x1 = _;
      return area;
    };
    area.x0 = function(_) {
      if (!arguments.length) return x0;
      x0 = _;
      return area;
    };
    area.x1 = function(_) {
      if (!arguments.length) return x1;
      x1 = _;
      return area;
    };
    area.y = function(_) {
      if (!arguments.length) return y1;
      y0 = y1 = _;
      return area;
    };
    area.y0 = function(_) {
      if (!arguments.length) return y0;
      y0 = _;
      return area;
    };
    area.y1 = function(_) {
      if (!arguments.length) return y1;
      y1 = _;
      return area;
    };
    area.defined = function(_) {
      if (!arguments.length) return defined;
      defined = _;
      return area;
    };
    area.interpolate = function(_) {
      if (!arguments.length) return interpolateKey;
      if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key;
      interpolateReverse = interpolate.reverse || interpolate;
      L = interpolate.closed ? "M" : "L";
      return area;
    };
    area.tension = function(_) {
      if (!arguments.length) return tension;
      tension = _;
      return area;
    };
    return area;
  }
  d3_svg_lineStepBefore.reverse = d3_svg_lineStepAfter;
  d3_svg_lineStepAfter.reverse = d3_svg_lineStepBefore;
  d3.svg.area = function() {
    return d3_svg_area(d3_identity);
  };
  d3.svg.area.radial = function() {
    var area = d3_svg_area(d3_svg_lineRadial);
    area.radius = area.x, delete area.x;
    area.innerRadius = area.x0, delete area.x0;
    area.outerRadius = area.x1, delete area.x1;
    area.angle = area.y, delete area.y;
    area.startAngle = area.y0, delete area.y0;
    area.endAngle = area.y1, delete area.y1;
    return area;
  };
  d3.svg.chord = function() {
    var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
    function chord(d, i) {
      var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
      return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";
    }
    function subgroup(self, f, d, i) {
      var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) - halfπ, a1 = endAngle.call(self, subgroup, i) - halfπ;
      return {
        r: r,
        a0: a0,
        a1: a1,
        p0: [ r * Math.cos(a0), r * Math.sin(a0) ],
        p1: [ r * Math.cos(a1), r * Math.sin(a1) ]
      };
    }
    function equals(a, b) {
      return a.a0 == b.a0 && a.a1 == b.a1;
    }
    function arc(r, p, a) {
      return "A" + r + "," + r + " 0 " + +(a > π) + ",1 " + p;
    }
    function curve(r0, p0, r1, p1) {
      return "Q 0,0 " + p1;
    }
    chord.radius = function(v) {
      if (!arguments.length) return radius;
      radius = d3_functor(v);
      return chord;
    };
    chord.source = function(v) {
      if (!arguments.length) return source;
      source = d3_functor(v);
      return chord;
    };
    chord.target = function(v) {
      if (!arguments.length) return target;
      target = d3_functor(v);
      return chord;
    };
    chord.startAngle = function(v) {
      if (!arguments.length) return startAngle;
      startAngle = d3_functor(v);
      return chord;
    };
    chord.endAngle = function(v) {
      if (!arguments.length) return endAngle;
      endAngle = d3_functor(v);
      return chord;
    };
    return chord;
  };
  function d3_svg_chordRadius(d) {
    return d.radius;
  }
  d3.svg.diagonal = function() {
    var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
    function diagonal(d, i) {
      var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
        x: p0.x,
        y: m
      }, {
        x: p3.x,
        y: m
      }, p3 ];
      p = p.map(projection);
      return "M" + p[0] + "C" + p[1] + " " + p[2] + " " + p[3];
    }
    diagonal.source = function(x) {
      if (!arguments.length) return source;
      source = d3_functor(x);
      return diagonal;
    };
    diagonal.target = function(x) {
      if (!arguments.length) return target;
      target = d3_functor(x);
      return diagonal;
    };
    diagonal.projection = function(x) {
      if (!arguments.length) return projection;
      projection = x;
      return diagonal;
    };
    return diagonal;
  };
  function d3_svg_diagonalProjection(d) {
    return [ d.x, d.y ];
  }
  d3.svg.diagonal.radial = function() {
    var diagonal = d3.svg.diagonal(), projection = d3_svg_diagonalProjection, projection_ = diagonal.projection;
    diagonal.projection = function(x) {
      return arguments.length ? projection_(d3_svg_diagonalRadialProjection(projection = x)) : projection;
    };
    return diagonal;
  };
  function d3_svg_diagonalRadialProjection(projection) {
    return function() {
      var d = projection.apply(this, arguments), r = d[0], a = d[1] - halfπ;
      return [ r * Math.cos(a), r * Math.sin(a) ];
    };
  }
  d3.svg.symbol = function() {
    var type = d3_svg_symbolType, size = d3_svg_symbolSize;
    function symbol(d, i) {
      return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle)(size.call(this, d, i));
    }
    symbol.type = function(x) {
      if (!arguments.length) return type;
      type = d3_functor(x);
      return symbol;
    };
    symbol.size = function(x) {
      if (!arguments.length) return size;
      size = d3_functor(x);
      return symbol;
    };
    return symbol;
  };
  function d3_svg_symbolSize() {
    return 64;
  }
  function d3_svg_symbolType() {
    return "circle";
  }
  function d3_svg_symbolCircle(size) {
    var r = Math.sqrt(size / π);
    return "M0," + r + "A" + r + "," + r + " 0 1,1 0," + -r + "A" + r + "," + r + " 0 1,1 0," + r + "Z";
  }
  var d3_svg_symbols = d3.map({
    circle: d3_svg_symbolCircle,
    cross: function(size) {
      var r = Math.sqrt(size / 5) / 2;
      return "M" + -3 * r + "," + -r + "H" + -r + "V" + -3 * r + "H" + r + "V" + -r + "H" + 3 * r + "V" + r + "H" + r + "V" + 3 * r + "H" + -r + "V" + r + "H" + -3 * r + "Z";
    },
    diamond: function(size) {
      var ry = Math.sqrt(size / (2 * d3_svg_symbolTan30)), rx = ry * d3_svg_symbolTan30;
      return "M0," + -ry + "L" + rx + ",0" + " 0," + ry + " " + -rx + ",0" + "Z";
    },
    square: function(size) {
      var r = Math.sqrt(size) / 2;
      return "M" + -r + "," + -r + "L" + r + "," + -r + " " + r + "," + r + " " + -r + "," + r + "Z";
    },
    "triangle-down": function(size) {
      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;
      return "M0," + ry + "L" + rx + "," + -ry + " " + -rx + "," + -ry + "Z";
    },
    "triangle-up": function(size) {
      var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2;
      return "M0," + -ry + "L" + rx + "," + ry + " " + -rx + "," + ry + "Z";
    }
  });
  d3.svg.symbolTypes = d3_svg_symbols.keys();
  var d3_svg_symbolSqrt3 = Math.sqrt(3), d3_svg_symbolTan30 = Math.tan(30 * d3_radians);
  d3_selectionPrototype.transition = function(name) {
    var id = d3_transitionInheritId || ++d3_transitionId, ns = d3_transitionNamespace(name), subgroups = [], subgroup, node, transition = d3_transitionInherit || {
      time: Date.now(),
      ease: d3_ease_cubicInOut,
      delay: 0,
      duration: 250
    };
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) d3_transitionNode(node, i, ns, id, transition);
        subgroup.push(node);
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_selectionPrototype.interrupt = function(name) {
    return this.each(name == null ? d3_selection_interrupt : d3_selection_interruptNS(d3_transitionNamespace(name)));
  };
  var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace());
  function d3_selection_interruptNS(ns) {
    return function() {
      var lock, activeId, active;
      if ((lock = this[ns]) && (active = lock[activeId = lock.active])) {
        active.timer.c = null;
        active.timer.t = NaN;
        if (--lock.count) delete lock[activeId]; else delete this[ns];
        lock.active += .5;
        active.event && active.event.interrupt.call(this, this.__data__, active.index);
      }
    };
  }
  function d3_transition(groups, ns, id) {
    d3_subclass(groups, d3_transitionPrototype);
    groups.namespace = ns;
    groups.id = id;
    return groups;
  }
  var d3_transitionPrototype = [], d3_transitionId = 0, d3_transitionInheritId, d3_transitionInherit;
  d3_transitionPrototype.call = d3_selectionPrototype.call;
  d3_transitionPrototype.empty = d3_selectionPrototype.empty;
  d3_transitionPrototype.node = d3_selectionPrototype.node;
  d3_transitionPrototype.size = d3_selectionPrototype.size;
  d3.transition = function(selection, name) {
    return selection && selection.transition ? d3_transitionInheritId ? selection.transition(name) : selection : d3.selection().transition(selection);
  };
  d3.transition.prototype = d3_transitionPrototype;
  d3_transitionPrototype.select = function(selector) {
    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnode, node;
    selector = d3_selection_selector(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) {
          if ("__data__" in node) subnode.__data__ = node.__data__;
          d3_transitionNode(subnode, i, ns, id, node[ns][id]);
          subgroup.push(subnode);
        } else {
          subgroup.push(null);
        }
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_transitionPrototype.selectAll = function(selector) {
    var id = this.id, ns = this.namespace, subgroups = [], subgroup, subnodes, node, subnode, transition;
    selector = d3_selection_selectorAll(selector);
    for (var j = -1, m = this.length; ++j < m; ) {
      for (var group = this[j], i = -1, n = group.length; ++i < n; ) {
        if (node = group[i]) {
          transition = node[ns][id];
          subnodes = selector.call(node, node.__data__, i, j);
          subgroups.push(subgroup = []);
          for (var k = -1, o = subnodes.length; ++k < o; ) {
            if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition);
            subgroup.push(subnode);
          }
        }
      }
    }
    return d3_transition(subgroups, ns, id);
  };
  d3_transitionPrototype.filter = function(filter) {
    var subgroups = [], subgroup, group, node;
    if (typeof filter !== "function") filter = d3_selection_filter(filter);
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        if ((node = group[i]) && filter.call(node, node.__data__, i, j)) {
          subgroup.push(node);
        }
      }
    }
    return d3_transition(subgroups, this.namespace, this.id);
  };
  d3_transitionPrototype.tween = function(name, tween) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 2) return this.node()[ns][id].tween.get(name);
    return d3_selection_each(this, tween == null ? function(node) {
      node[ns][id].tween.remove(name);
    } : function(node) {
      node[ns][id].tween.set(name, tween);
    });
  };
  function d3_transition_tween(groups, name, value, tween) {
    var id = groups.id, ns = groups.namespace;
    return d3_selection_each(groups, typeof value === "function" ? function(node, i, j) {
      node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j)));
    } : (value = tween(value), function(node) {
      node[ns][id].tween.set(name, value);
    }));
  }
  d3_transitionPrototype.attr = function(nameNS, value) {
    if (arguments.length < 2) {
      for (value in nameNS) this.attr(value, nameNS[value]);
      return this;
    }
    var interpolate = nameNS == "transform" ? d3_interpolateTransform : d3_interpolate, name = d3.ns.qualify(nameNS);
    function attrNull() {
      this.removeAttribute(name);
    }
    function attrNullNS() {
      this.removeAttributeNS(name.space, name.local);
    }
    function attrTween(b) {
      return b == null ? attrNull : (b += "", function() {
        var a = this.getAttribute(name), i;
        return a !== b && (i = interpolate(a, b), function(t) {
          this.setAttribute(name, i(t));
        });
      });
    }
    function attrTweenNS(b) {
      return b == null ? attrNullNS : (b += "", function() {
        var a = this.getAttributeNS(name.space, name.local), i;
        return a !== b && (i = interpolate(a, b), function(t) {
          this.setAttributeNS(name.space, name.local, i(t));
        });
      });
    }
    return d3_transition_tween(this, "attr." + nameNS, value, name.local ? attrTweenNS : attrTween);
  };
  d3_transitionPrototype.attrTween = function(nameNS, tween) {
    var name = d3.ns.qualify(nameNS);
    function attrTween(d, i) {
      var f = tween.call(this, d, i, this.getAttribute(name));
      return f && function(t) {
        this.setAttribute(name, f(t));
      };
    }
    function attrTweenNS(d, i) {
      var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local));
      return f && function(t) {
        this.setAttributeNS(name.space, name.local, f(t));
      };
    }
    return this.tween("attr." + nameNS, name.local ? attrTweenNS : attrTween);
  };
  d3_transitionPrototype.style = function(name, value, priority) {
    var n = arguments.length;
    if (n < 3) {
      if (typeof name !== "string") {
        if (n < 2) value = "";
        for (priority in name) this.style(priority, name[priority], value);
        return this;
      }
      priority = "";
    }
    function styleNull() {
      this.style.removeProperty(name);
    }
    function styleString(b) {
      return b == null ? styleNull : (b += "", function() {
        var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i;
        return a !== b && (i = d3_interpolate(a, b), function(t) {
          this.style.setProperty(name, i(t), priority);
        });
      });
    }
    return d3_transition_tween(this, "style." + name, value, styleString);
  };
  d3_transitionPrototype.styleTween = function(name, tween, priority) {
    if (arguments.length < 3) priority = "";
    function styleTween(d, i) {
      var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name));
      return f && function(t) {
        this.style.setProperty(name, f(t), priority);
      };
    }
    return this.tween("style." + name, styleTween);
  };
  d3_transitionPrototype.text = function(value) {
    return d3_transition_tween(this, "text", value, d3_transition_text);
  };
  function d3_transition_text(b) {
    if (b == null) b = "";
    return function() {
      this.textContent = b;
    };
  }
  d3_transitionPrototype.remove = function() {
    var ns = this.namespace;
    return this.each("end.transition", function() {
      var p;
      if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this);
    });
  };
  d3_transitionPrototype.ease = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].ease;
    if (typeof value !== "function") value = d3.ease.apply(d3, arguments);
    return d3_selection_each(this, function(node) {
      node[ns][id].ease = value;
    });
  };
  d3_transitionPrototype.delay = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].delay;
    return d3_selection_each(this, typeof value === "function" ? function(node, i, j) {
      node[ns][id].delay = +value.call(node, node.__data__, i, j);
    } : (value = +value, function(node) {
      node[ns][id].delay = value;
    }));
  };
  d3_transitionPrototype.duration = function(value) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 1) return this.node()[ns][id].duration;
    return d3_selection_each(this, typeof value === "function" ? function(node, i, j) {
      node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j));
    } : (value = Math.max(1, value), function(node) {
      node[ns][id].duration = value;
    }));
  };
  d3_transitionPrototype.each = function(type, listener) {
    var id = this.id, ns = this.namespace;
    if (arguments.length < 2) {
      var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId;
      try {
        d3_transitionInheritId = id;
        d3_selection_each(this, function(node, i, j) {
          d3_transitionInherit = node[ns][id];
          type.call(node, node.__data__, i, j);
        });
      } finally {
        d3_transitionInherit = inherit;
        d3_transitionInheritId = inheritId;
      }
    } else {
      d3_selection_each(this, function(node) {
        var transition = node[ns][id];
        (transition.event || (transition.event = d3.dispatch("start", "end", "interrupt"))).on(type, listener);
      });
    }
    return this;
  };
  d3_transitionPrototype.transition = function() {
    var id0 = this.id, id1 = ++d3_transitionId, ns = this.namespace, subgroups = [], subgroup, group, node, transition;
    for (var j = 0, m = this.length; j < m; j++) {
      subgroups.push(subgroup = []);
      for (var group = this[j], i = 0, n = group.length; i < n; i++) {
        if (node = group[i]) {
          transition = node[ns][id0];
          d3_transitionNode(node, i, ns, id1, {
            time: transition.time,
            ease: transition.ease,
            delay: transition.delay + transition.duration,
            duration: transition.duration
          });
        }
        subgroup.push(node);
      }
    }
    return d3_transition(subgroups, ns, id1);
  };
  function d3_transitionNamespace(name) {
    return name == null ? "__transition__" : "__transition_" + name + "__";
  }
  function d3_transitionNode(node, i, ns, id, inherit) {
    var lock = node[ns] || (node[ns] = {
      active: 0,
      count: 0
    }), transition = lock[id], time, timer, duration, ease, tweens;
    function schedule(elapsed) {
      var delay = transition.delay;
      timer.t = delay + time;
      if (delay <= elapsed) return start(elapsed - delay);
      timer.c = start;
    }
    function start(elapsed) {
      var activeId = lock.active, active = lock[activeId];
      if (active) {
        active.timer.c = null;
        active.timer.t = NaN;
        --lock.count;
        delete lock[activeId];
        active.event && active.event.interrupt.call(node, node.__data__, active.index);
      }
      for (var cancelId in lock) {
        if (+cancelId < id) {
          var cancel = lock[cancelId];
          cancel.timer.c = null;
          cancel.timer.t = NaN;
          --lock.count;
          delete lock[cancelId];
        }
      }
      timer.c = tick;
      d3_timer(function() {
        if (timer.c && tick(elapsed || 1)) {
          timer.c = null;
          timer.t = NaN;
        }
        return 1;
      }, 0, time);
      lock.active = id;
      transition.event && transition.event.start.call(node, node.__data__, i);
      tweens = [];
      transition.tween.forEach(function(key, value) {
        if (value = value.call(node, node.__data__, i)) {
          tweens.push(value);
        }
      });
      ease = transition.ease;
      duration = transition.duration;
    }
    function tick(elapsed) {
      var t = elapsed / duration, e = ease(t), n = tweens.length;
      while (n > 0) {
        tweens[--n].call(node, e);
      }
      if (t >= 1) {
        transition.event && transition.event.end.call(node, node.__data__, i);
        if (--lock.count) delete lock[id]; else delete node[ns];
        return 1;
      }
    }
    if (!transition) {
      time = inherit.time;
      timer = d3_timer(schedule, 0, time);
      transition = lock[id] = {
        tween: new d3_Map(),
        time: time,
        timer: timer,
        delay: inherit.delay,
        duration: inherit.duration,
        ease: inherit.ease,
        index: i
      };
      inherit = null;
      ++lock.count;
    }
  }
  d3.svg.axis = function() {
    var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, innerTickSize = 6, outerTickSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_;
    function axis(g) {
      g.each(function() {
        var g = d3.select(this);
        var scale0 = this.__chart__ || scale, scale1 = this.__chart__ = scale.copy();
        var ticks = tickValues == null ? scale1.ticks ? scale1.ticks.apply(scale1, tickArguments_) : scale1.domain() : tickValues, tickFormat = tickFormat_ == null ? scale1.tickFormat ? scale1.tickFormat.apply(scale1, tickArguments_) : d3_identity : tickFormat_, tick = g.selectAll(".tick").data(ticks, scale1), tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick").style("opacity", ε), tickExit = d3.transition(tick.exit()).style("opacity", ε).remove(), tickUpdate = d3.transition(tick.order()).style("opacity", 1), tickSpacing = Math.max(innerTickSize, 0) + tickPadding, tickTransform;
        var range = d3_scaleRange(scale1), path = g.selectAll(".domain").data([ 0 ]), pathUpdate = (path.enter().append("path").attr("class", "domain"), 
        d3.transition(path));
        tickEnter.append("line");
        tickEnter.append("text");
        var lineEnter = tickEnter.select("line"), lineUpdate = tickUpdate.select("line"), text = tick.select("text").text(tickFormat), textEnter = tickEnter.select("text"), textUpdate = tickUpdate.select("text"), sign = orient === "top" || orient === "left" ? -1 : 1, x1, x2, y1, y2;
        if (orient === "bottom" || orient === "top") {
          tickTransform = d3_svg_axisX, x1 = "x", y1 = "y", x2 = "x2", y2 = "y2";
          text.attr("dy", sign < 0 ? "0em" : ".71em").style("text-anchor", "middle");
          pathUpdate.attr("d", "M" + range[0] + "," + sign * outerTickSize + "V0H" + range[1] + "V" + sign * outerTickSize);
        } else {
          tickTransform = d3_svg_axisY, x1 = "y", y1 = "x", x2 = "y2", y2 = "x2";
          text.attr("dy", ".32em").style("text-anchor", sign < 0 ? "end" : "start");
          pathUpdate.attr("d", "M" + sign * outerTickSize + "," + range[0] + "H0V" + range[1] + "H" + sign * outerTickSize);
        }
        lineEnter.attr(y2, sign * innerTickSize);
        textEnter.attr(y1, sign * tickSpacing);
        lineUpdate.attr(x2, 0).attr(y2, sign * innerTickSize);
        textUpdate.attr(x1, 0).attr(y1, sign * tickSpacing);
        if (scale1.rangeBand) {
          var x = scale1, dx = x.rangeBand() / 2;
          scale0 = scale1 = function(d) {
            return x(d) + dx;
          };
        } else if (scale0.rangeBand) {
          scale0 = scale1;
        } else {
          tickExit.call(tickTransform, scale1, scale0);
        }
        tickEnter.call(tickTransform, scale0, scale1);
        tickUpdate.call(tickTransform, scale1, scale1);
      });
    }
    axis.scale = function(x) {
      if (!arguments.length) return scale;
      scale = x;
      return axis;
    };
    axis.orient = function(x) {
      if (!arguments.length) return orient;
      orient = x in d3_svg_axisOrients ? x + "" : d3_svg_axisDefaultOrient;
      return axis;
    };
    axis.ticks = function() {
      if (!arguments.length) return tickArguments_;
      tickArguments_ = d3_array(arguments);
      return axis;
    };
    axis.tickValues = function(x) {
      if (!arguments.length) return tickValues;
      tickValues = x;
      return axis;
    };
    axis.tickFormat = function(x) {
      if (!arguments.length) return tickFormat_;
      tickFormat_ = x;
      return axis;
    };
    axis.tickSize = function(x) {
      var n = arguments.length;
      if (!n) return innerTickSize;
      innerTickSize = +x;
      outerTickSize = +arguments[n - 1];
      return axis;
    };
    axis.innerTickSize = function(x) {
      if (!arguments.length) return innerTickSize;
      innerTickSize = +x;
      return axis;
    };
    axis.outerTickSize = function(x) {
      if (!arguments.length) return outerTickSize;
      outerTickSize = +x;
      return axis;
    };
    axis.tickPadding = function(x) {
      if (!arguments.length) return tickPadding;
      tickPadding = +x;
      return axis;
    };
    axis.tickSubdivide = function() {
      return arguments.length && axis;
    };
    return axis;
  };
  var d3_svg_axisDefaultOrient = "bottom", d3_svg_axisOrients = {
    top: 1,
    right: 1,
    bottom: 1,
    left: 1
  };
  function d3_svg_axisX(selection, x0, x1) {
    selection.attr("transform", function(d) {
      var v0 = x0(d);
      return "translate(" + (isFinite(v0) ? v0 : x1(d)) + ",0)";
    });
  }
  function d3_svg_axisY(selection, y0, y1) {
    selection.attr("transform", function(d) {
      var v0 = y0(d);
      return "translate(0," + (isFinite(v0) ? v0 : y1(d)) + ")";
    });
  }
  d3.svg.brush = function() {
    var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
    function brush(g) {
      g.each(function() {
        var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
        var background = g.selectAll(".background").data([ 0 ]);
        background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
        g.selectAll(".extent").data([ 0 ]).enter().append("rect").attr("class", "extent").style("cursor", "move");
        var resize = g.selectAll(".resize").data(resizes, d3_identity);
        resize.exit().remove();
        resize.enter().append("g").attr("class", function(d) {
          return "resize " + d;
        }).style("cursor", function(d) {
          return d3_svg_brushCursor[d];
        }).append("rect").attr("x", function(d) {
          return /[ew]$/.test(d) ? -3 : null;
        }).attr("y", function(d) {
          return /^[ns]/.test(d) ? -3 : null;
        }).attr("width", 6).attr("height", 6).style("visibility", "hidden");
        resize.style("display", brush.empty() ? "none" : null);
        var gUpdate = d3.transition(g), backgroundUpdate = d3.transition(background), range;
        if (x) {
          range = d3_scaleRange(x);
          backgroundUpdate.attr("x", range[0]).attr("width", range[1] - range[0]);
          redrawX(gUpdate);
        }
        if (y) {
          range = d3_scaleRange(y);
          backgroundUpdate.attr("y", range[0]).attr("height", range[1] - range[0]);
          redrawY(gUpdate);
        }
        redraw(gUpdate);
      });
    }
    brush.event = function(g) {
      g.each(function() {
        var event_ = event.of(this, arguments), extent1 = {
          x: xExtent,
          y: yExtent,
          i: xExtentDomain,
          j: yExtentDomain
        }, extent0 = this.__chart__ || extent1;
        this.__chart__ = extent1;
        if (d3_transitionInheritId) {
          d3.select(this).transition().each("start.brush", function() {
            xExtentDomain = extent0.i;
            yExtentDomain = extent0.j;
            xExtent = extent0.x;
            yExtent = extent0.y;
            event_({
              type: "brushstart"
            });
          }).tween("brush:brush", function() {
            var xi = d3_interpolateArray(xExtent, extent1.x), yi = d3_interpolateArray(yExtent, extent1.y);
            xExtentDomain = yExtentDomain = null;
            return function(t) {
              xExtent = extent1.x = xi(t);
              yExtent = extent1.y = yi(t);
              event_({
                type: "brush",
                mode: "resize"
              });
            };
          }).each("end.brush", function() {
            xExtentDomain = extent1.i;
            yExtentDomain = extent1.j;
            event_({
              type: "brush",
              mode: "resize"
            });
            event_({
              type: "brushend"
            });
          });
        } else {
          event_({
            type: "brushstart"
          });
          event_({
            type: "brush",
            mode: "resize"
          });
          event_({
            type: "brushend"
          });
        }
      });
    };
    function redraw(g) {
      g.selectAll(".resize").attr("transform", function(d) {
        return "translate(" + xExtent[+/e$/.test(d)] + "," + yExtent[+/^s/.test(d)] + ")";
      });
    }
    function redrawX(g) {
      g.select(".extent").attr("x", xExtent[0]);
      g.selectAll(".extent,.n>rect,.s>rect").attr("width", xExtent[1] - xExtent[0]);
    }
    function redrawY(g) {
      g.select(".extent").attr("y", yExtent[0]);
      g.selectAll(".extent,.e>rect,.w>rect").attr("height", yExtent[1] - yExtent[0]);
    }
    function brushstart() {
      var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(target), center, origin = d3.mouse(target), offset;
      var w = d3.select(d3_window(target)).on("keydown.brush", keydown).on("keyup.brush", keyup);
      if (d3.event.changedTouches) {
        w.on("touchmove.brush", brushmove).on("touchend.brush", brushend);
      } else {
        w.on("mousemove.brush", brushmove).on("mouseup.brush", brushend);
      }
      g.interrupt().selectAll("*").interrupt();
      if (dragging) {
        origin[0] = xExtent[0] - origin[0];
        origin[1] = yExtent[0] - origin[1];
      } else if (resizing) {
        var ex = +/w$/.test(resizing), ey = +/^n/.test(resizing);
        offset = [ xExtent[1 - ex] - origin[0], yExtent[1 - ey] - origin[1] ];
        origin[0] = xExtent[ex];
        origin[1] = yExtent[ey];
      } else if (d3.event.altKey) center = origin.slice();
      g.style("pointer-events", "none").selectAll(".resize").style("display", null);
      d3.select("body").style("cursor", eventTarget.style("cursor"));
      event_({
        type: "brushstart"
      });
      brushmove();
      function keydown() {
        if (d3.event.keyCode == 32) {
          if (!dragging) {
            center = null;
            origin[0] -= xExtent[1];
            origin[1] -= yExtent[1];
            dragging = 2;
          }
          d3_eventPreventDefault();
        }
      }
      function keyup() {
        if (d3.event.keyCode == 32 && dragging == 2) {
          origin[0] += xExtent[1];
          origin[1] += yExtent[1];
          dragging = 0;
          d3_eventPreventDefault();
        }
      }
      function brushmove() {
        var point = d3.mouse(target), moved = false;
        if (offset) {
          point[0] += offset[0];
          point[1] += offset[1];
        }
        if (!dragging) {
          if (d3.event.altKey) {
            if (!center) center = [ (xExtent[0] + xExtent[1]) / 2, (yExtent[0] + yExtent[1]) / 2 ];
            origin[0] = xExtent[+(point[0] < center[0])];
            origin[1] = yExtent[+(point[1] < center[1])];
          } else center = null;
        }
        if (resizingX && move1(point, x, 0)) {
          redrawX(g);
          moved = true;
        }
        if (resizingY && move1(point, y, 1)) {
          redrawY(g);
          moved = true;
        }
        if (moved) {
          redraw(g);
          event_({
            type: "brush",
            mode: dragging ? "move" : "resize"
          });
        }
      }
      function move1(point, scale, i) {
        var range = d3_scaleRange(scale), r0 = range[0], r1 = range[1], position = origin[i], extent = i ? yExtent : xExtent, size = extent[1] - extent[0], min, max;
        if (dragging) {
          r0 -= position;
          r1 -= size + position;
        }
        min = (i ? yClamp : xClamp) ? Math.max(r0, Math.min(r1, point[i])) : point[i];
        if (dragging) {
          max = (min += position) + size;
        } else {
          if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min));
          if (position < min) {
            max = min;
            min = position;
          } else {
            max = position;
          }
        }
        if (extent[0] != min || extent[1] != max) {
          if (i) yExtentDomain = null; else xExtentDomain = null;
          extent[0] = min;
          extent[1] = max;
          return true;
        }
      }
      function brushend() {
        brushmove();
        g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null);
        d3.select("body").style("cursor", null);
        w.on("mousemove.brush", null).on("mouseup.brush", null).on("touchmove.brush", null).on("touchend.brush", null).on("keydown.brush", null).on("keyup.brush", null);
        dragRestore();
        event_({
          type: "brushend"
        });
      }
    }
    brush.x = function(z) {
      if (!arguments.length) return x;
      x = z;
      resizes = d3_svg_brushResizes[!x << 1 | !y];
      return brush;
    };
    brush.y = function(z) {
      if (!arguments.length) return y;
      y = z;
      resizes = d3_svg_brushResizes[!x << 1 | !y];
      return brush;
    };
    brush.clamp = function(z) {
      if (!arguments.length) return x && y ? [ xClamp, yClamp ] : x ? xClamp : y ? yClamp : null;
      if (x && y) xClamp = !!z[0], yClamp = !!z[1]; else if (x) xClamp = !!z; else if (y) yClamp = !!z;
      return brush;
    };
    brush.extent = function(z) {
      var x0, x1, y0, y1, t;
      if (!arguments.length) {
        if (x) {
          if (xExtentDomain) {
            x0 = xExtentDomain[0], x1 = xExtentDomain[1];
          } else {
            x0 = xExtent[0], x1 = xExtent[1];
            if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1);
            if (x1 < x0) t = x0, x0 = x1, x1 = t;
          }
        }
        if (y) {
          if (yExtentDomain) {
            y0 = yExtentDomain[0], y1 = yExtentDomain[1];
          } else {
            y0 = yExtent[0], y1 = yExtent[1];
            if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1);
            if (y1 < y0) t = y0, y0 = y1, y1 = t;
          }
        }
        return x && y ? [ [ x0, y0 ], [ x1, y1 ] ] : x ? [ x0, x1 ] : y && [ y0, y1 ];
      }
      if (x) {
        x0 = z[0], x1 = z[1];
        if (y) x0 = x0[0], x1 = x1[0];
        xExtentDomain = [ x0, x1 ];
        if (x.invert) x0 = x(x0), x1 = x(x1);
        if (x1 < x0) t = x0, x0 = x1, x1 = t;
        if (x0 != xExtent[0] || x1 != xExtent[1]) xExtent = [ x0, x1 ];
      }
      if (y) {
        y0 = z[0], y1 = z[1];
        if (x) y0 = y0[1], y1 = y1[1];
        yExtentDomain = [ y0, y1 ];
        if (y.invert) y0 = y(y0), y1 = y(y1);
        if (y1 < y0) t = y0, y0 = y1, y1 = t;
        if (y0 != yExtent[0] || y1 != yExtent[1]) yExtent = [ y0, y1 ];
      }
      return brush;
    };
    brush.clear = function() {
      if (!brush.empty()) {
        xExtent = [ 0, 0 ], yExtent = [ 0, 0 ];
        xExtentDomain = yExtentDomain = null;
      }
      return brush;
    };
    brush.empty = function() {
      return !!x && xExtent[0] == xExtent[1] || !!y && yExtent[0] == yExtent[1];
    };
    return d3.rebind(brush, event, "on");
  };
  var d3_svg_brushCursor = {
    n: "ns-resize",
    e: "ew-resize",
    s: "ns-resize",
    w: "ew-resize",
    nw: "nwse-resize",
    ne: "nesw-resize",
    se: "nwse-resize",
    sw: "nesw-resize"
  };
  var d3_svg_brushResizes = [ [ "n", "e", "s", "w", "nw", "ne", "se", "sw" ], [ "e", "w" ], [ "n", "s" ], [] ];
  var d3_time_format = d3_time.format = d3_locale_enUS.timeFormat;
  var d3_time_formatUtc = d3_time_format.utc;
  var d3_time_formatIso = d3_time_formatUtc("%Y-%m-%dT%H:%M:%S.%LZ");
  d3_time_format.iso = Date.prototype.toISOString && +new Date("2000-01-01T00:00:00.000Z") ? d3_time_formatIsoNative : d3_time_formatIso;
  function d3_time_formatIsoNative(date) {
    return date.toISOString();
  }
  d3_time_formatIsoNative.parse = function(string) {
    var date = new Date(string);
    return isNaN(date) ? null : date;
  };
  d3_time_formatIsoNative.toString = d3_time_formatIso.toString;
  d3_time.second = d3_time_interval(function(date) {
    return new d3_date(Math.floor(date / 1e3) * 1e3);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 1e3);
  }, function(date) {
    return date.getSeconds();
  });
  d3_time.seconds = d3_time.second.range;
  d3_time.seconds.utc = d3_time.second.utc.range;
  d3_time.minute = d3_time_interval(function(date) {
    return new d3_date(Math.floor(date / 6e4) * 6e4);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 6e4);
  }, function(date) {
    return date.getMinutes();
  });
  d3_time.minutes = d3_time.minute.range;
  d3_time.minutes.utc = d3_time.minute.utc.range;
  d3_time.hour = d3_time_interval(function(date) {
    var timezone = date.getTimezoneOffset() / 60;
    return new d3_date((Math.floor(date / 36e5 - timezone) + timezone) * 36e5);
  }, function(date, offset) {
    date.setTime(date.getTime() + Math.floor(offset) * 36e5);
  }, function(date) {
    return date.getHours();
  });
  d3_time.hours = d3_time.hour.range;
  d3_time.hours.utc = d3_time.hour.utc.range;
  d3_time.month = d3_time_interval(function(date) {
    date = d3_time.day(date);
    date.setDate(1);
    return date;
  }, function(date, offset) {
    date.setMonth(date.getMonth() + offset);
  }, function(date) {
    return date.getMonth();
  });
  d3_time.months = d3_time.month.range;
  d3_time.months.utc = d3_time.month.utc.range;
  function d3_time_scale(linear, methods, format) {
    function scale(x) {
      return linear(x);
    }
    scale.invert = function(x) {
      return d3_time_scaleDate(linear.invert(x));
    };
    scale.domain = function(x) {
      if (!arguments.length) return linear.domain().map(d3_time_scaleDate);
      linear.domain(x);
      return scale;
    };
    function tickMethod(extent, count) {
      var span = extent[1] - extent[0], target = span / count, i = d3.bisect(d3_time_scaleSteps, target);
      return i == d3_time_scaleSteps.length ? [ methods.year, d3_scale_linearTickRange(extent.map(function(d) {
        return d / 31536e6;
      }), count)[2] ] : !i ? [ d3_time_scaleMilliseconds, d3_scale_linearTickRange(extent, count)[2] ] : methods[target / d3_time_scaleSteps[i - 1] < d3_time_scaleSteps[i] / target ? i - 1 : i];
    }
    scale.nice = function(interval, skip) {
      var domain = scale.domain(), extent = d3_scaleExtent(domain), method = interval == null ? tickMethod(extent, 10) : typeof interval === "number" && tickMethod(extent, interval);
      if (method) interval = method[0], skip = method[1];
      function skipped(date) {
        return !isNaN(date) && !interval.range(date, d3_time_scaleDate(+date + 1), skip).length;
      }
      return scale.domain(d3_scale_nice(domain, skip > 1 ? {
        floor: function(date) {
          while (skipped(date = interval.floor(date))) date = d3_time_scaleDate(date - 1);
          return date;
        },
        ceil: function(date) {
          while (skipped(date = interval.ceil(date))) date = d3_time_scaleDate(+date + 1);
          return date;
        }
      } : interval));
    };
    scale.ticks = function(interval, skip) {
      var extent = d3_scaleExtent(scale.domain()), method = interval == null ? tickMethod(extent, 10) : typeof interval === "number" ? tickMethod(extent, interval) : !interval.range && [ {
        range: interval
      }, skip ];
      if (method) interval = method[0], skip = method[1];
      return interval.range(extent[0], d3_time_scaleDate(+extent[1] + 1), skip < 1 ? 1 : skip);
    };
    scale.tickFormat = function() {
      return format;
    };
    scale.copy = function() {
      return d3_time_scale(linear.copy(), methods, format);
    };
    return d3_scale_linearRebind(scale, linear);
  }
  function d3_time_scaleDate(t) {
    return new Date(t);
  }
  var d3_time_scaleSteps = [ 1e3, 5e3, 15e3, 3e4, 6e4, 3e5, 9e5, 18e5, 36e5, 108e5, 216e5, 432e5, 864e5, 1728e5, 6048e5, 2592e6, 7776e6, 31536e6 ];
  var d3_time_scaleLocalMethods = [ [ d3_time.second, 1 ], [ d3_time.second, 5 ], [ d3_time.second, 15 ], [ d3_time.second, 30 ], [ d3_time.minute, 1 ], [ d3_time.minute, 5 ], [ d3_time.minute, 15 ], [ d3_time.minute, 30 ], [ d3_time.hour, 1 ], [ d3_time.hour, 3 ], [ d3_time.hour, 6 ], [ d3_time.hour, 12 ], [ d3_time.day, 1 ], [ d3_time.day, 2 ], [ d3_time.week, 1 ], [ d3_time.month, 1 ], [ d3_time.month, 3 ], [ d3_time.year, 1 ] ];
  var d3_time_scaleLocalFormat = d3_time_format.multi([ [ ".%L", function(d) {
    return d.getMilliseconds();
  } ], [ ":%S", function(d) {
    return d.getSeconds();
  } ], [ "%I:%M", function(d) {
    return d.getMinutes();
  } ], [ "%I %p", function(d) {
    return d.getHours();
  } ], [ "%a %d", function(d) {
    return d.getDay() && d.getDate() != 1;
  } ], [ "%b %d", function(d) {
    return d.getDate() != 1;
  } ], [ "%B", function(d) {
    return d.getMonth();
  } ], [ "%Y", d3_true ] ]);
  var d3_time_scaleMilliseconds = {
    range: function(start, stop, step) {
      return d3.range(Math.ceil(start / step) * step, +stop, step).map(d3_time_scaleDate);
    },
    floor: d3_identity,
    ceil: d3_identity
  };
  d3_time_scaleLocalMethods.year = d3_time.year;
  d3_time.scale = function() {
    return d3_time_scale(d3.scale.linear(), d3_time_scaleLocalMethods, d3_time_scaleLocalFormat);
  };
  var d3_time_scaleUtcMethods = d3_time_scaleLocalMethods.map(function(m) {
    return [ m[0].utc, m[1] ];
  });
  var d3_time_scaleUtcFormat = d3_time_formatUtc.multi([ [ ".%L", function(d) {
    return d.getUTCMilliseconds();
  } ], [ ":%S", function(d) {
    return d.getUTCSeconds();
  } ], [ "%I:%M", function(d) {
    return d.getUTCMinutes();
  } ], [ "%I %p", function(d) {
    return d.getUTCHours();
  } ], [ "%a %d", function(d) {
    return d.getUTCDay() && d.getUTCDate() != 1;
  } ], [ "%b %d", function(d) {
    return d.getUTCDate() != 1;
  } ], [ "%B", function(d) {
    return d.getUTCMonth();
  } ], [ "%Y", d3_true ] ]);
  d3_time_scaleUtcMethods.year = d3_time.year.utc;
  d3_time.scale.utc = function() {
    return d3_time_scale(d3.scale.linear(), d3_time_scaleUtcMethods, d3_time_scaleUtcFormat);
  };
  d3.text = d3_xhrType(function(request) {
    return request.responseText;
  });
  d3.json = function(url, callback) {
    return d3_xhr(url, "application/json", d3_json, callback);
  };
  function d3_json(request) {
    return JSON.parse(request.responseText);
  }
  d3.html = function(url, callback) {
    return d3_xhr(url, "text/html", d3_html, callback);
  };
  function d3_html(request) {
    var range = d3_document.createRange();
    range.selectNode(d3_document.body);
    return range.createContextualFragment(request.responseText);
  }
  d3.xml = d3_xhrType(function(request) {
    return request.responseXML;
  });
  if (true) this.d3 = d3, !(__WEBPACK_AMD_DEFINE_FACTORY__ = (d3),
				__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 {}
}();

/***/ }),

/***/ "./node_modules/dom-helpers/activeElement.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/activeElement.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = activeElement;

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ./ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

function activeElement(doc) {
  if (doc === void 0) {
    doc = (0, _ownerDocument.default)();
  }

  try {
    return doc.activeElement;
  } catch (e) {
    /* ie throws if no active element */
  }
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/addClass.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/class/addClass.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = addClass;

var _hasClass = _interopRequireDefault(__webpack_require__(/*! ./hasClass */ "./node_modules/dom-helpers/class/hasClass.js"));

function addClass(element, className) {
  if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/hasClass.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/class/hasClass.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = hasClass;

function hasClass(element, className) {
  if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/class/index.js":
/*!*************************************************!*\
  !*** ./node_modules/dom-helpers/class/index.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _addClass = _interopRequireDefault(__webpack_require__(/*! ./addClass */ "./node_modules/dom-helpers/class/addClass.js"));

exports.addClass = _addClass.default;

var _removeClass = _interopRequireDefault(__webpack_require__(/*! ./removeClass */ "./node_modules/dom-helpers/class/removeClass.js"));

exports.removeClass = _removeClass.default;

var _hasClass = _interopRequireDefault(__webpack_require__(/*! ./hasClass */ "./node_modules/dom-helpers/class/hasClass.js"));

exports.hasClass = _hasClass.default;
var _default = {
  addClass: _addClass.default,
  removeClass: _removeClass.default,
  hasClass: _hasClass.default
};
exports.default = _default;

/***/ }),

/***/ "./node_modules/dom-helpers/class/removeClass.js":
/*!*******************************************************!*\
  !*** ./node_modules/dom-helpers/class/removeClass.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


function replaceClassName(origClass, classToRemove) {
  return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
}

module.exports = function removeClass(element, className) {
  if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
};

/***/ }),

/***/ "./node_modules/dom-helpers/events/filter.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/events/filter.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = filterEvents;

var _contains = _interopRequireDefault(__webpack_require__(/*! ../query/contains */ "./node_modules/dom-helpers/query/contains.js"));

var _querySelectorAll = _interopRequireDefault(__webpack_require__(/*! ../query/querySelectorAll */ "./node_modules/dom-helpers/query/querySelectorAll.js"));

function filterEvents(selector, handler) {
  return function filterHandler(e) {
    var top = e.currentTarget,
        target = e.target,
        matches = (0, _querySelectorAll.default)(top, selector);
    if (matches.some(function (match) {
      return (0, _contains.default)(match, target);
    })) handler.call(this, e);
  };
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/index.js":
/*!**************************************************!*\
  !*** ./node_modules/dom-helpers/events/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _on = _interopRequireDefault(__webpack_require__(/*! ./on */ "./node_modules/dom-helpers/events/on.js"));

exports.on = _on.default;

var _off = _interopRequireDefault(__webpack_require__(/*! ./off */ "./node_modules/dom-helpers/events/off.js"));

exports.off = _off.default;

var _filter = _interopRequireDefault(__webpack_require__(/*! ./filter */ "./node_modules/dom-helpers/events/filter.js"));

exports.filter = _filter.default;

var _listen = _interopRequireDefault(__webpack_require__(/*! ./listen */ "./node_modules/dom-helpers/events/listen.js"));

exports.listen = _listen.default;
var _default = {
  on: _on.default,
  off: _off.default,
  filter: _filter.default,
  listen: _listen.default
};
exports.default = _default;

/***/ }),

/***/ "./node_modules/dom-helpers/events/listen.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/events/listen.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var _on = _interopRequireDefault(__webpack_require__(/*! ./on */ "./node_modules/dom-helpers/events/on.js"));

var _off = _interopRequireDefault(__webpack_require__(/*! ./off */ "./node_modules/dom-helpers/events/off.js"));

var listen = function listen() {};

if (_inDOM.default) {
  listen = function listen(node, eventName, handler, capture) {
    (0, _on.default)(node, eventName, handler, capture);
    return function () {
      (0, _off.default)(node, eventName, handler, capture);
    };
  };
}

var _default = listen;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/off.js":
/*!************************************************!*\
  !*** ./node_modules/dom-helpers/events/off.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var off = function off() {};

if (_inDOM.default) {
  off = function () {
    if (document.addEventListener) return function (node, eventName, handler, capture) {
      return node.removeEventListener(eventName, handler, capture || false);
    };else if (document.attachEvent) return function (node, eventName, handler) {
      return node.detachEvent('on' + eventName, handler);
    };
  }();
}

var _default = off;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/events/on.js":
/*!***********************************************!*\
  !*** ./node_modules/dom-helpers/events/on.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var on = function on() {};

if (_inDOM.default) {
  on = function () {
    if (document.addEventListener) return function (node, eventName, handler, capture) {
      return node.addEventListener(eventName, handler, capture || false);
    };else if (document.attachEvent) return function (node, eventName, handler) {
      return node.attachEvent('on' + eventName, function (e) {
        e = e || window.event;
        e.target = e.target || e.srcElement;
        e.currentTarget = node;
        handler.call(node, e);
      });
    };
  }();
}

var _default = on;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/ownerDocument.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/ownerDocument.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = ownerDocument;

function ownerDocument(node) {
  return node && node.ownerDocument || document;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/contains.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/contains.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var _default = function () {
  // HTML DOM and SVG DOM may have different support levels,
  // so we need to check on context instead of a document root element.
  return _inDOM.default ? function (context, node) {
    if (context.contains) {
      return context.contains(node);
    } else if (context.compareDocumentPosition) {
      return context === node || !!(context.compareDocumentPosition(node) & 16);
    } else {
      return fallback(context, node);
    }
  } : fallback;
}();

exports.default = _default;

function fallback(context, node) {
  if (node) do {
    if (node === context) return true;
  } while (node = node.parentNode);
  return false;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/isWindow.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/isWindow.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getWindow;

function getWindow(node) {
  return node === node.window ? node : node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/offset.js":
/*!**************************************************!*\
  !*** ./node_modules/dom-helpers/query/offset.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = offset;

var _contains = _interopRequireDefault(__webpack_require__(/*! ./contains */ "./node_modules/dom-helpers/query/contains.js"));

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ../ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

function offset(node) {
  var doc = (0, _ownerDocument.default)(node),
      win = (0, _isWindow.default)(doc),
      docElem = doc && doc.documentElement,
      box = {
    top: 0,
    left: 0,
    height: 0,
    width: 0
  };
  if (!doc) return; // Make sure it's not a disconnected DOM node

  if (!(0, _contains.default)(docElem, node)) return box;
  if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect(); // IE8 getBoundingClientRect doesn't support width & height

  box = {
    top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
    left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0),
    width: (box.width == null ? node.offsetWidth : box.width) || 0,
    height: (box.height == null ? node.offsetHeight : box.height) || 0
  };
  return box;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/offsetParent.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/query/offsetParent.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = offsetParent;

var _ownerDocument = _interopRequireDefault(__webpack_require__(/*! ../ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js"));

var _style = _interopRequireDefault(__webpack_require__(/*! ../style */ "./node_modules/dom-helpers/style/index.js"));

function nodeName(node) {
  return node.nodeName && node.nodeName.toLowerCase();
}

function offsetParent(node) {
  var doc = (0, _ownerDocument.default)(node),
      offsetParent = node && node.offsetParent;

  while (offsetParent && nodeName(node) !== 'html' && (0, _style.default)(offsetParent, 'position') === 'static') {
    offsetParent = offsetParent.offsetParent;
  }

  return offsetParent || doc.documentElement;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/position.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/query/position.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = position;

var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));

var _offset = _interopRequireDefault(__webpack_require__(/*! ./offset */ "./node_modules/dom-helpers/query/offset.js"));

var _offsetParent = _interopRequireDefault(__webpack_require__(/*! ./offsetParent */ "./node_modules/dom-helpers/query/offsetParent.js"));

var _scrollTop = _interopRequireDefault(__webpack_require__(/*! ./scrollTop */ "./node_modules/dom-helpers/query/scrollTop.js"));

var _scrollLeft = _interopRequireDefault(__webpack_require__(/*! ./scrollLeft */ "./node_modules/dom-helpers/query/scrollLeft.js"));

var _style = _interopRequireDefault(__webpack_require__(/*! ../style */ "./node_modules/dom-helpers/style/index.js"));

function nodeName(node) {
  return node.nodeName && node.nodeName.toLowerCase();
}

function position(node, offsetParent) {
  var parentOffset = {
    top: 0,
    left: 0
  },
      offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
  // because it is its only offset parent

  if ((0, _style.default)(node, 'position') === 'fixed') {
    offset = node.getBoundingClientRect();
  } else {
    offsetParent = offsetParent || (0, _offsetParent.default)(node);
    offset = (0, _offset.default)(node);
    if (nodeName(offsetParent) !== 'html') parentOffset = (0, _offset.default)(offsetParent);
    parentOffset.top += parseInt((0, _style.default)(offsetParent, 'borderTopWidth'), 10) - (0, _scrollTop.default)(offsetParent) || 0;
    parentOffset.left += parseInt((0, _style.default)(offsetParent, 'borderLeftWidth'), 10) - (0, _scrollLeft.default)(offsetParent) || 0;
  } // Subtract parent offsets and node margins


  return (0, _extends2.default)({}, offset, {
    top: offset.top - parentOffset.top - (parseInt((0, _style.default)(node, 'marginTop'), 10) || 0),
    left: offset.left - parentOffset.left - (parseInt((0, _style.default)(node, 'marginLeft'), 10) || 0)
  });
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/querySelectorAll.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/query/querySelectorAll.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = qsa;
// Zepto.js
// (c) 2010-2015 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
var simpleSelectorRE = /^[\w-]*$/;
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);

function qsa(element, selector) {
  var maybeID = selector[0] === '#',
      maybeClass = selector[0] === '.',
      nameOnly = maybeID || maybeClass ? selector.slice(1) : selector,
      isSimple = simpleSelectorRE.test(nameOnly),
      found;

  if (isSimple) {
    if (maybeID) {
      element = element.getElementById ? element : document;
      return (found = element.getElementById(nameOnly)) ? [found] : [];
    }

    if (element.getElementsByClassName && maybeClass) return toArray(element.getElementsByClassName(nameOnly));
    return toArray(element.getElementsByTagName(selector));
  }

  return toArray(element.querySelectorAll(selector));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/scrollLeft.js":
/*!******************************************************!*\
  !*** ./node_modules/dom-helpers/query/scrollLeft.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollTop;

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

function scrollTop(node, val) {
  var win = (0, _isWindow.default)(node);
  if (val === undefined) return win ? 'pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft : node.scrollLeft;
  if (win) win.scrollTo(val, 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop);else node.scrollLeft = val;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/query/scrollTop.js":
/*!*****************************************************!*\
  !*** ./node_modules/dom-helpers/query/scrollTop.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollTop;

var _isWindow = _interopRequireDefault(__webpack_require__(/*! ./isWindow */ "./node_modules/dom-helpers/query/isWindow.js"));

function scrollTop(node, val) {
  var win = (0, _isWindow.default)(node);
  if (val === undefined) return win ? 'pageYOffset' in win ? win.pageYOffset : win.document.documentElement.scrollTop : node.scrollTop;
  if (win) win.scrollTo('pageXOffset' in win ? win.pageXOffset : win.document.documentElement.scrollLeft, val);else node.scrollTop = val;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/getComputedStyle.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/style/getComputedStyle.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = _getComputedStyle;

var _camelizeStyle = _interopRequireDefault(__webpack_require__(/*! ../util/camelizeStyle */ "./node_modules/dom-helpers/util/camelizeStyle.js"));

var rposition = /^(top|right|bottom|left)$/;
var rnumnonpx = /^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;

function _getComputedStyle(node) {
  if (!node) throw new TypeError('No Element passed to `getComputedStyle()`');
  var doc = node.ownerDocument;
  return 'defaultView' in doc ? doc.defaultView.opener ? node.ownerDocument.defaultView.getComputedStyle(node, null) : window.getComputedStyle(node, null) : {
    //ie 8 "magic" from: https://github.com/jquery/jquery/blob/1.11-stable/src/css/curCSS.js#L72
    getPropertyValue: function getPropertyValue(prop) {
      var style = node.style;
      prop = (0, _camelizeStyle.default)(prop);
      if (prop == 'float') prop = 'styleFloat';
      var current = node.currentStyle[prop] || null;
      if (current == null && style && style[prop]) current = style[prop];

      if (rnumnonpx.test(current) && !rposition.test(prop)) {
        // Remember the original values
        var left = style.left;
        var runStyle = node.runtimeStyle;
        var rsLeft = runStyle && runStyle.left; // Put in the new values to get a computed value out

        if (rsLeft) runStyle.left = node.currentStyle.left;
        style.left = prop === 'fontSize' ? '1em' : current;
        current = style.pixelLeft + 'px'; // Revert the changed values

        style.left = left;
        if (rsLeft) runStyle.left = rsLeft;
      }

      return current;
    }
  };
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/index.js":
/*!*************************************************!*\
  !*** ./node_modules/dom-helpers/style/index.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = style;

var _camelizeStyle = _interopRequireDefault(__webpack_require__(/*! ../util/camelizeStyle */ "./node_modules/dom-helpers/util/camelizeStyle.js"));

var _hyphenateStyle = _interopRequireDefault(__webpack_require__(/*! ../util/hyphenateStyle */ "./node_modules/dom-helpers/util/hyphenateStyle.js"));

var _getComputedStyle2 = _interopRequireDefault(__webpack_require__(/*! ./getComputedStyle */ "./node_modules/dom-helpers/style/getComputedStyle.js"));

var _removeStyle = _interopRequireDefault(__webpack_require__(/*! ./removeStyle */ "./node_modules/dom-helpers/style/removeStyle.js"));

var _properties = __webpack_require__(/*! ../transition/properties */ "./node_modules/dom-helpers/transition/properties.js");

var _isTransform = _interopRequireDefault(__webpack_require__(/*! ../transition/isTransform */ "./node_modules/dom-helpers/transition/isTransform.js"));

function style(node, property, value) {
  var css = '';
  var transforms = '';
  var props = property;

  if (typeof property === 'string') {
    if (value === undefined) {
      return node.style[(0, _camelizeStyle.default)(property)] || (0, _getComputedStyle2.default)(node).getPropertyValue((0, _hyphenateStyle.default)(property));
    } else {
      (props = {})[property] = value;
    }
  }

  Object.keys(props).forEach(function (key) {
    var value = props[key];

    if (!value && value !== 0) {
      (0, _removeStyle.default)(node, (0, _hyphenateStyle.default)(key));
    } else if ((0, _isTransform.default)(key)) {
      transforms += key + "(" + value + ") ";
    } else {
      css += (0, _hyphenateStyle.default)(key) + ": " + value + ";";
    }
  });

  if (transforms) {
    css += _properties.transform + ": " + transforms + ";";
  }

  node.style.cssText += ';' + css;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/style/removeStyle.js":
/*!*******************************************************!*\
  !*** ./node_modules/dom-helpers/style/removeStyle.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = removeStyle;

function removeStyle(node, key) {
  return 'removeProperty' in node.style ? node.style.removeProperty(key) : node.style.removeAttribute(key);
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/transition/isTransform.js":
/*!************************************************************!*\
  !*** ./node_modules/dom-helpers/transition/isTransform.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = isTransform;
var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;

function isTransform(property) {
  return !!(property && supportedTransforms.test(property));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/transition/properties.js":
/*!***********************************************************!*\
  !*** ./node_modules/dom-helpers/transition/properties.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = exports.animationEnd = exports.animationDelay = exports.animationTiming = exports.animationDuration = exports.animationName = exports.transitionEnd = exports.transitionDuration = exports.transitionDelay = exports.transitionTiming = exports.transitionProperty = exports.transform = void 0;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ../util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var transform = 'transform';
exports.transform = transform;
var prefix, transitionEnd, animationEnd;
exports.animationEnd = animationEnd;
exports.transitionEnd = transitionEnd;
var transitionProperty, transitionDuration, transitionTiming, transitionDelay;
exports.transitionDelay = transitionDelay;
exports.transitionTiming = transitionTiming;
exports.transitionDuration = transitionDuration;
exports.transitionProperty = transitionProperty;
var animationName, animationDuration, animationTiming, animationDelay;
exports.animationDelay = animationDelay;
exports.animationTiming = animationTiming;
exports.animationDuration = animationDuration;
exports.animationName = animationName;

if (_inDOM.default) {
  var _getTransitionPropert = getTransitionProperties();

  prefix = _getTransitionPropert.prefix;
  exports.transitionEnd = transitionEnd = _getTransitionPropert.transitionEnd;
  exports.animationEnd = animationEnd = _getTransitionPropert.animationEnd;
  exports.transform = transform = prefix + "-" + transform;
  exports.transitionProperty = transitionProperty = prefix + "-transition-property";
  exports.transitionDuration = transitionDuration = prefix + "-transition-duration";
  exports.transitionDelay = transitionDelay = prefix + "-transition-delay";
  exports.transitionTiming = transitionTiming = prefix + "-transition-timing-function";
  exports.animationName = animationName = prefix + "-animation-name";
  exports.animationDuration = animationDuration = prefix + "-animation-duration";
  exports.animationTiming = animationTiming = prefix + "-animation-delay";
  exports.animationDelay = animationDelay = prefix + "-animation-timing-function";
}

var _default = {
  transform: transform,
  end: transitionEnd,
  property: transitionProperty,
  timing: transitionTiming,
  delay: transitionDelay,
  duration: transitionDuration
};
exports.default = _default;

function getTransitionProperties() {
  var style = document.createElement('div').style;
  var vendorMap = {
    O: function O(e) {
      return "o" + e.toLowerCase();
    },
    Moz: function Moz(e) {
      return e.toLowerCase();
    },
    Webkit: function Webkit(e) {
      return "webkit" + e;
    },
    ms: function ms(e) {
      return "MS" + e;
    }
  };
  var vendors = Object.keys(vendorMap);
  var transitionEnd, animationEnd;
  var prefix = '';

  for (var i = 0; i < vendors.length; i++) {
    var vendor = vendors[i];

    if (vendor + "TransitionProperty" in style) {
      prefix = "-" + vendor.toLowerCase();
      transitionEnd = vendorMap[vendor]('TransitionEnd');
      animationEnd = vendorMap[vendor]('AnimationEnd');
      break;
    }
  }

  if (!transitionEnd && 'transitionProperty' in style) transitionEnd = 'transitionend';
  if (!animationEnd && 'animationName' in style) animationEnd = 'animationend';
  style = null;
  return {
    animationEnd: animationEnd,
    transitionEnd: transitionEnd,
    prefix: prefix
  };
}

/***/ }),

/***/ "./node_modules/dom-helpers/util/camelize.js":
/*!***************************************************!*\
  !*** ./node_modules/dom-helpers/util/camelize.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = camelize;
var rHyphen = /-(.)/g;

function camelize(string) {
  return string.replace(rHyphen, function (_, chr) {
    return chr.toUpperCase();
  });
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/camelizeStyle.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/util/camelizeStyle.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = camelizeStyleName;

var _camelize = _interopRequireDefault(__webpack_require__(/*! ./camelize */ "./node_modules/dom-helpers/util/camelize.js"));

/**
 * Copyright 2014-2015, Facebook, Inc.
 * All rights reserved.
 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js
 */
var msPattern = /^-ms-/;

function camelizeStyleName(string) {
  return (0, _camelize.default)(string.replace(msPattern, 'ms-'));
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/hyphenate.js":
/*!****************************************************!*\
  !*** ./node_modules/dom-helpers/util/hyphenate.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = hyphenate;
var rUpper = /([A-Z])/g;

function hyphenate(string) {
  return string.replace(rUpper, '-$1').toLowerCase();
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/hyphenateStyle.js":
/*!*********************************************************!*\
  !*** ./node_modules/dom-helpers/util/hyphenateStyle.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = hyphenateStyleName;

var _hyphenate = _interopRequireDefault(__webpack_require__(/*! ./hyphenate */ "./node_modules/dom-helpers/util/hyphenate.js"));

/**
 * Copyright 2013-2014, Facebook, Inc.
 * All rights reserved.
 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
 */
var msPattern = /^ms-/;

function hyphenateStyleName(string) {
  return (0, _hyphenate.default)(string).replace(msPattern, '-ms-');
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/inDOM.js":
/*!************************************************!*\
  !*** ./node_modules/dom-helpers/util/inDOM.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = void 0;

var _default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);

exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/dom-helpers/util/scrollbarSize.js":
/*!********************************************************!*\
  !*** ./node_modules/dom-helpers/util/scrollbarSize.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = scrollbarSize;

var _inDOM = _interopRequireDefault(__webpack_require__(/*! ./inDOM */ "./node_modules/dom-helpers/util/inDOM.js"));

var size;

function scrollbarSize(recalc) {
  if (!size && size !== 0 || recalc) {
    if (_inDOM.default) {
      var scrollDiv = document.createElement('div');
      scrollDiv.style.position = 'absolute';
      scrollDiv.style.top = '-9999px';
      scrollDiv.style.width = '50px';
      scrollDiv.style.height = '50px';
      scrollDiv.style.overflow = 'scroll';
      document.body.appendChild(scrollDiv);
      size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
      document.body.removeChild(scrollDiv);
    }
  }

  return size;
}

module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/escape-string-regexp/index.js":
/*!****************************************************!*\
  !*** ./node_modules/escape-string-regexp/index.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;

module.exports = function (str) {
	if (typeof str !== 'string') {
		throw new TypeError('Expected a string');
	}

	return str.replace(matchOperatorsRe, '\\$&');
};


/***/ }),

/***/ "./node_modules/fbjs/lib/emptyFunction.js":
/*!************************************************!*\
  !*** ./node_modules/fbjs/lib/emptyFunction.js ***!
  \************************************************/
/*! no static exports found */
/***/ (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;

/***/ }),

/***/ "./node_modules/fbjs/lib/shallowEqual.js":
/*!***********************************************!*\
  !*** ./node_modules/fbjs/lib/shallowEqual.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (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.
 *
 * @typechecks
 * 
 */

/*eslint-disable no-self-compare */



var hasOwnProperty = 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.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
      return false;
    }
  }

  return true;
}

module.exports = shallowEqual;

/***/ }),

/***/ "./node_modules/fbjs/lib/warning.js":
/*!******************************************!*\
  !*** ./node_modules/fbjs/lib/warning.js ***!
  \******************************************/
/*! no static exports found */
/***/ (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__(/*! ./emptyFunction */ "./node_modules/fbjs/lib/emptyFunction.js");

/**
 * 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;

/***/ }),

/***/ "./node_modules/gud/index.js":
/*!***********************************!*\
  !*** ./node_modules/gud/index.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {// @flow


var key = '__global_unique_id__';

module.exports = function() {
  return global[key] = (global[key] || 0) + 1;
};

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/invariant/browser.js":
/*!*******************************************!*\
  !*** ./node_modules/invariant/browser.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/keycode/index.js":
/*!***************************************!*\
  !*** ./node_modules/keycode/index.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// Source: http://jsfiddle.net/vWx8V/
// http://stackoverflow.com/questions/5603195/full-list-of-javascript-keycodes

/**
 * Conenience method returns corresponding value for given keyName or keyCode.
 *
 * @param {Mixed} keyCode {Number} or keyName {String}
 * @return {Mixed}
 * @api public
 */

function keyCode(searchInput) {
  // Keyboard Events
  if (searchInput && 'object' === typeof searchInput) {
    var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode
    if (hasKeyCode) searchInput = hasKeyCode
  }

  // Numbers
  if ('number' === typeof searchInput) return names[searchInput]

  // Everything else (cast to string)
  var search = String(searchInput)

  // check codes
  var foundNamedKey = codes[search.toLowerCase()]
  if (foundNamedKey) return foundNamedKey

  // check aliases
  var foundNamedKey = aliases[search.toLowerCase()]
  if (foundNamedKey) return foundNamedKey

  // weird character?
  if (search.length === 1) return search.charCodeAt(0)

  return undefined
}

/**
 * Compares a keyboard event with a given keyCode or keyName.
 *
 * @param {Event} event Keyboard event that should be tested
 * @param {Mixed} keyCode {Number} or keyName {String}
 * @return {Boolean}
 * @api public
 */
keyCode.isEventKey = function isEventKey(event, nameOrCode) {
  if (event && 'object' === typeof event) {
    var keyCode = event.which || event.keyCode || event.charCode
    if (keyCode === null || keyCode === undefined) { return false; }
    if (typeof nameOrCode === 'string') {
      // check codes
      var foundNamedKey = codes[nameOrCode.toLowerCase()]
      if (foundNamedKey) { return foundNamedKey === keyCode; }
    
      // check aliases
      var foundNamedKey = aliases[nameOrCode.toLowerCase()]
      if (foundNamedKey) { return foundNamedKey === keyCode; }
    } else if (typeof nameOrCode === 'number') {
      return nameOrCode === keyCode;
    }
    return false;
  }
}

exports = module.exports = keyCode;

/**
 * Get by name
 *
 *   exports.code['enter'] // => 13
 */

var codes = exports.code = exports.codes = {
  'backspace': 8,
  'tab': 9,
  'enter': 13,
  'shift': 16,
  'ctrl': 17,
  'alt': 18,
  'pause/break': 19,
  'caps lock': 20,
  'esc': 27,
  'space': 32,
  'page up': 33,
  'page down': 34,
  'end': 35,
  'home': 36,
  'left': 37,
  'up': 38,
  'right': 39,
  'down': 40,
  'insert': 45,
  'delete': 46,
  'command': 91,
  'left command': 91,
  'right command': 93,
  'numpad *': 106,
  'numpad +': 107,
  'numpad -': 109,
  'numpad .': 110,
  'numpad /': 111,
  'num lock': 144,
  'scroll lock': 145,
  'my computer': 182,
  'my calculator': 183,
  ';': 186,
  '=': 187,
  ',': 188,
  '-': 189,
  '.': 190,
  '/': 191,
  '`': 192,
  '[': 219,
  '\\': 220,
  ']': 221,
  "'": 222
}

// Helper aliases

var aliases = exports.aliases = {
  'windows': 91,
  '⇧': 16,
  '⌥': 18,
  '⌃': 17,
  '⌘': 91,
  'ctl': 17,
  'control': 17,
  'option': 18,
  'pause': 19,
  'break': 19,
  'caps': 20,
  'return': 13,
  'escape': 27,
  'spc': 32,
  'spacebar': 32,
  'pgup': 33,
  'pgdn': 34,
  'ins': 45,
  'del': 46,
  'cmd': 91
}

/*!
 * Programatically add the following
 */

// lower case chars
for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32

// numbers
for (var i = 48; i < 58; i++) codes[i - 48] = i

// function keys
for (i = 1; i < 13; i++) codes['f'+i] = i + 111

// numpad keys
for (i = 0; i < 10; i++) codes['numpad '+i] = i + 96

/**
 * Get by code
 *
 *   exports.name[13] // => 'Enter'
 */

var names = exports.names = exports.title = {} // title for backward compat

// Create reverse mapping
for (i in codes) names[codes[i]] = i

// Add aliases
for (var alias in aliases) {
  codes[alias] = aliases[alias]
}


/***/ }),

/***/ "./node_modules/lodash.debounce/index.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash.debounce/index.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {/**
 * lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="npm" -o ./`
 * Copyright jQuery Foundation and other contributors <https://jquery.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var objectToString = objectProto.toString;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return root.Date.now();
};

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = toNumber(wait) || 0;
  if (isObject(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        result = wait - timeSinceLastCall;

    return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(now());
  }

  function debounced() {
    var time = now(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return !!value && (type == 'object' || type == 'function');
}

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return !!value && typeof value == 'object';
}

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && objectToString.call(value) == symbolTag);
}

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = value.replace(reTrim, '');
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = debounce;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/lodash/_DataView.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_DataView.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');

module.exports = DataView;


/***/ }),

/***/ "./node_modules/lodash/_Hash.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_Hash.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
    hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
    hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
    hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
    hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;

module.exports = Hash;


/***/ }),

/***/ "./node_modules/lodash/_LazyWrapper.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_LazyWrapper.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js");

/** 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;


/***/ }),

/***/ "./node_modules/lodash/_ListCache.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_ListCache.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
    listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
    listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
    listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
    listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;

module.exports = ListCache;


/***/ }),

/***/ "./node_modules/lodash/_LodashWrapper.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_LodashWrapper.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/_Map.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Map.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');

module.exports = Map;


/***/ }),

/***/ "./node_modules/lodash/_MapCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_MapCache.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
    mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
    mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
    mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
    mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;

module.exports = MapCache;


/***/ }),

/***/ "./node_modules/lodash/_Promise.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_Promise.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');

module.exports = Promise;


/***/ }),

/***/ "./node_modules/lodash/_Set.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Set.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');

module.exports = Set;


/***/ }),

/***/ "./node_modules/lodash/_SetCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_SetCache.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
    setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
    setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;


/***/ }),

/***/ "./node_modules/lodash/_Stack.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_Stack.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
    stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
    stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
    stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
    stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new ListCache(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;

module.exports = Stack;


/***/ }),

/***/ "./node_modules/lodash/_Symbol.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_Symbol.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Symbol = root.Symbol;

module.exports = Symbol;


/***/ }),

/***/ "./node_modules/lodash/_Uint8Array.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_Uint8Array.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Uint8Array = root.Uint8Array;

module.exports = Uint8Array;


/***/ }),

/***/ "./node_modules/lodash/_WeakMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_WeakMap.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');

module.exports = WeakMap;


/***/ }),

/***/ "./node_modules/lodash/_apply.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_apply.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

module.exports = apply;


/***/ }),

/***/ "./node_modules/lodash/_arrayEach.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayEach.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

module.exports = arrayEach;


/***/ }),

/***/ "./node_modules/lodash/_arrayFilter.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_arrayFilter.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

module.exports = arrayFilter;


/***/ }),

/***/ "./node_modules/lodash/_arrayLikeKeys.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value),
      isArg = !isArr && isArguments(value),
      isBuff = !isArr && !isArg && isBuffer(value),
      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? baseTimes(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           isIndex(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = arrayLikeKeys;


/***/ }),

/***/ "./node_modules/lodash/_arrayMap.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_arrayMap.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

module.exports = arrayMap;


/***/ }),

/***/ "./node_modules/lodash/_arrayPush.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayPush.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

module.exports = arrayPush;


/***/ }),

/***/ "./node_modules/lodash/_arraySome.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arraySome.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

module.exports = arraySome;


/***/ }),

/***/ "./node_modules/lodash/_assignMergeValue.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_assignMergeValue.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !eq(object[key], value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignMergeValue;


/***/ }),

/***/ "./node_modules/lodash/_assignValue.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_assignValue.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignValue;


/***/ }),

/***/ "./node_modules/lodash/_assocIndexOf.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_assocIndexOf.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

module.exports = assocIndexOf;


/***/ }),

/***/ "./node_modules/lodash/_baseAssign.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseAssign.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && copyObject(source, keys(source), object);
}

module.exports = baseAssign;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseAssignIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && copyObject(source, keysIn(source), object);
}

module.exports = baseAssignIn;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignValue.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseAssignValue.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && defineProperty) {
    defineProperty(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

module.exports = baseAssignValue;


/***/ }),

/***/ "./node_modules/lodash/_baseClone.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseClone.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
    assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
    baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
    copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
    getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
    initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
      isDeep = bitmask & CLONE_DEEP_FLAG,
      isFlat = bitmask & CLONE_FLAT_FLAG,
      isFull = bitmask & CLONE_SYMBOLS_FLAG;

  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!isObject(value)) {
    return value;
  }
  var isArr = isArray(value);
  if (isArr) {
    result = initCloneArray(value);
    if (!isDeep) {
      return copyArray(value, result);
    }
  } else {
    var tag = getTag(value),
        isFunc = tag == funcTag || tag == genTag;

    if (isBuffer(value)) {
      return cloneBuffer(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
      result = (isFlat || isFunc) ? {} : initCloneObject(value);
      if (!isDeep) {
        return isFlat
          ? copySymbolsIn(value, baseAssignIn(result, value))
          : copySymbols(value, baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new Stack);
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);

  if (isSet(value)) {
    value.forEach(function(subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (isMap(value)) {
    value.forEach(function(subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }

  var keysFunc = isFull
    ? (isFlat ? getAllKeysIn : getAllKeys)
    : (isFlat ? keysIn : keys);

  var props = isArr ? undefined : keysFunc(value);
  arrayEach(props || value, function(subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}

module.exports = baseClone;


/***/ }),

/***/ "./node_modules/lodash/_baseCreate.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseCreate.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!isObject(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

module.exports = baseCreate;


/***/ }),

/***/ "./node_modules/lodash/_baseEach.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseEach.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
    createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");

/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
var baseEach = createBaseEach(baseForOwn);

module.exports = baseEach;


/***/ }),

/***/ "./node_modules/lodash/_baseFindIndex.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseFindIndex.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseFindIndex(array, predicate, fromIndex, fromRight) {
  var length = array.length,
      index = fromIndex + (fromRight ? 1 : -1);

  while ((fromRight ? index-- : ++index < length)) {
    if (predicate(array[index], index, array)) {
      return index;
    }
  }
  return -1;
}

module.exports = baseFindIndex;


/***/ }),

/***/ "./node_modules/lodash/_baseFlatten.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseFlatten.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1,
      length = array.length;

  predicate || (predicate = isFlattenable);
  result || (result = []);

  while (++index < length) {
    var value = array[index];
    if (depth > 0 && predicate(value)) {
      if (depth > 1) {
        // Recursively flatten arrays (susceptible to call stack limits).
        baseFlatten(value, depth - 1, predicate, isStrict, result);
      } else {
        arrayPush(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}

module.exports = baseFlatten;


/***/ }),

/***/ "./node_modules/lodash/_baseFor.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseFor.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = createBaseFor();

module.exports = baseFor;


/***/ }),

/***/ "./node_modules/lodash/_baseForOwn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseForOwn.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && baseFor(object, iteratee, keys);
}

module.exports = baseForOwn;


/***/ }),

/***/ "./node_modules/lodash/_baseGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = castPath(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

module.exports = baseGet;


/***/ }),

/***/ "./node_modules/lodash/_baseGetAllKeys.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}

module.exports = baseGetAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseGetTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseGetTag.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
    objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");

/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? getRawTag(value)
    : objectToString(value);
}

module.exports = baseGetTag;


/***/ }),

/***/ "./node_modules/lodash/_baseHas.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseHas.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.has` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHas(object, key) {
  return object != null && hasOwnProperty.call(object, key);
}

module.exports = baseHas;


/***/ }),

/***/ "./node_modules/lodash/_baseHasIn.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseHasIn.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

module.exports = baseHasIn;


/***/ }),

/***/ "./node_modules/lodash/_baseIsArguments.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsArguments.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return isObjectLike(value) && baseGetTag(value) == argsTag;
}

module.exports = baseIsArguments;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqual.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsEqual.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}

module.exports = baseIsEqual;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
    equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray(object),
      othIsArr = isArray(other),
      objTag = objIsArr ? arrayTag : getTag(object),
      othTag = othIsArr ? arrayTag : getTag(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && isBuffer(object)) {
    if (!isBuffer(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack);
    return (objIsArr || isTypedArray(object))
      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new Stack);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack);
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}

module.exports = baseIsEqualDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMap.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsMap.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return isObjectLike(value) && getTag(value) == mapTag;
}

module.exports = baseIsMap;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMatch.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsMatch.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new Stack;
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

module.exports = baseIsMatch;


/***/ }),

/***/ "./node_modules/lodash/_baseIsNative.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIsNative.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!isObject(value) || isMasked(value)) {
    return false;
  }
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource(value));
}

module.exports = baseIsNative;


/***/ }),

/***/ "./node_modules/lodash/_baseIsSet.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsSet.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return isObjectLike(value) && getTag(value) == setTag;
}

module.exports = baseIsSet;


/***/ }),

/***/ "./node_modules/lodash/_baseIsTypedArray.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return isObjectLike(value) &&
    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}

module.exports = baseIsTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_baseIteratee.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIteratee.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
    baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == 'object') {
    return isArray(value)
      ? baseMatchesProperty(value[0], value[1])
      : baseMatches(value);
  }
  return property(value);
}

module.exports = baseIteratee;


/***/ }),

/***/ "./node_modules/lodash/_baseKeys.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseKeys.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!isPrototype(object)) {
    return nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseKeysIn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseKeysIn.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!isObject(object)) {
    return nativeKeysIn(object);
  }
  var isProto = isPrototype(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_baseLodash.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseLodash.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The function whose prototype chain sequence wrappers inherit from.
 *
 * @private
 */
function baseLodash() {
  // No operation performed.
}

module.exports = baseLodash;


/***/ }),

/***/ "./node_modules/lodash/_baseMatches.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseMatches.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
    getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;


/***/ }),

/***/ "./node_modules/lodash/_baseMatchesProperty.js":
/*!*****************************************************!*\
  !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
    get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? hasIn(object, path)
      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

module.exports = baseMatchesProperty;


/***/ }),

/***/ "./node_modules/lodash/_baseMerge.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseMerge.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  baseFor(source, function(srcValue, key) {
    stack || (stack = new Stack);
    if (isObject(srcValue)) {
      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
    }
    else {
      var newValue = customizer
        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
        : undefined;

      if (newValue === undefined) {
        newValue = srcValue;
      }
      assignMergeValue(object, key, newValue);
    }
  }, keysIn);
}

module.exports = baseMerge;


/***/ }),

/***/ "./node_modules/lodash/_baseMergeDeep.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseMergeDeep.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
    toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = safeGet(object, key),
      srcValue = safeGet(source, key),
      stacked = stack.get(srcValue);

  if (stacked) {
    assignMergeValue(object, key, stacked);
    return;
  }
  var newValue = customizer
    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
    : undefined;

  var isCommon = newValue === undefined;

  if (isCommon) {
    var isArr = isArray(srcValue),
        isBuff = !isArr && isBuffer(srcValue),
        isTyped = !isArr && !isBuff && isTypedArray(srcValue);

    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if (isArray(objValue)) {
        newValue = objValue;
      }
      else if (isArrayLikeObject(objValue)) {
        newValue = copyArray(objValue);
      }
      else if (isBuff) {
        isCommon = false;
        newValue = cloneBuffer(srcValue, true);
      }
      else if (isTyped) {
        isCommon = false;
        newValue = cloneTypedArray(srcValue, true);
      }
      else {
        newValue = [];
      }
    }
    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
      newValue = objValue;
      if (isArguments(objValue)) {
        newValue = toPlainObject(objValue);
      }
      else if (!isObject(objValue) || isFunction(objValue)) {
        newValue = initCloneObject(srcValue);
      }
    }
    else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  assignMergeValue(object, key, newValue);
}

module.exports = baseMergeDeep;


/***/ }),

/***/ "./node_modules/lodash/_basePick.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_basePick.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */
function basePick(object, paths) {
  return basePickBy(object, paths, function(value, path) {
    return hasIn(object, path);
  });
}

module.exports = basePick;


/***/ }),

/***/ "./node_modules/lodash/_basePickBy.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_basePickBy.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */
function basePickBy(object, paths, predicate) {
  var index = -1,
      length = paths.length,
      result = {};

  while (++index < length) {
    var path = paths[index],
        value = baseGet(object, path);

    if (predicate(value, path)) {
      baseSet(result, castPath(path, object), value);
    }
  }
  return result;
}

module.exports = basePickBy;


/***/ }),

/***/ "./node_modules/lodash/_baseProperty.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseProperty.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;


/***/ }),

/***/ "./node_modules/lodash/_basePropertyDeep.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_basePropertyDeep.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return baseGet(object, path);
  };
}

module.exports = basePropertyDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return setToString(overRest(func, start, identity), func + '');
}

module.exports = baseRest;


/***/ }),

/***/ "./node_modules/lodash/_baseSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseSet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */
function baseSet(object, path, value, customizer) {
  if (!isObject(object)) {
    return object;
  }
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      lastIndex = length - 1,
      nested = object;

  while (nested != null && ++index < length) {
    var key = toKey(path[index]),
        newValue = value;

    if (index != lastIndex) {
      var objValue = nested[key];
      newValue = customizer ? customizer(objValue, key, nested) : undefined;
      if (newValue === undefined) {
        newValue = isObject(objValue)
          ? objValue
          : (isIndex(path[index + 1]) ? [] : {});
      }
    }
    assignValue(nested, key, newValue);
    nested = nested[key];
  }
  return object;
}

module.exports = baseSet;


/***/ }),

/***/ "./node_modules/lodash/_baseSetToString.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseSetToString.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
    defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !defineProperty ? identity : function(func, string) {
  return defineProperty(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': constant(string),
    'writable': true
  });
};

module.exports = baseSetToString;


/***/ }),

/***/ "./node_modules/lodash/_baseSlice.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseSlice.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/lodash/_baseSome.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseSome.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/_baseTimes.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseTimes.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

module.exports = baseTimes;


/***/ }),

/***/ "./node_modules/lodash/_baseToString.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseToString.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (isArray(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return arrayMap(value, baseToString) + '';
  }
  if (isSymbol(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = baseToString;


/***/ }),

/***/ "./node_modules/lodash/_baseUnary.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseUnary.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

module.exports = baseUnary;


/***/ }),

/***/ "./node_modules/lodash/_baseUnset.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseUnset.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
    parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.unset`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The property path to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 */
function baseUnset(object, path) {
  path = castPath(path, object);
  object = parent(object, path);
  return object == null || delete object[toKey(last(path))];
}

module.exports = baseUnset;


/***/ }),

/***/ "./node_modules/lodash/_cacheHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_cacheHas.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

module.exports = cacheHas;


/***/ }),

/***/ "./node_modules/lodash/_castFunction.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_castFunction.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/**
 * Casts `value` to `identity` if it's not a function.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Function} Returns cast function.
 */
function castFunction(value) {
  return typeof value == 'function' ? value : identity;
}

module.exports = castFunction;


/***/ }),

/***/ "./node_modules/lodash/_castPath.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_castPath.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
    toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}

module.exports = castPath;


/***/ }),

/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;


/***/ }),

/***/ "./node_modules/lodash/_cloneBuffer.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneBuffer.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

module.exports = cloneBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/_cloneDataView.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_cloneDataView.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}

module.exports = cloneDataView;


/***/ }),

/***/ "./node_modules/lodash/_cloneRegExp.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneRegExp.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}

module.exports = cloneRegExp;


/***/ }),

/***/ "./node_modules/lodash/_cloneSymbol.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneSymbol.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}

module.exports = cloneSymbol;


/***/ }),

/***/ "./node_modules/lodash/_cloneTypedArray.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_cloneTypedArray.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

module.exports = cloneTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_copyArray.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_copyArray.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;


/***/ }),

/***/ "./node_modules/lodash/_copyObject.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_copyObject.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      baseAssignValue(object, key, newValue);
    } else {
      assignValue(object, key, newValue);
    }
  }
  return object;
}

module.exports = copyObject;


/***/ }),

/***/ "./node_modules/lodash/_copySymbols.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_copySymbols.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return copyObject(source, getSymbols(source), object);
}

module.exports = copySymbols;


/***/ }),

/***/ "./node_modules/lodash/_copySymbolsIn.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_copySymbolsIn.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return copyObject(source, getSymbolsIn(source), object);
}

module.exports = copySymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_coreJsData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_coreJsData.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];

module.exports = coreJsData;


/***/ }),

/***/ "./node_modules/lodash/_createAssigner.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createAssigner.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return baseRest(function(object, sources) {
    var index = -1,
        length = sources.length,
        customizer = length > 1 ? sources[length - 1] : undefined,
        guard = length > 2 ? sources[2] : undefined;

    customizer = (assigner.length > 3 && typeof customizer == 'function')
      ? (length--, customizer)
      : undefined;

    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}

module.exports = createAssigner;


/***/ }),

/***/ "./node_modules/lodash/_createBaseEach.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createBaseEach.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseEach(eachFunc, fromRight) {
  return function(collection, iteratee) {
    if (collection == null) {
      return collection;
    }
    if (!isArrayLike(collection)) {
      return eachFunc(collection, iteratee);
    }
    var length = collection.length,
        index = fromRight ? length : -1,
        iterable = Object(collection);

    while ((fromRight ? index-- : ++index < length)) {
      if (iteratee(iterable[index], index, iterable) === false) {
        break;
      }
    }
    return collection;
  };
}

module.exports = createBaseEach;


/***/ }),

/***/ "./node_modules/lodash/_createBaseFor.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_createBaseFor.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

module.exports = createBaseFor;


/***/ }),

/***/ "./node_modules/lodash/_createFind.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_createFind.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates a `_.find` or `_.findLast` function.
 *
 * @private
 * @param {Function} findIndexFunc The function to find the collection index.
 * @returns {Function} Returns the new find function.
 */
function createFind(findIndexFunc) {
  return function(collection, predicate, fromIndex) {
    var iterable = Object(collection);
    if (!isArrayLike(collection)) {
      var iteratee = baseIteratee(predicate, 3);
      collection = keys(collection);
      predicate = function(key) { return iteratee(iterable[key], key, iterable); };
    }
    var index = findIndexFunc(collection, predicate, fromIndex);
    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  };
}

module.exports = createFind;


/***/ }),

/***/ "./node_modules/lodash/_createFlow.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_createFlow.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
    getData = __webpack_require__(/*! ./_getData */ "./node_modules/lodash/_getData.js"),
    getFuncName = __webpack_require__(/*! ./_getFuncName */ "./node_modules/lodash/_getFuncName.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isLaziable = __webpack_require__(/*! ./_isLaziable */ "./node_modules/lodash/_isLaziable.js");

/** 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;


/***/ }),

/***/ "./node_modules/lodash/_customOmitClone.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_customOmitClone.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");

/**
 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
 * objects.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {string} key The key of the property to inspect.
 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
 */
function customOmitClone(value) {
  return isPlainObject(value) ? undefined : value;
}

module.exports = customOmitClone;


/***/ }),

/***/ "./node_modules/lodash/_defineProperty.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_defineProperty.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

var defineProperty = (function() {
  try {
    var func = getNative(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

module.exports = defineProperty;


/***/ }),

/***/ "./node_modules/lodash/_equalArrays.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_equalArrays.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
    arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // 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;


/***/ }),

/***/ "./node_modules/lodash/_equalByTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_equalByTag.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return eq(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = mapToArray;

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = setToArray);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

module.exports = equalByTag;


/***/ }),

/***/ "./node_modules/lodash/_equalObjects.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_equalObjects.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = getAllKeys(object),
      objLength = objProps.length,
      othProps = getAllKeys(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // 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;


/***/ }),

/***/ "./node_modules/lodash/_flatRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_flatRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
function flatRest(func) {
  return setToString(overRest(func, undefined, flatten), func + '');
}

module.exports = flatRest;


/***/ }),

/***/ "./node_modules/lodash/_freeGlobal.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_freeGlobal.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

module.exports = freeGlobal;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/lodash/_getAllKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getAllKeys.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return baseGetAllKeys(object, keys, getSymbols);
}

module.exports = getAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_getAllKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getAllKeysIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
}

module.exports = getAllKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_getData.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_getData.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var metaMap = __webpack_require__(/*! ./_metaMap */ "./node_modules/lodash/_metaMap.js"),
    noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/_getFuncName.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_getFuncName.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var realNames = __webpack_require__(/*! ./_realNames */ "./node_modules/lodash/_realNames.js");

/** 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;


/***/ }),

/***/ "./node_modules/lodash/_getMapData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getMapData.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return isKeyable(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

module.exports = getMapData;


/***/ }),

/***/ "./node_modules/lodash/_getMatchData.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getMatchData.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = keys(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, isStrictComparable(value)];
  }
  return result;
}

module.exports = getMatchData;


/***/ }),

/***/ "./node_modules/lodash/_getNative.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getNative.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
    getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = getValue(object, key);
  return baseIsNative(value) ? value : undefined;
}

module.exports = getNative;


/***/ }),

/***/ "./node_modules/lodash/_getPrototype.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getPrototype.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);

module.exports = getPrototype;


/***/ }),

/***/ "./node_modules/lodash/_getRawTag.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getRawTag.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

module.exports = getRawTag;


/***/ }),

/***/ "./node_modules/lodash/_getSymbols.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getSymbols.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return arrayFilter(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

module.exports = getSymbols;


/***/ }),

/***/ "./node_modules/lodash/_getSymbolsIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getSymbolsIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  var result = [];
  while (object) {
    arrayPush(result, getSymbols(object));
    object = getPrototype(object);
  }
  return result;
};

module.exports = getSymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_getTag.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_getTag.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
    Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
    WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
    baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
    mapCtorString = toSource(Map),
    promiseCtorString = toSource(Promise),
    setCtorString = toSource(Set),
    weakMapCtorString = toSource(WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = baseGetTag;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
    (Map && getTag(new Map) != mapTag) ||
    (Promise && getTag(Promise.resolve()) != promiseTag) ||
    (Set && getTag(new Set) != setTag) ||
    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  getTag = function(value) {
    var result = baseGetTag(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? toSource(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

module.exports = getTag;


/***/ }),

/***/ "./node_modules/lodash/_getValue.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_getValue.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

module.exports = getValue;


/***/ }),

/***/ "./node_modules/lodash/_hasPath.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hasPath.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && isLength(length) && isIndex(key, length) &&
    (isArray(object) || isArguments(object));
}

module.exports = hasPath;


/***/ }),

/***/ "./node_modules/lodash/_hashClear.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_hashClear.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
  this.size = 0;
}

module.exports = hashClear;


/***/ }),

/***/ "./node_modules/lodash/_hashDelete.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_hashDelete.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = hashDelete;


/***/ }),

/***/ "./node_modules/lodash/_hashGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

module.exports = hashGet;


/***/ }),

/***/ "./node_modules/lodash/_hashHas.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashHas.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

module.exports = hashHas;


/***/ }),

/***/ "./node_modules/lodash/_hashSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashSet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

module.exports = hashSet;


/***/ }),

/***/ "./node_modules/lodash/_initCloneArray.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneArray.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
      result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}

module.exports = initCloneArray;


/***/ }),

/***/ "./node_modules/lodash/_initCloneByTag.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneByTag.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
    cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
    cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
    cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return cloneArrayBuffer(object);

    case boolTag:
    case dateTag:
      return new Ctor(+object);

    case dataViewTag:
      return cloneDataView(object, isDeep);

    case float32Tag: case float64Tag:
    case int8Tag: case int16Tag: case int32Tag:
    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
      return cloneTypedArray(object, isDeep);

    case mapTag:
      return new Ctor;

    case numberTag:
    case stringTag:
      return new Ctor(object);

    case regexpTag:
      return cloneRegExp(object);

    case setTag:
      return new Ctor;

    case symbolTag:
      return cloneSymbol(object);
  }
}

module.exports = initCloneByTag;


/***/ }),

/***/ "./node_modules/lodash/_initCloneObject.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_initCloneObject.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !isPrototype(object))
    ? baseCreate(getPrototype(object))
    : {};
}

module.exports = initCloneObject;


/***/ }),

/***/ "./node_modules/lodash/_isFlattenable.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_isFlattenable.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/** Built-in value references. */
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function isFlattenable(value) {
  return isArray(value) || isArguments(value) ||
    !!(spreadableSymbol && value && value[spreadableSymbol]);
}

module.exports = isFlattenable;


/***/ }),

/***/ "./node_modules/lodash/_isIndex.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_isIndex.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

module.exports = isIndex;


/***/ }),

/***/ "./node_modules/lodash/_isIterateeCall.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_isIterateeCall.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!isObject(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (isArrayLike(object) && isIndex(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return eq(object[index], value);
  }
  return false;
}

module.exports = isIterateeCall;


/***/ }),

/***/ "./node_modules/lodash/_isKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_isKey.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

module.exports = isKey;


/***/ }),

/***/ "./node_modules/lodash/_isKeyable.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_isKeyable.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

module.exports = isKeyable;


/***/ }),

/***/ "./node_modules/lodash/_isLaziable.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_isLaziable.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    getData = __webpack_require__(/*! ./_getData */ "./node_modules/lodash/_getData.js"),
    getFuncName = __webpack_require__(/*! ./_getFuncName */ "./node_modules/lodash/_getFuncName.js"),
    lodash = __webpack_require__(/*! ./wrapperLodash */ "./node_modules/lodash/wrapperLodash.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/_isMasked.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_isMasked.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");

/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

module.exports = isMasked;


/***/ }),

/***/ "./node_modules/lodash/_isPrototype.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_isPrototype.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

module.exports = isPrototype;


/***/ }),

/***/ "./node_modules/lodash/_isStrictComparable.js":
/*!****************************************************!*\
  !*** ./node_modules/lodash/_isStrictComparable.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !isObject(value);
}

module.exports = isStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_listCacheClear.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_listCacheClear.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

module.exports = listCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_listCacheDelete.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_listCacheDelete.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

module.exports = listCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_listCacheGet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheGet.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  return index < 0 ? undefined : data[index][1];
}

module.exports = listCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_listCacheHas.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheHas.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return assocIndexOf(this.__data__, key) > -1;
}

module.exports = listCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_listCacheSet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheSet.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

module.exports = listCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheClear.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_mapCacheClear.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
    ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheDelete.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_mapCacheDelete.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = mapCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheGet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheGet.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return getMapData(this, key).get(key);
}

module.exports = mapCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheHas.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheSet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheSet.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = getMapData(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

module.exports = mapCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_mapToArray.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

module.exports = mapToArray;


/***/ }),

/***/ "./node_modules/lodash/_matchesStrictComparable.js":
/*!*********************************************************!*\
  !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_memoizeCapped.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_memoizeCapped.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");

/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = memoize(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

module.exports = memoizeCapped;


/***/ }),

/***/ "./node_modules/lodash/_metaMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_metaMap.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js");

/** Used to store function metadata. */
var metaMap = WeakMap && new WeakMap;

module.exports = metaMap;


/***/ }),

/***/ "./node_modules/lodash/_nativeCreate.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeCreate.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');

module.exports = nativeCreate;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_nativeKeys.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);

module.exports = nativeKeys;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeKeysIn.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

module.exports = nativeKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_nodeUtil.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_nodeUtil.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

module.exports = nodeUtil;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/_objectToString.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_objectToString.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

module.exports = objectToString;


/***/ }),

/***/ "./node_modules/lodash/_overArg.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_overArg.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;


/***/ }),

/***/ "./node_modules/lodash/_overRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_overRest.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  return function() {
    var args = arguments,
        index = -1,
        length = nativeMax(args.length - start, 0),
        array = Array(length);

    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return apply(func, this, otherArgs);
  };
}

module.exports = overRest;


/***/ }),

/***/ "./node_modules/lodash/_parent.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_parent.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/_realNames.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_realNames.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to lookup unminified function names. */
var realNames = {};

module.exports = realNames;


/***/ }),

/***/ "./node_modules/lodash/_root.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_root.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

module.exports = root;


/***/ }),

/***/ "./node_modules/lodash/_safeGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_safeGet.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }

  if (key == '__proto__') {
    return;
  }

  return object[key];
}

module.exports = safeGet;


/***/ }),

/***/ "./node_modules/lodash/_setCacheAdd.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheAdd.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

module.exports = setCacheAdd;


/***/ }),

/***/ "./node_modules/lodash/_setCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheHas.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

module.exports = setCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_setToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_setToArray.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

module.exports = setToArray;


/***/ }),

/***/ "./node_modules/lodash/_setToString.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setToString.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
    shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");

/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = shortOut(baseSetToString);

module.exports = setToString;


/***/ }),

/***/ "./node_modules/lodash/_shortOut.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_shortOut.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
    HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
      lastCalled = 0;

  return function() {
    var stamp = nativeNow(),
        remaining = HOT_SPAN - (stamp - lastCalled);

    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}

module.exports = shortOut;


/***/ }),

/***/ "./node_modules/lodash/_stackClear.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_stackClear.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new ListCache;
  this.size = 0;
}

module.exports = stackClear;


/***/ }),

/***/ "./node_modules/lodash/_stackDelete.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_stackDelete.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

module.exports = stackDelete;


/***/ }),

/***/ "./node_modules/lodash/_stackGet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackGet.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

module.exports = stackGet;


/***/ }),

/***/ "./node_modules/lodash/_stackHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackHas.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

module.exports = stackHas;


/***/ }),

/***/ "./node_modules/lodash/_stackSet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackSet.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof ListCache) {
    var pairs = data.__data__;
    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new MapCache(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

module.exports = stackSet;


/***/ }),

/***/ "./node_modules/lodash/_stringToPath.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_stringToPath.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");

/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = memoizeCapped(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

module.exports = stringToPath;


/***/ }),

/***/ "./node_modules/lodash/_toKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_toKey.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || isSymbol(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = toKey;


/***/ }),

/***/ "./node_modules/lodash/_toSource.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_toSource.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

module.exports = toSource;


/***/ }),

/***/ "./node_modules/lodash/_wrapperClone.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_wrapperClone.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/chunk.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/chunk.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
    nativeMax = Math.max;

/**
 * Creates an array of elements split into groups the length of `size`.
 * If `array` can't be split evenly, the final chunk will be the remaining
 * elements.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to process.
 * @param {number} [size=1] The length of each chunk
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {Array} Returns the new array of chunks.
 * @example
 *
 * _.chunk(['a', 'b', 'c', 'd'], 2);
 * // => [['a', 'b'], ['c', 'd']]
 *
 * _.chunk(['a', 'b', 'c', 'd'], 3);
 * // => [['a', 'b', 'c'], ['d']]
 */
function chunk(array, size, guard) {
  if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
    size = 1;
  } else {
    size = nativeMax(toInteger(size), 0);
  }
  var length = array == null ? 0 : array.length;
  if (!length || size < 1) {
    return [];
  }
  var index = 0,
      resIndex = 0,
      result = Array(nativeCeil(length / size));

  while (index < length) {
    result[resIndex++] = baseSlice(array, index, (index += size));
  }
  return result;
}

module.exports = chunk;


/***/ }),

/***/ "./node_modules/lodash/cloneDeep.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/cloneDeep.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}

module.exports = cloneDeep;


/***/ }),

/***/ "./node_modules/lodash/constant.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/constant.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function() {
    return value;
  };
}

module.exports = constant;


/***/ }),

/***/ "./node_modules/lodash/debounce.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/debounce.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
    toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = toNumber(wait) || 0;
  if (isObject(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        timeWaiting = wait - timeSinceLastCall;

    return maxing
      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
      : timeWaiting;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(now());
  }

  function debounced() {
    var time = now(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

module.exports = debounce;


/***/ }),

/***/ "./node_modules/lodash/eq.js":
/*!***********************************!*\
  !*** ./node_modules/lodash/eq.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;


/***/ }),

/***/ "./node_modules/lodash/find.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/find.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
    findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");

/**
 * Iterates over elements of `collection`, returning the first element
 * `predicate` returns truthy for. The predicate is invoked with three
 * arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {*} Returns the matched element, else `undefined`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': true },
 *   { 'user': 'fred',    'age': 40, 'active': false },
 *   { 'user': 'pebbles', 'age': 1,  'active': true }
 * ];
 *
 * _.find(users, function(o) { return o.age < 40; });
 * // => object for 'barney'
 *
 * // The `_.matches` iteratee shorthand.
 * _.find(users, { 'age': 1, 'active': true });
 * // => object for 'pebbles'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.find(users, ['active', false]);
 * // => object for 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.find(users, 'active');
 * // => object for 'barney'
 */
var find = createFind(findIndex);

module.exports = find;


/***/ }),

/***/ "./node_modules/lodash/findIndex.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/findIndex.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */
function findIndex(array, predicate, fromIndex) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return -1;
  }
  var index = fromIndex == null ? 0 : toInteger(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return baseFindIndex(array, baseIteratee(predicate, 3), index);
}

module.exports = findIndex;


/***/ }),

/***/ "./node_modules/lodash/flatten.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/flatten.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
function flatten(array) {
  var length = array == null ? 0 : array.length;
  return length ? baseFlatten(array, 1) : [];
}

module.exports = flatten;


/***/ }),

/***/ "./node_modules/lodash/flowRight.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/flowRight.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var createFlow = __webpack_require__(/*! ./_createFlow */ "./node_modules/lodash/_createFlow.js");

/**
 * This method is like `_.flow` except that it creates a function that
 * invokes the given functions from right to left.
 *
 * @static
 * @since 3.0.0
 * @memberOf _
 * @category Util
 * @param {...(Function|Function[])} [funcs] The functions to invoke.
 * @returns {Function} Returns the new composite function.
 * @see _.flow
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var addSquare = _.flowRight([square, _.add]);
 * addSquare(1, 2);
 * // => 9
 */
var flowRight = createFlow(true);

module.exports = flowRight;


/***/ }),

/***/ "./node_modules/lodash/get.js":
/*!************************************!*\
  !*** ./node_modules/lodash/get.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : baseGet(object, path);
  return result === undefined ? defaultValue : result;
}

module.exports = get;


/***/ }),

/***/ "./node_modules/lodash/has.js":
/*!************************************!*\
  !*** ./node_modules/lodash/has.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");

/**
 * Checks if `path` is a direct property of `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = { 'a': { 'b': 2 } };
 * var other = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.has(object, 'a');
 * // => true
 *
 * _.has(object, 'a.b');
 * // => true
 *
 * _.has(object, ['a', 'b']);
 * // => true
 *
 * _.has(other, 'a');
 * // => false
 */
function has(object, path) {
  return object != null && hasPath(object, path, baseHas);
}

module.exports = has;


/***/ }),

/***/ "./node_modules/lodash/hasIn.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/hasIn.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && hasPath(object, path, baseHasIn);
}

module.exports = hasIn;


/***/ }),

/***/ "./node_modules/lodash/head.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/head.js ***!
  \*************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/lodash/identity.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/identity.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;


/***/ }),

/***/ "./node_modules/lodash/isArguments.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArguments.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

module.exports = isArguments;


/***/ }),

/***/ "./node_modules/lodash/isArray.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isArray.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

module.exports = isArray;


/***/ }),

/***/ "./node_modules/lodash/isArrayLike.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArrayLike.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

module.exports = isArrayLike;


/***/ }),

/***/ "./node_modules/lodash/isArrayLikeObject.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/isArrayLikeObject.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return isObjectLike(value) && isArrayLike(value);
}

module.exports = isArrayLikeObject;


/***/ }),

/***/ "./node_modules/lodash/isBuffer.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isBuffer.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
    stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || stubFalse;

module.exports = isBuffer;

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/isEqual.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isEqual.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/isEqualWith.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isEqualWith.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * This method is like `_.isEqual` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with up to
 * six arguments: (objValue, othValue [, index|key, object, other, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * _.isEqualWith(array, other, customizer);
 * // => true
 */
function isEqualWith(value, other, customizer) {
  customizer = typeof customizer == 'function' ? customizer : undefined;
  var result = customizer ? customizer(value, other) : undefined;
  return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
}

module.exports = isEqualWith;


/***/ }),

/***/ "./node_modules/lodash/isFunction.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/isFunction.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!isObject(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

module.exports = isFunction;


/***/ }),

/***/ "./node_modules/lodash/isLength.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isLength.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

module.exports = isLength;


/***/ }),

/***/ "./node_modules/lodash/isMap.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isMap.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

module.exports = isMap;


/***/ }),

/***/ "./node_modules/lodash/isObject.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isObject.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

module.exports = isObject;


/***/ }),

/***/ "./node_modules/lodash/isObjectLike.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isObjectLike.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

module.exports = isObjectLike;


/***/ }),

/***/ "./node_modules/lodash/isPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/isPlainObject.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
    return false;
  }
  var proto = getPrototype(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

module.exports = isPlainObject;


/***/ }),

/***/ "./node_modules/lodash/isSet.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isSet.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

module.exports = isSet;


/***/ }),

/***/ "./node_modules/lodash/isString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isString.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var stringTag = '[object String]';

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
 * @example
 *
 * _.isString('abc');
 * // => true
 *
 * _.isString(1);
 * // => false
 */
function isString(value) {
  return typeof value == 'string' ||
    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
}

module.exports = isString;


/***/ }),

/***/ "./node_modules/lodash/isSymbol.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isSymbol.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;


/***/ }),

/***/ "./node_modules/lodash/isTypedArray.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isTypedArray.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

module.exports = isTypedArray;


/***/ }),

/***/ "./node_modules/lodash/keys.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/keys.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}

module.exports = keys;


/***/ }),

/***/ "./node_modules/lodash/keysIn.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/keysIn.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}

module.exports = keysIn;


/***/ }),

/***/ "./node_modules/lodash/last.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/last.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */
function last(array) {
  var length = array == null ? 0 : array.length;
  return length ? array[length - 1] : undefined;
}

module.exports = last;


/***/ }),

/***/ "./node_modules/lodash/lodash.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/lodash.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
;(function() {

  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  var undefined;

  /** Used as the semantic version number. */
  var VERSION = '4.17.15';

  /** Used as the size to enable large array optimizations. */
  var LARGE_ARRAY_SIZE = 200;

  /** Error message constants. */
  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
      FUNC_ERROR_TEXT = 'Expected a function';

  /** Used to stand-in for `undefined` hash values. */
  var HASH_UNDEFINED = '__lodash_hash_undefined__';

  /** Used as the maximum memoize cache size. */
  var MAX_MEMOIZE_SIZE = 500;

  /** Used as the internal argument placeholder. */
  var PLACEHOLDER = '__lodash_placeholder__';

  /** Used to compose bitmasks for cloning. */
  var CLONE_DEEP_FLAG = 1,
      CLONE_FLAT_FLAG = 2,
      CLONE_SYMBOLS_FLAG = 4;

  /** Used to compose bitmasks for value comparisons. */
  var COMPARE_PARTIAL_FLAG = 1,
      COMPARE_UNORDERED_FLAG = 2;

  /** Used to compose bitmasks for function metadata. */
  var WRAP_BIND_FLAG = 1,
      WRAP_BIND_KEY_FLAG = 2,
      WRAP_CURRY_BOUND_FLAG = 4,
      WRAP_CURRY_FLAG = 8,
      WRAP_CURRY_RIGHT_FLAG = 16,
      WRAP_PARTIAL_FLAG = 32,
      WRAP_PARTIAL_RIGHT_FLAG = 64,
      WRAP_ARY_FLAG = 128,
      WRAP_REARG_FLAG = 256,
      WRAP_FLIP_FLAG = 512;

  /** Used as default options for `_.truncate`. */
  var DEFAULT_TRUNC_LENGTH = 30,
      DEFAULT_TRUNC_OMISSION = '...';

  /** Used to detect hot functions by number of calls within a span of milliseconds. */
  var HOT_COUNT = 800,
      HOT_SPAN = 16;

  /** Used to indicate the type of lazy iteratees. */
  var LAZY_FILTER_FLAG = 1,
      LAZY_MAP_FLAG = 2,
      LAZY_WHILE_FLAG = 3;

  /** Used as references for various `Number` constants. */
  var INFINITY = 1 / 0,
      MAX_SAFE_INTEGER = 9007199254740991,
      MAX_INTEGER = 1.7976931348623157e+308,
      NAN = 0 / 0;

  /** Used as references for the maximum length and index of an array. */
  var MAX_ARRAY_LENGTH = 4294967295,
      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;

  /** Used to associate wrap methods with their bit flags. */
  var wrapFlags = [
    ['ary', WRAP_ARY_FLAG],
    ['bind', WRAP_BIND_FLAG],
    ['bindKey', WRAP_BIND_KEY_FLAG],
    ['curry', WRAP_CURRY_FLAG],
    ['curryRight', WRAP_CURRY_RIGHT_FLAG],
    ['flip', WRAP_FLIP_FLAG],
    ['partial', WRAP_PARTIAL_FLAG],
    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
    ['rearg', WRAP_REARG_FLAG]
  ];

  /** `Object#toString` result references. */
  var argsTag = '[object Arguments]',
      arrayTag = '[object Array]',
      asyncTag = '[object AsyncFunction]',
      boolTag = '[object Boolean]',
      dateTag = '[object Date]',
      domExcTag = '[object DOMException]',
      errorTag = '[object Error]',
      funcTag = '[object Function]',
      genTag = '[object GeneratorFunction]',
      mapTag = '[object Map]',
      numberTag = '[object Number]',
      nullTag = '[object Null]',
      objectTag = '[object Object]',
      promiseTag = '[object Promise]',
      proxyTag = '[object Proxy]',
      regexpTag = '[object RegExp]',
      setTag = '[object Set]',
      stringTag = '[object String]',
      symbolTag = '[object Symbol]',
      undefinedTag = '[object Undefined]',
      weakMapTag = '[object WeakMap]',
      weakSetTag = '[object WeakSet]';

  var arrayBufferTag = '[object ArrayBuffer]',
      dataViewTag = '[object DataView]',
      float32Tag = '[object Float32Array]',
      float64Tag = '[object Float64Array]',
      int8Tag = '[object Int8Array]',
      int16Tag = '[object Int16Array]',
      int32Tag = '[object Int32Array]',
      uint8Tag = '[object Uint8Array]',
      uint8ClampedTag = '[object Uint8ClampedArray]',
      uint16Tag = '[object Uint16Array]',
      uint32Tag = '[object Uint32Array]';

  /** Used to match empty string literals in compiled template source. */
  var reEmptyStringLeading = /\b__p \+= '';/g,
      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;

  /** Used to match HTML entities and HTML characters. */
  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
      reUnescapedHtml = /[&<>"']/g,
      reHasEscapedHtml = RegExp(reEscapedHtml.source),
      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);

  /** Used to match template delimiters. */
  var reEscape = /<%-([\s\S]+?)%>/g,
      reEvaluate = /<%([\s\S]+?)%>/g,
      reInterpolate = /<%=([\s\S]+?)%>/g;

  /** Used to match property names within property paths. */
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      reIsPlainProp = /^\w*$/,
      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

  /**
   * Used to match `RegExp`
   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
   */
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
      reHasRegExpChar = RegExp(reRegExpChar.source);

  /** Used to match leading and trailing whitespace. */
  var reTrim = /^\s+|\s+$/g,
      reTrimStart = /^\s+/,
      reTrimEnd = /\s+$/;

  /** Used to match wrap detail comments. */
  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
      reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
      reSplitDetails = /,? & /;

  /** Used to match words composed of alphanumeric characters. */
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;

  /** Used to match backslashes in property paths. */
  var reEscapeChar = /\\(\\)?/g;

  /**
   * Used to match
   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
   */
  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;

  /** Used to match `RegExp` flags from their coerced string values. */
  var reFlags = /\w*$/;

  /** Used to detect bad signed hexadecimal string values. */
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

  /** Used to detect binary string values. */
  var reIsBinary = /^0b[01]+$/i;

  /** Used to detect host constructors (Safari). */
  var reIsHostCtor = /^\[object .+?Constructor\]$/;

  /** Used to detect octal string values. */
  var reIsOctal = /^0o[0-7]+$/i;

  /** Used to detect unsigned integer values. */
  var reIsUint = /^(?:0|[1-9]\d*)$/;

  /** Used to match Latin Unicode letters (excluding mathematical operators). */
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;

  /** Used to ensure capturing order of template delimiters. */
  var reNoMatch = /($^)/;

  /** Used to match unescaped characters in compiled string literals. */
  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;

  /** Used to compose unicode character classes. */
  var rsAstralRange = '\\ud800-\\udfff',
      rsComboMarksRange = '\\u0300-\\u036f',
      reComboHalfMarksRange = '\\ufe20-\\ufe2f',
      rsComboSymbolsRange = '\\u20d0-\\u20ff',
      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
      rsDingbatRange = '\\u2700-\\u27bf',
      rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
      rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
      rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
      rsPunctuationRange = '\\u2000-\\u206f',
      rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
      rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
      rsVarRange = '\\ufe0e\\ufe0f',
      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;

  /** Used to compose unicode capture groups. */
  var rsApos = "['\u2019]",
      rsAstral = '[' + rsAstralRange + ']',
      rsBreak = '[' + rsBreakRange + ']',
      rsCombo = '[' + rsComboRange + ']',
      rsDigits = '\\d+',
      rsDingbat = '[' + rsDingbatRange + ']',
      rsLower = '[' + rsLowerRange + ']',
      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
      rsFitz = '\\ud83c[\\udffb-\\udfff]',
      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
      rsNonAstral = '[^' + rsAstralRange + ']',
      rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
      rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
      rsUpper = '[' + rsUpperRange + ']',
      rsZWJ = '\\u200d';

  /** Used to compose unicode regexes. */
  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
      reOptMod = rsModifier + '?',
      rsOptVar = '[' + rsVarRange + ']?',
      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
      rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
      rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
      rsSeq = rsOptVar + reOptMod + rsOptJoin,
      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';

  /** Used to match apostrophes. */
  var reApos = RegExp(rsApos, 'g');

  /**
   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
   */
  var reComboMark = RegExp(rsCombo, 'g');

  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');

  /** Used to match complex or compound words. */
  var reUnicodeWord = RegExp([
    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
    rsUpper + '+' + rsOptContrUpper,
    rsOrdUpper,
    rsOrdLower,
    rsDigits,
    rsEmoji
  ].join('|'), 'g');

  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');

  /** Used to detect strings that need a more robust regexp to match words. */
  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;

  /** Used to assign default `context` object properties. */
  var contextProps = [
    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  ];

  /** Used to make template sourceURLs easier to identify. */
  var templateCounter = -1;

  /** Used to identify `toStringTag` values of typed arrays. */
  var typedArrayTags = {};
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  typedArrayTags[uint32Tag] = true;
  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  typedArrayTags[setTag] = typedArrayTags[stringTag] =
  typedArrayTags[weakMapTag] = false;

  /** Used to identify `toStringTag` values supported by `_.clone`. */
  var cloneableTags = {};
  cloneableTags[argsTag] = cloneableTags[arrayTag] =
  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  cloneableTags[boolTag] = cloneableTags[dateTag] =
  cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  cloneableTags[int32Tag] = cloneableTags[mapTag] =
  cloneableTags[numberTag] = cloneableTags[objectTag] =
  cloneableTags[regexpTag] = cloneableTags[setTag] =
  cloneableTags[stringTag] = cloneableTags[symbolTag] =
  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  cloneableTags[errorTag] = cloneableTags[funcTag] =
  cloneableTags[weakMapTag] = false;

  /** Used to map Latin Unicode letters to basic Latin letters. */
  var deburredLetters = {
    // Latin-1 Supplement block.
    '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
    '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
    '\xc7': 'C',  '\xe7': 'c',
    '\xd0': 'D',  '\xf0': 'd',
    '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
    '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
    '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
    '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
    '\xd1': 'N',  '\xf1': 'n',
    '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
    '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
    '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
    '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
    '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
    '\xc6': 'Ae', '\xe6': 'ae',
    '\xde': 'Th', '\xfe': 'th',
    '\xdf': 'ss',
    // Latin Extended-A block.
    '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
    '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
    '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
    '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
    '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
    '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
    '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
    '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
    '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
    '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
    '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
    '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
    '\u0134': 'J',  '\u0135': 'j',
    '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
    '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
    '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
    '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
    '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
    '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
    '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
    '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
    '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
    '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
    '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
    '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
    '\u0163': 't',  '\u0165': 't', '\u0167': 't',
    '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
    '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
    '\u0174': 'W',  '\u0175': 'w',
    '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
    '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
    '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
    '\u0132': 'IJ', '\u0133': 'ij',
    '\u0152': 'Oe', '\u0153': 'oe',
    '\u0149': "'n", '\u017f': 's'
  };

  /** Used to map characters to HTML entities. */
  var htmlEscapes = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#39;'
  };

  /** Used to map HTML entities to characters. */
  var htmlUnescapes = {
    '&amp;': '&',
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&#39;': "'"
  };

  /** Used to escape characters for inclusion in compiled string literals. */
  var stringEscapes = {
    '\\': '\\',
    "'": "'",
    '\n': 'n',
    '\r': 'r',
    '\u2028': 'u2028',
    '\u2029': 'u2029'
  };

  /** Built-in method references without a dependency on `root`. */
  var freeParseFloat = parseFloat,
      freeParseInt = parseInt;

  /** Detect free variable `global` from Node.js. */
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

  /** Detect free variable `self`. */
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

  /** Used as a reference to the global object. */
  var root = freeGlobal || freeSelf || Function('return this')();

  /** Detect free variable `exports`. */
  var freeExports =  true && exports && !exports.nodeType && exports;

  /** Detect free variable `module`. */
  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

  /** Detect the popular CommonJS extension `module.exports`. */
  var moduleExports = freeModule && freeModule.exports === freeExports;

  /** Detect free variable `process` from Node.js. */
  var freeProcess = moduleExports && freeGlobal.process;

  /** Used to access faster Node.js helpers. */
  var nodeUtil = (function() {
    try {
      // Use `util.types` for Node.js 10+.
      var types = freeModule && freeModule.require && freeModule.require('util').types;

      if (types) {
        return types;
      }

      // Legacy `process.binding('util')` for Node.js < 10.
      return freeProcess && freeProcess.binding && freeProcess.binding('util');
    } catch (e) {}
  }());

  /* Node.js helper references. */
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
      nodeIsDate = nodeUtil && nodeUtil.isDate,
      nodeIsMap = nodeUtil && nodeUtil.isMap,
      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
      nodeIsSet = nodeUtil && nodeUtil.isSet,
      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

  /*--------------------------------------------------------------------------*/

  /**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */
  function apply(func, thisArg, args) {
    switch (args.length) {
      case 0: return func.call(thisArg);
      case 1: return func.call(thisArg, args[0]);
      case 2: return func.call(thisArg, args[0], args[1]);
      case 3: return func.call(thisArg, args[0], args[1], args[2]);
    }
    return func.apply(thisArg, args);
  }

  /**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */
  function arrayAggregator(array, setter, iteratee, accumulator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      var value = array[index];
      setter(accumulator, value, iteratee(value), array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEach(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (iteratee(array[index], index, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEachRight(array, iteratee) {
    var length = array == null ? 0 : array.length;

    while (length--) {
      if (iteratee(array[length], length, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */
  function arrayEvery(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (!predicate(array[index], index, array)) {
        return false;
      }
    }
    return true;
  }

  /**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */
  function arrayFilter(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (predicate(value, index, array)) {
        result[resIndex++] = value;
      }
    }
    return result;
  }

  /**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludes(array, value) {
    var length = array == null ? 0 : array.length;
    return !!length && baseIndexOf(array, value, 0) > -1;
  }

  /**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludesWith(array, value, comparator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (comparator(value, array[index])) {
        return true;
      }
    }
    return false;
  }

  /**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */
  function arrayMap(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length,
        result = Array(length);

    while (++index < length) {
      result[index] = iteratee(array[index], index, array);
    }
    return result;
  }

  /**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */
  function arrayPush(array, values) {
    var index = -1,
        length = values.length,
        offset = array.length;

    while (++index < length) {
      array[offset + index] = values[index];
    }
    return array;
  }

  /**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduce(array, iteratee, accumulator, initAccum) {
    var index = -1,
        length = array == null ? 0 : array.length;

    if (initAccum && length) {
      accumulator = array[++index];
    }
    while (++index < length) {
      accumulator = iteratee(accumulator, array[index], index, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduceRight(array, iteratee, accumulator, initAccum) {
    var length = array == null ? 0 : array.length;
    if (initAccum && length) {
      accumulator = array[--length];
    }
    while (length--) {
      accumulator = iteratee(accumulator, array[length], length, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */
  function arraySome(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (predicate(array[index], index, array)) {
        return true;
      }
    }
    return false;
  }

  /**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  var asciiSize = baseProperty('length');

  /**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function asciiToArray(string) {
    return string.split('');
  }

  /**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function asciiWords(string) {
    return string.match(reAsciiWord) || [];
  }

  /**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */
  function baseFindKey(collection, predicate, eachFunc) {
    var result;
    eachFunc(collection, function(value, key, collection) {
      if (predicate(value, key, collection)) {
        result = key;
        return false;
      }
    });
    return result;
  }

  /**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseFindIndex(array, predicate, fromIndex, fromRight) {
    var length = array.length,
        index = fromIndex + (fromRight ? 1 : -1);

    while ((fromRight ? index-- : ++index < length)) {
      if (predicate(array[index], index, array)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOf(array, value, fromIndex) {
    return value === value
      ? strictIndexOf(array, value, fromIndex)
      : baseFindIndex(array, baseIsNaN, fromIndex);
  }

  /**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOfWith(array, value, fromIndex, comparator) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (comparator(array[index], value)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */
  function baseIsNaN(value) {
    return value !== value;
  }

  /**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */
  function baseMean(array, iteratee) {
    var length = array == null ? 0 : array.length;
    return length ? (baseSum(array, iteratee) / length) : NAN;
  }

  /**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */
  function baseProperty(key) {
    return function(object) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */
  function basePropertyOf(object) {
    return function(key) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
    eachFunc(collection, function(value, index, collection) {
      accumulator = initAccum
        ? (initAccum = false, value)
        : iteratee(accumulator, value, index, collection);
    });
    return accumulator;
  }

  /**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */
  function baseSortBy(array, comparer) {
    var length = array.length;

    array.sort(comparer);
    while (length--) {
      array[length] = array[length].value;
    }
    return array;
  }

  /**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */
  function baseSum(array, iteratee) {
    var result,
        index = -1,
        length = array.length;

    while (++index < length) {
      var current = iteratee(array[index]);
      if (current !== undefined) {
        result = result === undefined ? current : (result + current);
      }
    }
    return result;
  }

  /**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */
  function baseTimes(n, iteratee) {
    var index = -1,
        result = Array(n);

    while (++index < n) {
      result[index] = iteratee(index);
    }
    return result;
  }

  /**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */
  function baseToPairs(object, props) {
    return arrayMap(props, function(key) {
      return [key, object[key]];
    });
  }

  /**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */
  function baseUnary(func) {
    return function(value) {
      return func(value);
    };
  }

  /**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */
  function baseValues(object, props) {
    return arrayMap(props, function(key) {
      return object[key];
    });
  }

  /**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */
  function cacheHas(cache, key) {
    return cache.has(key);
  }

  /**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */
  function charsStartIndex(strSymbols, chrSymbols) {
    var index = -1,
        length = strSymbols.length;

    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */
  function charsEndIndex(strSymbols, chrSymbols) {
    var index = strSymbols.length;

    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */
  function countHolders(array, placeholder) {
    var length = array.length,
        result = 0;

    while (length--) {
      if (array[length] === placeholder) {
        ++result;
      }
    }
    return result;
  }

  /**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */
  var deburrLetter = basePropertyOf(deburredLetters);

  /**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  var escapeHtmlChar = basePropertyOf(htmlEscapes);

  /**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  function escapeStringChar(chr) {
    return '\\' + stringEscapes[chr];
  }

  /**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
  function getValue(object, key) {
    return object == null ? undefined : object[key];
  }

  /**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */
  function hasUnicode(string) {
    return reHasUnicode.test(string);
  }

  /**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */
  function hasUnicodeWord(string) {
    return reHasUnicodeWord.test(string);
  }

  /**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */
  function iteratorToArray(iterator) {
    var data,
        result = [];

    while (!(data = iterator.next()).done) {
      result.push(data.value);
    }
    return result;
  }

  /**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */
  function mapToArray(map) {
    var index = -1,
        result = Array(map.size);

    map.forEach(function(value, key) {
      result[++index] = [key, value];
    });
    return result;
  }

  /**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */
  function overArg(func, transform) {
    return function(arg) {
      return func(transform(arg));
    };
  }

  /**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */
  function replaceHolders(array, placeholder) {
    var index = -1,
        length = array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (value === placeholder || value === PLACEHOLDER) {
        array[index] = PLACEHOLDER;
        result[resIndex++] = index;
      }
    }
    return result;
  }

  /**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */
  function setToArray(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = value;
    });
    return result;
  }

  /**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */
  function setToPairs(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = [value, value];
    });
    return result;
  }

  /**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictIndexOf(array, value, fromIndex) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (array[index] === value) {
        return index;
      }
    }
    return -1;
  }

  /**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictLastIndexOf(array, value, fromIndex) {
    var index = fromIndex + 1;
    while (index--) {
      if (array[index] === value) {
        return index;
      }
    }
    return index;
  }

  /**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */
  function stringSize(string) {
    return hasUnicode(string)
      ? unicodeSize(string)
      : asciiSize(string);
  }

  /**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function stringToArray(string) {
    return hasUnicode(string)
      ? unicodeToArray(string)
      : asciiToArray(string);
  }

  /**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);

  /**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  function unicodeSize(string) {
    var result = reUnicode.lastIndex = 0;
    while (reUnicode.test(string)) {
      ++result;
    }
    return result;
  }

  /**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function unicodeToArray(string) {
    return string.match(reUnicode) || [];
  }

  /**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function unicodeWords(string) {
    return string.match(reUnicodeWord) || [];
  }

  /*--------------------------------------------------------------------------*/

  /**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */
  var runInContext = (function runInContext(context) {
    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));

    /** Built-in constructor references. */
    var Array = context.Array,
        Date = context.Date,
        Error = context.Error,
        Function = context.Function,
        Math = context.Math,
        Object = context.Object,
        RegExp = context.RegExp,
        String = context.String,
        TypeError = context.TypeError;

    /** Used for built-in method references. */
    var arrayProto = Array.prototype,
        funcProto = Function.prototype,
        objectProto = Object.prototype;

    /** Used to detect overreaching core-js shims. */
    var coreJsData = context['__core-js_shared__'];

    /** Used to resolve the decompiled source of functions. */
    var funcToString = funcProto.toString;

    /** Used to check objects for own properties. */
    var hasOwnProperty = objectProto.hasOwnProperty;

    /** Used to generate unique IDs. */
    var idCounter = 0;

    /** Used to detect methods masquerading as native. */
    var maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
      return uid ? ('Symbol(src)_1.' + uid) : '';
    }());

    /**
     * Used to resolve the
     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
     * of values.
     */
    var nativeObjectToString = objectProto.toString;

    /** Used to infer the `Object` constructor. */
    var objectCtorString = funcToString.call(Object);

    /** Used to restore the original `_` reference in `_.noConflict`. */
    var oldDash = root._;

    /** Used to detect if a method is native. */
    var reIsNative = RegExp('^' +
      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
    );

    /** Built-in value references. */
    var Buffer = moduleExports ? context.Buffer : undefined,
        Symbol = context.Symbol,
        Uint8Array = context.Uint8Array,
        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
        getPrototype = overArg(Object.getPrototypeOf, Object),
        objectCreate = Object.create,
        propertyIsEnumerable = objectProto.propertyIsEnumerable,
        splice = arrayProto.splice,
        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
        symIterator = Symbol ? Symbol.iterator : undefined,
        symToStringTag = Symbol ? Symbol.toStringTag : undefined;

    var defineProperty = (function() {
      try {
        var func = getNative(Object, 'defineProperty');
        func({}, '', {});
        return func;
      } catch (e) {}
    }());

    /** Mocked built-ins. */
    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
        ctxNow = Date && Date.now !== root.Date.now && Date.now,
        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;

    /* Built-in method references for those with the same name as other `lodash` methods. */
    var nativeCeil = Math.ceil,
        nativeFloor = Math.floor,
        nativeGetSymbols = Object.getOwnPropertySymbols,
        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
        nativeIsFinite = context.isFinite,
        nativeJoin = arrayProto.join,
        nativeKeys = overArg(Object.keys, Object),
        nativeMax = Math.max,
        nativeMin = Math.min,
        nativeNow = Date.now,
        nativeParseInt = context.parseInt,
        nativeRandom = Math.random,
        nativeReverse = arrayProto.reverse;

    /* Built-in method references that are verified to be native. */
    var DataView = getNative(context, 'DataView'),
        Map = getNative(context, 'Map'),
        Promise = getNative(context, 'Promise'),
        Set = getNative(context, 'Set'),
        WeakMap = getNative(context, 'WeakMap'),
        nativeCreate = getNative(Object, 'create');

    /** Used to store function metadata. */
    var metaMap = WeakMap && new WeakMap;

    /** Used to lookup unminified function names. */
    var realNames = {};

    /** Used to detect maps, sets, and weakmaps. */
    var dataViewCtorString = toSource(DataView),
        mapCtorString = toSource(Map),
        promiseCtorString = toSource(Promise),
        setCtorString = toSource(Set),
        weakMapCtorString = toSource(WeakMap);

    /** Used to convert symbols to primitives and strings. */
    var symbolProto = Symbol ? Symbol.prototype : undefined,
        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
        symbolToString = symbolProto ? symbolProto.toString : undefined;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */
    function lodash(value) {
      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
        if (value instanceof LodashWrapper) {
          return value;
        }
        if (hasOwnProperty.call(value, '__wrapped__')) {
          return wrapperClone(value);
        }
      }
      return new LodashWrapper(value);
    }

    /**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */
    var baseCreate = (function() {
      function object() {}
      return function(proto) {
        if (!isObject(proto)) {
          return {};
        }
        if (objectCreate) {
          return objectCreate(proto);
        }
        object.prototype = proto;
        var result = new object;
        object.prototype = undefined;
        return result;
      };
    }());

    /**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */
    function baseLodash() {
      // No operation performed.
    }

    /**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */
    function LodashWrapper(value, chainAll) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__chain__ = !!chainAll;
      this.__index__ = 0;
      this.__values__ = undefined;
    }

    /**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */
    lodash.templateSettings = {

      /**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'escape': reEscape,

      /**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'evaluate': reEvaluate,

      /**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'interpolate': reInterpolate,

      /**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */
      'variable': '',

      /**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */
      'imports': {

        /**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */
        '_': lodash
      }
    };

    // Ensure wrappers are instances of `baseLodash`.
    lodash.prototype = baseLodash.prototype;
    lodash.prototype.constructor = lodash;

    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
    LodashWrapper.prototype.constructor = LodashWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */
    function LazyWrapper(value) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__dir__ = 1;
      this.__filtered__ = false;
      this.__iteratees__ = [];
      this.__takeCount__ = MAX_ARRAY_LENGTH;
      this.__views__ = [];
    }

    /**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */
    function lazyClone() {
      var result = new LazyWrapper(this.__wrapped__);
      result.__actions__ = copyArray(this.__actions__);
      result.__dir__ = this.__dir__;
      result.__filtered__ = this.__filtered__;
      result.__iteratees__ = copyArray(this.__iteratees__);
      result.__takeCount__ = this.__takeCount__;
      result.__views__ = copyArray(this.__views__);
      return result;
    }

    /**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */
    function lazyReverse() {
      if (this.__filtered__) {
        var result = new LazyWrapper(this);
        result.__dir__ = -1;
        result.__filtered__ = true;
      } else {
        result = this.clone();
        result.__dir__ *= -1;
      }
      return result;
    }

    /**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */
    function lazyValue() {
      var array = this.__wrapped__.value(),
          dir = this.__dir__,
          isArr = isArray(array),
          isRight = dir < 0,
          arrLength = isArr ? array.length : 0,
          view = getView(0, arrLength, this.__views__),
          start = view.start,
          end = view.end,
          length = end - start,
          index = isRight ? end : (start - 1),
          iteratees = this.__iteratees__,
          iterLength = iteratees.length,
          resIndex = 0,
          takeCount = nativeMin(length, this.__takeCount__);

      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
        return baseWrapperValue(array, this.__actions__);
      }
      var result = [];

      outer:
      while (length-- && resIndex < takeCount) {
        index += dir;

        var iterIndex = -1,
            value = array[index];

        while (++iterIndex < iterLength) {
          var data = iteratees[iterIndex],
              iteratee = data.iteratee,
              type = data.type,
              computed = iteratee(value);

          if (type == LAZY_MAP_FLAG) {
            value = computed;
          } else if (!computed) {
            if (type == LAZY_FILTER_FLAG) {
              continue outer;
            } else {
              break outer;
            }
          }
        }
        result[resIndex++] = value;
      }
      return result;
    }

    // Ensure `LazyWrapper` is an instance of `baseLodash`.
    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
    LazyWrapper.prototype.constructor = LazyWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Hash(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function hashDelete(key) {
      var result = this.has(key) && delete this.__data__[key];
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function hashGet(key) {
      var data = this.__data__;
      if (nativeCreate) {
        var result = data[key];
        return result === HASH_UNDEFINED ? undefined : result;
      }
      return hasOwnProperty.call(data, key) ? data[key] : undefined;
    }

    /**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function hashHas(key) {
      var data = this.__data__;
      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
    }

    /**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */
    function hashSet(key, value) {
      var data = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
      return this;
    }

    // Add methods to `Hash`.
    Hash.prototype.clear = hashClear;
    Hash.prototype['delete'] = hashDelete;
    Hash.prototype.get = hashGet;
    Hash.prototype.has = hashHas;
    Hash.prototype.set = hashSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function ListCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function listCacheDelete(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        return false;
      }
      var lastIndex = data.length - 1;
      if (index == lastIndex) {
        data.pop();
      } else {
        splice.call(data, index, 1);
      }
      --this.size;
      return true;
    }

    /**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function listCacheGet(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      return index < 0 ? undefined : data[index][1];
    }

    /**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }

    /**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */
    function listCacheSet(key, value) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        ++this.size;
        data.push([key, value]);
      } else {
        data[index][1] = value;
      }
      return this;
    }

    // Add methods to `ListCache`.
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype['delete'] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function MapCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        'hash': new Hash,
        'map': new (Map || ListCache),
        'string': new Hash
      };
    }

    /**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function mapCacheDelete(key) {
      var result = getMapData(this, key)['delete'](key);
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }

    /**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }

    /**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */
    function mapCacheSet(key, value) {
      var data = getMapData(this, key),
          size = data.size;

      data.set(key, value);
      this.size += data.size == size ? 0 : 1;
      return this;
    }

    // Add methods to `MapCache`.
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype['delete'] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */
    function SetCache(values) {
      var index = -1,
          length = values == null ? 0 : values.length;

      this.__data__ = new MapCache;
      while (++index < length) {
        this.add(values[index]);
      }
    }

    /**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }

    /**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */
    function setCacheHas(value) {
      return this.__data__.has(value);
    }

    // Add methods to `SetCache`.
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Stack(entries) {
      var data = this.__data__ = new ListCache(entries);
      this.size = data.size;
    }

    /**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */
    function stackClear() {
      this.__data__ = new ListCache;
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function stackDelete(key) {
      var data = this.__data__,
          result = data['delete'](key);

      this.size = data.size;
      return result;
    }

    /**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function stackGet(key) {
      return this.__data__.get(key);
    }

    /**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function stackHas(key) {
      return this.__data__.has(key);
    }

    /**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */
    function stackSet(key, value) {
      var data = this.__data__;
      if (data instanceof ListCache) {
        var pairs = data.__data__;
        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
          pairs.push([key, value]);
          this.size = ++data.size;
          return this;
        }
        data = this.__data__ = new MapCache(pairs);
      }
      data.set(key, value);
      this.size = data.size;
      return this;
    }

    // Add methods to `Stack`.
    Stack.prototype.clear = stackClear;
    Stack.prototype['delete'] = stackDelete;
    Stack.prototype.get = stackGet;
    Stack.prototype.has = stackHas;
    Stack.prototype.set = stackSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray(value),
          isArg = !isArr && isArguments(value),
          isBuff = !isArr && !isArg && isBuffer(value),
          isType = !isArr && !isArg && !isBuff && isTypedArray(value),
          skipIndexes = isArr || isArg || isBuff || isType,
          result = skipIndexes ? baseTimes(value.length, String) : [],
          length = result.length;

      for (var key in value) {
        if ((inherited || hasOwnProperty.call(value, key)) &&
            !(skipIndexes && (
               // Safari 9 has enumerable `arguments.length` in strict mode.
               key == 'length' ||
               // Node.js 0.10 has enumerable non-index properties on buffers.
               (isBuff && (key == 'offset' || key == 'parent')) ||
               // PhantomJS 2 has enumerable non-index properties on typed arrays.
               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
               // Skip index properties.
               isIndex(key, length)
            ))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */
    function arraySample(array) {
      var length = array.length;
      return length ? array[baseRandom(0, length - 1)] : undefined;
    }

    /**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function arraySampleSize(array, n) {
      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
    }

    /**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function arrayShuffle(array) {
      return shuffleSelf(copyArray(array));
    }

    /**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignMergeValue(object, key, value) {
      if ((value !== undefined && !eq(object[key], value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignValue(object, key, value) {
      var objValue = object[key];
      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }

    /**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseAggregator(collection, setter, iteratee, accumulator) {
      baseEach(collection, function(value, key, collection) {
        setter(accumulator, value, iteratee(value), collection);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssign(object, source) {
      return object && copyObject(source, keys(source), object);
    }

    /**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssignIn(object, source) {
      return object && copyObject(source, keysIn(source), object);
    }

    /**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function baseAssignValue(object, key, value) {
      if (key == '__proto__' && defineProperty) {
        defineProperty(object, key, {
          'configurable': true,
          'enumerable': true,
          'value': value,
          'writable': true
        });
      } else {
        object[key] = value;
      }
    }

    /**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */
    function baseAt(object, paths) {
      var index = -1,
          length = paths.length,
          result = Array(length),
          skip = object == null;

      while (++index < length) {
        result[index] = skip ? undefined : get(object, paths[index]);
      }
      return result;
    }

    /**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */
    function baseClamp(number, lower, upper) {
      if (number === number) {
        if (upper !== undefined) {
          number = number <= upper ? number : upper;
        }
        if (lower !== undefined) {
          number = number >= lower ? number : lower;
        }
      }
      return number;
    }

    /**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */
    function baseClone(value, bitmask, customizer, key, object, stack) {
      var result,
          isDeep = bitmask & CLONE_DEEP_FLAG,
          isFlat = bitmask & CLONE_FLAT_FLAG,
          isFull = bitmask & CLONE_SYMBOLS_FLAG;

      if (customizer) {
        result = object ? customizer(value, key, object, stack) : customizer(value);
      }
      if (result !== undefined) {
        return result;
      }
      if (!isObject(value)) {
        return value;
      }
      var isArr = isArray(value);
      if (isArr) {
        result = initCloneArray(value);
        if (!isDeep) {
          return copyArray(value, result);
        }
      } else {
        var tag = getTag(value),
            isFunc = tag == funcTag || tag == genTag;

        if (isBuffer(value)) {
          return cloneBuffer(value, isDeep);
        }
        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
          result = (isFlat || isFunc) ? {} : initCloneObject(value);
          if (!isDeep) {
            return isFlat
              ? copySymbolsIn(value, baseAssignIn(result, value))
              : copySymbols(value, baseAssign(result, value));
          }
        } else {
          if (!cloneableTags[tag]) {
            return object ? value : {};
          }
          result = initCloneByTag(value, tag, isDeep);
        }
      }
      // Check for circular references and return its corresponding clone.
      stack || (stack = new Stack);
      var stacked = stack.get(value);
      if (stacked) {
        return stacked;
      }
      stack.set(value, result);

      if (isSet(value)) {
        value.forEach(function(subValue) {
          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
        });
      } else if (isMap(value)) {
        value.forEach(function(subValue, key) {
          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
        });
      }

      var keysFunc = isFull
        ? (isFlat ? getAllKeysIn : getAllKeys)
        : (isFlat ? keysIn : keys);

      var props = isArr ? undefined : keysFunc(value);
      arrayEach(props || value, function(subValue, key) {
        if (props) {
          key = subValue;
          subValue = value[key];
        }
        // Recursively populate clone (susceptible to call stack limits).
        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
      });
      return result;
    }

    /**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */
    function baseConforms(source) {
      var props = keys(source);
      return function(object) {
        return baseConformsTo(object, source, props);
      };
    }

    /**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */
    function baseConformsTo(object, source, props) {
      var length = props.length;
      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (length--) {
        var key = props[length],
            predicate = source[key],
            value = object[key];

        if ((value === undefined && !(key in object)) || !predicate(value)) {
          return false;
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    function baseDelay(func, wait, args) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return setTimeout(function() { func.apply(undefined, args); }, wait);
    }

    /**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */
    function baseDifference(array, values, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          isCommon = true,
          length = array.length,
          result = [],
          valuesLength = values.length;

      if (!length) {
        return result;
      }
      if (iteratee) {
        values = arrayMap(values, baseUnary(iteratee));
      }
      if (comparator) {
        includes = arrayIncludesWith;
        isCommon = false;
      }
      else if (values.length >= LARGE_ARRAY_SIZE) {
        includes = cacheHas;
        isCommon = false;
        values = new SetCache(values);
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee == null ? value : iteratee(value);

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var valuesIndex = valuesLength;
          while (valuesIndex--) {
            if (values[valuesIndex] === computed) {
              continue outer;
            }
          }
          result.push(value);
        }
        else if (!includes(values, computed, comparator)) {
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEach = createBaseEach(baseForOwn);

    /**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEachRight = createBaseEach(baseForOwnRight, true);

    /**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */
    function baseEvery(collection, predicate) {
      var result = true;
      baseEach(collection, function(value, index, collection) {
        result = !!predicate(value, index, collection);
        return result;
      });
      return result;
    }

    /**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */
    function baseExtremum(array, iteratee, comparator) {
      var index = -1,
          length = array.length;

      while (++index < length) {
        var value = array[index],
            current = iteratee(value);

        if (current != null && (computed === undefined
              ? (current === current && !isSymbol(current))
              : comparator(current, computed)
            )) {
          var computed = current,
              result = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */
    function baseFill(array, value, start, end) {
      var length = array.length;

      start = toInteger(start);
      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = (end === undefined || end > length) ? length : toInteger(end);
      if (end < 0) {
        end += length;
      }
      end = start > end ? 0 : toLength(end);
      while (start < end) {
        array[start++] = value;
      }
      return array;
    }

    /**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */
    function baseFilter(collection, predicate) {
      var result = [];
      baseEach(collection, function(value, index, collection) {
        if (predicate(value, index, collection)) {
          result.push(value);
        }
      });
      return result;
    }

    /**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */
    function baseFlatten(array, depth, predicate, isStrict, result) {
      var index = -1,
          length = array.length;

      predicate || (predicate = isFlattenable);
      result || (result = []);

      while (++index < length) {
        var value = array[index];
        if (depth > 0 && predicate(value)) {
          if (depth > 1) {
            // Recursively flatten arrays (susceptible to call stack limits).
            baseFlatten(value, depth - 1, predicate, isStrict, result);
          } else {
            arrayPush(result, value);
          }
        } else if (!isStrict) {
          result[result.length] = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseFor = createBaseFor();

    /**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseForRight = createBaseFor(true);

    /**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwn(object, iteratee) {
      return object && baseFor(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwnRight(object, iteratee) {
      return object && baseForRight(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */
    function baseFunctions(object, props) {
      return arrayFilter(props, function(key) {
        return isFunction(object[key]);
      });
    }

    /**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */
    function baseGet(object, path) {
      path = castPath(path, object);

      var index = 0,
          length = path.length;

      while (object != null && index < length) {
        object = object[toKey(path[index++])];
      }
      return (index && index == length) ? object : undefined;
    }

    /**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
      var result = keysFunc(object);
      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
    }

    /**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    function baseGetTag(value) {
      if (value == null) {
        return value === undefined ? undefinedTag : nullTag;
      }
      return (symToStringTag && symToStringTag in Object(value))
        ? getRawTag(value)
        : objectToString(value);
    }

    /**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */
    function baseGt(value, other) {
      return value > other;
    }

    /**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHas(object, key) {
      return object != null && hasOwnProperty.call(object, key);
    }

    /**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHasIn(object, key) {
      return object != null && key in Object(object);
    }

    /**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */
    function baseInRange(number, start, end) {
      return number >= nativeMin(start, end) && number < nativeMax(start, end);
    }

    /**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */
    function baseIntersection(arrays, iteratee, comparator) {
      var includes = comparator ? arrayIncludesWith : arrayIncludes,
          length = arrays[0].length,
          othLength = arrays.length,
          othIndex = othLength,
          caches = Array(othLength),
          maxLength = Infinity,
          result = [];

      while (othIndex--) {
        var array = arrays[othIndex];
        if (othIndex && iteratee) {
          array = arrayMap(array, baseUnary(iteratee));
        }
        maxLength = nativeMin(array.length, maxLength);
        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
          ? new SetCache(othIndex && array)
          : undefined;
      }
      array = arrays[0];

      var index = -1,
          seen = caches[0];

      outer:
      while (++index < length && result.length < maxLength) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (!(seen
              ? cacheHas(seen, computed)
              : includes(result, computed, comparator)
            )) {
          othIndex = othLength;
          while (--othIndex) {
            var cache = caches[othIndex];
            if (!(cache
                  ? cacheHas(cache, computed)
                  : includes(arrays[othIndex], computed, comparator))
                ) {
              continue outer;
            }
          }
          if (seen) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseInverter(object, setter, iteratee, accumulator) {
      baseForOwn(object, function(value, key, object) {
        setter(accumulator, iteratee(value), key, object);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */
    function baseInvoke(object, path, args) {
      path = castPath(path, object);
      object = parent(object, path);
      var func = object == null ? object : object[toKey(last(path))];
      return func == null ? undefined : apply(func, object, args);
    }

    /**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }

    /**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */
    function baseIsArrayBuffer(value) {
      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
    }

    /**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */
    function baseIsDate(value) {
      return isObjectLike(value) && baseGetTag(value) == dateTag;
    }

    /**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */
    function baseIsEqual(value, other, bitmask, customizer, stack) {
      if (value === other) {
        return true;
      }
      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
        return value !== value && other !== other;
      }
      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
    }

    /**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
      var objIsArr = isArray(object),
          othIsArr = isArray(other),
          objTag = objIsArr ? arrayTag : getTag(object),
          othTag = othIsArr ? arrayTag : getTag(other);

      objTag = objTag == argsTag ? objectTag : objTag;
      othTag = othTag == argsTag ? objectTag : othTag;

      var objIsObj = objTag == objectTag,
          othIsObj = othTag == objectTag,
          isSameTag = objTag == othTag;

      if (isSameTag && isBuffer(object)) {
        if (!isBuffer(other)) {
          return false;
        }
        objIsArr = true;
        objIsObj = false;
      }
      if (isSameTag && !objIsObj) {
        stack || (stack = new Stack);
        return (objIsArr || isTypedArray(object))
          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
      }
      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

        if (objIsWrapped || othIsWrapped) {
          var objUnwrapped = objIsWrapped ? object.value() : object,
              othUnwrapped = othIsWrapped ? other.value() : other;

          stack || (stack = new Stack);
          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
        }
      }
      if (!isSameTag) {
        return false;
      }
      stack || (stack = new Stack);
      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
    }

    /**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */
    function baseIsMap(value) {
      return isObjectLike(value) && getTag(value) == mapTag;
    }

    /**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */
    function baseIsMatch(object, source, matchData, customizer) {
      var index = matchData.length,
          length = index,
          noCustomizer = !customizer;

      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (index--) {
        var data = matchData[index];
        if ((noCustomizer && data[2])
              ? data[1] !== object[data[0]]
              : !(data[0] in object)
            ) {
          return false;
        }
      }
      while (++index < length) {
        data = matchData[index];
        var key = data[0],
            objValue = object[key],
            srcValue = data[1];

        if (noCustomizer && data[2]) {
          if (objValue === undefined && !(key in object)) {
            return false;
          }
        } else {
          var stack = new Stack;
          if (customizer) {
            var result = customizer(objValue, srcValue, key, object, source, stack);
          }
          if (!(result === undefined
                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
                : result
              )) {
            return false;
          }
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */
    function baseIsNative(value) {
      if (!isObject(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }

    /**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */
    function baseIsRegExp(value) {
      return isObjectLike(value) && baseGetTag(value) == regexpTag;
    }

    /**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */
    function baseIsSet(value) {
      return isObjectLike(value) && getTag(value) == setTag;
    }

    /**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */
    function baseIsTypedArray(value) {
      return isObjectLike(value) &&
        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }

    /**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */
    function baseIteratee(value) {
      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
      if (typeof value == 'function') {
        return value;
      }
      if (value == null) {
        return identity;
      }
      if (typeof value == 'object') {
        return isArray(value)
          ? baseMatchesProperty(value[0], value[1])
          : baseMatches(value);
      }
      return property(value);
    }

    /**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeys(object) {
      if (!isPrototype(object)) {
        return nativeKeys(object);
      }
      var result = [];
      for (var key in Object(object)) {
        if (hasOwnProperty.call(object, key) && key != 'constructor') {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeysIn(object) {
      if (!isObject(object)) {
        return nativeKeysIn(object);
      }
      var isProto = isPrototype(object),
          result = [];

      for (var key in object) {
        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */
    function baseLt(value, other) {
      return value < other;
    }

    /**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */
    function baseMap(collection, iteratee) {
      var index = -1,
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value, key, collection) {
        result[++index] = iteratee(value, key, collection);
      });
      return result;
    }

    /**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatches(source) {
      var matchData = getMatchData(source);
      if (matchData.length == 1 && matchData[0][2]) {
        return matchesStrictComparable(matchData[0][0], matchData[0][1]);
      }
      return function(object) {
        return object === source || baseIsMatch(object, source, matchData);
      };
    }

    /**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatchesProperty(path, srcValue) {
      if (isKey(path) && isStrictComparable(srcValue)) {
        return matchesStrictComparable(toKey(path), srcValue);
      }
      return function(object) {
        var objValue = get(object, path);
        return (objValue === undefined && objValue === srcValue)
          ? hasIn(object, path)
          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
      };
    }

    /**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMerge(object, source, srcIndex, customizer, stack) {
      if (object === source) {
        return;
      }
      baseFor(source, function(srcValue, key) {
        stack || (stack = new Stack);
        if (isObject(srcValue)) {
          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
        }
        else {
          var newValue = customizer
            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
            : undefined;

          if (newValue === undefined) {
            newValue = srcValue;
          }
          assignMergeValue(object, key, newValue);
        }
      }, keysIn);
    }

    /**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
      var objValue = safeGet(object, key),
          srcValue = safeGet(source, key),
          stacked = stack.get(srcValue);

      if (stacked) {
        assignMergeValue(object, key, stacked);
        return;
      }
      var newValue = customizer
        ? customizer(objValue, srcValue, (key + ''), object, source, stack)
        : undefined;

      var isCommon = newValue === undefined;

      if (isCommon) {
        var isArr = isArray(srcValue),
            isBuff = !isArr && isBuffer(srcValue),
            isTyped = !isArr && !isBuff && isTypedArray(srcValue);

        newValue = srcValue;
        if (isArr || isBuff || isTyped) {
          if (isArray(objValue)) {
            newValue = objValue;
          }
          else if (isArrayLikeObject(objValue)) {
            newValue = copyArray(objValue);
          }
          else if (isBuff) {
            isCommon = false;
            newValue = cloneBuffer(srcValue, true);
          }
          else if (isTyped) {
            isCommon = false;
            newValue = cloneTypedArray(srcValue, true);
          }
          else {
            newValue = [];
          }
        }
        else if (isPlainObject(srcValue) || isArguments(srcValue)) {
          newValue = objValue;
          if (isArguments(objValue)) {
            newValue = toPlainObject(objValue);
          }
          else if (!isObject(objValue) || isFunction(objValue)) {
            newValue = initCloneObject(srcValue);
          }
        }
        else {
          isCommon = false;
        }
      }
      if (isCommon) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, newValue);
        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
        stack['delete'](srcValue);
      }
      assignMergeValue(object, key, newValue);
    }

    /**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */
    function baseNth(array, n) {
      var length = array.length;
      if (!length) {
        return;
      }
      n += n < 0 ? length : 0;
      return isIndex(n, length) ? array[n] : undefined;
    }

    /**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */
    function baseOrderBy(collection, iteratees, orders) {
      var index = -1;
      iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));

      var result = baseMap(collection, function(value, key, collection) {
        var criteria = arrayMap(iteratees, function(iteratee) {
          return iteratee(value);
        });
        return { 'criteria': criteria, 'index': ++index, 'value': value };
      });

      return baseSortBy(result, function(object, other) {
        return compareMultiple(object, other, orders);
      });
    }

    /**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */
    function basePick(object, paths) {
      return basePickBy(object, paths, function(value, path) {
        return hasIn(object, path);
      });
    }

    /**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */
    function basePickBy(object, paths, predicate) {
      var index = -1,
          length = paths.length,
          result = {};

      while (++index < length) {
        var path = paths[index],
            value = baseGet(object, path);

        if (predicate(value, path)) {
          baseSet(result, castPath(path, object), value);
        }
      }
      return result;
    }

    /**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */
    function basePropertyDeep(path) {
      return function(object) {
        return baseGet(object, path);
      };
    }

    /**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */
    function basePullAll(array, values, iteratee, comparator) {
      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
          index = -1,
          length = values.length,
          seen = array;

      if (array === values) {
        values = copyArray(values);
      }
      if (iteratee) {
        seen = arrayMap(array, baseUnary(iteratee));
      }
      while (++index < length) {
        var fromIndex = 0,
            value = values[index],
            computed = iteratee ? iteratee(value) : value;

        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
          if (seen !== array) {
            splice.call(seen, fromIndex, 1);
          }
          splice.call(array, fromIndex, 1);
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */
    function basePullAt(array, indexes) {
      var length = array ? indexes.length : 0,
          lastIndex = length - 1;

      while (length--) {
        var index = indexes[length];
        if (length == lastIndex || index !== previous) {
          var previous = index;
          if (isIndex(index)) {
            splice.call(array, index, 1);
          } else {
            baseUnset(array, index);
          }
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */
    function baseRandom(lower, upper) {
      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
    }

    /**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */
    function baseRange(start, end, step, fromRight) {
      var index = -1,
          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
          result = Array(length);

      while (length--) {
        result[fromRight ? length : ++index] = start;
        start += step;
      }
      return result;
    }

    /**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */
    function baseRepeat(string, n) {
      var result = '';
      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
        return result;
      }
      // Leverage the exponentiation by squaring algorithm for a faster repeat.
      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
      do {
        if (n % 2) {
          result += string;
        }
        n = nativeFloor(n / 2);
        if (n) {
          string += string;
        }
      } while (n);

      return result;
    }

    /**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */
    function baseRest(func, start) {
      return setToString(overRest(func, start, identity), func + '');
    }

    /**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */
    function baseSample(collection) {
      return arraySample(values(collection));
    }

    /**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function baseSampleSize(collection, n) {
      var array = values(collection);
      return shuffleSelf(array, baseClamp(n, 0, array.length));
    }

    /**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseSet(object, path, value, customizer) {
      if (!isObject(object)) {
        return object;
      }
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          lastIndex = length - 1,
          nested = object;

      while (nested != null && ++index < length) {
        var key = toKey(path[index]),
            newValue = value;

        if (index != lastIndex) {
          var objValue = nested[key];
          newValue = customizer ? customizer(objValue, key, nested) : undefined;
          if (newValue === undefined) {
            newValue = isObject(objValue)
              ? objValue
              : (isIndex(path[index + 1]) ? [] : {});
          }
        }
        assignValue(nested, key, newValue);
        nested = nested[key];
      }
      return object;
    }

    /**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var baseSetData = !metaMap ? identity : function(func, data) {
      metaMap.set(func, data);
      return func;
    };

    /**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var baseSetToString = !defineProperty ? identity : function(func, string) {
      return defineProperty(func, 'toString', {
        'configurable': true,
        'enumerable': false,
        'value': constant(string),
        'writable': true
      });
    };

    /**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function baseShuffle(collection) {
      return shuffleSelf(values(collection));
    }

    /**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseSlice(array, start, end) {
      var index = -1,
          length = array.length;

      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = end > length ? length : end;
      if (end < 0) {
        end += length;
      }
      length = start > end ? 0 : ((end - start) >>> 0);
      start >>>= 0;

      var result = Array(length);
      while (++index < length) {
        result[index] = array[index + start];
      }
      return result;
    }

    /**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */
    function baseSome(collection, predicate) {
      var result;

      baseEach(collection, function(value, index, collection) {
        result = predicate(value, index, collection);
        return !result;
      });
      return !!result;
    }

    /**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndex(array, value, retHighest) {
      var low = 0,
          high = array == null ? low : array.length;

      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
        while (low < high) {
          var mid = (low + high) >>> 1,
              computed = array[mid];

          if (computed !== null && !isSymbol(computed) &&
              (retHighest ? (computed <= value) : (computed < value))) {
            low = mid + 1;
          } else {
            high = mid;
          }
        }
        return high;
      }
      return baseSortedIndexBy(array, value, identity, retHighest);
    }

    /**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndexBy(array, value, iteratee, retHighest) {
      value = iteratee(value);

      var low = 0,
          high = array == null ? 0 : array.length,
          valIsNaN = value !== value,
          valIsNull = value === null,
          valIsSymbol = isSymbol(value),
          valIsUndefined = value === undefined;

      while (low < high) {
        var mid = nativeFloor((low + high) / 2),
            computed = iteratee(array[mid]),
            othIsDefined = computed !== undefined,
            othIsNull = computed === null,
            othIsReflexive = computed === computed,
            othIsSymbol = isSymbol(computed);

        if (valIsNaN) {
          var setLow = retHighest || othIsReflexive;
        } else if (valIsUndefined) {
          setLow = othIsReflexive && (retHighest || othIsDefined);
        } else if (valIsNull) {
          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
        } else if (valIsSymbol) {
          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
        } else if (othIsNull || othIsSymbol) {
          setLow = false;
        } else {
          setLow = retHighest ? (computed <= value) : (computed < value);
        }
        if (setLow) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      return nativeMin(high, MAX_ARRAY_INDEX);
    }

    /**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseSortedUniq(array, iteratee) {
      var index = -1,
          length = array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        if (!index || !eq(computed, seen)) {
          var seen = computed;
          result[resIndex++] = value === 0 ? 0 : value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */
    function baseToNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      return +value;
    }

    /**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */
    function baseToString(value) {
      // Exit early for strings to avoid a performance hit in some environments.
      if (typeof value == 'string') {
        return value;
      }
      if (isArray(value)) {
        // Recursively convert values (susceptible to call stack limits).
        return arrayMap(value, baseToString) + '';
      }
      if (isSymbol(value)) {
        return symbolToString ? symbolToString.call(value) : '';
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseUniq(array, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          length = array.length,
          isCommon = true,
          result = [],
          seen = result;

      if (comparator) {
        isCommon = false;
        includes = arrayIncludesWith;
      }
      else if (length >= LARGE_ARRAY_SIZE) {
        var set = iteratee ? null : createSet(array);
        if (set) {
          return setToArray(set);
        }
        isCommon = false;
        includes = cacheHas;
        seen = new SetCache;
      }
      else {
        seen = iteratee ? [] : result;
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var seenIndex = seen.length;
          while (seenIndex--) {
            if (seen[seenIndex] === computed) {
              continue outer;
            }
          }
          if (iteratee) {
            seen.push(computed);
          }
          result.push(value);
        }
        else if (!includes(seen, computed, comparator)) {
          if (seen !== result) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */
    function baseUnset(object, path) {
      path = castPath(path, object);
      object = parent(object, path);
      return object == null || delete object[toKey(last(path))];
    }

    /**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseUpdate(object, path, updater, customizer) {
      return baseSet(object, path, updater(baseGet(object, path)), customizer);
    }

    /**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseWhile(array, predicate, isDrop, fromRight) {
      var length = array.length,
          index = fromRight ? length : -1;

      while ((fromRight ? index-- : ++index < length) &&
        predicate(array[index], index, array)) {}

      return isDrop
        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
    }

    /**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */
    function baseWrapperValue(value, actions) {
      var result = value;
      if (result instanceof LazyWrapper) {
        result = result.value();
      }
      return arrayReduce(actions, function(result, action) {
        return action.func.apply(action.thisArg, arrayPush([result], action.args));
      }, result);
    }

    /**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */
    function baseXor(arrays, iteratee, comparator) {
      var length = arrays.length;
      if (length < 2) {
        return length ? baseUniq(arrays[0]) : [];
      }
      var index = -1,
          result = Array(length);

      while (++index < length) {
        var array = arrays[index],
            othIndex = -1;

        while (++othIndex < length) {
          if (othIndex != index) {
            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
          }
        }
      }
      return baseUniq(baseFlatten(result, 1), iteratee, comparator);
    }

    /**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */
    function baseZipObject(props, values, assignFunc) {
      var index = -1,
          length = props.length,
          valsLength = values.length,
          result = {};

      while (++index < length) {
        var value = index < valsLength ? values[index] : undefined;
        assignFunc(result, props[index], value);
      }
      return result;
    }

    /**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */
    function castArrayLikeObject(value) {
      return isArrayLikeObject(value) ? value : [];
    }

    /**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */
    function castFunction(value) {
      return typeof value == 'function' ? value : identity;
    }

    /**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */
    function castPath(value, object) {
      if (isArray(value)) {
        return value;
      }
      return isKey(value, object) ? [value] : stringToPath(toString(value));
    }

    /**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    var castRest = baseRest;

    /**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */
    function castSlice(array, start, end) {
      var length = array.length;
      end = end === undefined ? length : end;
      return (!start && end >= length) ? array : baseSlice(array, start, end);
    }

    /**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */
    var clearTimeout = ctxClearTimeout || function(id) {
      return root.clearTimeout(id);
    };

    /**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */
    function cloneBuffer(buffer, isDeep) {
      if (isDeep) {
        return buffer.slice();
      }
      var length = buffer.length,
          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

      buffer.copy(result);
      return result;
    }

    /**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */
    function cloneArrayBuffer(arrayBuffer) {
      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
      new Uint8Array(result).set(new Uint8Array(arrayBuffer));
      return result;
    }

    /**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */
    function cloneDataView(dataView, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
    }

    /**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */
    function cloneRegExp(regexp) {
      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
      result.lastIndex = regexp.lastIndex;
      return result;
    }

    /**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */
    function cloneSymbol(symbol) {
      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
    }

    /**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */
    function cloneTypedArray(typedArray, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
    }

    /**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */
    function compareAscending(value, other) {
      if (value !== other) {
        var valIsDefined = value !== undefined,
            valIsNull = value === null,
            valIsReflexive = value === value,
            valIsSymbol = isSymbol(value);

        var othIsDefined = other !== undefined,
            othIsNull = other === null,
            othIsReflexive = other === other,
            othIsSymbol = isSymbol(other);

        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
            (valIsNull && othIsDefined && othIsReflexive) ||
            (!valIsDefined && othIsReflexive) ||
            !valIsReflexive) {
          return 1;
        }
        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
            (othIsNull && valIsDefined && valIsReflexive) ||
            (!othIsDefined && valIsReflexive) ||
            !othIsReflexive) {
          return -1;
        }
      }
      return 0;
    }

    /**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */
    function compareMultiple(object, other, orders) {
      var index = -1,
          objCriteria = object.criteria,
          othCriteria = other.criteria,
          length = objCriteria.length,
          ordersLength = orders.length;

      while (++index < length) {
        var result = compareAscending(objCriteria[index], othCriteria[index]);
        if (result) {
          if (index >= ordersLength) {
            return result;
          }
          var order = orders[index];
          return result * (order == 'desc' ? -1 : 1);
        }
      }
      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
      // that causes it, under certain circumstances, to provide the same value for
      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
      // for more details.
      //
      // This also ensures a stable sort in V8 and other engines.
      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
      return object.index - other.index;
    }

    /**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgs(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersLength = holders.length,
          leftIndex = -1,
          leftLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(leftLength + rangeLength),
          isUncurried = !isCurried;

      while (++leftIndex < leftLength) {
        result[leftIndex] = partials[leftIndex];
      }
      while (++argsIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[holders[argsIndex]] = args[argsIndex];
        }
      }
      while (rangeLength--) {
        result[leftIndex++] = args[argsIndex++];
      }
      return result;
    }

    /**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgsRight(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersIndex = -1,
          holdersLength = holders.length,
          rightIndex = -1,
          rightLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(rangeLength + rightLength),
          isUncurried = !isCurried;

      while (++argsIndex < rangeLength) {
        result[argsIndex] = args[argsIndex];
      }
      var offset = argsIndex;
      while (++rightIndex < rightLength) {
        result[offset + rightIndex] = partials[rightIndex];
      }
      while (++holdersIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[offset + holders[holdersIndex]] = args[argsIndex++];
        }
      }
      return result;
    }

    /**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */
    function copyArray(source, array) {
      var index = -1,
          length = source.length;

      array || (array = Array(length));
      while (++index < length) {
        array[index] = source[index];
      }
      return array;
    }

    /**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */
    function copyObject(source, props, object, customizer) {
      var isNew = !object;
      object || (object = {});

      var index = -1,
          length = props.length;

      while (++index < length) {
        var key = props[index];

        var newValue = customizer
          ? customizer(object[key], source[key], key, object, source)
          : undefined;

        if (newValue === undefined) {
          newValue = source[key];
        }
        if (isNew) {
          baseAssignValue(object, key, newValue);
        } else {
          assignValue(object, key, newValue);
        }
      }
      return object;
    }

    /**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbols(source, object) {
      return copyObject(source, getSymbols(source), object);
    }

    /**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbolsIn(source, object) {
      return copyObject(source, getSymbolsIn(source), object);
    }

    /**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */
    function createAggregator(setter, initializer) {
      return function(collection, iteratee) {
        var func = isArray(collection) ? arrayAggregator : baseAggregator,
            accumulator = initializer ? initializer() : {};

        return func(collection, setter, getIteratee(iteratee, 2), accumulator);
      };
    }

    /**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */
    function createAssigner(assigner) {
      return baseRest(function(object, sources) {
        var index = -1,
            length = sources.length,
            customizer = length > 1 ? sources[length - 1] : undefined,
            guard = length > 2 ? sources[2] : undefined;

        customizer = (assigner.length > 3 && typeof customizer == 'function')
          ? (length--, customizer)
          : undefined;

        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
          customizer = length < 3 ? undefined : customizer;
          length = 1;
        }
        object = Object(object);
        while (++index < length) {
          var source = sources[index];
          if (source) {
            assigner(object, source, index, customizer);
          }
        }
        return object;
      });
    }

    /**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseEach(eachFunc, fromRight) {
      return function(collection, iteratee) {
        if (collection == null) {
          return collection;
        }
        if (!isArrayLike(collection)) {
          return eachFunc(collection, iteratee);
        }
        var length = collection.length,
            index = fromRight ? length : -1,
            iterable = Object(collection);

        while ((fromRight ? index-- : ++index < length)) {
          if (iteratee(iterable[index], index, iterable) === false) {
            break;
          }
        }
        return collection;
      };
    }

    /**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseFor(fromRight) {
      return function(object, iteratee, keysFunc) {
        var index = -1,
            iterable = Object(object),
            props = keysFunc(object),
            length = props.length;

        while (length--) {
          var key = props[fromRight ? length : ++index];
          if (iteratee(iterable[key], key, iterable) === false) {
            break;
          }
        }
        return object;
      };
    }

    /**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createBind(func, bitmask, thisArg) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return fn.apply(isBind ? thisArg : this, arguments);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */
    function createCaseFirst(methodName) {
      return function(string) {
        string = toString(string);

        var strSymbols = hasUnicode(string)
          ? stringToArray(string)
          : undefined;

        var chr = strSymbols
          ? strSymbols[0]
          : string.charAt(0);

        var trailing = strSymbols
          ? castSlice(strSymbols, 1).join('')
          : string.slice(1);

        return chr[methodName]() + trailing;
      };
    }

    /**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */
    function createCompounder(callback) {
      return function(string) {
        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
      };
    }

    /**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCtor(Ctor) {
      return function() {
        // Use a `switch` statement to work with class constructors. See
        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
        // for more details.
        var args = arguments;
        switch (args.length) {
          case 0: return new Ctor;
          case 1: return new Ctor(args[0]);
          case 2: return new Ctor(args[0], args[1]);
          case 3: return new Ctor(args[0], args[1], args[2]);
          case 4: return new Ctor(args[0], args[1], args[2], args[3]);
          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
        }
        var thisBinding = baseCreate(Ctor.prototype),
            result = Ctor.apply(thisBinding, args);

        // Mimic the constructor's `return` behavior.
        // See https://es5.github.io/#x13.2.2 for more details.
        return isObject(result) ? result : thisBinding;
      };
    }

    /**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCurry(func, bitmask, arity) {
      var Ctor = createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length,
            placeholder = getHolder(wrapper);

        while (index--) {
          args[index] = arguments[index];
        }
        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
          ? []
          : replaceHolders(args, placeholder);

        length -= holders.length;
        if (length < arity) {
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, undefined,
            args, holders, undefined, undefined, arity - length);
        }
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return apply(fn, this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */
    function createFind(findIndexFunc) {
      return function(collection, predicate, fromIndex) {
        var iterable = Object(collection);
        if (!isArrayLike(collection)) {
          var iteratee = getIteratee(predicate, 3);
          collection = keys(collection);
          predicate = function(key) { return iteratee(iterable[key], key, iterable); };
        }
        var index = findIndexFunc(collection, predicate, fromIndex);
        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
      };
    }

    /**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */
    function createFlow(fromRight) {
      return flatRest(function(funcs) {
        var length = funcs.length,
            index = length,
            prereq = LodashWrapper.prototype.thru;

        if (fromRight) {
          funcs.reverse();
        }
        while (index--) {
          var func = funcs[index];
          if (typeof func != 'function') {
            throw new TypeError(FUNC_ERROR_TEXT);
          }
          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
            var wrapper = new LodashWrapper([], true);
          }
        }
        index = wrapper ? index : length;
        while (++index < length) {
          func = funcs[index];

          var funcName = getFuncName(func),
              data = funcName == 'wrapper' ? getData(func) : undefined;

          if (data && isLaziable(data[0]) &&
                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
                !data[4].length && data[9] == 1
              ) {
            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
          } else {
            wrapper = (func.length == 1 && isLaziable(func))
              ? wrapper[funcName]()
              : wrapper.thru(func);
          }
        }
        return function() {
          var args = arguments,
              value = args[0];

          if (wrapper && args.length == 1 && isArray(value)) {
            return wrapper.plant(value).value();
          }
          var index = 0,
              result = length ? funcs[index].apply(this, args) : value;

          while (++index < length) {
            result = funcs[index].call(this, result);
          }
          return result;
        };
      });
    }

    /**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
      var isAry = bitmask & WRAP_ARY_FLAG,
          isBind = bitmask & WRAP_BIND_FLAG,
          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
          isFlip = bitmask & WRAP_FLIP_FLAG,
          Ctor = isBindKey ? undefined : createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length;

        while (index--) {
          args[index] = arguments[index];
        }
        if (isCurried) {
          var placeholder = getHolder(wrapper),
              holdersCount = countHolders(args, placeholder);
        }
        if (partials) {
          args = composeArgs(args, partials, holders, isCurried);
        }
        if (partialsRight) {
          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
        }
        length -= holdersCount;
        if (isCurried && length < arity) {
          var newHolders = replaceHolders(args, placeholder);
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, thisArg,
            args, newHolders, argPos, ary, arity - length
          );
        }
        var thisBinding = isBind ? thisArg : this,
            fn = isBindKey ? thisBinding[func] : func;

        length = args.length;
        if (argPos) {
          args = reorder(args, argPos);
        } else if (isFlip && length > 1) {
          args.reverse();
        }
        if (isAry && ary < length) {
          args.length = ary;
        }
        if (this && this !== root && this instanceof wrapper) {
          fn = Ctor || createCtor(fn);
        }
        return fn.apply(thisBinding, args);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */
    function createInverter(setter, toIteratee) {
      return function(object, iteratee) {
        return baseInverter(object, setter, toIteratee(iteratee), {});
      };
    }

    /**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */
    function createMathOperation(operator, defaultValue) {
      return function(value, other) {
        var result;
        if (value === undefined && other === undefined) {
          return defaultValue;
        }
        if (value !== undefined) {
          result = value;
        }
        if (other !== undefined) {
          if (result === undefined) {
            return other;
          }
          if (typeof value == 'string' || typeof other == 'string') {
            value = baseToString(value);
            other = baseToString(other);
          } else {
            value = baseToNumber(value);
            other = baseToNumber(other);
          }
          result = operator(value, other);
        }
        return result;
      };
    }

    /**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */
    function createOver(arrayFunc) {
      return flatRest(function(iteratees) {
        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
        return baseRest(function(args) {
          var thisArg = this;
          return arrayFunc(iteratees, function(iteratee) {
            return apply(iteratee, thisArg, args);
          });
        });
      });
    }

    /**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */
    function createPadding(length, chars) {
      chars = chars === undefined ? ' ' : baseToString(chars);

      var charsLength = chars.length;
      if (charsLength < 2) {
        return charsLength ? baseRepeat(chars, length) : chars;
      }
      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
      return hasUnicode(chars)
        ? castSlice(stringToArray(result), 0, length).join('')
        : result.slice(0, length);
    }

    /**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */
    function createPartial(func, bitmask, thisArg, partials) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var argsIndex = -1,
            argsLength = arguments.length,
            leftIndex = -1,
            leftLength = partials.length,
            args = Array(leftLength + argsLength),
            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;

        while (++leftIndex < leftLength) {
          args[leftIndex] = partials[leftIndex];
        }
        while (argsLength--) {
          args[leftIndex++] = arguments[++argsIndex];
        }
        return apply(fn, isBind ? thisArg : this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */
    function createRange(fromRight) {
      return function(start, end, step) {
        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
          end = step = undefined;
        }
        // Ensure the sign of `-0` is preserved.
        start = toFinite(start);
        if (end === undefined) {
          end = start;
          start = 0;
        } else {
          end = toFinite(end);
        }
        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
        return baseRange(start, end, step, fromRight);
      };
    }

    /**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */
    function createRelationalOperation(operator) {
      return function(value, other) {
        if (!(typeof value == 'string' && typeof other == 'string')) {
          value = toNumber(value);
          other = toNumber(other);
        }
        return operator(value, other);
      };
    }

    /**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
      var isCurry = bitmask & WRAP_CURRY_FLAG,
          newHolders = isCurry ? holders : undefined,
          newHoldersRight = isCurry ? undefined : holders,
          newPartials = isCurry ? partials : undefined,
          newPartialsRight = isCurry ? undefined : partials;

      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
      }
      var newData = [
        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
        newHoldersRight, argPos, ary, arity
      ];

      var result = wrapFunc.apply(undefined, newData);
      if (isLaziable(func)) {
        setData(result, newData);
      }
      result.placeholder = placeholder;
      return setWrapToString(result, func, bitmask);
    }

    /**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */
    function createRound(methodName) {
      var func = Math[methodName];
      return function(number, precision) {
        number = toNumber(number);
        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
        if (precision && nativeIsFinite(number)) {
          // Shift with exponential notation to avoid floating-point issues.
          // See [MDN](https://mdn.io/round#Examples) for more details.
          var pair = (toString(number) + 'e').split('e'),
              value = func(pair[0] + 'e' + (+pair[1] + precision));

          pair = (toString(value) + 'e').split('e');
          return +(pair[0] + 'e' + (+pair[1] - precision));
        }
        return func(number);
      };
    }

    /**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */
    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
      return new Set(values);
    };

    /**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */
    function createToPairs(keysFunc) {
      return function(object) {
        var tag = getTag(object);
        if (tag == mapTag) {
          return mapToArray(object);
        }
        if (tag == setTag) {
          return setToPairs(object);
        }
        return baseToPairs(object, keysFunc(object));
      };
    }

    /**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
      if (!isBindKey && typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var length = partials ? partials.length : 0;
      if (!length) {
        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
        partials = holders = undefined;
      }
      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
      arity = arity === undefined ? arity : toInteger(arity);
      length -= holders ? holders.length : 0;

      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
        var partialsRight = partials,
            holdersRight = holders;

        partials = holders = undefined;
      }
      var data = isBindKey ? undefined : getData(func);

      var newData = [
        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
        argPos, ary, arity
      ];

      if (data) {
        mergeData(newData, data);
      }
      func = newData[0];
      bitmask = newData[1];
      thisArg = newData[2];
      partials = newData[3];
      holders = newData[4];
      arity = newData[9] = newData[9] === undefined
        ? (isBindKey ? 0 : func.length)
        : nativeMax(newData[9] - length, 0);

      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
      }
      if (!bitmask || bitmask == WRAP_BIND_FLAG) {
        var result = createBind(func, bitmask, thisArg);
      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
        result = createCurry(func, bitmask, arity);
      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
        result = createPartial(func, bitmask, thisArg, partials);
      } else {
        result = createHybrid.apply(undefined, newData);
      }
      var setter = data ? baseSetData : setData;
      return setWrapToString(setter(result, newData), func, bitmask);
    }

    /**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsAssignIn(objValue, srcValue, key, object) {
      if (objValue === undefined ||
          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
        return srcValue;
      }
      return objValue;
    }

    /**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
      if (isObject(objValue) && isObject(srcValue)) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, objValue);
        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
        stack['delete'](srcValue);
      }
      return objValue;
    }

    /**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */
    function customOmitClone(value) {
      return isPlainObject(value) ? undefined : value;
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * 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 + '');
    }

    /**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeys(object) {
      return baseGetAllKeys(object, keys, getSymbols);
    }

    /**
     * Creates 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);
    }

    /**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */
    var getData = !metaMap ? noop : function(func) {
      return metaMap.get(func);
    };

    /**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */
    function getFuncName(func) {
      var result = (func.name + ''),
          array = realNames[result],
          length = hasOwnProperty.call(realNames, result) ? array.length : 0;

      while (length--) {
        var data = array[length],
            otherFunc = data.func;
        if (otherFunc == null || otherFunc == func) {
          return data.name;
        }
      }
      return result;
    }

    /**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */
    function getHolder(func) {
      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
      return object.placeholder;
    }

    /**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */
    function getIteratee() {
      var result = lodash.iteratee || iteratee;
      result = result === iteratee ? baseIteratee : result;
      return arguments.length ? result(arguments[0], arguments[1]) : result;
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable.call(object, symbol);
      });
    };

    /**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
      var result = [];
      while (object) {
        arrayPush(result, getSymbols(object));
        object = getPrototype(object);
      }
      return result;
    };

    /**
     * Gets the `toStringTag` of `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    var getTag = baseGetTag;

    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
        (Map && getTag(new Map) != mapTag) ||
        (Promise && getTag(Promise.resolve()) != promiseTag) ||
        (Set && getTag(new Set) != setTag) ||
        (WeakMap && getTag(new WeakMap) != weakMapTag)) {
      getTag = function(value) {
        var result = baseGetTag(value),
            Ctor = result == objectTag ? value.constructor : undefined,
            ctorString = Ctor ? toSource(Ctor) : '';

        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString: return dataViewTag;
            case mapCtorString: return mapTag;
            case promiseCtorString: return promiseTag;
            case setCtorString: return setTag;
            case weakMapCtorString: return weakMapTag;
          }
        }
        return result;
      };
    }

    /**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */
    function getView(start, end, transforms) {
      var index = -1,
          length = transforms.length;

      while (++index < length) {
        var data = transforms[index],
            size = data.size;

        switch (data.type) {
          case 'drop':      start += size; break;
          case 'dropRight': end -= size; break;
          case 'take':      end = nativeMin(end, start + size); break;
          case 'takeRight': start = nativeMax(start, end - size); break;
        }
      }
      return { 'start': start, 'end': end };
    }

    /**
     * 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) : [];
    }

    /**
     * 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));
    }

    /**
     * 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;
    }

    /**
     * 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))
        : {};
    }

    /**
     * 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);
      }
    }

    /**
     * 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');
    }

    /**
     * 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]);
    }

    /**
     * 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);
    }

    /**
     * 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;
    }

    /**
     * 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));
    }

    /**
     * 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);
    }

    /**
     * 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];
    }

    /**
     * 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);
    }

    /**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */
    var isMaskable = coreJsData ? isFunction : stubFalse;

    /**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */
    function isPrototype(value) {
      var Ctor = value && value.constructor,
          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

      return value === proto;
    }

    /**
     * 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);
    }

    /**
     * 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)));
      };
    }

    /**
     * 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;
    }

    /**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */
    function mergeData(data, source) {
      var bitmask = data[1],
          srcBitmask = source[1],
          newBitmask = bitmask | srcBitmask,
          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);

      var isCombo =
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));

      // Exit early if metadata can't be merged.
      if (!(isCommon || isCombo)) {
        return data;
      }
      // Use source `thisArg` if available.
      if (srcBitmask & WRAP_BIND_FLAG) {
        data[2] = source[2];
        // Set when currying a bound function.
        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
      }
      // Compose partial arguments.
      var value = source[3];
      if (value) {
        var partials = data[3];
        data[3] = partials ? composeArgs(partials, value, source[4]) : value;
        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
      }
      // Compose partial right arguments.
      value = source[5];
      if (value) {
        partials = data[5];
        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
      }
      // Use source `argPos` if available.
      value = source[7];
      if (value) {
        data[7] = value;
      }
      // Use source `ary` if it's smaller.
      if (srcBitmask & WRAP_ARY_FLAG) {
        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
      }
      // Use source `arity` if one is not provided.
      if (data[9] == null) {
        data[9] = source[9];
      }
      // Use source `func` and merge bitmasks.
      data[0] = source[0];
      data[1] = newBitmask;

      return data;
    }

    /**
     * This 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;
    }

    /**
     * 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);
    }

    /**
     * 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);
      };
    }

    /**
     * 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));
    }

    /**
     * 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;
    }

    /**
     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the property to get.
     * @returns {*} Returns the property value.
     */
    function safeGet(object, key) {
      if (key === 'constructor' && typeof object[key] === 'function') {
        return;
      }

      if (key == '__proto__') {
        return;
      }

      return object[key];
    }

    /**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var setData = shortOut(baseSetData);

    /**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    var setTimeout = ctxSetTimeout || function(func, wait) {
      return root.setTimeout(func, wait);
    };

    /**
     * Sets the `toString` method of `func` to return `string`.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var setToString = shortOut(baseSetToString);

    /**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */
    function setWrapToString(wrapper, reference, bitmask) {
      var source = (reference + '');
      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
    }

    /**
     * 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);
      };
    }

    /**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */
    function shuffleSelf(array, size) {
      var index = -1,
          length = array.length,
          lastIndex = length - 1;

      size = size === undefined ? length : size;
      while (++index < size) {
        var rand = baseRandom(index, lastIndex),
            value = array[rand];

        array[rand] = array[index];
        array[index] = value;
      }
      array.length = size;
      return array;
    }

    /**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */
    var stringToPath = memoizeCapped(function(string) {
      var result = [];
      if (string.charCodeAt(0) === 46 /* . */) {
        result.push('');
      }
      string.replace(rePropName, function(match, number, quote, subString) {
        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
      });
      return result;
    });

    /**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */
    function toKey(value) {
      if (typeof value == 'string' || isSymbol(value)) {
        return value;
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * 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 '';
    }

    /**
     * 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();
    }

    /**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */
    function wrapperClone(wrapper) {
      if (wrapper instanceof LazyWrapper) {
        return wrapper.clone();
      }
      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
      result.__actions__ = copyArray(wrapper.__actions__);
      result.__index__  = wrapper.__index__;
      result.__values__ = wrapper.__values__;
      return result;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */
    function chunk(array, size, guard) {
      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
        size = 1;
      } else {
        size = nativeMax(toInteger(size), 0);
      }
      var length = array == null ? 0 : array.length;
      if (!length || size < 1) {
        return [];
      }
      var index = 0,
          resIndex = 0,
          result = Array(nativeCeil(length / size));

      while (index < length) {
        result[resIndex++] = baseSlice(array, index, (index += size));
      }
      return result;
    }

    /**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */
    function compact(array) {
      var index = -1,
          length = array == null ? 0 : array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index];
        if (value) {
          result[resIndex++] = value;
        }
      }
      return result;
    }

    /**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */
    function concat() {
      var length = arguments.length;
      if (!length) {
        return [];
      }
      var args = Array(length - 1),
          array = arguments[0],
          index = length;

      while (index--) {
        args[index - 1] = arguments[index];
      }
      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
    }

    /**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */
    var difference = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var differenceBy = baseRest(function(array, values) {
      var iteratee = last(values);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `comparator`
     * which is invoked to compare elements of `array` to `values`. The order and
     * references of result values are determined by the first array. The comparator
     * is invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     *
     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }]
     */
    var differenceWith = baseRest(function(array, values) {
      var comparator = last(values);
      if (isArrayLikeObject(comparator)) {
        comparator = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
        : [];
    });

    /**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function drop(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * 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);
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true, true)
        : [];
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true)
        : [];
    }

    /**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */
    function fill(array, value, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
        start = 0;
        end = length;
      }
      return baseFill(array, value, start, end);
    }

    /**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */
    function findIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index);
    }

    /**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */
    function findLastIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length - 1;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = fromIndex < 0
          ? nativeMax(length + index, 0)
          : nativeMin(index, length - 1);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index, true);
    }

    /**
     * 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) : [];
    }

    /**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */
    function flattenDeep(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, INFINITY) : [];
    }

    /**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */
    function flattenDepth(array, depth) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(array, depth);
    }

    /**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */
    function fromPairs(pairs) {
      var index = -1,
          length = pairs == null ? 0 : pairs.length,
          result = {};

      while (++index < length) {
        var pair = pairs[index];
        result[pair[0]] = pair[1];
      }
      return result;
    }

    /**
     * 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;
    }

    /**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */
    function indexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseIndexOf(array, value, index);
    }

    /**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */
    function initial(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 0, -1) : [];
    }

    /**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */
    var intersection = baseRest(function(arrays) {
      var mapped = arrayMap(arrays, castArrayLikeObject);
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped)
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */
    var intersectionBy = baseRest(function(arrays) {
      var iteratee = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      if (iteratee === last(mapped)) {
        iteratee = undefined;
      } else {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `comparator`
     * which is invoked to compare elements of `arrays`. The order and references
     * of result values are determined by the first array. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.intersectionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }]
     */
    var intersectionWith = baseRest(function(arrays) {
      var comparator = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      comparator = typeof comparator == 'function' ? comparator : undefined;
      if (comparator) {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, undefined, comparator)
        : [];
    });

    /**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */
    function join(array, separator) {
      return array == null ? '' : nativeJoin.call(array, separator);
    }

    /**
     * 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;
    }

    /**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */
    function lastIndexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
      }
      return value === value
        ? strictLastIndexOf(array, value, index)
        : baseFindIndex(array, baseIsNaN, index, true);
    }

    /**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */
    function nth(array, n) {
      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
    }

    /**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */
    var pull = baseRest(pullAll);

    /**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */
    function pullAll(array, values) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values)
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */
    function pullAllBy(array, values, iteratee) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, getIteratee(iteratee, 2))
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */
    function pullAllWith(array, values, comparator) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, undefined, comparator)
        : array;
    }

    /**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */
    var pullAt = flatRest(function(array, indexes) {
      var length = array == null ? 0 : array.length,
          result = baseAt(array, indexes);

      basePullAt(array, arrayMap(indexes, function(index) {
        return isIndex(index, length) ? +index : index;
      }).sort(compareAscending));

      return result;
    });

    /**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */
    function remove(array, predicate) {
      var result = [];
      if (!(array && array.length)) {
        return result;
      }
      var index = -1,
          indexes = [],
          length = array.length;

      predicate = getIteratee(predicate, 3);
      while (++index < length) {
        var value = array[index];
        if (predicate(value, index, array)) {
          result.push(value);
          indexes.push(index);
        }
      }
      basePullAt(array, indexes);
      return result;
    }

    /**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function reverse(array) {
      return array == null ? array : nativeReverse.call(array);
    }

    /**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function slice(array, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
        start = 0;
        end = length;
      }
      else {
        start = start == null ? 0 : toInteger(start);
        end = end === undefined ? length : toInteger(end);
      }
      return baseSlice(array, start, end);
    }

    /**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */
    function sortedIndex(array, value) {
      return baseSortedIndex(array, value);
    }

    /**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */
    function sortedIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
    }

    /**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */
    function sortedIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value);
        if (index < length && eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */
    function sortedLastIndex(array, value) {
      return baseSortedIndex(array, value, true);
    }

    /**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */
    function sortedLastIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
    }

    /**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */
    function sortedLastIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value, true) - 1;
        if (eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */
    function sortedUniq(array) {
      return (array && array.length)
        ? baseSortedUniq(array)
        : [];
    }

    /**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */
    function sortedUniqBy(array, iteratee) {
      return (array && array.length)
        ? baseSortedUniq(array, getIteratee(iteratee, 2))
        : [];
    }

    /**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */
    function tail(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 1, length) : [];
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */
    function take(array, n, guard) {
      if (!(array && array.length)) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */
    function takeRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */
    function takeRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), false, true)
        : [];
    }

    /**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */
    function takeWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3))
        : [];
    }

    /**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */
    var union = baseRest(function(arrays) {
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
    });

    /**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    var unionBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.union` except that it accepts `comparator` which
     * is invoked to compare elements of `arrays`. Result values are chosen from
     * the first array in which the value occurs. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.unionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var unionWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
    });

    /**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */
    function uniq(array) {
      return (array && array.length) ? baseUniq(array) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    function uniqBy(array, iteratee) {
      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */
    function uniqWith(array, comparator) {
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
    }

    /**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */
    function unzip(array) {
      if (!(array && array.length)) {
        return [];
      }
      var length = 0;
      array = arrayFilter(array, function(group) {
        if (isArrayLikeObject(group)) {
          length = nativeMax(group.length, length);
          return true;
        }
      });
      return baseTimes(length, function(index) {
        return arrayMap(array, baseProperty(index));
      });
    }

    /**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */
    function unzipWith(array, iteratee) {
      if (!(array && array.length)) {
        return [];
      }
      var result = unzip(array);
      if (iteratee == null) {
        return result;
      }
      return arrayMap(result, function(group) {
        return apply(iteratee, undefined, group);
      });
    }

    /**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */
    var without = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, values)
        : [];
    });

    /**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */
    var xor = baseRest(function(arrays) {
      return baseXor(arrayFilter(arrays, isArrayLikeObject));
    });

    /**
     * This method is like `_.xor` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which by which they're compared. The order of result values is determined
     * by the order they occur in the arrays. The iteratee is invoked with one
     * argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2, 3.4]
     *
     * // The `_.property` iteratee shorthand.
     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var xorBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.xor` except that it accepts `comparator` which is
     * invoked to compare elements of `arrays`. The order of result values is
     * determined by the order they occur in the arrays. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.xorWith(objects, others, _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var xorWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
    });

    /**
     * Creates an array of grouped elements, the first of which contains the
     * first elements of the given arrays, the second of which contains the
     * second elements of the given arrays, and so on.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     */
    var zip = baseRest(unzip);

    /**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */
    function zipObject(props, values) {
      return baseZipObject(props || [], values || [], assignValue);
    }

    /**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */
    function zipObjectDeep(props, values) {
      return baseZipObject(props || [], values || [], baseSet);
    }

    /**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */
    var zipWith = baseRest(function(arrays) {
      var length = arrays.length,
          iteratee = length > 1 ? arrays[length - 1] : undefined;

      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
      return unzipWith(arrays, iteratee);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */
    function chain(value) {
      var result = lodash(value);
      result.__chain__ = true;
      return result;
    }

    /**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */
    function tap(value, interceptor) {
      interceptor(value);
      return value;
    }

    /**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */
    function thru(value, interceptor) {
      return interceptor(value);
    }

    /**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */
    var wrapperAt = flatRest(function(paths) {
      var length = paths.length,
          start = length ? paths[0] : 0,
          value = this.__wrapped__,
          interceptor = function(object) { return baseAt(object, paths); };

      if (length > 1 || this.__actions__.length ||
          !(value instanceof LazyWrapper) || !isIndex(start)) {
        return this.thru(interceptor);
      }
      value = value.slice(start, +start + (length ? 1 : 0));
      value.__actions__.push({
        'func': thru,
        'args': [interceptor],
        'thisArg': undefined
      });
      return new LodashWrapper(value, this.__chain__).thru(function(array) {
        if (length && !array.length) {
          array.push(undefined);
        }
        return array;
      });
    });

    /**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */
    function wrapperChain() {
      return chain(this);
    }

    /**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */
    function wrapperCommit() {
      return new LodashWrapper(this.value(), this.__chain__);
    }

    /**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */
    function wrapperNext() {
      if (this.__values__ === undefined) {
        this.__values__ = toArray(this.value());
      }
      var done = this.__index__ >= this.__values__.length,
          value = done ? undefined : this.__values__[this.__index__++];

      return { 'done': done, 'value': value };
    }

    /**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */
    function wrapperToIterator() {
      return this;
    }

    /**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */
    function wrapperPlant(value) {
      var result,
          parent = this;

      while (parent instanceof baseLodash) {
        var clone = wrapperClone(parent);
        clone.__index__ = 0;
        clone.__values__ = undefined;
        if (result) {
          previous.__wrapped__ = clone;
        } else {
          result = clone;
        }
        var previous = clone;
        parent = parent.__wrapped__;
      }
      previous.__wrapped__ = value;
      return result;
    }

    /**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function wrapperReverse() {
      var value = this.__wrapped__;
      if (value instanceof LazyWrapper) {
        var wrapped = value;
        if (this.__actions__.length) {
          wrapped = new LazyWrapper(this);
        }
        wrapped = wrapped.reverse();
        wrapped.__actions__.push({
          'func': thru,
          'args': [reverse],
          'thisArg': undefined
        });
        return new LodashWrapper(wrapped, this.__chain__);
      }
      return this.thru(reverse);
    }

    /**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */
    function wrapperValue() {
      return baseWrapperValue(this.__wrapped__, this.__actions__);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */
    var countBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        ++result[key];
      } else {
        baseAssignValue(result, key, 1);
      }
    });

    /**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */
    function every(collection, predicate, guard) {
      var func = isArray(collection) ? arrayEvery : baseEvery;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * 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, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */
    var find = createFind(findIndex);

    /**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */
    var findLast = createFind(findLastIndex);

    /**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMap(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), 1);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMapDeep(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), INFINITY);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */
    function flatMapDepth(collection, iteratee, depth) {
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(map(collection, iteratee), depth);
    }

    /**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forEach(collection, iteratee) {
      var func = isArray(collection) ? arrayEach : baseEach;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */
    function forEachRight(collection, iteratee) {
      var func = isArray(collection) ? arrayEachRight : baseEachRight;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */
    var groupBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        result[key].push(value);
      } else {
        baseAssignValue(result, key, [value]);
      }
    });

    /**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */
    function includes(collection, value, fromIndex, guard) {
      collection = isArrayLike(collection) ? collection : values(collection);
      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;

      var length = collection.length;
      if (fromIndex < 0) {
        fromIndex = nativeMax(length + fromIndex, 0);
      }
      return isString(collection)
        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
    }

    /**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */
    var invokeMap = baseRest(function(collection, path, args) {
      var index = -1,
          isFunc = typeof path == 'function',
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value) {
        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
      });
      return result;
    });

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */
    var keyBy = createAggregator(function(result, value, key) {
      baseAssignValue(result, key, value);
    });

    /**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */
    function map(collection, iteratee) {
      var func = isArray(collection) ? arrayMap : baseMap;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */
    function orderBy(collection, iteratees, orders, guard) {
      if (collection == null) {
        return [];
      }
      if (!isArray(iteratees)) {
        iteratees = iteratees == null ? [] : [iteratees];
      }
      orders = guard ? undefined : orders;
      if (!isArray(orders)) {
        orders = orders == null ? [] : [orders];
      }
      return baseOrderBy(collection, iteratees, orders);
    }

    /**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */
    var partition = createAggregator(function(result, value, key) {
      result[key ? 0 : 1].push(value);
    }, function() { return [[], []]; });

    /**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */
    function reduce(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduce : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
    }

    /**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */
    function reduceRight(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduceRight : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
    }

    /**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */
    function reject(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, negate(getIteratee(predicate, 3)));
    }

    /**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */
    function sample(collection) {
      var func = isArray(collection) ? arraySample : baseSample;
      return func(collection);
    }

    /**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */
    function sampleSize(collection, n, guard) {
      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      var func = isArray(collection) ? arraySampleSize : baseSampleSize;
      return func(collection, n);
    }

    /**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */
    function shuffle(collection) {
      var func = isArray(collection) ? arrayShuffle : baseShuffle;
      return func(collection);
    }

    /**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */
    function size(collection) {
      if (collection == null) {
        return 0;
      }
      if (isArrayLike(collection)) {
        return isString(collection) ? stringSize(collection) : collection.length;
      }
      var tag = getTag(collection);
      if (tag == mapTag || tag == setTag) {
        return collection.size;
      }
      return baseKeys(collection).length;
    }

    /**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */
    function some(collection, predicate, guard) {
      var func = isArray(collection) ? arraySome : baseSome;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * 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), []);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */
    var now = ctxNow || function() {
      return root.Date.now();
    };

    /*------------------------------------------------------------------------*/

    /**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */
    function after(n, func) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n < 1) {
          return func.apply(this, arguments);
        }
      };
    }

    /**
     * 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);
    }

    /**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */
    function before(n, func) {
      var result;
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n > 0) {
          result = func.apply(this, arguments);
        }
        if (n <= 1) {
          func = undefined;
        }
        return result;
      };
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */
    var bind = baseRest(function(func, thisArg, partials) {
      var bitmask = WRAP_BIND_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bind));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(func, bitmask, thisArg, partials, holders);
    });

    /**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */
    var bindKey = baseRest(function(object, key, partials) {
      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bindKey));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(key, bitmask, object, partials, holders);
    });

    /**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */
    function curry(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curry.placeholder;
      return result;
    }

    /**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */
    function curryRight(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curryRight.placeholder;
      return result;
    }

    /**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */
    function debounce(func, wait, options) {
      var lastArgs,
          lastThis,
          maxWait,
          result,
          timerId,
          lastCallTime,
          lastInvokeTime = 0,
          leading = false,
          maxing = false,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      wait = toNumber(wait) || 0;
      if (isObject(options)) {
        leading = !!options.leading;
        maxing = 'maxWait' in options;
        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }

      function invokeFunc(time) {
        var args = lastArgs,
            thisArg = lastThis;

        lastArgs = lastThis = undefined;
        lastInvokeTime = time;
        result = func.apply(thisArg, args);
        return result;
      }

      function leadingEdge(time) {
        // Reset any `maxWait` timer.
        lastInvokeTime = time;
        // Start the timer for the trailing edge.
        timerId = setTimeout(timerExpired, wait);
        // Invoke the leading edge.
        return leading ? invokeFunc(time) : result;
      }

      function remainingWait(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime,
            timeWaiting = wait - timeSinceLastCall;

        return maxing
          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
          : timeWaiting;
      }

      function shouldInvoke(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime;

        // Either this is the first call, activity has stopped and we're at the
        // trailing edge, the system time has gone backwards and we're treating
        // it as the trailing edge, or we've hit the `maxWait` limit.
        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
      }

      function timerExpired() {
        var time = now();
        if (shouldInvoke(time)) {
          return trailingEdge(time);
        }
        // Restart the timer.
        timerId = setTimeout(timerExpired, remainingWait(time));
      }

      function trailingEdge(time) {
        timerId = undefined;

        // Only invoke if we have `lastArgs` which means `func` has been
        // debounced at least once.
        if (trailing && lastArgs) {
          return invokeFunc(time);
        }
        lastArgs = lastThis = undefined;
        return result;
      }

      function cancel() {
        if (timerId !== undefined) {
          clearTimeout(timerId);
        }
        lastInvokeTime = 0;
        lastArgs = lastCallTime = lastThis = timerId = undefined;
      }

      function flush() {
        return timerId === undefined ? result : trailingEdge(now());
      }

      function debounced() {
        var time = now(),
            isInvoking = shouldInvoke(time);

        lastArgs = arguments;
        lastThis = this;
        lastCallTime = time;

        if (isInvoking) {
          if (timerId === undefined) {
            return leadingEdge(lastCallTime);
          }
          if (maxing) {
            // Handle invocations in a tight loop.
            clearTimeout(timerId);
            timerId = setTimeout(timerExpired, wait);
            return invokeFunc(lastCallTime);
          }
        }
        if (timerId === undefined) {
          timerId = setTimeout(timerExpired, wait);
        }
        return result;
      }
      debounced.cancel = cancel;
      debounced.flush = flush;
      return debounced;
    }

    /**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */
    var defer = baseRest(function(func, args) {
      return baseDelay(func, 1, args);
    });

    /**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */
    var delay = baseRest(function(func, wait, args) {
      return baseDelay(func, toNumber(wait) || 0, args);
    });

    /**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */
    function flip(func) {
      return createWrap(func, WRAP_FLIP_FLAG);
    }

    /**
     * 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;

    /**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */
    function negate(predicate) {
      if (typeof predicate != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return function() {
        var args = arguments;
        switch (args.length) {
          case 0: return !predicate.call(this);
          case 1: return !predicate.call(this, args[0]);
          case 2: return !predicate.call(this, args[0], args[1]);
          case 3: return !predicate.call(this, args[0], args[1], args[2]);
        }
        return !predicate.apply(this, args);
      };
    }

    /**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */
    function once(func) {
      return before(2, func);
    }

    /**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */
    var overArgs = castRest(function(func, transforms) {
      transforms = (transforms.length == 1 && isArray(transforms[0]))
        ? arrayMap(transforms[0], baseUnary(getIteratee()))
        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));

      var funcsLength = transforms.length;
      return baseRest(function(args) {
        var index = -1,
            length = nativeMin(args.length, funcsLength);

        while (++index < length) {
          args[index] = transforms[index].call(this, args[index]);
        }
        return apply(func, this, args);
      });
    });

    /**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */
    var partial = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partial));
      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
    });

    /**
     * This method is like `_.partial` except that partially applied arguments
     * are appended to the arguments it receives.
     *
     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var greetFred = _.partialRight(greet, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     *
     * // Partially applied with placeholders.
     * var sayHelloTo = _.partialRight(greet, 'hello', _);
     * sayHelloTo('fred');
     * // => 'hello fred'
     */
    var partialRight = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partialRight));
      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
    });

    /**
     * Creates a function that invokes `func` with arguments arranged according
     * to the specified `indexes` where the argument value at the first index is
     * provided as the first argument, the argument value at the second index is
     * provided as the second argument, and so on.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to rearrange arguments for.
     * @param {...(number|number[])} indexes The arranged argument indexes.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var rearged = _.rearg(function(a, b, c) {
     *   return [a, b, c];
     * }, [2, 0, 1]);
     *
     * rearged('b', 'c', 'a')
     * // => ['a', 'b', 'c']
     */
    var rearg = flatRest(function(func, indexes) {
      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
    });

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */
    function rest(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start === undefined ? start : toInteger(start);
      return baseRest(func, start);
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */
    function spread(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start == null ? 0 : nativeMax(toInteger(start), 0);
      return baseRest(function(args) {
        var array = args[start],
            otherArgs = castSlice(args, 0, start);

        if (array) {
          arrayPush(otherArgs, array);
        }
        return apply(func, this, otherArgs);
      });
    }

    /**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */
    function throttle(func, wait, options) {
      var leading = true,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      if (isObject(options)) {
        leading = 'leading' in options ? !!options.leading : leading;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }
      return debounce(func, wait, {
        'leading': leading,
        'maxWait': wait,
        'trailing': trailing
      });
    }

    /**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */
    function unary(func) {
      return ary(func, 1);
    }

    /**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */
    function wrap(value, wrapper) {
      return partial(castFunction(wrapper), value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */
    function castArray() {
      if (!arguments.length) {
        return [];
      }
      var value = arguments[0];
      return isArray(value) ? value : [value];
    }

    /**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */
    function clone(value) {
      return baseClone(value, CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */
    function cloneWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */
    function cloneDeep(value) {
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */
    function cloneDeepWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */
    function conformsTo(object, source) {
      return source == null || baseConformsTo(object, source, keys(source));
    }

    /**
     * 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);
    }

    /**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */
    var gt = createRelationalOperation(baseGt);

    /**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */
    var gte = createRelationalOperation(function(value, other) {
      return value >= other;
    });

    /**
     * Checks if `value` is likely an `arguments` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     *  else `false`.
     * @example
     *
     * _.isArguments(function() { return arguments; }());
     * // => true
     *
     * _.isArguments([1, 2, 3]);
     * // => false
     */
    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
        !propertyIsEnumerable.call(value, 'callee');
    };

    /**
     * Checks if `value` is classified as an `Array` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
     * @example
     *
     * _.isArray([1, 2, 3]);
     * // => true
     *
     * _.isArray(document.body.children);
     * // => false
     *
     * _.isArray('abc');
     * // => false
     *
     * _.isArray(_.noop);
     * // => false
     */
    var isArray = Array.isArray;

    /**
     * Checks if `value` is classified as an `ArrayBuffer` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     * @example
     *
     * _.isArrayBuffer(new ArrayBuffer(2));
     * // => true
     *
     * _.isArrayBuffer(new Array(2));
     * // => false
     */
    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;

    /**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */
    var isBuffer = nativeIsBuffer || stubFalse;

    /**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */
    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;

    /**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */
    function isElement(value) {
      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
    }

    /**
     * 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;
    }

    /**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */
    function isEqual(value, other) {
      return baseIsEqual(value, other);
    }

    /**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */
    function isEqualWith(value, other, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      var result = customizer ? customizer(value, other) : undefined;
      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
    }

    /**
     * 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));
    }

    /**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */
    function isFinite(value) {
      return typeof value == 'number' && nativeIsFinite(value);
    }

    /**
     * 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;
    }

    /**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */
    function isInteger(value) {
      return typeof value == 'number' && value == toInteger(value);
    }

    /**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */
    function isLength(value) {
      return typeof value == 'number' &&
        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */
    function isObject(value) {
      var type = typeof value;
      return value != null && (type == 'object' || type == 'function');
    }

    /**
     * Checks if `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';
    }

    /**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */
    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

    /**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */
    function isMatch(object, source) {
      return object === source || baseIsMatch(object, source, getMatchData(source));
    }

    /**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */
    function isMatchWith(object, source, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseIsMatch(object, source, getMatchData(source), customizer);
    }

    /**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */
    function isNaN(value) {
      // An `NaN` primitive is the only value that is not equal to itself.
      // Perform the `toStringTag` check first to avoid errors with some
      // ActiveX objects in IE.
      return isNumber(value) && value != +value;
    }

    /**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */
    function isNative(value) {
      if (isMaskable(value)) {
        throw new Error(CORE_ERROR_TEXT);
      }
      return baseIsNative(value);
    }

    /**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */
    function isNull(value) {
      return value === null;
    }

    /**
     * Checks if `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;
    }

    /**
     * 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);
    }

    /**
     * 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;
    }

    /**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */
    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;

    /**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */
    function isSafeInteger(value) {
      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */
    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

    /**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */
    function isString(value) {
      return typeof value == 'string' ||
        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
    }

    /**
     * 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);
    }

    /**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

    /**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */
    function isUndefined(value) {
      return value === undefined;
    }

    /**
     * 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;
    }

    /**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */
    function isWeakSet(value) {
      return isObjectLike(value) && baseGetTag(value) == weakSetTag;
    }

    /**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */
    var lt = createRelationalOperation(baseLt);

    /**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */
    var lte = createRelationalOperation(function(value, other) {
      return value <= other;
    });

    /**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */
    function toArray(value) {
      if (!value) {
        return [];
      }
      if (isArrayLike(value)) {
        return isString(value) ? stringToArray(value) : copyArray(value);
      }
      if (symIterator && value[symIterator]) {
        return iteratorToArray(value[symIterator]());
      }
      var tag = getTag(value),
          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);

      return func(value);
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */
    function toLength(value) {
      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
    }

    /**
     * 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);
    }

    /**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */
    function toPlainObject(value) {
      return copyObject(value, keysIn(value));
    }

    /**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */
    function toSafeInteger(value) {
      return value
        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
        : (value === 0 ? value : 0);
    }

    /**
     * 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);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */
    var assign = createAssigner(function(object, source) {
      if (isPrototype(source) || isArrayLike(source)) {
        copyObject(source, keys(source), object);
        return;
      }
      for (var key in source) {
        if (hasOwnProperty.call(source, key)) {
          assignValue(object, key, source[key]);
        }
      }
    });

    /**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */
    var assignIn = createAssigner(function(object, source) {
      copyObject(source, keysIn(source), object);
    });

    /**
     * This method is like `_.assignIn` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extendWith
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignInWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keysIn(source), object, customizer);
    });

    /**
     * This method is like `_.assign` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignInWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keys(source), object, customizer);
    });

    /**
     * Creates an array of values corresponding to `paths` of `object`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Array} Returns the picked values.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _.at(object, ['a[0].b.c', 'a[1]']);
     * // => [3, 4]
     */
    var at = flatRest(baseAt);

    /**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */
    function create(prototype, properties) {
      var result = baseCreate(prototype);
      return properties == null ? result : baseAssign(result, properties);
    }

    /**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var defaults = baseRest(function(object, sources) {
      object = Object(object);

      var index = -1;
      var length = sources.length;
      var guard = length > 2 ? sources[2] : undefined;

      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
        length = 1;
      }

      while (++index < length) {
        var source = sources[index];
        var props = keysIn(source);
        var propsIndex = -1;
        var propsLength = props.length;

        while (++propsIndex < propsLength) {
          var key = props[propsIndex];
          var value = object[key];

          if (value === undefined ||
              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
            object[key] = source[key];
          }
        }
      }

      return object;
    });

    /**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */
    var defaultsDeep = baseRest(function(args) {
      args.push(undefined, customDefaultsMerge);
      return apply(mergeWith, undefined, args);
    });

    /**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */
    function findKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
    }

    /**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */
    function findLastKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
    }

    /**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */
    function forIn(object, iteratee) {
      return object == null
        ? object
        : baseFor(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */
    function forInRight(object, iteratee) {
      return object == null
        ? object
        : baseForRight(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forOwn(object, iteratee) {
      return object && baseForOwn(object, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */
    function forOwnRight(object, iteratee) {
      return object && baseForOwnRight(object, getIteratee(iteratee, 3));
    }

    /**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */
    function functions(object) {
      return object == null ? [] : baseFunctions(object, keys(object));
    }

    /**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */
    function functionsIn(object) {
      return object == null ? [] : baseFunctions(object, keysIn(object));
    }

    /**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */
    function get(object, path, defaultValue) {
      var result = object == null ? undefined : baseGet(object, path);
      return result === undefined ? defaultValue : result;
    }

    /**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */
    function has(object, path) {
      return object != null && hasPath(object, path, baseHas);
    }

    /**
     * Checks if `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);
    }

    /**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */
    var invert = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      result[value] = key;
    }, constant(identity));

    /**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */
    var invertBy = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      if (hasOwnProperty.call(result, value)) {
        result[value].push(key);
      } else {
        result[value] = [key];
      }
    }, getIteratee);

    /**
     * Invokes the method at `path` of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
     *
     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
     * // => [2, 3]
     */
    var invoke = baseRest(baseInvoke);

    /**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */
    function keys(object) {
      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
    }

    /**
     * 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);
    }

    /**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */
    function mapKeys(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, iteratee(value, key, object), value);
      });
      return result;
    }

    /**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */
    function mapValues(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, key, iteratee(value, key, object));
      });
      return result;
    }

    /**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */
    var merge = createAssigner(function(object, source, srcIndex) {
      baseMerge(object, source, srcIndex);
    });

    /**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */
    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
      baseMerge(object, source, srcIndex, customizer);
    });

    /**
     * The opposite of `_.pick`; this method creates an object composed of the
     * own and inherited enumerable property paths of `object` that are not omitted.
     *
     * **Note:** This method is considerably slower than `_.pick`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to omit.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omit(object, ['a', 'c']);
     * // => { 'b': '2' }
     */
    var omit = flatRest(function(object, paths) {
      var result = {};
      if (object == null) {
        return result;
      }
      var isDeep = false;
      paths = arrayMap(paths, function(path) {
        path = castPath(path, object);
        isDeep || (isDeep = path.length > 1);
        return path;
      });
      copyObject(object, getAllKeysIn(object), result);
      if (isDeep) {
        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
      }
      var length = paths.length;
      while (length--) {
        baseUnset(result, paths[length]);
      }
      return result;
    });

    /**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */
    function omitBy(object, predicate) {
      return pickBy(object, negate(getIteratee(predicate)));
    }

    /**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */
    var pick = flatRest(function(object, paths) {
      return object == null ? {} : basePick(object, paths);
    });

    /**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */
    function pickBy(object, predicate) {
      if (object == null) {
        return {};
      }
      var props = arrayMap(getAllKeysIn(object), function(prop) {
        return [prop];
      });
      predicate = getIteratee(predicate);
      return basePickBy(object, props, function(value, path) {
        return predicate(value, path[0]);
      });
    }

    /**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */
    function result(object, path, defaultValue) {
      path = castPath(path, object);

      var index = -1,
          length = path.length;

      // Ensure the loop is entered when path is empty.
      if (!length) {
        length = 1;
        object = undefined;
      }
      while (++index < length) {
        var value = object == null ? undefined : object[toKey(path[index])];
        if (value === undefined) {
          index = length;
          value = defaultValue;
        }
        object = isFunction(value) ? value.call(object) : value;
      }
      return object;
    }

    /**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */
    function set(object, path, value) {
      return object == null ? object : baseSet(object, path, value);
    }

    /**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */
    function setWith(object, path, value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseSet(object, path, value, customizer);
    }

    /**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */
    var toPairs = createToPairs(keys);

    /**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */
    var toPairsIn = createToPairs(keysIn);

    /**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */
    function transform(object, iteratee, accumulator) {
      var isArr = isArray(object),
          isArrLike = isArr || isBuffer(object) || isTypedArray(object);

      iteratee = getIteratee(iteratee, 4);
      if (accumulator == null) {
        var Ctor = object && object.constructor;
        if (isArrLike) {
          accumulator = isArr ? new Ctor : [];
        }
        else if (isObject(object)) {
          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
        }
        else {
          accumulator = {};
        }
      }
      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
        return iteratee(accumulator, value, index, object);
      });
      return accumulator;
    }

    /**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */
    function unset(object, path) {
      return object == null ? true : baseUnset(object, path);
    }

    /**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */
    function update(object, path, updater) {
      return object == null ? object : baseUpdate(object, path, castFunction(updater));
    }

    /**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */
    function updateWith(object, path, updater, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
    }

    /**
     * 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));
    }

    /**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */
    function valuesIn(object) {
      return object == null ? [] : baseValues(object, keysIn(object));
    }

    /*------------------------------------------------------------------------*/

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */
    function random(lower, upper, floating) {
      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
        upper = floating = undefined;
      }
      if (floating === undefined) {
        if (typeof upper == 'boolean') {
          floating = upper;
          upper = undefined;
        }
        else if (typeof lower == 'boolean') {
          floating = lower;
          lower = undefined;
        }
      }
      if (lower === undefined && upper === undefined) {
        lower = 0;
        upper = 1;
      }
      else {
        lower = toFinite(lower);
        if (upper === undefined) {
          upper = lower;
          lower = 0;
        } else {
          upper = toFinite(upper);
        }
      }
      if (lower > upper) {
        var temp = lower;
        lower = upper;
        upper = temp;
      }
      if (floating || lower % 1 || upper % 1) {
        var rand = nativeRandom();
        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
      }
      return baseRandom(lower, upper);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */
    var camelCase = createCompounder(function(result, word, index) {
      word = word.toLowerCase();
      return result + (index ? capitalize(word) : word);
    });

    /**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */
    function capitalize(string) {
      return upperFirst(toString(string).toLowerCase());
    }

    /**
     * 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, '');
    }

    /**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */
    function endsWith(string, target, position) {
      string = toString(string);
      target = baseToString(target);

      var length = string.length;
      position = position === undefined
        ? length
        : baseClamp(toInteger(position), 0, length);

      var end = position;
      position -= target.length;
      return position >= 0 && string.slice(position, end) == target;
    }

    /**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */
    function escape(string) {
      string = toString(string);
      return (string && reHasUnescapedHtml.test(string))
        ? string.replace(reUnescapedHtml, escapeHtmlChar)
        : string;
    }

    /**
     * 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;
    }

    /**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */
    var kebabCase = createCompounder(function(result, word, index) {
      return result + (index ? '-' : '') + word.toLowerCase();
    });

    /**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */
    var lowerCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toLowerCase();
    });

    /**
     * Converts the first character of `string` to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.lowerFirst('Fred');
     * // => 'fred'
     *
     * _.lowerFirst('FRED');
     * // => 'fRED'
     */
    var lowerFirst = createCaseFirst('toLowerCase');

    /**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */
    function pad(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      if (!length || strLength >= length) {
        return string;
      }
      var mid = (length - strLength) / 2;
      return (
        createPadding(nativeFloor(mid), chars) +
        string +
        createPadding(nativeCeil(mid), chars)
      );
    }

    /**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */
    function padEnd(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (string + createPadding(length - strLength, chars))
        : string;
    }

    /**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */
    function padStart(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (createPadding(length - strLength, chars) + string)
        : string;
    }

    /**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */
    function parseInt(string, radix, guard) {
      if (guard || radix == null) {
        radix = 0;
      } else if (radix) {
        radix = +radix;
      }
      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
    }

    /**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */
    function repeat(string, n, guard) {
      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      return baseRepeat(toString(string), n);
    }

    /**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */
    function replace() {
      var args = arguments,
          string = toString(args[0]);

      return args.length < 3 ? string : string.replace(args[1], args[2]);
    }

    /**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */
    var snakeCase = createCompounder(function(result, word, index) {
      return result + (index ? '_' : '') + word.toLowerCase();
    });

    /**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */
    function split(string, separator, limit) {
      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
        separator = limit = undefined;
      }
      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
      if (!limit) {
        return [];
      }
      string = toString(string);
      if (string && (
            typeof separator == 'string' ||
            (separator != null && !isRegExp(separator))
          )) {
        separator = baseToString(separator);
        if (!separator && hasUnicode(string)) {
          return castSlice(stringToArray(string), 0, limit);
        }
      }
      return string.split(separator, limit);
    }

    /**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */
    var startCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + upperFirst(word);
    });

    /**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */
    function startsWith(string, target, position) {
      string = toString(string);
      position = position == null
        ? 0
        : baseClamp(toInteger(position), 0, string.length);

      target = baseToString(target);
      return string.slice(position, position + target.length) == target;
    }

    /**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */
    function template(string, options, guard) {
      // Based on John Resig's `tmpl` implementation
      // (http://ejohn.org/blog/javascript-micro-templating/)
      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
      var settings = lodash.templateSettings;

      if (guard && isIterateeCall(string, options, guard)) {
        options = undefined;
      }
      string = toString(string);
      options = assignInWith({}, options, settings, customDefaultsAssignIn);

      var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
          importsKeys = keys(imports),
          importsValues = baseValues(imports, importsKeys);

      var isEscaping,
          isEvaluating,
          index = 0,
          interpolate = options.interpolate || reNoMatch,
          source = "__p += '";

      // Compile the regexp to match each delimiter.
      var reDelimiters = RegExp(
        (options.escape || reNoMatch).source + '|' +
        interpolate.source + '|' +
        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
        (options.evaluate || reNoMatch).source + '|$'
      , 'g');

      // Use a sourceURL for easier debugging.
      // The sourceURL gets injected into the source that's eval-ed, so be careful
      // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
      // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
      var sourceURL = '//# sourceURL=' +
        (hasOwnProperty.call(options, 'sourceURL')
          ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
          : ('lodash.templateSources[' + (++templateCounter) + ']')
        ) + '\n';

      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
        interpolateValue || (interpolateValue = esTemplateValue);

        // Escape characters that can't be included in string literals.
        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);

        // Replace delimiters with snippets.
        if (escapeValue) {
          isEscaping = true;
          source += "' +\n__e(" + escapeValue + ") +\n'";
        }
        if (evaluateValue) {
          isEvaluating = true;
          source += "';\n" + evaluateValue + ";\n__p += '";
        }
        if (interpolateValue) {
          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
        }
        index = offset + match.length;

        // The JS engine embedded in Adobe products needs `match` returned in
        // order to produce the correct `offset` value.
        return match;
      });

      source += "';\n";

      // If `variable` is not specified wrap a with-statement around the generated
      // code to add the data object to the top of the scope chain.
      // Like with sourceURL, we take care to not check the option's prototype,
      // as this configuration is a code injection vector.
      var variable = hasOwnProperty.call(options, 'variable') && options.variable;
      if (!variable) {
        source = 'with (obj) {\n' + source + '\n}\n';
      }
      // Cleanup code by stripping empty strings.
      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
        .replace(reEmptyStringMiddle, '$1')
        .replace(reEmptyStringTrailing, '$1;');

      // Frame code as the function body.
      source = 'function(' + (variable || 'obj') + ') {\n' +
        (variable
          ? ''
          : 'obj || (obj = {});\n'
        ) +
        "var __t, __p = ''" +
        (isEscaping
           ? ', __e = _.escape'
           : ''
        ) +
        (isEvaluating
          ? ', __j = Array.prototype.join;\n' +
            "function print() { __p += __j.call(arguments, '') }\n"
          : ';\n'
        ) +
        source +
        'return __p\n}';

      var result = attempt(function() {
        return Function(importsKeys, sourceURL + 'return ' + source)
          .apply(undefined, importsValues);
      });

      // Provide the compiled function's source by its `toString` method or
      // the `source` property as a convenience for inlining compiled templates.
      result.source = source;
      if (isError(result)) {
        throw result;
      }
      return result;
    }

    /**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */
    function toLower(value) {
      return toString(value).toLowerCase();
    }

    /**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */
    function toUpper(value) {
      return toString(value).toUpperCase();
    }

    /**
     * Removes 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('');
    }

    /**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */
    function trimEnd(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimEnd, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;

      return castSlice(strSymbols, 0, end).join('');
    }

    /**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */
    function trimStart(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimStart, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          start = charsStartIndex(strSymbols, stringToArray(chars));

      return castSlice(strSymbols, start).join('');
    }

    /**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */
    function truncate(string, options) {
      var length = DEFAULT_TRUNC_LENGTH,
          omission = DEFAULT_TRUNC_OMISSION;

      if (isObject(options)) {
        var separator = 'separator' in options ? options.separator : separator;
        length = 'length' in options ? toInteger(options.length) : length;
        omission = 'omission' in options ? baseToString(options.omission) : omission;
      }
      string = toString(string);

      var strLength = string.length;
      if (hasUnicode(string)) {
        var strSymbols = stringToArray(string);
        strLength = strSymbols.length;
      }
      if (length >= strLength) {
        return string;
      }
      var end = length - stringSize(omission);
      if (end < 1) {
        return omission;
      }
      var result = strSymbols
        ? castSlice(strSymbols, 0, end).join('')
        : string.slice(0, end);

      if (separator === undefined) {
        return result + omission;
      }
      if (strSymbols) {
        end += (result.length - end);
      }
      if (isRegExp(separator)) {
        if (string.slice(end).search(separator)) {
          var match,
              substring = result;

          if (!separator.global) {
            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
          }
          separator.lastIndex = 0;
          while ((match = separator.exec(substring))) {
            var newEnd = match.index;
          }
          result = result.slice(0, newEnd === undefined ? end : newEnd);
        }
      } else if (string.indexOf(baseToString(separator), end) != end) {
        var index = result.lastIndexOf(separator);
        if (index > -1) {
          result = result.slice(0, index);
        }
      }
      return result + omission;
    }

    /**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */
    function unescape(string) {
      string = toString(string);
      return (string && reHasEscapedHtml.test(string))
        ? string.replace(reEscapedHtml, unescapeHtmlChar)
        : string;
    }

    /**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */
    var upperCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toUpperCase();
    });

    /**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */
    var upperFirst = createCaseFirst('toUpperCase');

    /**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */
    function words(string, pattern, guard) {
      string = toString(string);
      pattern = guard ? undefined : pattern;

      if (pattern === undefined) {
        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
      }
      return string.match(pattern) || [];
    }

    /*------------------------------------------------------------------------*/

    /**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */
    var attempt = baseRest(function(func, args) {
      try {
        return apply(func, undefined, args);
      } catch (e) {
        return isError(e) ? e : new Error(e);
      }
    });

    /**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */
    var bindAll = flatRest(function(object, methodNames) {
      arrayEach(methodNames, function(key) {
        key = toKey(key);
        baseAssignValue(object, key, bind(object[key], object));
      });
      return object;
    });

    /**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */
    function cond(pairs) {
      var length = pairs == null ? 0 : pairs.length,
          toIteratee = getIteratee();

      pairs = !length ? [] : arrayMap(pairs, function(pair) {
        if (typeof pair[1] != 'function') {
          throw new TypeError(FUNC_ERROR_TEXT);
        }
        return [toIteratee(pair[0]), pair[1]];
      });

      return baseRest(function(args) {
        var index = -1;
        while (++index < length) {
          var pair = pairs[index];
          if (apply(pair[0], this, args)) {
            return apply(pair[1], this, args);
          }
        }
      });
    }

    /**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */
    function conforms(source) {
      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * 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;
      };
    }

    /**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */
    function defaultTo(value, defaultValue) {
      return (value == null || value !== value) ? defaultValue : value;
    }

    /**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */
    var flow = createFlow();

    /**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */
    var flowRight = createFlow(true);

    /**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */
    function identity(value) {
      return value;
    }

    /**
     * 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));
    }

    /**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     */
    function matches(source) {
      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     */
    function matchesProperty(path, srcValue) {
      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */
    var method = baseRest(function(path, args) {
      return function(object) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */
    var methodOf = baseRest(function(object, args) {
      return function(path) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */
    function mixin(object, source, options) {
      var props = keys(source),
          methodNames = baseFunctions(source, props);

      if (options == null &&
          !(isObject(source) && (methodNames.length || !props.length))) {
        options = source;
        source = object;
        object = this;
        methodNames = baseFunctions(source, keys(source));
      }
      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
          isFunc = isFunction(object);

      arrayEach(methodNames, function(methodName) {
        var func = source[methodName];
        object[methodName] = func;
        if (isFunc) {
          object.prototype[methodName] = function() {
            var chainAll = this.__chain__;
            if (chain || chainAll) {
              var result = object(this.__wrapped__),
                  actions = result.__actions__ = copyArray(this.__actions__);

              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
              result.__chain__ = chainAll;
              return result;
            }
            return func.apply(object, arrayPush([this.value()], arguments));
          };
        }
      });

      return object;
    }

    /**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */
    function noConflict() {
      if (root._ === this) {
        root._ = oldDash;
      }
      return this;
    }

    /**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */
    function noop() {
      // No operation performed.
    }

    /**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */
    function nthArg(n) {
      n = toInteger(n);
      return baseRest(function(args) {
        return baseNth(args, n);
      });
    }

    /**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */
    var over = createOver(arrayMap);

    /**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */
    var overEvery = createOver(arrayEvery);

    /**
     * Creates a function that checks if **any** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overSome([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => true
     *
     * func(NaN);
     * // => false
     */
    var overSome = createOver(arraySome);

    /**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */
    function property(path) {
      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
    }

    /**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */
    function propertyOf(object) {
      return function(path) {
        return object == null ? undefined : baseGet(object, path);
      };
    }

    /**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */
    var range = createRange();

    /**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */
    var rangeRight = createRange(true);

    /**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */
    function stubArray() {
      return [];
    }

    /**
     * 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;
    }

    /**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */
    function stubObject() {
      return {};
    }

    /**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */
    function stubString() {
      return '';
    }

    /**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */
    function stubTrue() {
      return true;
    }

    /**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */
    function times(n, iteratee) {
      n = toInteger(n);
      if (n < 1 || n > MAX_SAFE_INTEGER) {
        return [];
      }
      var index = MAX_ARRAY_LENGTH,
          length = nativeMin(n, MAX_ARRAY_LENGTH);

      iteratee = getIteratee(iteratee);
      n -= MAX_ARRAY_LENGTH;

      var result = baseTimes(length, iteratee);
      while (++index < n) {
        iteratee(index);
      }
      return result;
    }

    /**
     * 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)));
    }

    /**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */
    function uniqueId(prefix) {
      var id = ++idCounter;
      return toString(prefix) + id;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */
    var add = createMathOperation(function(augend, addend) {
      return augend + addend;
    }, 0);

    /**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */
    var ceil = createRound('ceil');

    /**
     * Divide two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} dividend The first number in a division.
     * @param {number} divisor The second number in a division.
     * @returns {number} Returns the quotient.
     * @example
     *
     * _.divide(6, 4);
     * // => 1.5
     */
    var divide = createMathOperation(function(dividend, divisor) {
      return dividend / divisor;
    }, 1);

    /**
     * Computes `number` rounded down to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round down.
     * @param {number} [precision=0] The precision to round down to.
     * @returns {number} Returns the rounded down number.
     * @example
     *
     * _.floor(4.006);
     * // => 4
     *
     * _.floor(0.046, 2);
     * // => 0.04
     *
     * _.floor(4060, -2);
     * // => 4000
     */
    var floor = createRound('floor');

    /**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */
    function max(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseGt)
        : undefined;
    }

    /**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */
    function maxBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
        : undefined;
    }

    /**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */
    function mean(array) {
      return baseMean(array, identity);
    }

    /**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */
    function meanBy(array, iteratee) {
      return baseMean(array, getIteratee(iteratee, 2));
    }

    /**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */
    function min(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseLt)
        : undefined;
    }

    /**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */
    function minBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
        : undefined;
    }

    /**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */
    var multiply = createMathOperation(function(multiplier, multiplicand) {
      return multiplier * multiplicand;
    }, 1);

    /**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */
    var round = createRound('round');

    /**
     * Subtract two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {number} minuend The first number in a subtraction.
     * @param {number} subtrahend The second number in a subtraction.
     * @returns {number} Returns the difference.
     * @example
     *
     * _.subtract(6, 4);
     * // => 2
     */
    var subtract = createMathOperation(function(minuend, subtrahend) {
      return minuend - subtrahend;
    }, 0);

    /**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */
    function sum(array) {
      return (array && array.length)
        ? baseSum(array, identity)
        : 0;
    }

    /**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */
    function sumBy(array, iteratee) {
      return (array && array.length)
        ? baseSum(array, getIteratee(iteratee, 2))
        : 0;
    }

    /*------------------------------------------------------------------------*/

    // Add methods that return wrapped values in chain sequences.
    lodash.after = after;
    lodash.ary = ary;
    lodash.assign = assign;
    lodash.assignIn = assignIn;
    lodash.assignInWith = assignInWith;
    lodash.assignWith = assignWith;
    lodash.at = at;
    lodash.before = before;
    lodash.bind = bind;
    lodash.bindAll = bindAll;
    lodash.bindKey = bindKey;
    lodash.castArray = castArray;
    lodash.chain = chain;
    lodash.chunk = chunk;
    lodash.compact = compact;
    lodash.concat = concat;
    lodash.cond = cond;
    lodash.conforms = conforms;
    lodash.constant = constant;
    lodash.countBy = countBy;
    lodash.create = create;
    lodash.curry = curry;
    lodash.curryRight = curryRight;
    lodash.debounce = debounce;
    lodash.defaults = defaults;
    lodash.defaultsDeep = defaultsDeep;
    lodash.defer = defer;
    lodash.delay = delay;
    lodash.difference = difference;
    lodash.differenceBy = differenceBy;
    lodash.differenceWith = differenceWith;
    lodash.drop = drop;
    lodash.dropRight = dropRight;
    lodash.dropRightWhile = dropRightWhile;
    lodash.dropWhile = dropWhile;
    lodash.fill = fill;
    lodash.filter = filter;
    lodash.flatMap = flatMap;
    lodash.flatMapDeep = flatMapDeep;
    lodash.flatMapDepth = flatMapDepth;
    lodash.flatten = flatten;
    lodash.flattenDeep = flattenDeep;
    lodash.flattenDepth = flattenDepth;
    lodash.flip = flip;
    lodash.flow = flow;
    lodash.flowRight = flowRight;
    lodash.fromPairs = fromPairs;
    lodash.functions = functions;
    lodash.functionsIn = functionsIn;
    lodash.groupBy = groupBy;
    lodash.initial = initial;
    lodash.intersection = intersection;
    lodash.intersectionBy = intersectionBy;
    lodash.intersectionWith = intersectionWith;
    lodash.invert = invert;
    lodash.invertBy = invertBy;
    lodash.invokeMap = invokeMap;
    lodash.iteratee = iteratee;
    lodash.keyBy = keyBy;
    lodash.keys = keys;
    lodash.keysIn = keysIn;
    lodash.map = map;
    lodash.mapKeys = mapKeys;
    lodash.mapValues = mapValues;
    lodash.matches = matches;
    lodash.matchesProperty = matchesProperty;
    lodash.memoize = memoize;
    lodash.merge = merge;
    lodash.mergeWith = mergeWith;
    lodash.method = method;
    lodash.methodOf = methodOf;
    lodash.mixin = mixin;
    lodash.negate = negate;
    lodash.nthArg = nthArg;
    lodash.omit = omit;
    lodash.omitBy = omitBy;
    lodash.once = once;
    lodash.orderBy = orderBy;
    lodash.over = over;
    lodash.overArgs = overArgs;
    lodash.overEvery = overEvery;
    lodash.overSome = overSome;
    lodash.partial = partial;
    lodash.partialRight = partialRight;
    lodash.partition = partition;
    lodash.pick = pick;
    lodash.pickBy = pickBy;
    lodash.property = property;
    lodash.propertyOf = propertyOf;
    lodash.pull = pull;
    lodash.pullAll = pullAll;
    lodash.pullAllBy = pullAllBy;
    lodash.pullAllWith = pullAllWith;
    lodash.pullAt = pullAt;
    lodash.range = range;
    lodash.rangeRight = rangeRight;
    lodash.rearg = rearg;
    lodash.reject = reject;
    lodash.remove = remove;
    lodash.rest = rest;
    lodash.reverse = reverse;
    lodash.sampleSize = sampleSize;
    lodash.set = set;
    lodash.setWith = setWith;
    lodash.shuffle = shuffle;
    lodash.slice = slice;
    lodash.sortBy = sortBy;
    lodash.sortedUniq = sortedUniq;
    lodash.sortedUniqBy = sortedUniqBy;
    lodash.split = split;
    lodash.spread = spread;
    lodash.tail = tail;
    lodash.take = take;
    lodash.takeRight = takeRight;
    lodash.takeRightWhile = takeRightWhile;
    lodash.takeWhile = takeWhile;
    lodash.tap = tap;
    lodash.throttle = throttle;
    lodash.thru = thru;
    lodash.toArray = toArray;
    lodash.toPairs = toPairs;
    lodash.toPairsIn = toPairsIn;
    lodash.toPath = toPath;
    lodash.toPlainObject = toPlainObject;
    lodash.transform = transform;
    lodash.unary = unary;
    lodash.union = union;
    lodash.unionBy = unionBy;
    lodash.unionWith = unionWith;
    lodash.uniq = uniq;
    lodash.uniqBy = uniqBy;
    lodash.uniqWith = uniqWith;
    lodash.unset = unset;
    lodash.unzip = unzip;
    lodash.unzipWith = unzipWith;
    lodash.update = update;
    lodash.updateWith = updateWith;
    lodash.values = values;
    lodash.valuesIn = valuesIn;
    lodash.without = without;
    lodash.words = words;
    lodash.wrap = wrap;
    lodash.xor = xor;
    lodash.xorBy = xorBy;
    lodash.xorWith = xorWith;
    lodash.zip = zip;
    lodash.zipObject = zipObject;
    lodash.zipObjectDeep = zipObjectDeep;
    lodash.zipWith = zipWith;

    // Add aliases.
    lodash.entries = toPairs;
    lodash.entriesIn = toPairsIn;
    lodash.extend = assignIn;
    lodash.extendWith = assignInWith;

    // Add methods to `lodash.prototype`.
    mixin(lodash, lodash);

    /*------------------------------------------------------------------------*/

    // Add methods that return unwrapped values in chain sequences.
    lodash.add = add;
    lodash.attempt = attempt;
    lodash.camelCase = camelCase;
    lodash.capitalize = capitalize;
    lodash.ceil = ceil;
    lodash.clamp = clamp;
    lodash.clone = clone;
    lodash.cloneDeep = cloneDeep;
    lodash.cloneDeepWith = cloneDeepWith;
    lodash.cloneWith = cloneWith;
    lodash.conformsTo = conformsTo;
    lodash.deburr = deburr;
    lodash.defaultTo = defaultTo;
    lodash.divide = divide;
    lodash.endsWith = endsWith;
    lodash.eq = eq;
    lodash.escape = escape;
    lodash.escapeRegExp = escapeRegExp;
    lodash.every = every;
    lodash.find = find;
    lodash.findIndex = findIndex;
    lodash.findKey = findKey;
    lodash.findLast = findLast;
    lodash.findLastIndex = findLastIndex;
    lodash.findLastKey = findLastKey;
    lodash.floor = floor;
    lodash.forEach = forEach;
    lodash.forEachRight = forEachRight;
    lodash.forIn = forIn;
    lodash.forInRight = forInRight;
    lodash.forOwn = forOwn;
    lodash.forOwnRight = forOwnRight;
    lodash.get = get;
    lodash.gt = gt;
    lodash.gte = gte;
    lodash.has = has;
    lodash.hasIn = hasIn;
    lodash.head = head;
    lodash.identity = identity;
    lodash.includes = includes;
    lodash.indexOf = indexOf;
    lodash.inRange = inRange;
    lodash.invoke = invoke;
    lodash.isArguments = isArguments;
    lodash.isArray = isArray;
    lodash.isArrayBuffer = isArrayBuffer;
    lodash.isArrayLike = isArrayLike;
    lodash.isArrayLikeObject = isArrayLikeObject;
    lodash.isBoolean = isBoolean;
    lodash.isBuffer = isBuffer;
    lodash.isDate = isDate;
    lodash.isElement = isElement;
    lodash.isEmpty = isEmpty;
    lodash.isEqual = isEqual;
    lodash.isEqualWith = isEqualWith;
    lodash.isError = isError;
    lodash.isFinite = isFinite;
    lodash.isFunction = isFunction;
    lodash.isInteger = isInteger;
    lodash.isLength = isLength;
    lodash.isMap = isMap;
    lodash.isMatch = isMatch;
    lodash.isMatchWith = isMatchWith;
    lodash.isNaN = isNaN;
    lodash.isNative = isNative;
    lodash.isNil = isNil;
    lodash.isNull = isNull;
    lodash.isNumber = isNumber;
    lodash.isObject = isObject;
    lodash.isObjectLike = isObjectLike;
    lodash.isPlainObject = isPlainObject;
    lodash.isRegExp = isRegExp;
    lodash.isSafeInteger = isSafeInteger;
    lodash.isSet = isSet;
    lodash.isString = isString;
    lodash.isSymbol = isSymbol;
    lodash.isTypedArray = isTypedArray;
    lodash.isUndefined = isUndefined;
    lodash.isWeakMap = isWeakMap;
    lodash.isWeakSet = isWeakSet;
    lodash.join = join;
    lodash.kebabCase = kebabCase;
    lodash.last = last;
    lodash.lastIndexOf = lastIndexOf;
    lodash.lowerCase = lowerCase;
    lodash.lowerFirst = lowerFirst;
    lodash.lt = lt;
    lodash.lte = lte;
    lodash.max = max;
    lodash.maxBy = maxBy;
    lodash.mean = mean;
    lodash.meanBy = meanBy;
    lodash.min = min;
    lodash.minBy = minBy;
    lodash.stubArray = stubArray;
    lodash.stubFalse = stubFalse;
    lodash.stubObject = stubObject;
    lodash.stubString = stubString;
    lodash.stubTrue = stubTrue;
    lodash.multiply = multiply;
    lodash.nth = nth;
    lodash.noConflict = noConflict;
    lodash.noop = noop;
    lodash.now = now;
    lodash.pad = pad;
    lodash.padEnd = padEnd;
    lodash.padStart = padStart;
    lodash.parseInt = parseInt;
    lodash.random = random;
    lodash.reduce = reduce;
    lodash.reduceRight = reduceRight;
    lodash.repeat = repeat;
    lodash.replace = replace;
    lodash.result = result;
    lodash.round = round;
    lodash.runInContext = runInContext;
    lodash.sample = sample;
    lodash.size = size;
    lodash.snakeCase = snakeCase;
    lodash.some = some;
    lodash.sortedIndex = sortedIndex;
    lodash.sortedIndexBy = sortedIndexBy;
    lodash.sortedIndexOf = sortedIndexOf;
    lodash.sortedLastIndex = sortedLastIndex;
    lodash.sortedLastIndexBy = sortedLastIndexBy;
    lodash.sortedLastIndexOf = sortedLastIndexOf;
    lodash.startCase = startCase;
    lodash.startsWith = startsWith;
    lodash.subtract = subtract;
    lodash.sum = sum;
    lodash.sumBy = sumBy;
    lodash.template = template;
    lodash.times = times;
    lodash.toFinite = toFinite;
    lodash.toInteger = toInteger;
    lodash.toLength = toLength;
    lodash.toLower = toLower;
    lodash.toNumber = toNumber;
    lodash.toSafeInteger = toSafeInteger;
    lodash.toString = toString;
    lodash.toUpper = toUpper;
    lodash.trim = trim;
    lodash.trimEnd = trimEnd;
    lodash.trimStart = trimStart;
    lodash.truncate = truncate;
    lodash.unescape = unescape;
    lodash.uniqueId = uniqueId;
    lodash.upperCase = upperCase;
    lodash.upperFirst = upperFirst;

    // Add aliases.
    lodash.each = forEach;
    lodash.eachRight = forEachRight;
    lodash.first = head;

    mixin(lodash, (function() {
      var source = {};
      baseForOwn(lodash, function(func, methodName) {
        if (!hasOwnProperty.call(lodash.prototype, methodName)) {
          source[methodName] = func;
        }
      });
      return source;
    }()), { 'chain': false });

    /*------------------------------------------------------------------------*/

    /**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */
    lodash.VERSION = VERSION;

    // Assign default placeholders.
    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
      lodash[methodName].placeholder = lodash;
    });

    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
    arrayEach(['drop', 'take'], function(methodName, index) {
      LazyWrapper.prototype[methodName] = function(n) {
        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);

        var result = (this.__filtered__ && !index)
          ? new LazyWrapper(this)
          : this.clone();

        if (result.__filtered__) {
          result.__takeCount__ = nativeMin(n, result.__takeCount__);
        } else {
          result.__views__.push({
            'size': nativeMin(n, MAX_ARRAY_LENGTH),
            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
          });
        }
        return result;
      };

      LazyWrapper.prototype[methodName + 'Right'] = function(n) {
        return this.reverse()[methodName](n).reverse();
      };
    });

    // Add `LazyWrapper` methods that accept an `iteratee` value.
    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
      var type = index + 1,
          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;

      LazyWrapper.prototype[methodName] = function(iteratee) {
        var result = this.clone();
        result.__iteratees__.push({
          'iteratee': getIteratee(iteratee, 3),
          'type': type
        });
        result.__filtered__ = result.__filtered__ || isFilter;
        return result;
      };
    });

    // Add `LazyWrapper` methods for `_.head` and `_.last`.
    arrayEach(['head', 'last'], function(methodName, index) {
      var takeName = 'take' + (index ? 'Right' : '');

      LazyWrapper.prototype[methodName] = function() {
        return this[takeName](1).value()[0];
      };
    });

    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
    arrayEach(['initial', 'tail'], function(methodName, index) {
      var dropName = 'drop' + (index ? '' : 'Right');

      LazyWrapper.prototype[methodName] = function() {
        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
      };
    });

    LazyWrapper.prototype.compact = function() {
      return this.filter(identity);
    };

    LazyWrapper.prototype.find = function(predicate) {
      return this.filter(predicate).head();
    };

    LazyWrapper.prototype.findLast = function(predicate) {
      return this.reverse().find(predicate);
    };

    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
      if (typeof path == 'function') {
        return new LazyWrapper(this);
      }
      return this.map(function(value) {
        return baseInvoke(value, path, args);
      });
    });

    LazyWrapper.prototype.reject = function(predicate) {
      return this.filter(negate(getIteratee(predicate)));
    };

    LazyWrapper.prototype.slice = function(start, end) {
      start = toInteger(start);

      var result = this;
      if (result.__filtered__ && (start > 0 || end < 0)) {
        return new LazyWrapper(result);
      }
      if (start < 0) {
        result = result.takeRight(-start);
      } else if (start) {
        result = result.drop(start);
      }
      if (end !== undefined) {
        end = toInteger(end);
        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
      }
      return result;
    };

    LazyWrapper.prototype.takeRightWhile = function(predicate) {
      return this.reverse().takeWhile(predicate).reverse();
    };

    LazyWrapper.prototype.toArray = function() {
      return this.take(MAX_ARRAY_LENGTH);
    };

    // Add `LazyWrapper` methods to `lodash.prototype`.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
          isTaker = /^(?:head|last)$/.test(methodName),
          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
          retUnwrapped = isTaker || /^find/.test(methodName);

      if (!lodashFunc) {
        return;
      }
      lodash.prototype[methodName] = function() {
        var value = this.__wrapped__,
            args = isTaker ? [1] : arguments,
            isLazy = value instanceof LazyWrapper,
            iteratee = args[0],
            useLazy = isLazy || isArray(value);

        var interceptor = function(value) {
          var result = lodashFunc.apply(lodash, arrayPush([value], args));
          return (isTaker && chainAll) ? result[0] : result;
        };

        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
          // Avoid lazy use if the iteratee has a "length" value other than `1`.
          isLazy = useLazy = false;
        }
        var chainAll = this.__chain__,
            isHybrid = !!this.__actions__.length,
            isUnwrapped = retUnwrapped && !chainAll,
            onlyLazy = isLazy && !isHybrid;

        if (!retUnwrapped && useLazy) {
          value = onlyLazy ? value : new LazyWrapper(this);
          var result = func.apply(value, args);
          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
          return new LodashWrapper(result, chainAll);
        }
        if (isUnwrapped && onlyLazy) {
          return func.apply(this, args);
        }
        result = this.thru(interceptor);
        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
      };
    });

    // Add `Array` methods to `lodash.prototype`.
    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
      var func = arrayProto[methodName],
          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
          retUnwrapped = /^(?:pop|shift)$/.test(methodName);

      lodash.prototype[methodName] = function() {
        var args = arguments;
        if (retUnwrapped && !this.__chain__) {
          var value = this.value();
          return func.apply(isArray(value) ? value : [], args);
        }
        return this[chainName](function(value) {
          return func.apply(isArray(value) ? value : [], args);
        });
      };
    });

    // Map minified method names to their real names.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var lodashFunc = lodash[methodName];
      if (lodashFunc) {
        var key = lodashFunc.name + '';
        if (!hasOwnProperty.call(realNames, key)) {
          realNames[key] = [];
        }
        realNames[key].push({ 'name': methodName, 'func': lodashFunc });
      }
    });

    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
      'name': 'wrapper',
      'func': undefined
    }];

    // Add methods to `LazyWrapper`.
    LazyWrapper.prototype.clone = lazyClone;
    LazyWrapper.prototype.reverse = lazyReverse;
    LazyWrapper.prototype.value = lazyValue;

    // Add chain sequence methods to the `lodash` wrapper.
    lodash.prototype.at = wrapperAt;
    lodash.prototype.chain = wrapperChain;
    lodash.prototype.commit = wrapperCommit;
    lodash.prototype.next = wrapperNext;
    lodash.prototype.plant = wrapperPlant;
    lodash.prototype.reverse = wrapperReverse;
    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;

    // Add lazy aliases.
    lodash.prototype.first = lodash.prototype.head;

    if (symIterator) {
      lodash.prototype[symIterator] = wrapperToIterator;
    }
    return lodash;
  });

  /*--------------------------------------------------------------------------*/

  // Export lodash.
  var _ = runInContext();

  // Some AMD build optimizers, like r.js, check for condition patterns like:
  if (true) {
    // Expose Lodash on the global object to prevent errors when Lodash is
    // loaded by a script tag in the presence of an AMD loader.
    // See http://requirejs.org/docs/errors.html#mismatch for more details.
    // Use `_.noConflict` to remove Lodash from the global object.
    root._ = _;

    // Define as an anonymous module so, through path mapping, it can be
    // referenced as the "underscore" module.
    !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
      return _;
    }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  }
  // Check for `exports` after `define` in case a build optimizer adds it.
  else {}
}.call(this));

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))

/***/ }),

/***/ "./node_modules/lodash/memoize.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/memoize.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    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;


/***/ }),

/***/ "./node_modules/lodash/mergeWith.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/mergeWith.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");

/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  baseMerge(object, source, srcIndex, customizer);
});

module.exports = mergeWith;


/***/ }),

/***/ "./node_modules/lodash/noop.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/noop.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function noop() {
  // No operation performed.
}

module.exports = noop;


/***/ }),

/***/ "./node_modules/lodash/now.js":
/*!************************************!*\
  !*** ./node_modules/lodash/now.js ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return root.Date.now();
};

module.exports = now;


/***/ }),

/***/ "./node_modules/lodash/omit.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/omit.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
    baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * The opposite of `_.pick`; this method creates an object composed of the
 * own and inherited enumerable property paths of `object` that are not omitted.
 *
 * **Note:** This method is considerably slower than `_.pick`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to omit.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omit(object, ['a', 'c']);
 * // => { 'b': '2' }
 */
var omit = flatRest(function(object, paths) {
  var result = {};
  if (object == null) {
    return result;
  }
  var isDeep = false;
  paths = arrayMap(paths, function(path) {
    path = castPath(path, object);
    isDeep || (isDeep = path.length > 1);
    return path;
  });
  copyObject(object, getAllKeysIn(object), result);
  if (isDeep) {
    result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  }
  var length = paths.length;
  while (length--) {
    baseUnset(result, paths[length]);
  }
  return result;
});

module.exports = omit;


/***/ }),

/***/ "./node_modules/lodash/pick.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/pick.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");

/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */
var pick = flatRest(function(object, paths) {
  return object == null ? {} : basePick(object, paths);
});

module.exports = pick;


/***/ }),

/***/ "./node_modules/lodash/property.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/property.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
    basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}

module.exports = property;


/***/ }),

/***/ "./node_modules/lodash/result.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/result.js ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * This method is like `_.get` except that if the resolved value is a
 * function it's invoked with the `this` binding of its parent object and
 * its result is returned.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to resolve.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
 *
 * _.result(object, 'a[0].b.c1');
 * // => 3
 *
 * _.result(object, 'a[0].b.c2');
 * // => 4
 *
 * _.result(object, 'a[0].b.c3', 'default');
 * // => 'default'
 *
 * _.result(object, 'a[0].b.c3', _.constant('default'));
 * // => 'default'
 */
function result(object, path, defaultValue) {
  path = castPath(path, object);

  var index = -1,
      length = path.length;

  // Ensure the loop is entered when path is empty.
  if (!length) {
    length = 1;
    object = undefined;
  }
  while (++index < length) {
    var value = object == null ? undefined : object[toKey(path[index])];
    if (value === undefined) {
      index = length;
      value = defaultValue;
    }
    object = isFunction(value) ? value.call(object) : value;
  }
  return object;
}

module.exports = result;


/***/ }),

/***/ "./node_modules/lodash/some.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/some.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    baseSome = __webpack_require__(/*! ./_baseSome */ "./node_modules/lodash/_baseSome.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * 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;


/***/ }),

/***/ "./node_modules/lodash/stubArray.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubArray.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

module.exports = stubArray;


/***/ }),

/***/ "./node_modules/lodash/stubFalse.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubFalse.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

module.exports = stubFalse;


/***/ }),

/***/ "./node_modules/lodash/times.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/times.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
    castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");

/** 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;


/***/ }),

/***/ "./node_modules/lodash/toFinite.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toFinite.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
    MAX_INTEGER = 1.7976931348623157e+308;

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function toFinite(value) {
  if (!value) {
    return value === 0 ? value : 0;
  }
  value = toNumber(value);
  if (value === INFINITY || value === -INFINITY) {
    var sign = (value < 0 ? -1 : 1);
    return sign * MAX_INTEGER;
  }
  return value === value ? value : 0;
}

module.exports = toFinite;


/***/ }),

/***/ "./node_modules/lodash/toInteger.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/toInteger.js ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */
function toInteger(value) {
  var result = toFinite(value),
      remainder = result % 1;

  return result === result ? (remainder ? result - remainder : result) : 0;
}

module.exports = toInteger;


/***/ }),

/***/ "./node_modules/lodash/toNumber.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toNumber.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = value.replace(reTrim, '');
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = toNumber;


/***/ }),

/***/ "./node_modules/lodash/toPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/toPlainObject.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return copyObject(value, keysIn(value));
}

module.exports = toPlainObject;


/***/ }),

/***/ "./node_modules/lodash/toString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toString.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : baseToString(value);
}

module.exports = toString;


/***/ }),

/***/ "./node_modules/lodash/uniqueId.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/uniqueId.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/** Used to generate unique IDs. */
var idCounter = 0;

/**
 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {string} [prefix=''] The value to prefix the ID with.
 * @returns {string} Returns the unique ID.
 * @example
 *
 * _.uniqueId('contact_');
 * // => 'contact_104'
 *
 * _.uniqueId();
 * // => '105'
 */
function uniqueId(prefix) {
  var id = ++idCounter;
  return toString(prefix) + id;
}

module.exports = uniqueId;


/***/ }),

/***/ "./node_modules/lodash/wrapperLodash.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/wrapperLodash.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var LazyWrapper = __webpack_require__(/*! ./_LazyWrapper */ "./node_modules/lodash/_LazyWrapper.js"),
    LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "./node_modules/lodash/_LodashWrapper.js"),
    baseLodash = __webpack_require__(/*! ./_baseLodash */ "./node_modules/lodash/_baseLodash.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"),
    wrapperClone = __webpack_require__(/*! ./_wrapperClone */ "./node_modules/lodash/_wrapperClone.js");

/** 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;


/***/ }),

/***/ "./node_modules/object-assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object-assign/index.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (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;
};


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/Timer.js":
/*!****************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/Timer.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Timer class implements a simple timeout mechanism
 */
class Timer {
  constructor(func, delay) {
    this.timer = null;
    this.delay = delay;
    this.execute = func;
  } // startTimer optionally takes a new func and delay so the timer instance can be reused.


  startTimer(func, delay = -1) {
    this.clearTimer();

    if (func) {
      this.execute = func;
    }

    if (delay >= 0) {
      this.delay = delay;
    }

    this.timer = setTimeout(this.execute, this.delay);
  }

  clearTimer() {
    if (this.timer) {
      clearTimeout(this.timer);
      this.timer = null;
    }
  }

  skipTimer() {
    if (this.timer) {
      this.execute(true); // execute can take an optional `skipped` argument

      this.clearTimer();
    }
  }

}

/* harmony default export */ __webpack_exports__["default"] = (Timer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js ***!
  \**************************************************************************/
/*! exports provided: matches, closest, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matches", function() { return matches; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "closest", function() { return closest; });
const matches = Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;

if (!Element.prototype.matches) {
  Element.prototype.matches = matches;
}

function closest(selector) {
  let el = this;

  if (document.documentElement.contains(el)) {
    while (el && el.nodeType === 1) {
      if (el.matches(selector)) {
        return el;
      }

      el = el.parentElement || el.parentNode;
    }
  }

  return null;
}

if (!Element.prototype.closest) {
  Element.prototype.closest = closest;
}

/* harmony default export */ __webpack_exports__["default"] = (closest);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/controlled.js":
/*!*********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/controlled.js ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }




/*
  controlled(stateTypes, defaults)(WrappedComponent)

  *** NOTE / BEWARE! *******************************************************************************
  This is already deprecated, even as new as it is, because we now have getDerivedStateFromProps!
  It remains here for now because of its additional "persist" feature, which we should factor out.
  **************************************************************************************************

  This Higher Order Component provides the controlled component pattern on a prop-by-prop basis.
  It's a nice way for components to implement internal state so they "just work" out of the box,
  but also give users the option of lifting some or all of that state up into their application.

  controlled() takes arguments as an object with three options:
   * types - an object of PropTypes for the state that will be contained here
   * defaults - an optional object with default values for stateTypes
   * persist - an optional array of names from stateTypes which will be persisted to sessionStorage

  The WrappedComponent will be rendered with special props:
   * setControlledState - a reference to this state wrapper's this.setState.
   * Props for all the stateTypes, from this.props if present or from this.state otherwise.
   * All other props passed to the controlled component HoC.

  The idea is that the values in stateTypes could be stored in state, or passed in via props.
  The WrappedComponent doesn't have to care which is being used, and can manage the state
  contained here. When present, props are used instead. If you provide these special props,
  be sure to also provide corresponding callbacks/handlers to keep them updated.

  If you are using the persist option, you can optionally pass a sessionKey prop to the component
  to ensure multiple instances of the component store their data separately. If you don't pass
  a sessionKey, a stringified list of the persisted keys will be used (not unique to the instance).
*/

const controlled = ({
  types,
  defaults = {},
  persist
}) => WrappedComponent => {
  class ControlledComponent extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
    constructor(...args) {
      super(...args);

      _defineProperty(this, "state", _objectSpread({}, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["nullValues"])(types), {}, defaults));

      _defineProperty(this, "setControlledState", updater => {
        this.setState(updater);
      });

      _defineProperty(this, "loadPersistent", () => {
        if (persist && persist.length > 0) {
          const fromPersisted = window && window.sessionStorage && window.sessionStorage.getItem(this.sessionKey());
          fromPersisted && this.setState(JSON.parse(fromPersisted));
        }
      });

      _defineProperty(this, "savePersistent", () => {
        if (persist && persist.length > 0) {
          const toPersist = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["selectKeys"])(this.state, persist);
          window && window.sessionStorage && window.sessionStorage.setItem(this.sessionKey(), JSON.stringify(toPersist));
        }
      });

      _defineProperty(this, "sessionKey", () => this.props.sessionKey || JSON.stringify(persist));
    }

    componentDidMount() {
      this.loadPersistent();
      window && window.addEventListener && window.addEventListener('beforeunload', this.savePersistent);
    }

    componentWillUnmount() {
      this.savePersistent();
      window && window.removeEventListener && window.removeEventListener('beforeunload', this.savePersistent);
    }

    render() {
      const controlledStateProps = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["filterKeys"])(this.props, key => types.hasOwnProperty(key) && this.props[key] !== null);
      const otherProps = Object(_helpers__WEBPACK_IMPORTED_MODULE_2__["filterKeys"])(this.props, key => !types.hasOwnProperty(key));
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WrappedComponent, _extends({
        setControlledState: this.setControlledState
      }, this.state, controlledStateProps, otherProps));
    }

  }

  ControlledComponent.displayName = WrappedComponent.displayName;
  ControlledComponent.propTypes = _objectSpread({}, WrappedComponent.propTypes, {}, types, {
    sessionKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  });
  ControlledComponent.defaultProps = _objectSpread({}, WrappedComponent.defaultProps);
  return ControlledComponent; // TODO use recompose withState or withStateHandlers here instead of component state above
};

/* harmony default export */ __webpack_exports__["default"] = (controlled);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/helpers.js":
/*!******************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/helpers.js ***!
  \******************************************************************/
/*! exports provided: bindMethods, debounce, propExists, propOrState, selectKeys, filterKeys, excludeKeys, childrenToArray, filterChildren, findChild, propsChanged, hasDisplayName, nullValues, noop, KEY_CODES, KEYS, helpers, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindMethods", function() { return bindMethods; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propExists", function() { return propExists; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propOrState", function() { return propOrState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectKeys", function() { return selectKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterKeys", function() { return filterKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "excludeKeys", function() { return excludeKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "childrenToArray", function() { return childrenToArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterChildren", function() { return filterChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findChild", function() { return findChild; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propsChanged", function() { return propsChanged; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasDisplayName", function() { return hasDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nullValues", function() { return nullValues; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY_CODES", function() { return KEY_CODES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEYS", function() { return KEYS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "helpers", function() { return helpers; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _closestPolyfill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./closestPolyfill */ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js");
/* harmony import */ var _controlled__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony import */ var _patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






/** Equivalent to calling `this.someMethod = this.someMethod.bind(this)` for every method name in the methods array. */

const bindMethods = (context, methods) => {
  // eslint-disable-next-line no-console
  console.warn(`
   bindMethods usage is deprecated in favor of class methods.
   bindMethods will be removed in the next major release
   `);
  methods.forEach(method => {
    context[method] = context[method].bind(context);
  });
};
/** Implementation of the debounce function */

const debounce = (func, wait) => {
  let timeout;

  function innerFunc(...args) {
    const context = this;
    clearTimeout(timeout);
    timeout = setTimeout(() => func.apply(context, args), wait);
  }

  return innerFunc;
};
/** Returns true if propName is a non-null, defined property of the props object (can be any object, not just React props). */

const propExists = (props, propName) => props && props.hasOwnProperty(propName) && props[propName] != null;
/** Given two objects (props and state), returns the value of propName from props if present, or from state otherwise. */

const propOrState = (props, state, propName) => propExists(props, propName) ? props[propName] : state[propName];
/** Returns a subset of the given object including only the given keys, with values optionally replaced by a fn. */

const selectKeys = (obj, keys, fn = val => val) => keys.reduce((values, key) => _objectSpread({}, values, {
  [key]: fn(obj[key])
}), {});
/** Returns a subset of the given object with a validator function applied to its keys. */

const filterKeys = (obj, validator) => selectKeys(obj, Object.keys(obj).filter(validator));
/** Returns a subset of the given object with the given keys left out. */

const excludeKeys = (obj, keys) => filterKeys(obj, key => !keys.includes(key));
/** Returns the given React children prop as a regular array of React nodes. */

const childrenToArray = children => children && react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count(children) > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.toArray(children);
/** Filters the given React children prop with the given validator function. Returns an array of nodes. */

const filterChildren = (children, validator) => {
  const array = childrenToArray(children);
  return array && array.filter(validator);
};
/** Given a React children prop, finds the first child node to pass the validator function. */

const findChild = (children, validator) => {
  const array = childrenToArray(children);
  return array && array.find(validator);
};
/** Returns true if there is at least one of propNames with a different value in newProps than in oldProps. */

const propsChanged = (propNames, oldProps, newProps) => propNames.some(propName => oldProps[propName] !== newProps[propName]);
/** Returns true if the component has the desired displayName value */

const hasDisplayName = (component, displayName) => component && component.type && component.type.displayName === displayName;
/** Returns an object with the same keys as the given one, but all null values. */

const nullValues = obj => selectKeys(obj, Object.keys(obj), () => null);
const noop = Function.prototype;
const KEY_CODES = {
  TAB_KEY: 9,
  ENTER_KEY: 13,
  ESCAPE_KEY: 27,
  SHIFT: 16,
  A: 65,
  Z: 90,
  NUMPAD: {
    0: 97
  },
  F11: 122
};
const KEYS = {
  ENTER: 'Enter',
  CAPSLOCK: 'CapsLock',
  SPACE: ' ',
  ARROW_LEFT: 'ArrowLeft',
  ARROW_RIGHT: 'ArrowRight',
  ARROW_DOWN: 'ArrowDown',
  ARROW_UP: 'ArrowUp',
  HOME: 'Home',
  END: 'End'
};
const helpers = {
  Timer: _Timer__WEBPACK_IMPORTED_MODULE_1__["default"],
  closestPolyfill: _closestPolyfill__WEBPACK_IMPORTED_MODULE_2__["closest"],
  controlled: _controlled__WEBPACK_IMPORTED_MODULE_3__["default"],
  patternfly: _patternfly__WEBPACK_IMPORTED_MODULE_4__["patternfly"],
  c3ChartDefaults: _patternfly__WEBPACK_IMPORTED_MODULE_4__["c3ChartDefaults"],
  layout: _patternfly__WEBPACK_IMPORTED_MODULE_4__["layout"],
  debounce,
  propExists,
  propOrState,
  selectKeys,
  filterKeys,
  excludeKeys,
  childrenToArray,
  filterChildren,
  findChild,
  propsChanged,
  hasDisplayName,
  nullValues,
  noop,
  KEY_CODES,
  KEYS
};
/* harmony default export */ __webpack_exports__["default"] = (helpers);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/common/patternfly.js":
/*!*********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/common/patternfly.js ***!
  \*********************************************************************/
/*! exports provided: patternfly, c3ChartDefaults, layout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "patternfly", function() { return patternfly; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c3ChartDefaults", function() { return c3ChartDefaults; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return layout; });
/* harmony import */ var patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! patternfly/dist/js/patternfly-settings */ "./node_modules/patternfly/dist/js/patternfly-settings.js");
/* harmony import */ var patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(patternfly_dist_js_patternfly_settings__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly/dist/js/patternfly-settings-charts */ "./node_modules/patternfly/dist/js/patternfly-settings-charts.js");
/* harmony import */ var patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(patternfly_dist_js_patternfly_settings_charts__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var breakjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! breakjs */ "./node_modules/breakjs/dist/break.js");
/* harmony import */ var breakjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(breakjs__WEBPACK_IMPORTED_MODULE_2__);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }




const {
  patternfly
} = window;
const c3ChartDefaults = patternfly.c3ChartDefaults();
const mockLayout = {
  is: layout => layout === 'desktop',
  addChangeListener: () => {},
  removeChangeListener: () => {}
};
const layout =  false ? undefined : breakjs__WEBPACK_IMPORTED_MODULE_2___default()(_objectSpread({
  mobile: 0
}, patternfly.pfBreakpoints));


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _AboutModalVersions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AboutModalVersions */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js");
/* harmony import */ var _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AboutModalVersionItem */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * AboutModal Component for PatternFly
 */

const AboutModal = (_ref) => {
  let {
    children,
    className,
    show,
    onHide,
    productTitle,
    logo,
    altLogo,
    trademarkText,
    closeText
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "show", "onHide", "productTitle", "logo", "altLogo", "trademarkText", "closeText"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"], _extends({
    className: className,
    contentClassName: "about-modal-pf",
    show: show,
    onHide: onHide
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].CloseButton, {
    onClick: onHide,
    closeText: closeText
  })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, productTitle), children, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "trademark-pf"
  }, trademarkText)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
    src: logo,
    alt: altLogo
  })));
};

AboutModal.defaultProps = {
  closeText: 'Close'
};
AboutModal.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Flag to show the modal */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired,

  /** Function to call when modal is closed */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** Text or Element to show for the product title */
  productTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Image Source for the Product logo */
  logo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Alternate text if invalid logo */
  altLogo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Trademark information text */
  trademarkText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Alternate text for close button for screen readers (default 'Close') */
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
AboutModal.defaultProps = {
  children: null,
  className: '',
  productTitle: null,
  logo: '',
  altLogo: '',
  trademarkText: ''
};
AboutModal.Versions = _AboutModalVersions__WEBPACK_IMPORTED_MODULE_3__["default"];
AboutModal.VersionItem = _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_4__["default"];
/* harmony default export */ __webpack_exports__["default"] = (AboutModal);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const AboutModalVersionItem = (_ref) => {
  let {
    className,
    label,
    versionText
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "label", "versionText"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", _extends({
    className: className
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("strong", null, label), " ", versionText);
};

AboutModalVersionItem.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Label for the version */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** Text for the version */
  versionText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
AboutModalVersionItem.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (AboutModalVersionItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const AboutModalVersions = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('product-versions-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("ul", {
    className: "list-unstyled"
  }, children));
};

AboutModalVersions.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
AboutModalVersions.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (AboutModalVersions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js ***!
  \*******************************************************************************/
/*! exports provided: AboutModal, AboutModalVersions, AboutModalVersionItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AboutModal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AboutModal */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModal.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModal", function() { return _AboutModal__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AboutModalVersions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AboutModalVersions */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersions", function() { return _AboutModalVersions__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AboutModalVersionItem */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/AboutModalVersionItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersionItem", function() { return _AboutModalVersionItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js");
/* harmony import */ var _AlertConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AlertConstants */ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








/**
 * Alert Component for Patternfly React
 */

const Alert = (_ref) => {
  let {
    children,
    className,
    onDismiss,
    type
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "onDismiss", "type"]);

  Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["warnIfDeprecatedType"])(type);
  const alertClass = classnames__WEBPACK_IMPORTED_MODULE_0___default()('alert', className, Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["getClassName"])(type), {
    'alert-dismissable': onDismiss
  });
  const iconName = Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["getIconName"])(type);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: alertClass
  }, props), onDismiss && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
    bsClass: "close",
    "aria-hidden": "true",
    onClick: onDismiss
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
    type: "pf",
    name: "close"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
    type: "pf",
    name: iconName
  }), children);
};

Alert.propTypes = {
  /** additional alert classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** callback when alert is dismissed  */
  onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** the type of alert  */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([..._AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPES"], ..._AlertConstants__WEBPACK_IMPORTED_MODULE_6__["DEPRECATED_ALERT_TYPES"]]),

  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};
Alert.defaultProps = {
  className: '',
  onDismiss: null,
  // we do not want to default noop b/c of conditional dismiss button
  type: _AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPE_ERROR"],
  children: null
};
Alert.ALERT_TYPES = _AlertConstants__WEBPACK_IMPORTED_MODULE_6__["ALERT_TYPES"];
/* harmony default export */ __webpack_exports__["default"] = (Alert);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js ***!
  \***********************************************************************************/
/*! exports provided: ALERT_TYPE_ERROR, ALERT_TYPE_WARNING, ALERT_TYPE_SUCCESS, ALERT_TYPE_INFO, ALERT_TYPE_DANGER, ALERT_TYPES, DEPRECATED_ALERT_TYPES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_ERROR", function() { return ALERT_TYPE_ERROR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_WARNING", function() { return ALERT_TYPE_WARNING; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_SUCCESS", function() { return ALERT_TYPE_SUCCESS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_INFO", function() { return ALERT_TYPE_INFO; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPE_DANGER", function() { return ALERT_TYPE_DANGER; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALERT_TYPES", function() { return ALERT_TYPES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEPRECATED_ALERT_TYPES", function() { return DEPRECATED_ALERT_TYPES; });
const ALERT_TYPE_ERROR = 'error';
const ALERT_TYPE_WARNING = 'warning';
const ALERT_TYPE_SUCCESS = 'success';
const ALERT_TYPE_INFO = 'info';
const ALERT_TYPE_DANGER = 'danger'; // deprecated!!!

const ALERT_TYPES = [ALERT_TYPE_ERROR, ALERT_TYPE_WARNING, ALERT_TYPE_SUCCESS, ALERT_TYPE_INFO];
const DEPRECATED_ALERT_TYPES = [ALERT_TYPE_DANGER];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/helpers.js ***!
  \****************************************************************************/
/*! exports provided: warnIfDeprecatedType, getIconName, getClassName */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnIfDeprecatedType", function() { return warnIfDeprecatedType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIconName", function() { return getIconName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassName", function() { return getClassName; });
/* harmony import */ var _AlertConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AlertConstants */ "./node_modules/patternfly-react/dist/esm/components/Alert/AlertConstants.js");

const warnIfDeprecatedType = type => {
  if (type === _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]) {
    // eslint-disable-next-line no-console
    console.warn(`
      Warning: Deprecated Alert.type='${_AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]}'.
      Please migrate to Alert.type='${_AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"]}'
    `);
  }
};
const getIconName = type => {
  switch (type) {
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]:
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"]:
      return 'error-circle-o';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_WARNING"]:
      return 'warning-triangle-o';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_SUCCESS"]:
      return 'ok';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_INFO"]:
      return 'info';

    default:
      throw new Error(`Unsupported alert type=${type}`);
  }
};
const getClassName = type => {
  switch (type) {
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_DANGER"]:
    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_ERROR"]:
      return 'alert-danger';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_WARNING"]:
      return 'alert-warning';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_SUCCESS"]:
      return 'alert-success';

    case _AlertConstants__WEBPACK_IMPORTED_MODULE_0__["ALERT_TYPE_INFO"]:
      return 'alert-info';

    default:
      throw new Error(`Unsupported alert type=${type}`);
  }
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Alert/index.js ***!
  \**************************************************************************/
/*! exports provided: Alert */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/Alert.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _Alert__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ApplicationLauncherToggle */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js");
/* harmony import */ var _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ApplicationLauncherItem */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js");
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; }

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; }









const ApplicationLauncher = (_ref) => {
  let {
    open,
    grid,
    tooltip,
    tooltipPlacement,
    children,
    toggleLauncher,
    className
  } = _ref,
      propTypes = _objectWithoutProperties(_ref, ["open", "grid", "tooltip", "tooltipPlacement", "children", "toggleLauncher", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('applauncher-pf dropdown', {
    'applauncher-pf-block-list': grid
  }, {
    open
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__["default"], {
    tooltip: tooltip,
    tooltipPlacement: tooltipPlacement,
    onClick: () => toggleLauncher(),
    open: open
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu, {
    className: "dropdown-menu-right"
  }, children));
};

ApplicationLauncher.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Children Node */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,

  /** Toggle Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** tooltipPlacement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Application Launcher Type (Default List) */
  grid: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** open bool */
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Toggle launcher func */
  toggleLauncher: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ApplicationLauncher.defaultProps = {
  className: '',
  tooltip: '',
  tooltipPlacement: 'left',
  toggleLauncher: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  grid: false,
  open: false
};
ApplicationLauncher.Toggle = _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_5__["default"];
ApplicationLauncher.Item = _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncher);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; }

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; }








const ApplicationLauncherItem = (_ref) => {
  let {
    onClick,
    tooltip,
    tooltipPlacement,
    title,
    icon,
    noIcons,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["onClick", "tooltip", "tooltipPlacement", "title", "icon", "noIcons", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('applauncher-pf-item', className);

  if (tooltip !== null) {
    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_4__["OverlayTrigger"], {
      overlay: react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"], {
        id: title
      }, tooltip),
      placement: tooltipPlacement,
      trigger: ['hover', 'focus'],
      rootClose: false
    }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", {
      className: classes,
      role: "presentation"
    }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
      className: "applauncher-pf-link",
      href: "#",
      onClick: e => onClick(e),
      role: "menuitem"
    }, !noIcons && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
      type: "pf",
      name: icon,
      className: "applauncher-pf-link-icon"
    }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
      className: "applauncher-pf-link-title"
    }, title))));
  }

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", {
    className: classes,
    role: "presentation"
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
    className: "applauncher-pf-link",
    href: "#",
    onClick: e => onClick(e),
    role: "menuitem"
  }, !noIcons && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
    type: "pf",
    name: icon,
    className: "applauncher-pf-link-icon"
  }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: "applauncher-pf-link-title"
  }, title)));
};

ApplicationLauncherItem.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** Title String */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,

  /** Icon Type */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,

  /** App Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Tooltip Placement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** No Icons Bool */
  noIcons: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ApplicationLauncherItem.defaultProps = {
  className: '',
  onClick: null,
  noIcons: false,
  tooltipPlacement: 'left',
  tooltip: null
};
/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncherItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js ***!
  \************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");







const ApplicationLauncherToggle = ({
  open,
  tooltip,
  onClick,
  tooltipPlacement
}) => {
  if (tooltip) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
      placement: tooltipPlacement,
      id: "applauncher-pf-block-list",
      overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"], {
        id: tooltip
      }, tooltip)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["Button"], {
      onClick: onClick,
      bsStyle: "link",
      className: "nav-item-iconic dropdown-toggle",
      "aria-expanded": open
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
      name: "th applauncher-pf-icon"
    })));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["Button"], {
    onClick: onClick,
    bsStyle: "link",
    className: "nav-item-iconic dropdown-toggle",
    "aria-expanded": open
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
    name: "th applauncher-pf-icon"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "dropdown-title"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "applauncher-pf-title"
  }, "Application Launcher", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "caret",
    "aria-hidden": "true"
  }))));
};

ApplicationLauncherToggle.propTypes = {
  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** tooltipPlacement */
  tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Toggle Tooltip */
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** is Open bool */
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired
};
ApplicationLauncherToggle.defaultProps = {
  onClick: null,
  tooltipPlacement: 'bottom',
  tooltip: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ApplicationLauncherToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js ***!
  \****************************************************************************************/
/*! exports provided: ApplicationLauncher, ApplicationLauncherItem, ApplicationLauncherToggle */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ApplicationLauncher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApplicationLauncher */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncher", function() { return _ApplicationLauncher__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApplicationLauncherToggle */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherToggle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherToggle", function() { return _ApplicationLauncherToggle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ApplicationLauncherItem */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherItem", function() { return _ApplicationLauncherItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Badge */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Badge.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Badge/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Badge/index.js ***!
  \**************************************************************************/
/*! exports provided: Badge */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Badge */ "./node_modules/patternfly-react/dist/esm/components/Badge/Badge.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _Badge__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Breadcrumb */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Breadcrumb.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const Breadcrumb = (_ref) => {
  let {
    title
  } = _ref,
      props = _objectWithoutProperties(_ref, ["title"]);

  const breadcrumbClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
    'breadcrumbs-pf-title': title
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
    className: breadcrumbClass
  }, props));
};

Breadcrumb.propTypes = _objectSpread({}, react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes, {
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
});
Breadcrumb.defaultProps = {
  title: false
};
Breadcrumb.Item = react_bootstrap_es_Breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].Item;
/* harmony default export */ __webpack_exports__["default"] = (Breadcrumb);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js ***!
  \*******************************************************************************/
/*! exports provided: Breadcrumb */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/Breadcrumb.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcher.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcher.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Overlay */ "./node_modules/patternfly-react/dist/esm/components/Overlay/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _components_BreadcrumbSwitcherPopover__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/BreadcrumbSwitcherPopover */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherPopover.js");
/* harmony import */ var _components_BreadcrumbSwitcherToggler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/BreadcrumbSwitcherToggler */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherToggler.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }










class BreadcrumbSwitcher extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
  componentDidUpdate(prevProps) {
    const {
      open,
      onOpen
    } = this.props;

    if (open === true && prevProps.open === false) {
      onOpen();
    }
  }

  render() {
    const _this$props = this.props,
          {
      className,
      open,
      onOpen,
      currentPage,
      totalPages,
      isLoading,
      isPaginated,
      hasError,
      resources,
      onTogglerClick,
      onHide,
      onNextPageClick,
      onPrevPageClick,
      onSearchChange,
      searchValue,
      onSearchClear,
      searchDebounceTimeout,
      onResourceClick
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["className", "open", "onOpen", "currentPage", "totalPages", "isLoading", "isPaginated", "hasError", "resources", "onTogglerClick", "onHide", "onNextPageClick", "onPrevPageClick", "onSearchChange", "searchValue", "onSearchClear", "searchDebounceTimeout", "onResourceClick"]);

    const classes = classnames__WEBPACK_IMPORTED_MODULE_3___default()('breadcrumb-switcher', className);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_BreadcrumbSwitcherToggler__WEBPACK_IMPORTED_MODULE_7__["default"], {
      id: "switcher",
      onClick: () => onTogglerClick(),
      ref: ref => {
        this.togglerRef = ref;
      }
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Overlay__WEBPACK_IMPORTED_MODULE_4__["Overlay"], {
      rootClose: true,
      show: open,
      container: this,
      placement: "bottom",
      onHide: onHide // TODO: try to remove the `ReactDOM.findDOMNode`
      // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
      // react-bootstrap still have it in their docs: https://react-bootstrap.github.io/components/overlays/
      // eslint-disable-next-line react/no-find-dom-node
      ,
      target: () => react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this.togglerRef)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_BreadcrumbSwitcherPopover__WEBPACK_IMPORTED_MODULE_6__["default"], {
      id: "breadcrumb-switcher-popover",
      loading: isLoading,
      isPaginated: isPaginated,
      hasError: hasError,
      onSearchChange: onSearchChange,
      resources: resources,
      onNextPageClick: onNextPageClick,
      onPrevPageClick: onPrevPageClick,
      currentPage: currentPage,
      totalPages: totalPages,
      searchValue: searchValue,
      onSearchClear: onSearchClear,
      searchDebounceTimeout: searchDebounceTimeout,
      onResourceClick: onResourceClick
    })));
  }

}

BreadcrumbSwitcher.propTypes = {
  /** className */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** search box value */
  searchValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** is switcher open bool */
  open: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** searchDebounceTimeout */
  searchDebounceTimeout: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,

  /** current Page */
  currentPage: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,

  /** total Pages */
  totalPages: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,

  /** is Loadnig bool */
  isLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** is Paginated bool */
  isPaginated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** has Error bool */
  hasError: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Breadcrumb resources */
  resources: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]).isRequired,
    name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
    href: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
  })),

  /** function() onTogglerClick func */
  onTogglerClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function() onHide func */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function() onOpen func */
  onOpen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function() onPrevPageClick func */
  onPrevPageClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function() onNextPageClick func */
  onNextPageClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function(resource) onResourceClick func */
  onResourceClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function(newSearch) onSearchChange func */
  onSearchChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** function() onSearchClear func */
  onSearchClear: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
BreadcrumbSwitcher.defaultProps = {
  className: '',
  searchValue: '',
  open: false,
  searchDebounceTimeout: 300,
  currentPage: 1,
  totalPages: 1,
  isLoading: false,
  isPaginated: true,
  hasError: false,
  resources: [],
  onTogglerClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onHide: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onOpen: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onResourceClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onPrevPageClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onNextPageClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onSearchChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onSearchClear: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbSwitcher);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcherHelper.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcherHelper.js ***!
  \**********************************************************************************************************/
/*! exports provided: removeLastSlashFromPath, getCurrentPath */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeLastSlashFromPath", function() { return removeLastSlashFromPath; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrentPath", function() { return getCurrentPath; });
/**
 * Removes slashes from the beggining and end of the path
 * @param {String} path - the path that should be removed of slashes
 */
const removeLastSlashFromPath = path => {
  if (!path || path.length < 2) {
    return path;
  }

  const lastCharIndex = path.length - 1;
  return path[lastCharIndex] === '/' ? path.slice(0, -1) : path;
};
const getCurrentPath = () => removeLastSlashFromPath(window.location.pathname);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSearchInput.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSearchInput.js ***!
  \******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_debounce_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-debounce-input */ "./node_modules/react-debounce-input/lib/index.js");
/* harmony import */ var react_debounce_input__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_debounce_input__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");






class BreadcrumbSearchInput extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  componentDidMount() {
    if (this.props.focus) {
      this.gainFocus();
    }
  }

  gainFocus() {
    this.nameInput.focus();
  }

  render() {
    const {
      onSearchChange,
      searchValue,
      timeout,
      onClear,
      placeHolder
    } = this.props;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "input-search"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
      type: "fa",
      name: "search"
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_debounce_input__WEBPACK_IMPORTED_MODULE_2__["DebounceInput"], {
      className: "form-control",
      inputRef: input => {
        this.nameInput = input;
      },
      autoComplete: "off",
      id: "breadcrumbs-search",
      placeholder: placeHolder,
      value: searchValue,
      minLength: 0,
      debounceTimeout: timeout,
      onChange: onSearchChange
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
      type: "fa",
      name: "close",
      onClick: () => onClear()
    }));
  }

}

BreadcrumbSearchInput.propTypes = {
  focus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  searchValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  onSearchChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onClear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  placeHolder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BreadcrumbSearchInput.defaultProps = {
  focus: false,
  searchValue: '',
  timeout: 300,
  onSearchChange: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onClear: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  placeHolder: 'Filter...'
};
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbSearchInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherPopover.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherPopover.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_ellipsis_with_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-ellipsis-with-tooltip */ "./node_modules/react-ellipsis-with-tooltip/dist/index.js");
/* harmony import */ var react_ellipsis_with_tooltip__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_ellipsis_with_tooltip__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _BreadcrumbSearchInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BreadcrumbSearchInput */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSearchInput.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _BreadcrumbSwitcherHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../BreadcrumbSwitcherHelper */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcherHelper.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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; }

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; }









const BreadcrumbSwitcherPopover = (_ref) => {
  let {
    resources,
    onResourceClick,
    onNextPageClick,
    onPrevPageClick,
    loading,
    isPaginated,
    hasError,
    currentPage,
    totalPages,
    onSearchChange,
    onSearchClear,
    searchValue,
    searchDebounceTimeout,
    resourceLoadError
  } = _ref,
      props = _objectWithoutProperties(_ref, ["resources", "onResourceClick", "onNextPageClick", "onPrevPageClick", "loading", "isPaginated", "hasError", "currentPage", "totalPages", "onSearchChange", "onSearchClear", "searchValue", "searchDebounceTimeout", "resourceLoadError"]);

  let popoverBody;

  if (loading) {
    popoverBody = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "breadcrumb-switcher-popover-loading text-center"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
      loading: true,
      size: "md"
    }));
  } else if (hasError) {
    popoverBody = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "breadcrumb-switcher-popover-error"
    }, resourceLoadError);
  } else {
    const createItemProps = item => {
      const {
        id,
        href,
        name
      } = item;
      const key = `${id}-${name}`;
      const hrefWithName = href ? Object(_BreadcrumbSwitcherHelper__WEBPACK_IMPORTED_MODULE_6__["removeLastSlashFromPath"])(href.replace(id, name)) : href;
      const itemProps = {
        key,
        id: key,
        className: 'no-border',
        active: href === window.location.pathname || Object(_BreadcrumbSwitcherHelper__WEBPACK_IMPORTED_MODULE_6__["getCurrentPath"])() === hrefWithName
      };

      if (itemProps.active) {
        return _objectSpread({}, itemProps, {
          disabled: true
        });
      }

      return _objectSpread({}, itemProps, {
        onClick: e => onResourceClick(e, href, id),
        href
      });
    };

    popoverBody = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["ListGroup"], {
      className: "scrollable-list"
    }, resources.map(resource => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["ListGroupItem"], createItemProps(resource), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_ellipsis_with_tooltip__WEBPACK_IMPORTED_MODULE_3___default.a, null, searchValue && searchValue.length ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["TypeAheadSelect"].Highlighter, {
      search: searchValue
    }, resource.name) : resource.name)))), isPaginated && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Pager"], {
      className: "pager-sm",
      messages: {
        nextPage: '',
        previousPage: ''
      },
      onNextPage: onNextPageClick,
      onPreviousPage: onPrevPageClick,
      disablePrevious: currentPage === 1,
      disableNext: totalPages === 0 || currentPage === Math.ceil(totalPages)
    }));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Popover"], _extends({
    className: "breadcrumb-switcher-popover"
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BreadcrumbSearchInput__WEBPACK_IMPORTED_MODULE_4__["default"], {
    onClear: onSearchClear,
    timeout: searchDebounceTimeout,
    focus: true,
    onSearchChange: onSearchChange,
    searchValue: searchValue
  }), popoverBody);
};

BreadcrumbSwitcherPopover.propTypes = _objectSpread({}, _index__WEBPACK_IMPORTED_MODULE_2__["Popover"].propTypes, {
  searchValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  hasError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  currentPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  totalPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  resources: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: 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.number]).isRequired,
    name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  })),
  onSearchChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onResourceClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  isPaginated: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired
});
BreadcrumbSwitcherPopover.defaultProps = {
  searchValue: '',
  loading: false,
  hasError: false,
  currentPage: 1,
  totalPages: 1,
  resources: [],
  onResourceClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onSearchChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbSwitcherPopover);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherToggler.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/components/BreadcrumbSwitcherToggler.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }


 // eslint-disable-next-line react/prefer-stateless-function

class BreadcrumbSwitcherToggler extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_1__["Button"], this.props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
      type: "fa",
      name: "exchange"
    }));
  }

}

BreadcrumbSwitcherToggler.propTypes = _objectSpread({}, _index__WEBPACK_IMPORTED_MODULE_1__["Button"].propTypes);
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbSwitcherToggler);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/index.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/index.js ***!
  \***************************************************************************************/
/*! exports provided: BreadcrumbSwitcher */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _BreadcrumbSwitcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BreadcrumbSwitcher */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/BreadcrumbSwitcher.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbSwitcher", function() { return _BreadcrumbSwitcher__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/Button.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/Button.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Button */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js");
/* harmony import */ var _DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js");
/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SplitButton */ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js");




react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Dropdown = _DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"].Split = _SplitButton__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Button__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js ***!
  \*************************************************************************************/
/*! exports provided: BUTTON_BS_STYLES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BUTTON_BS_STYLES", function() { return BUTTON_BS_STYLES; });
const BUTTON_BS_STYLES = ['default', 'primary', 'success', 'warning', 'danger', 'info', 'link'];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ButtonGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ButtonGroup */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ButtonGroup.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ButtonGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/DropdownButton */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownButton.js");
/* harmony import */ var _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






const DropdownButton = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"], props);

DropdownButton.propTypes = _objectSpread({}, react_bootstrap_es_DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
  // eslint-disable-next-line react/require-default-props
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"])
});
DropdownButton.BUTTON_BS_STYLES = _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"];
/* harmony default export */ __webpack_exports__["default"] = (DropdownButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/SplitButton */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitButton.js");
/* harmony import */ var _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






const SplitButton = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__["default"], props);

SplitButton.propTypes = _objectSpread({}, react_bootstrap_es_SplitButton__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
  // eslint-disable-next-line react/require-default-props
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"])
});
SplitButton.BUTTON_BS_STYLES = _ButtonConstants__WEBPACK_IMPORTED_MODULE_3__["BUTTON_BS_STYLES"];
/* harmony default export */ __webpack_exports__["default"] = (SplitButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Button/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Button/index.js ***!
  \***************************************************************************/
/*! exports provided: Button, ButtonGroup, DropdownButton, SplitButton */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Button */ "./node_modules/patternfly-react/dist/esm/components/Button/Button.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _Button__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return _ButtonGroup__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _DropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Button/DropdownButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return _DropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SplitButton */ "./node_modules/patternfly-react/dist/esm/components/Button/SplitButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return _SplitButton__WEBPACK_IMPORTED_MODULE_3__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js ***!
  \*************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const AggregateStatusCount = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-count', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

AggregateStatusCount.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusCount);
AggregateStatusCount.defaultProps = {
  className: ''
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js ***!
  \********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const AggregateStatusNotification = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-notification', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

AggregateStatusNotification.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
AggregateStatusNotification.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const AggregateStatusNotifications = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-aggregate-status-notifications', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", _extends({
    className: classes
  }, props), children);
};

AggregateStatusNotifications.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
/* harmony default export */ __webpack_exports__["default"] = (AggregateStatusNotifications);
AggregateStatusNotifications.defaultProps = {
  className: ''
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js ***!
  \**********************************************************************************************/
/*! exports provided: AggregateStatusCount, AggregateStatusNotification, AggregateStatusNotifications */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AggregateStatusCount__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AggregateStatusCount */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusCount.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _AggregateStatusCount__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AggregateStatusNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AggregateStatusNotification */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _AggregateStatusNotification__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _AggregateStatusNotifications__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AggregateStatusNotifications */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/AggregateStatusNotifications.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _AggregateStatusNotifications__WEBPACK_IMPORTED_MODULE_2__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/Card.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _CardBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardBody */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js");
/* harmony import */ var _CardDropdownButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CardDropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js");
/* harmony import */ var _CardFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CardFooter */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js");
/* harmony import */ var _CardGrid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CardGrid */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js");
/* harmony import */ var _CardHeading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CardHeading */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js");
/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony import */ var _CardLink__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CardLink */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js");
/* harmony import */ var _CardTitle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CardTitle */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js");
/* harmony import */ var _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./AggregateStatusCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js");
/* harmony import */ var _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./UtilizationTrendCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }














/**
 * Card Component for PatternFly React
 */

const Card = (_ref) => {
  let {
    children,
    className,
    accented,
    aggregated,
    aggregatedMini,
    matchHeight,
    cardRef
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "accented", "aggregated", "aggregatedMini", "matchHeight", "cardRef"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf', {
    'card-pf-accented': accented
  }, {
    'card-pf-aggregate-status': aggregated
  }, {
    'card-pf-aggregate-status card-pf-aggregate-status-mini': aggregatedMini
  }, {
    'card-pf-match-height': matchHeight
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes,
    ref: cardRef
  }, props), children);
};

Card.propTypes = {
  /** Child nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Top Card Accent Bool */
  accented: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Aggregate Card Bool */
  aggregated: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Aggregate Mini Card Bool */
  aggregatedMini: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Match Height Bool */
  matchHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Reference prop */
  cardRef: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
Card.defaultProps = {
  className: '',
  accented: false,
  aggregated: false,
  aggregatedMini: false,
  matchHeight: false,
  cardRef: null
};
Card.Title = _CardTitle__WEBPACK_IMPORTED_MODULE_10__["default"];
Card.Body = _CardBody__WEBPACK_IMPORTED_MODULE_3__["default"];
Card.Heading = _CardHeading__WEBPACK_IMPORTED_MODULE_7__["default"];
Card.Footer = _CardFooter__WEBPACK_IMPORTED_MODULE_5__["default"];
Card.Link = _CardLink__WEBPACK_IMPORTED_MODULE_9__["default"];
Card.Grid = _CardGrid__WEBPACK_IMPORTED_MODULE_6__["default"];
Card.DropdownButton = _CardDropdownButton__WEBPACK_IMPORTED_MODULE_4__["default"];
Card.HeightMatching = _CardHeightMatching__WEBPACK_IMPORTED_MODULE_8__["default"];
Card.AggregateStatusCount = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_11__["AggregateStatusCount"];
Card.AggregateStatusNotification = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_11__["AggregateStatusNotification"];
Card.AggregateStatusNotifications = _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_11__["AggregateStatusNotifications"];
Card.UtilizationCard = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCard"];
Card.UtilizationCardDetails = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCardDetails"];
Card.UtilizationCardDetailsCount = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCardDetailsCount"];
Card.UtilizationCardDetailsDesc = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCardDetailsDesc"];
Card.UtilizationCardDetailsLine1 = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCardDetailsLine1"];
Card.UtilizationCardDetailsLine2 = _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_12__["UtilizationCardDetailsLine2"];
/* harmony default export */ __webpack_exports__["default"] = (Card);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const CardBody = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-body', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

CardBody.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardBody.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const CardDropdownButton = (_ref) => {
  let {
    id,
    children,
    title,
    className,
    pullRight
  } = _ref,
      props = _objectWithoutProperties(_ref, ["id", "children", "title", "className", "pullRight"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-time-frame-filter', className);

  const CustomButtonGroup = customGroup => react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__["ButtonGroup"], _extends({}, customGroup, {
    bsClass: " "
  }));

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"], _extends({
    className: classes,
    id: id,
    pullRight: pullRight,
    componentClass: CustomButtonGroup
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle, null, title), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu, null, children));
};

CardDropdownButton.propTypes = {
  /** dropdown button id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]),

  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Dropdown title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardDropdownButton.defaultProps = {
  pullRight: true,
  id: null,
  title: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardDropdownButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const CardFooter = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-footer', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

CardFooter.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardFooter.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const CardGrid = (_ref) => {
  let {
    matchHeight,
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["matchHeight", "children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('container-cards-pf', className);
  const cardSelector = ['.card-pf-match-height'];

  if (matchHeight) {
    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"], _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_CardHeightMatching__WEBPACK_IMPORTED_MODULE_3__["default"], {
      selector: cardSelector
    }, children));
  }

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"], _extends({
    className: classes
  }, props), children);
};

CardGrid.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Match Height bool */
  matchHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardGrid.defaultProps = {
  className: '',
  matchHeight: false
};
CardGrid.Row = _Grid__WEBPACK_IMPORTED_MODULE_4__["Row"];
CardGrid.Col = _Grid__WEBPACK_IMPORTED_MODULE_4__["Col"];
CardGrid.Clearfix = _Grid__WEBPACK_IMPORTED_MODULE_4__["Clearfix"];
/* harmony default export */ __webpack_exports__["default"] = (CardGrid);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const CardHeading = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-heading', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

CardHeading.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardHeading.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var css_element_queries__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! css-element-queries */ "./node_modules/css-element-queries/index.js");
/* harmony import */ var css_element_queries__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(css_element_queries__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");





class CardHeightMatching extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);
    this._selectors = Array.isArray(props.selector) ? props.selector : [props.selector];
    this._resizeSensors = [];
  }

  componentDidMount() {
    // schedule the initial height matching
    this._matchHeights();
  }

  componentDidUpdate() {
    // if the container got updated, let's match heights again
    setTimeout(() => {
      this._matchHeights();
    }, 0);
  }

  componentWillUnmount() {
    this._removeSensors();
  }

  _addSensors() {
    // setup the event listening on '_container' for our height matching selectors
    this._selectors.forEach(selector => {
      const elements = this._container.querySelectorAll(selector);

      this._resizeSensors.push(new css_element_queries__WEBPACK_IMPORTED_MODULE_2__["ResizeSensor"](elements, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["debounce"])(() => this._matchHeights([selector]), 200)));
    });
  }

  _removeSensors() {
    this._resizeSensors.forEach(sensor => {
      sensor.detach();
    });

    this._resizeSensors = [];
  }

  _matchHeights(selectors = this._selectors) {
    if (!this._container) {
      return;
    } // Remove any existing sensors so they do not detect changes made here


    this._removeSensors();

    const arrayMap = elements => Array.prototype.map.call(elements, el => el.scrollHeight).reduce((pre, cur) => Math.max(pre, cur), -Infinity);

    selectors.forEach(selector => {
      const elements = this._container.querySelectorAll(selector);

      elements.forEach(el => {
        el.style.height = null;
      });
      const maxHeight = arrayMap(elements);
      elements.forEach(el => {
        el.style.height = `${maxHeight}px`;
      });
    }); // Add resize sensors to watch for resizes

    this._addSensors();
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: this.props.className,
      ref: node => {
        this._container = node;
      }
    }, this.props.children);
  }

}

CardHeightMatching.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  selector: 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.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string)]).isRequired
};
CardHeightMatching.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardHeightMatching);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const CardLink = (_ref) => {
  let {
    disabled,
    children,
    className,
    icon
  } = _ref,
      props = _objectWithoutProperties(_ref, ["disabled", "children", "className", "icon"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'card-pf-link-with-icon': icon,
    disabled
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", _extends({
    className: classes
  }, props), icon, children));
};

CardLink.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** card link icon node */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** href prop */
  href: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** is link prop */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
CardLink.defaultProps = {
  className: '',
  icon: null,
  href: null,
  disabled: false
};
/* harmony default export */ __webpack_exports__["default"] = (CardLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const CardTitle = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-title', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h2", _extends({
    className: classes
  }, props), children);
};

CardTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
CardTitle.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (CardTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Card */ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const UtilizationCard = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Card__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
    className: classes
  }, props), children);
};

UtilizationCard.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCard.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const UtilizationCardDetails = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-details', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", _extends({
    className: classes
  }, props), children);
};

UtilizationCardDetails.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetails.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetails);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const UtilizationCardDetailsCount = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-count', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

UtilizationCardDetailsCount.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsCount.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsCount);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js ***!
  \********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const UtilizationCardDetailsDesc = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-description', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

UtilizationCardDetailsDesc.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsDesc.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsDesc);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const UtilizationCardDetailsLine1 = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-line-1', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

UtilizationCardDetailsLine1.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsLine1.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsLine1);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const UtilizationCardDetailsLine2 = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('card-pf-utilization-card-details-line-2', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

UtilizationCardDetailsLine2.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
UtilizationCardDetailsLine2.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationCardDetailsLine2);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js ***!
  \***********************************************************************************************/
/*! exports provided: UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _UtilizationCard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UtilizationCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UtilizationCardDetails */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetails.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UtilizationCardDetailsCount */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsCount.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./UtilizationCardDetailsDesc */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsDesc.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./UtilizationCardDetailsLine1 */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine1.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./UtilizationCardDetailsLine2 */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/UtilizationCardDetailsLine2.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__["default"]; });







_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].Details = _UtilizationCardDetails__WEBPACK_IMPORTED_MODULE_1__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsCount = _UtilizationCardDetailsCount__WEBPACK_IMPORTED_MODULE_2__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsDesc = _UtilizationCardDetailsDesc__WEBPACK_IMPORTED_MODULE_3__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsLine1 = _UtilizationCardDetailsLine1__WEBPACK_IMPORTED_MODULE_4__["default"];
_UtilizationCard__WEBPACK_IMPORTED_MODULE_0__["default"].DetailsLine2 = _UtilizationCardDetailsLine2__WEBPACK_IMPORTED_MODULE_5__["default"];


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Cards/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Cards/index.js ***!
  \**************************************************************************/
/*! exports provided: Card, CardTitle, CardBody, CardHeading, CardFooter, CardLink, CardGrid, CardDropdownButton, CardHeightMatching, AggregateStatusCount, AggregateStatusNotification, AggregateStatusNotifications, UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Card */ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _Card__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _CardBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CardBody */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardBody", function() { return _CardBody__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _CardDropdownButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CardDropdownButton */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardDropdownButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDropdownButton", function() { return _CardDropdownButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _CardFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardFooter */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardFooter", function() { return _CardFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _CardGrid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CardGrid */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardGrid.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGrid", function() { return _CardGrid__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _CardHeading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CardHeading */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _CardHeading__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _CardHeightMatching__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CardHeightMatching */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardHeightMatching.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeightMatching", function() { return _CardHeightMatching__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _CardLink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CardLink */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardLink", function() { return _CardLink__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _CardTitle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardTitle */ "./node_modules/patternfly-react/dist/esm/components/Cards/CardTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardTitle", function() { return _CardTitle__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AggregateStatusCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/AggregateStatusCard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _AggregateStatusCard__WEBPACK_IMPORTED_MODULE_9__["AggregateStatusNotifications"]; });

/* harmony import */ var _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./UtilizationTrendCard */ "./node_modules/patternfly-react/dist/esm/components/Cards/UtilizationTrendCard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetails"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsDesc"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsLine1"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _UtilizationTrendCard__WEBPACK_IMPORTED_MODULE_10__["UtilizationCardDetailsLine2"]; });














/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const AreaChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('AREA_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (AreaChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const mapBarChartProps = props => {
  const newProps = Object.assign({}, props); // Set Bar Chart tooltip

  if (props.categories) {
    newProps.tooltip = _common_patternfly__WEBPACK_IMPORTED_MODULE_4__["c3ChartDefaults"].getDefaultBarTooltip(props.categories);
  }

  return newProps;
};

const BarChart = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["compose"])(Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_3__["getComposer"])('BAR_CHART'), Object(recompose__WEBPACK_IMPORTED_MODULE_2__["mapProps"])(mapBarChartProps))((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (BarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _BulletChartValue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BulletChartValue */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js");
/* harmony import */ var _BulletChartRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BulletChartRange */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js");
/* harmony import */ var _BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BulletChartAxis */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js");
/* harmony import */ var _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./BulletChartAxisTic */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js");
/* harmony import */ var _BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./BulletChartLegend */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js");
/* harmony import */ var _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./BulletChartLegendItem */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js");
/* harmony import */ var _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./BulletChartThreshold */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js");
/* harmony import */ var _BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./BulletChartTitle */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js");















const randomId = () => Date.now();

const defaultPrimaryColors = [_common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue300, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue500, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue600];
const defaultExtendedColors = [_common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.blue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.lightBlue400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.cyan400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.green400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.lightGreen400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.gold400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.orange400, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.red300, _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["patternfly"].pfPaletteColors.purple400];

const BulletChart = ({
  vertical,
  stacked,
  label,
  details,
  values,
  percents,
  maxValue,
  useDots,
  useExtendedColors,
  thresholdWarning,
  thresholdWarningLegendText,
  thresholdWarningLegendTextFunction,
  thresholdWarningTooltipFunction,
  thresholdError,
  thresholdErrorLegendText,
  thresholdErrorLegendTextFunction,
  thresholdErrorTooltipFunction,
  ranges,
  showAxis,
  customAxis,
  showLegend,
  customLegend,
  className
}) => {
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf', {
    'bullet-chart-pf-vertical': vertical
  }, className); // Order the ranges into an array of 3 ranges lowest to highest, insert 0's if necessary
  // this is to keep darkest as highest and use darkest colors first (ie. 1 range still uses darkest)

  const rangeValues = [];

  if (ranges) {
    for (let i = 0; i < 3; i++) {
      if (ranges.length > i) {
        rangeValues.push(ranges[i]);
      } else {
        rangeValues.push({
          value: 0,
          title: ''
        });
      }
    }

    rangeValues.sort((range1, range2) => range1.value - range2.value);
  }

  const displayValues = [...values];
  const defaultColors = useExtendedColors ? defaultExtendedColors : defaultPrimaryColors;
  displayValues.forEach((value, index) => {
    if (!value.color && defaultColors[index]) {
      value.color = defaultColors[index];
    }
  });

  if (!stacked) {
    displayValues.sort((value1, value2) => value1.value - value2.value);
  }

  const renderValues = () => {
    let prevValue = 0;

    const getPrevValue = nextValue => {
      if (stacked) {
        const retVal = prevValue;
        prevValue += nextValue;
        return retVal;
      }

      return 0;
    };

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "bullet-chart-pf-values-container"
    }, displayValues.map((value, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartValue__WEBPACK_IMPORTED_MODULE_6__["default"], {
      key: `${value.title}-${index}`,
      value: value,
      percent: percents,
      maxValue: maxValue,
      prevValue: getPrevValue(value.value),
      dot: useDots,
      vertical: vertical
    })));
  };

  const renderLegend = () => {
    if (showLegend) {
      if (customLegend) {
        return customLegend;
      }

      const warningThreshold = thresholdWarningLegendTextFunction(thresholdWarning) || thresholdWarningLegendText;
      const errorThreshold = thresholdErrorLegendTextFunction(thresholdError) || thresholdErrorLegendText;

      const thresholdTipFunction = (title, value) => {
        if (thresholdWarningTooltipFunction) {
          return thresholdWarningTooltipFunction(title, value);
        }

        const tipText = `${title}: ${value}${percents ? '%' : ''}`;
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
          id: randomId()
        }, tipText);
      };

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__["default"], null, displayValues.map((value, index) => {
        const tooltipFunction = () => {
          if (value.tooltipFunction) {
            return value.tooltipFunction(value.value, value.title);
          }

          const tipText = `${value.title}: ${value.value}${percents ? '%' : ''}`;
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
            id: value.tooltipId || randomId()
          }, tipText);
        };

        const legendTextFunction = value.legendTextFunction || _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"];
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
          key: `value-${index}`,
          title: legendTextFunction(value) || value.legendText || value.title,
          value: value.value,
          color: value.color,
          tooltipFunction: tooltipFunction
        });
      }), rangeValues.map((range, index) => {
        if (range.value > 0 && (percents ? range.value <= 100 : range.value <= maxValue)) {
          const tooltipFunction = () => {
            if (range.tooltipFunction) {
              return range.tooltipFunction(range.value, range.title);
            }

            const tipText = `${range.title}: ${range.value}${percents ? '%' : ''}`;
            return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
              id: range.tooltipId || randomId()
            }, tipText);
          };

          const legendTextFunction = range.legendTextFunction || _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"];
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
            key: `range-${index}`,
            title: legendTextFunction(range) || range.legendText || range.title,
            value: range.value,
            boxClassName: `range-${index}`,
            color: range.color,
            tooltipFunction: tooltipFunction
          });
        }

        return null;
      }), warningThreshold && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
        title: warningThreshold,
        value: thresholdWarning,
        boxClassName: "warning",
        tooltipFunction: thresholdTipFunction
      }), errorThreshold && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
        title: errorThreshold,
        value: thresholdError,
        boxClassName: "error",
        tooltipFunction: thresholdTipFunction
      }));
    }

    return null;
  };

  const renderChartData = () => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "bullet-chart-pf-data-container"
  }, renderValues(), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"], {
    className: "warning",
    threshold: thresholdWarning,
    vertical: vertical,
    percent: percents,
    maxValue: maxValue
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"], {
    className: "error",
    threshold: thresholdError,
    vertical: vertical,
    percent: percents,
    maxValue: maxValue
  }), rangeValues.map((range, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartRange__WEBPACK_IMPORTED_MODULE_7__["default"], {
    key: `${range.value}-${index}`,
    value: range.value,
    color: range.color,
    percent: percents,
    maxValue: maxValue,
    index: index + 1,
    vertical: vertical
  })));

  const renderChartAxis = () => {
    if (customAxis) {
      return customAxis;
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__["default"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
      value: 0,
      vertical: vertical
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
      value: 25,
      text: percents ? undefined : `${Math.floor(maxValue * 0.25)}`,
      vertical: vertical
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
      value: 50,
      text: percents ? undefined : `${Math.floor(maxValue * 0.5)}`,
      vertical: vertical
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
      value: 75,
      text: percents ? undefined : `${Math.floor(maxValue * 0.75)}`,
      vertical: vertical
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"], {
      value: 100,
      text: percents ? undefined : `${Math.floor(maxValue)}`,
      vertical: vertical
    }));
  };

  const renderChartContainer = () => {
    const containerClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-container', {
      'show-axis': showAxis
    });
    const chartContainer = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: containerClasses
    }, renderChartData(), showAxis && renderChartAxis());

    if (vertical) {
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "bullet-chart-pf-vertical-data-container"
      }, chartContainer);
    }

    return chartContainer;
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "bullet-chart-pf-chart"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__["default"], {
    label: label,
    details: details
  }), renderChartContainer(), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "bullet-chart-pf-overflow"
  })), renderLegend());
};

BulletChart.propTypes = {
  /** Option to display the bullet chart vertically, default is false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Option to stack values (each value is in addition to previous value), default is false */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Text to display as the main label for the chart */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text to display for details of the chart */
  details: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of values, value, title (for legend and tooltip), color, tooltip function(value, title), legendText(optional),
   * legendTextFunction(value). The legendTextFunction takes priority, then the legendTextFunction, then the default
   * legend text.
   * For Primary colors the first four values can use default colors, for Extended colors the first nine
   * values use default colors, further values the color MUST be specified. */
  values: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    legendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    legendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  })).isRequired,

  /** Option to use values as percentages, default is true */
  percents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Use a dot rather than a bar to depict values, default false */
  useDots: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Use extended color palette for default colors, default false */
  useExtendedColors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Warning threshold (optional), warning measure line drawn at this point */
  thresholdWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Warning threshold legend text (optional), text to show in the legend for the warning threshold */
  thresholdWarningLegendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Warning threshold legend text function(warningValue), function to return text to show in the legend for the warning threshold */
  thresholdWarningLegendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Warning threshold legend tooltip function(text, value), function to return tooltip for the legend */
  thresholdWarningTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Error threshold (optional), error measure line drawn at this point */
  thresholdError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Error threshold legend text (optional), text to show in the legend for the warning threshold */
  thresholdErrorLegendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Error threshold legend text function(text, value), function to return text to show in the legend for the warning threshold */
  thresholdErrorLegendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Error threshold legend tooltip function(warningValue), function to return tooltip for the legend */
  thresholdErrorTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Ranges, array of range bars (3 maximum, additional ranges will be ignored) */
  ranges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    legendText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    legendTextFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  })),

  /** Option to show the axis, default is true */
  showAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Custom Axis */
  customAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Show the legend, default false */
  showLegend: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Custom Legend */
  customLegend: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** User's custom classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChart.defaultProps = {
  vertical: false,
  stacked: false,
  label: null,
  details: null,
  percents: true,
  maxValue: 100,
  useDots: false,
  useExtendedColors: false,
  thresholdWarning: 70,
  thresholdWarningLegendText: null,
  thresholdWarningLegendTextFunction: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  thresholdWarningTooltipFunction: null,
  thresholdError: 90,
  thresholdErrorLegendText: null,
  thresholdErrorLegendTextFunction: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  thresholdErrorTooltipFunction: null,
  ranges: null,
  showAxis: true,
  customAxis: null,
  showLegend: false,
  customLegend: null,
  className: null
};
BulletChart.DEFAULT_PRIMARY_COLORS = defaultPrimaryColors;
BulletChart.DEFAULT_EXTENDED_COLORS = defaultExtendedColors;
BulletChart.Title = _BulletChartTitle__WEBPACK_IMPORTED_MODULE_13__["default"];
BulletChart.Value = _BulletChartValue__WEBPACK_IMPORTED_MODULE_6__["default"];
BulletChart.Range = _BulletChartRange__WEBPACK_IMPORTED_MODULE_7__["default"];
BulletChart.Axis = _BulletChartAxis__WEBPACK_IMPORTED_MODULE_8__["default"];
BulletChart.AxisTic = _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_9__["default"];
BulletChart.Legend = _BulletChartLegend__WEBPACK_IMPORTED_MODULE_10__["default"];
BulletChart.LegendItem = _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_11__["default"];
BulletChart.Threshold = _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_12__["default"];
/* harmony default export */ __webpack_exports__["default"] = (BulletChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; }

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; }





const BulletChartAxis = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const bulletChartAxisClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-axis', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: bulletChartAxisClass
  }, children);
};

BulletChartAxis.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartAxis.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartAxis);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
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; }

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; }





const BulletChartAxisTic = (_ref) => {
  let {
    className,
    text,
    vertical,
    value
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "text", "vertical", "value"]);

  const bulletChartAxisTicClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-axis-tic', className);
  let ticStyle;

  if (vertical) {
    ticStyle = {
      bottom: `calc(${value}% - 10px)`
    };
  } else {
    ticStyle = {
      left: `calc(${value}% - 15px)`
    };
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: bulletChartAxisTicClass,
    style: ticStyle
  }, text || value);
};

BulletChartAxisTic.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Vertical axis, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Value for the tic mark */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Text for the tic mark, default is the value */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartAxisTic.defaultProps = {
  className: '',
  vertical: false,
  text: undefined
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartAxisTic);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BulletChartLegend = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const bulletChartLegendClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: bulletChartLegendClass
  }, props), children);
};

BulletChartLegend.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartLegend.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartLegend);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../OverlayTrigger/index */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const randomId = () => Date.now();

const BulletChartLegendItem = (_ref) => {
  let {
    className,
    title,
    value,
    color,
    boxClassName,
    tooltipFunction,
    tooltipId
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "title", "value", "color", "boxClassName", "tooltipFunction", "tooltipId"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend-item', className);
  const boxClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-legend-item-box', boxClassName);

  const TooltipFunction = () => {
    if (tooltipFunction) {
      return tooltipFunction(title, value, color);
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
      id: tooltipId || randomId()
    }, `${title}: ${value}%`);
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], _extends({
    overlay: TooltipFunction(title, value, color),
    placement: "top",
    trigger: ['hover', 'focus'],
    rootClose: false
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: boxClasses,
    style: {
      backgroundColor: color
    }
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "bullet-chart-pf-legend-item-text"
  }, title)));
};

BulletChartLegendItem.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the legend item */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /* Value of the item */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /* Color for the box */
  color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional css classes for the box */
  boxClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Tooltip function(title, value, color) to render tooltip contents */
  tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Tooltip ID */
  tooltipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartLegendItem.defaultProps = {
  className: '',
  title: '',
  value: 0,
  color: undefined,
  boxClassName: '',
  tooltipFunction: undefined,
  tooltipId: undefined
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartLegendItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BulletChartRange = (_ref) => {
  let {
    className,
    value,
    percent,
    maxValue,
    index,
    color,
    vertical
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "value", "percent", "maxValue", "index", "color", "vertical"]);

  const rangeClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-range-bar', `range-${index}`, className);

  if (value > 0 && (percent ? value <= 100 : value <= maxValue)) {
    const showValue = percent ? value : value / maxValue * 100;
    const rangeStyle = {
      width: vertical ? undefined : `${showValue}%`,
      height: vertical ? `${showValue}%` : undefined,
      zIndex: Math.round(100 - showValue)
    };

    if (color) {
      rangeStyle.backgroundColor = color;
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: rangeClasses,
      style: rangeStyle
    }, props));
  }

  return null;
};

BulletChartRange.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** End value for the range */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Option to use end value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Index for the range (1-3) */
  index: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Optional color for the range, should use defaults but provided for flexibility */
  color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
BulletChartRange.defaultProps = {
  className: '',
  percent: true,
  maxValue: 100,
  color: '',
  vertical: false
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartRange);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js ***!
  \*****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BulletChartThreshold = (_ref) => {
  let {
    className,
    threshold,
    vertical,
    percent,
    maxValue
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "threshold", "vertical", "percent", "maxValue"]);

  const percentValue = percent ? threshold : threshold / maxValue * 100;

  if (percentValue > 0 && percentValue <= 100) {
    const thresholdClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-threshold-indicator', className);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: thresholdClasses,
      style: {
        left: vertical ? undefined : `${percentValue}%`,
        bottom: vertical ? `${percentValue}%` : undefined
      }
    }, props));
  }

  return null;
};

BulletChartThreshold.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Threshold value */
  threshold: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Option to use threshold value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
BulletChartThreshold.defaultProps = {
  className: '',
  vertical: false,
  percent: true,
  maxValue: 100
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartThreshold);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BulletChartTitle = (_ref) => {
  let {
    className,
    label,
    details
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "label", "details"]);

  const titleContainerClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('bullet-chart-pf-title-container', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: titleContainerClasses
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "bullet-chart-pf-title"
  }, label), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "bullet-chart-pf-details"
  }, details));
};

BulletChartTitle.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Label text */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Details text */
  details: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
BulletChartTitle.defaultProps = {
  className: '',
  label: '',
  details: ''
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../OverlayTrigger/index */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Tooltip/index */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const randomId = () => Date.now();

const BulletChartValue = (_ref) => {
  let {
    className,
    value,
    percent,
    maxValue,
    prevValue,
    dot,
    vertical
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "value", "percent", "maxValue", "prevValue", "dot", "vertical"]);

  const usedMax = percent ? 100 : maxValue;
  const percentValue = percent ? value.value + prevValue : (value.value + prevValue) / maxValue * 100;
  const showValue = Math.min(Math.max(percentValue, 0), usedMax * 1.2);

  const TooltipFunction = () => {
    if (value.tooltipFunction) {
      return value.tooltipFunction(value.value, value.title);
    }

    const tipText = `${value.title}: ${value.value}${percent ? '%' : ''}`;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip_index__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
      id: value.tooltipId || randomId()
    }, tipText);
  };

  const valueClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'bullet-chart-pf-value-dot': dot,
    'bullet-chart-pf-value-bar': !dot
  }, className);
  let valueComponent;

  if (dot) {
    valueComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: valueClasses,
      style: {
        left: vertical ? undefined : `${showValue}%`,
        bottom: vertical ? `${showValue}%` : undefined,
        backgroundColor: value.color,
        zIndex: Math.round(100 + showValue)
      }
    }, props));
  } else {
    const prevShowValue = percent ? prevValue : prevValue / maxValue * 100;
    valueComponent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: valueClasses,
      style: {
        left: vertical ? undefined : `${prevShowValue}%`,
        width: vertical ? undefined : `${showValue - prevShowValue}%`,
        bottom: vertical ? `${prevShowValue}%` : undefined,
        height: vertical ? `${showValue - prevShowValue}%` : undefined,
        backgroundColor: value.color,
        zIndex: Math.round(400 - showValue)
      }
    }, props));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger_index__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
    key: value.title,
    overlay: TooltipFunction(value),
    placement: vertical ? 'right' : 'top',
    trigger: ['hover', 'focus'],
    rootClose: false
  }, valueComponent);
};

BulletChartValue.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    color: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    tooltipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }).isRequired,

  /** Option to use value as a percentage, default is true */
  percent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Maximum value when not using percents (ignored if percents is true) */
  maxValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Previous value (for stacked charts), default 0 */
  prevValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Display a dot rather than a bar, default false */
  dot: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Vertical chart, default false */
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
BulletChartValue.defaultProps = {
  className: '',
  percent: true,
  maxValue: 100,
  prevValue: 0,
  dot: false,
  vertical: false
};
/* harmony default export */ __webpack_exports__["default"] = (BulletChartValue);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js ***!
  \**************************************************************************************/
/*! exports provided: BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _BulletChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BulletChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _BulletChart__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _BulletChartTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BulletChartTitle */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _BulletChartTitle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _BulletChartValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BulletChartValue */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartValue.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _BulletChartValue__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _BulletChartRange__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BulletChartRange */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartRange.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _BulletChartRange__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _BulletChartAxis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BulletChartAxis */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxis.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _BulletChartAxis__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BulletChartAxisTic */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartAxisTic.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _BulletChartAxisTic__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _BulletChartLegend__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BulletChartLegend */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegend.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _BulletChartLegend__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BulletChartLegendItem */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartLegendItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _BulletChartLegendItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BulletChartThreshold */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/BulletChartThreshold.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _BulletChartThreshold__WEBPACK_IMPORTED_MODULE_8__["default"]; });












/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js ***!
  \***********************************************************************************/
/*! exports provided: getComposer, CHART_CONFIG */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComposer", function() { return getComposer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CHART_CONFIG", function() { return CHART_CONFIG; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





/**
 * Chart defaults
 */

const CHART_CONFIG = {
  AREA_CHART: {
    type: 'area',
    displayName: 'AreaChart',
    className: 'area-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultAreaConfig()
  },
  BAR_CHART: {
    type: 'bar',
    displayName: 'BarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultBarConfig()
  },
  DONUT_CHART: {
    type: 'donut',
    displayName: 'DonutChart',
    className: 'donut-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultDonutConfig()
  },
  GROUPED_BAR_CHART: {
    type: 'bar',
    displayName: 'GroupedBarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultGroupedBarConfig()
  },
  LINE_CHART: {
    type: 'line',
    displayName: 'LineChart',
    className: 'line-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultLineConfig()
  },
  PIE_CHART: {
    type: 'pie',
    displayName: 'PieChart',
    className: 'pie-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultPieConfig()
  },
  SINGLE_AREA_CHART: {
    type: 'area',
    displayName: 'SingleAreaChart',
    className: 'area-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSingleAreaConfig()
  },
  SINGLE_LINE_CHART: {
    type: 'line',
    displayName: 'SingleLineChart',
    className: 'line-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSingleLineConfig()
  },
  SPARKLINE_CHART: {
    type: 'area',
    displayName: 'SparklineChart',
    className: 'chart-pf-sparkline',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultSparklineConfig()
  },
  STACKED_BAR_CHART: {
    type: 'bar',
    displayName: 'StackedBarChart',
    className: 'bar-chart-pf',
    defaultConfig: _common_patternfly__WEBPACK_IMPORTED_MODULE_3__["c3ChartDefaults"].getDefaultStackedBarConfig()
  }
};
/**
 * Helper functions
 */

const mapChartProps = (name, props) => {
  const newProps = Object.assign({}, props); // Set chart type

  if (props.data && !props.data.type) {
    newProps.data.type = props.type;
  }

  return newProps;
};

const getComposer = name => {
  const config = CHART_CONFIG[name];
  return Object(recompose__WEBPACK_IMPORTED_MODULE_1__["compose"])(Object(recompose__WEBPACK_IMPORTED_MODULE_1__["setDisplayName"])(config.displayName), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["setPropTypes"])(_objectSpread({
    data: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired
  }, react_c3js__WEBPACK_IMPORTED_MODULE_2___default.a.propTypes)), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["defaultProps"])(_objectSpread({
    type: config.type,
    className: config.className
  }, config.defaultConfig)), Object(recompose__WEBPACK_IMPORTED_MODULE_1__["mapProps"])(props => mapChartProps(name, props)));
};
/**
 * Exports functions
 */




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const {
  pfSetDonutChartTitle
} = _common_patternfly__WEBPACK_IMPORTED_MODULE_4__["patternfly"];

const colIndexOfMaxValue = columns => columns.reduce((iMax, x, i, arr) => x[1] > arr[iMax][1] ? i : iMax, 0);

const truncateNum = (num, precision) => {
  const pointNotation = num.toString().split('.');

  if (pointNotation.length === 1) {
    return pointNotation[0];
  }

  return `${pointNotation[0]}.${pointNotation[1].slice(0, precision)}`;
};

const setDonutTitle = obj => {
  let primary;
  let secondary;
  const {
    props
  } = obj;
  const {
    data,
    title = {}
  } = props;
  const {
    type,
    precision = 0
  } = title;
  const {
    columns
  } = data;
  const sum = columns.reduce((acc, x) => acc + x[1], 0);
  const iMax = colIndexOfMaxValue(columns);
  const percentage = 100 * columns[iMax][1] / sum;

  switch (type) {
    case 'percent':
      primary = precision ? `${truncateNum(percentage, precision)}%` : `${Math.round(percentage)}%`;
      [secondary] = columns[iMax];
      break;

    case 'max':
      primary = Math.round(columns[iMax][1]).toString();
      [secondary] = columns[iMax];
      break;

    case 'total':
    default:
      primary = Math.round(sum).toString();
      break;
  }

  pfSetDonutChartTitle( // eslint-disable-next-line react/no-find-dom-node
  Object(react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"])(obj), title.primary || primary, title.secondary || secondary);
};

const addDonutTitle = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["lifecycle"])({
  componentDidMount() {
    setDonutTitle(this);
  },

  componentDidUpdate(prevProps) {
    setDonutTitle(this);
  }

});
const DonutChart = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["compose"])(Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_5__["getComposer"])('DONUT_CHART'), addDonutTitle)((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (DonutChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const GroupedBarChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('GROUPED_BAR_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (GroupedBarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const LineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('LINE_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (LineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const PieChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('PIE_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (PieChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const SingleAreaChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SINGLE_AREA_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (SingleAreaChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const SingleLineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SINGLE_LINE_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (SingleLineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const SparklineChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('SPARKLINE_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (SparklineChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-c3js */ "./node_modules/react-c3js/react-c3js.js");
/* harmony import */ var react_c3js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_c3js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChartConstants */ "./node_modules/patternfly-react/dist/esm/components/Chart/ChartConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




const StackedBarChart = Object(_ChartConstants__WEBPACK_IMPORTED_MODULE_2__["getComposer"])('STACKED_BAR_CHART')((_ref) => {
  let {
    className,
    type,
    data
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "data"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_c3js__WEBPACK_IMPORTED_MODULE_1___default.a, _extends({
    className: className,
    type: type,
    data: data
  }, props));
});
/* harmony default export */ __webpack_exports__["default"] = (StackedBarChart);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Chart/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Chart/index.js ***!
  \**************************************************************************/
/*! exports provided: AreaChart, BarChart, BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold, DonutChart, GroupedBarChart, LineChart, PieChart, SingleAreaChart, SingleLineChart, SparklineChart, StackedBarChart */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _AreaChart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AreaChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/AreaChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AreaChart", function() { return _AreaChart__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _BarChart__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/BarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BarChart", function() { return _BarChart__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BulletChart/index */ "./node_modules/patternfly-react/dist/esm/components/Chart/BulletChart/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartValue"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartRange"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartAxis"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartAxisTic"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartLegend"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartLegendItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _BulletChart_index__WEBPACK_IMPORTED_MODULE_2__["BulletChartThreshold"]; });

/* harmony import */ var _DonutChart__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DonutChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/DonutChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DonutChart", function() { return _DonutChart__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _GroupedBarChart__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GroupedBarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/GroupedBarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedBarChart", function() { return _GroupedBarChart__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _LineChart__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/LineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChart", function() { return _LineChart__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _PieChart__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PieChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/PieChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function() { return _PieChart__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _SingleAreaChart__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SingleAreaChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleAreaChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleAreaChart", function() { return _SingleAreaChart__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _SingleLineChart__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SingleLineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SingleLineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleLineChart", function() { return _SingleLineChart__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _SparklineChart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SparklineChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/SparklineChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SparklineChart", function() { return _SparklineChart__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _StackedBarChart__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./StackedBarChart */ "./node_modules/patternfly-react/dist/esm/components/Chart/StackedBarChart.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StackedBarChart", function() { return _StackedBarChart__WEBPACK_IMPORTED_MODULE_10__["default"]; });













/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/ClassificationBanner.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/ClassificationBanner.js ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
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; }

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; }





const defaultColors = {
  'pf-red': 1,
  'pf-blue': 1,
  'pf-green': 1,
  'pf-orange': 1,
  'pf-yellow': 1
};
/**
 * ClassificationBanner Component for PatternFly React
 */

class ClassificationBanner extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);
    this.state = {
      closed: props.closed
    };
    this.onClose = this.onClose.bind(this);
  }

  onClose(e) {
    this.setState({
      closed: !this.state.closed
    });
  }

  UNSAFE_componentWillReceiveProps(nextProps) {
    if (nextProps.closed !== this.state.closed) {
      this.setState({
        closed: nextProps.closed
      });
    }
  }

  render() {
    const _this$props = this.props,
          {
      children,
      bottomBanner,
      hostName,
      userName,
      closeButton,
      userNamePosition,
      hostNamePosition,
      bannerColor,
      title
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["children", "bottomBanner", "hostName", "userName", "closeButton", "userNamePosition", "hostNamePosition", "bannerColor", "title"]);

    const classificationBannerClasses = {
      top: classnames__WEBPACK_IMPORTED_MODULE_3___default()('classification-banner-pf-banner', 'classification-banner-pf-banner-top', defaultColors[bannerColor] ? `classification-banner-${bannerColor}` : ''),
      bottom: classnames__WEBPACK_IMPORTED_MODULE_3___default()('classification-banner-pf-banner', defaultColors[bannerColor] ? `classification-banner-${bannerColor}` : '', 'classification-banner-pf-banner-bottom'),
      closeButton: classnames__WEBPACK_IMPORTED_MODULE_3___default()({
        'classification-banner-pf-close pficon-error-circle-o': closeButton
      }),
      children: classnames__WEBPACK_IMPORTED_MODULE_3___default()({
        'classification-banner-pf-children-no-bottom': !this.state.closed && !bottomBanner,
        'classification-banner-pf-children': !this.state.closed && bottomBanner
      })
    };
    const leftLabels = [hostNamePosition === 'left' ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, hostName) : null, userNamePosition === 'left' ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, userName) : null];
    const rightLabels = [hostNamePosition === 'right' ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, hostName) : null, userNamePosition === 'right' ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, userName) : null];
    const bannerBackgroundStyle = defaultColors[bannerColor] ? {} : {
      background: bannerColor
    };
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", props, !this.state.closed && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", {
      style: bannerBackgroundStyle,
      className: classificationBannerClasses.top
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "classification-banner-pf-banner-left"
    }, leftLabels[0], leftLabels[1]), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "classification-banner-pf-classification-level"
    }, title), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "classification-banner-pf-banner-right"
    }, closeButton && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"], {
      className: classificationBannerClasses.closeButton,
      bsStyle: "link",
      bsSize: "small",
      "data-toggle": "tooltip",
      "data-placement": "bottom",
      title: "Close",
      onClick: e => this.onClose(e)
    }), rightLabels[0], rightLabels[1])), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classificationBannerClasses.children
    }, children), !this.state.closed && bottomBanner && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("footer", {
      style: bannerBackgroundStyle,
      className: classificationBannerClasses.bottom
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "classification-banner-pf-classification-level"
    }, title)));
  }

}

ClassificationBanner.propTypes = {
  /** Child nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Option to display system hostname that user has logged into */
  hostName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Option to display user login */
  userName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Option to close classification banner */
  closeButton: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Option to enable or disable classification banner across bottom screen */
  bottomBanner: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Whether banner's state is closed or not */
  closed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Option to configure location of user login on the banner */
  userNamePosition: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Option to configure location of hostname on the banner */
  hostNamePosition: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Option to configure banner color. Hex code is supported e.g. #39a5dc */
  bannerColor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Classification level or custom text to display in top and bottom banner */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ClassificationBanner.defaultProps = {
  children: null,
  hostName: '',
  userName: '',
  closeButton: false,
  bottomBanner: true,
  closed: false,
  userNamePosition: 'right',
  hostNamePosition: 'left',
  bannerColor: '',
  title: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ClassificationBanner);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/index.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/index.js ***!
  \*****************************************************************************************/
/*! exports provided: ClassificationBanner */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ClassificationBanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ClassificationBanner */ "./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/ClassificationBanner.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClassificationBanner", function() { return _ClassificationBanner__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateConstants.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateConstants.js ***!
  \**********************************************************************************************************/
/*! exports provided: YEAR, MONTH, DAY */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "YEAR", function() { return YEAR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MONTH", function() { return MONTH; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAY", function() { return DAY; });
const YEAR = 'YEAR';
const MONTH = 'MONTH';
const DAY = 'DAY';

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateInput.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateInput.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js");
/* harmony import */ var _MonthView__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MonthView */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/MonthView.js");
/* harmony import */ var _YearView__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./YearView */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/YearView.js");
/* harmony import */ var _DecadeView__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DecadeView */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeView.js");
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; }









class DateInput extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      selectedDate: new Date(this.props.date),
      date: new Date(this.props.date),
      typeOfDateInput: this.props.typeOfDateInput
    });

    _defineProperty(this, "getPrevMonth", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addMonths"])(date, -1)
      });
    });

    _defineProperty(this, "getNextMonth", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addMonths"])(date, 1)
      });
    });

    _defineProperty(this, "setSelected", day => {
      this.setState({
        selectedDate: day,
        date: day
      });
      this.props.setSelected(day);
    });

    _defineProperty(this, "toggleDateView", (type = null) => {
      this.setState({
        typeOfDateInput: type
      });
    });

    _defineProperty(this, "getDateViewByType", type => {
      const {
        date,
        weekStartsOn,
        locale,
        setSelected
      } = this.props;
      const parsedDate = Date.parse(date) ? date : new Date();

      switch (type) {
        case 'D':
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DecadeView__WEBPACK_IMPORTED_MODULE_6__["default"], {
            date: parsedDate,
            setSelected: setSelected,
            toggleDateView: this.toggleDateView
          });

        case 'Y':
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_YearView__WEBPACK_IMPORTED_MODULE_5__["default"], {
            date: parsedDate,
            setSelected: setSelected,
            locale: locale,
            toggleDateView: this.toggleDateView
          });

        default:
          return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MonthView__WEBPACK_IMPORTED_MODULE_4__["default"], {
            date: parsedDate,
            setSelected: setSelected,
            locale: locale,
            weekStartsOn: weekStartsOn,
            toggleDateView: this.toggleDateView
          });
      }
    });
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    const nextDate = new Date(nextProps.date);
    const prevDate = new Date(prevState.selectedDate);
    const nextType = new Date(nextProps.date);
    return Date.parse(nextDate) === Date.parse(prevDate) ? null : {
      selectedDate: nextDate,
      date: nextDate,
      typeOfDateInput: nextType
    };
  }

  render() {
    const {
      className
    } = this.props;
    const {
      typeOfDateInput
    } = this.state;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('datepicker', className)
    }, this.getDateViewByType(typeOfDateInput));
  }

}

DateInput.propTypes = {
  date: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  weekStartsOn: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  typeOfDateInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DateInput.defaultProps = {
  setSelected: null,
  date: new Date(),
  locale: 'en-US',
  weekStartsOn: 1,
  className: '',
  typeOfDateInput: 'M'
};
/* harmony default export */ __webpack_exports__["default"] = (DateInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Day.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Day.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);




const Day = ({
  day,
  setSelected,
  classNamesArray
}) => {
  const date = day.getDate();
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('day', classNamesArray),
    "data-day": date,
    onClick: () => {
      setSelected(day);
    }
  }, date);
};

Day.propTypes = {
  day: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date).isRequired,
  classNamesArray: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
Day.defaultProps = {
  setSelected: null,
  classNamesArray: []
};
/* harmony default export */ __webpack_exports__["default"] = (Day);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeView.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeView.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/times */ "./node_modules/lodash/times.js");
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_times__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _DecadeViewHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DecadeViewHeader */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewHeader.js");
/* harmony import */ var _DecadeViewTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DecadeViewTable */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewTable.js");
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; }









class DecadeView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      date: new Date(this.props.date),
      selectedDate: new Date(this.props.date)
    });

    _defineProperty(this, "getYearArray", () => {
      const {
        date
      } = this.state;
      date.setFullYear(Math.floor(date.getFullYear() / 10) * 10);
      return lodash_times__WEBPACK_IMPORTED_MODULE_2___default()(12, i => Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addYears"])(date, i).getFullYear());
    });

    _defineProperty(this, "getPrevDecade", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addYears"])(date, -10)
      });
    });

    _defineProperty(this, "getNextDecade", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addYears"])(date, 10)
      });
    });

    _defineProperty(this, "setSelectedYear", year => {
      const {
        setSelected,
        toggleDateView
      } = this.props;
      const {
        date
      } = this.state;
      date.setFullYear(year);
      setSelected(date);
      toggleDateView('Y');
    });
  }

  render() {
    const {
      date,
      selectedDate
    } = this.state;
    const currDecade = Math.floor(date.getFullYear() / 10) * 10;
    const selectedYear = selectedDate.getFullYear();
    const yearArray = this.getYearArray();
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "datepicker-years"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DecadeViewHeader__WEBPACK_IMPORTED_MODULE_5__["DecadeViewHeader"], {
      currDecade: currDecade,
      getNextDecade: this.getNextDecade,
      getPrevDecade: this.getPrevDecade
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DecadeViewTable__WEBPACK_IMPORTED_MODULE_6__["DecadeViewTable"], {
      selectedYear: selectedYear,
      yearArray: yearArray,
      setSelectedYear: this.setSelectedYear
    })));
  }

}

DecadeView.propTypes = {
  date: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDateView: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DecadeView.defaultProps = {
  setSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  toggleDateView: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  date: new Date()
};
/* harmony default export */ __webpack_exports__["default"] = (DecadeView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewHeader.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewHeader.js ***!
  \*************************************************************************************************************/
/*! exports provided: DecadeViewHeader, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecadeViewHeader", function() { return DecadeViewHeader; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");



const DecadeViewHeader = ({
  currDecade,
  getPrevDecade,
  getNextDecade
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("thead", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
  className: "prev",
  onClick: getPrevDecade
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: "glyphicon glyphicon-chevron-left"
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
  className: "picker-switch",
  "data-action": "pickerSwitch",
  colSpan: "5"
}, `${currDecade}-${currDecade + 11}`), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
  className: "next",
  onClick: getNextDecade
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: "glyphicon glyphicon-chevron-right"
}))));
DecadeViewHeader.propTypes = {
  currDecade: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  getPrevDecade: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  getNextDecade: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DecadeViewHeader.defaultProps = {
  currDecade: 20,
  getPrevDecade: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  getNextDecade: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DecadeViewHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewTable.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DecadeViewTable.js ***!
  \************************************************************************************************************/
/*! exports provided: DecadeViewTable, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecadeViewTable", function() { return DecadeViewTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");



const DecadeViewTable = ({
  yearArray,
  selectedYear,
  setSelectedYear
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
  colSpan: "7"
}, yearArray.map(year => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  onClick: () => setSelectedYear(year),
  className: `year ${year === selectedYear ? 'active' : ''}`,
  key: year
}, year)))));
DecadeViewTable.propTypes = {
  yearArray: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  selectedYear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  setSelectedYear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DecadeViewTable.defaultProps = {
  yearArray: [],
  selectedYear: new Date().getFullYear(),
  setSelectedYear: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DecadeViewTable);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Header.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Header.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js");
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/times */ "./node_modules/lodash/times.js");
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_times__WEBPACK_IMPORTED_MODULE_4__);
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; }







class Header extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "getWeekArray", () => {
      const {
        weekStartsOn
      } = this.props;
      const weekStart = Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["getWeekStart"])(new Date());
      const dayFormat = Intl.DateTimeFormat(this.props.locale, {
        weekday: 'short'
      }).format(weekStart).length > 3 ? 'narrow' : 'short';
      return lodash_times__WEBPACK_IMPORTED_MODULE_4___default()(7, i => Intl.DateTimeFormat(this.props.locale, {
        weekday: dayFormat
      }).format(Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addDays"])(weekStart, (i + weekStartsOn) % 7)).slice(0, 2));
    });
  }

  render() {
    const {
      getNextMonth,
      getPrevMonth,
      toggleDateView
    } = this.props;
    const date = new Date(this.props.date);
    const month = Intl.DateTimeFormat(this.props.locale, {
      month: 'long'
    }).format(date);
    const year = date.getFullYear();
    const daysOfTheWeek = this.getWeekArray();
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("thead", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "prev",
      onClick: getPrevMonth
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      type: "fa",
      name: "angle-left"
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "picker-switch",
      colSpan: "5",
      onClick: () => toggleDateView('Y')
    }, month, " ", year), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "next",
      onClick: getNextMonth
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      type: "fa",
      name: "angle-right"
    }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, daysOfTheWeek.map((day, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      key: idx,
      className: "dow"
    }, day))));
  }

}

Header.propTypes = {
  date: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  getPrevMonth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  getNextMonth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDateView: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  weekStartsOn: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
Header.defaultProps = {
  date: new Date(),
  getPrevMonth: null,
  getNextMonth: null,
  toggleDateView: null,
  locale: 'en-US',
  weekStartsOn: 1
};
/* harmony default export */ __webpack_exports__["default"] = (Header);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/MonthView.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/MonthView.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_chunk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/chunk */ "./node_modules/lodash/chunk.js");
/* harmony import */ var lodash_chunk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_chunk__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/times */ "./node_modules/lodash/times.js");
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_times__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Day__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Day */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Day.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js");
/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Header */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/Header.js");
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; }









class DateInput extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      selectedDate: new Date(this.props.date),
      date: new Date(this.props.date)
    });

    _defineProperty(this, "calendarArray", date => {
      const {
        weekStartsOn
      } = this.props;
      const monthStart = Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["getMonthStart"])(new Date(date));
      const offset = monthStart.getDay() - weekStartsOn;
      return lodash_chunk__WEBPACK_IMPORTED_MODULE_2___default()(lodash_times__WEBPACK_IMPORTED_MODULE_3___default()(35, i => Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["addDays"])(monthStart, i - offset)), 7);
    });

    _defineProperty(this, "getPrevMonth", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["addMonths"])(date, -1)
      });
    });

    _defineProperty(this, "getNextMonth", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["addMonths"])(date, 1)
      });
    });

    _defineProperty(this, "setSelected", day => {
      this.setState({
        selectedDate: day,
        date: day
      });
      this.props.setSelected(day);
    });
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    const nextDate = new Date(nextProps.date);
    const prevDate = new Date(prevState.selectedDate);
    return !(Date.parse(nextDate) === Date.parse(prevDate)) ? {
      selectedDate: nextDate,
      date: nextDate
    } : null;
  }

  render() {
    const {
      locale,
      weekStartsOn,
      toggleDateView
    } = this.props;
    const {
      date,
      selectedDate
    } = this.state;
    const calendar = this.calendarArray(date);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "datepicker-days"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Header__WEBPACK_IMPORTED_MODULE_6__["default"], {
      getPrevMonth: this.getPrevMonth,
      getNextMonth: this.getNextMonth,
      date: date,
      locale: locale,
      weekStartsOn: weekStartsOn,
      toggleDateView: toggleDateView
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, calendar.map((el, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", {
      key: idx
    }, el.map(day => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Day__WEBPACK_IMPORTED_MODULE_4__["default"], {
      key: day,
      day: day,
      setSelected: this.setSelected,
      classNamesArray: {
        weekend: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["isWeekend"])(day),
        old: day.getMonth() !== date.getMonth(),
        active: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["isEqualDate"])(day, selectedDate),
        today: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["isEqualDate"])(day, new Date())
      }
    })))))));
  }

}

DateInput.propTypes = {
  date: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDateView: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  weekStartsOn: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
DateInput.defaultProps = {
  setSelected: null,
  toggleDateView: null,
  date: new Date(),
  locale: 'en-US',
  weekStartsOn: 1
};
/* harmony default export */ __webpack_exports__["default"] = (DateInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/TodayButton.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/TodayButton.js ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
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; }




class TodayButton extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "setToday", () => {
      const {
        setSelected
      } = this.props;

      if (setSelected) {
        setSelected(new Date());
      }
    });
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
      type: "button",
      className: "today-button",
      onClick: this.setToday
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "today-button-pf"
    }))))));
  }

}

TodayButton.propTypes = {
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
TodayButton.defaultProps = {
  setSelected: null
};
/* harmony default export */ __webpack_exports__["default"] = (TodayButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/YearView.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/YearView.js ***!
  \*****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/times */ "./node_modules/lodash/times.js");
/* harmony import */ var lodash_times__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_times__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }







class YearView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      date: new Date(this.props.date),
      selectedDate: new Date(this.props.date)
    });

    _defineProperty(this, "getMonthArray", () => {
      const date = new Date('1/1/1');
      return lodash_times__WEBPACK_IMPORTED_MODULE_2___default()(12, i => Intl.DateTimeFormat(this.props.locale, {
        month: 'short'
      }).format(Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addMonths"])(date, i)));
    });

    _defineProperty(this, "getPrevYear", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addYears"])(date, -1)
      });
    });

    _defineProperty(this, "getNextYear", () => {
      const {
        date
      } = this.state;
      this.setState({
        date: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["addYears"])(date, 1)
      });
    });

    _defineProperty(this, "setSelectedMonth", month => {
      const {
        date
      } = this.state;
      date.setMonth(month);
      this.props.setSelected(date);
      this.props.toggleDateView('M');
    });
  }

  render() {
    const {
      date,
      selectedDate
    } = this.state;
    const [currMonth, currYear] = [date.getMonth(), date.getFullYear()];
    const selectedYear = selectedDate.getFullYear();
    const monthArray = this.getMonthArray();
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "datepicker-months"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("thead", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "prev",
      onClick: this.getPrevYear
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-left"
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "picker-switch",
      onClick: () => this.props.toggleDateView('D'),
      colSpan: "5"
    }, currYear), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", {
      className: "next",
      onClick: this.getNextYear
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-right"
    })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      colSpan: "7"
    }, monthArray.map((month, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      onClick: () => this.setSelectedMonth(idx),
      className: `month ${idx === currMonth && selectedYear === currYear ? 'active' : ''}`,
      key: idx
    }, month)))))));
  }

}

YearView.propTypes = {
  date: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDateView: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
YearView.defaultProps = {
  setSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  toggleDateView: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  date: new Date(),
  locale: 'en-US'
};
/* harmony default export */ __webpack_exports__["default"] = (YearView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/helpers.js ***!
  \****************************************************************************************************/
/*! exports provided: addDays, addMonths, addYears, isEqualDate, isWeekend, getMonthStart, getWeekStart, helpers, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addDays", function() { return addDays; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addMonths", function() { return addMonths; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addYears", function() { return addYears; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEqualDate", function() { return isEqualDate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWeekend", function() { return isWeekend; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthStart", function() { return getMonthStart; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWeekStart", function() { return getWeekStart; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "helpers", function() { return helpers; });
const addDays = (date, days) => {
  const result = new Date(date);
  result.setDate(result.getDate() + days);
  return result;
};
const addMonths = (date, months) => {
  const result = new Date(date);
  result.setMonth(result.getMonth() + months);
  return result;
};
const addYears = (date, years) => {
  const result = new Date(date);
  result.setYear(result.getFullYear() + years);
  return result;
};
const isEqualDate = (date1, date2) => date1.getYear() === date2.getYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
const isWeekend = date => date.getDay() === 6 || date.getDay() === 5;
const getMonthStart = date => {
  date.setDate(1);
  return date;
};
const getWeekStart = date => addDays(date, (7 - date.getDay()) % 7);
const helpers = {
  addDays,
  addMonths,
  isEqualDate,
  isWeekend,
  getMonthStart,
  getWeekStart
};
/* harmony default export */ __webpack_exports__["default"] = (helpers);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateHelpers.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateHelpers.js ***!
  \*****************************************************************************************/
/*! exports provided: formatDate */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
const formatDate = (date, locale = 'en-US') => {
  const options = {
    year: 'numeric',
    month: 'numeric',
    day: 'numeric'
  };

  if (Date.parse(date)) {
    const parsedValue = new Date(date);
    return Intl.DateTimeFormat(locale, options).format(parsedValue);
  }

  return date;
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DatePicker.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DatePicker.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _DateComponents_DateInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DateComponents/DateInput */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateInput.js");
/* harmony import */ var _DateComponents_TodayButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DateComponents/TodayButton */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/TodayButton.js");
/* harmony import */ var _DateHelpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DateHelpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateHelpers.js");
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; }








class DatePicker extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      value: new Date(this.props.value),
      tmpValue: Object(_DateHelpers__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(this.props.value, this.props.locale)
    });

    _defineProperty(this, "setSelected", date => {
      let newDate = new Date(this.state.value);

      if (Date.parse(date)) {
        newDate = new Date(date);
      } else if (date === '') {
        newDate = date;
      }

      this.setState({
        value: newDate,
        tmpValue: Object(_DateHelpers__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(newDate)
      });
    });
  }

  render() {
    const {
      value
    } = this.state;
    const {
      locale,
      weekStartsOn,
      id,
      placement
    } = this.props;
    const popover = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Popover"], {
      id: id,
      className: "bootstrap-datetimepicker-widget date-picker-pf usetwentyfour"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: "list-unstyled"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DateComponents_DateInput__WEBPACK_IMPORTED_MODULE_3__["default"], {
      date: value,
      setSelected: this.setSelected,
      locale: locale,
      weekStartsOn: weekStartsOn
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
      className: "picker-switch accordion-toggle"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DateComponents_TodayButton__WEBPACK_IMPORTED_MODULE_4__["default"], {
      setSelected: this.setSelected
    }))));
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"], {
      className: "input-group date-time-picker-pf"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
      "aria-label": "date-time-picker-input",
      type: "text",
      value: this.state.tmpValue,
      onChange: e => this.setState({
        tmpValue: e.target.value
      }),
      onBlur: e => this.setSelected(e.target.value)
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
      trigger: "click",
      placement: placement,
      overlay: popover,
      rootClose: true
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"].Addon, {
      className: "date-picker-pf",
      onClick: () => this.setState({
        tmpValue: Object(_DateHelpers__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(value)
      })
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      type: "fa",
      name: "calendar"
    })))));
  }

}

DatePicker.propTypes = {
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  weekStartsOn: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  placement: ___WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"].propTypes.placement
};
DatePicker.defaultProps = {
  value: new Date(),
  locale: 'en-US',
  weekStartsOn: 1,
  id: 'popover-date-picker',
  placement: 'top'
};
/* harmony default export */ __webpack_exports__["default"] = (DatePicker);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateTimePicker.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateTimePicker.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _DateComponents_DateInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DateComponents/DateInput */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateInput.js");
/* harmony import */ var _DateComponents_TodayButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DateComponents/TodayButton */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/TodayButton.js");
/* harmony import */ var _TimeComponents_TimeInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TimeComponents/TimeInput */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeInput.js");
/* harmony import */ var _DateComponents_DateConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DateComponents/DateConstants */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateComponents/DateConstants.js");
/* harmony import */ var _TimeHelpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TimeHelpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeHelpers.js");
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; }










class DateTimePicker extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "formatDate", date => {
      const {
        locale
      } = this.props;
      const options = [{
        year: 'numeric',
        month: 'numeric',
        day: 'numeric'
      }, {
        hour: 'numeric',
        minute: '2-digit'
      }];

      if (Date.parse(date)) {
        const parsedValue = new Date(date);
        return `${parsedValue.toLocaleString(locale, options[0])} ${parsedValue.toLocaleString(locale, options[1])}`;
      }

      return date;
    });

    _defineProperty(this, "setSelected", date => {
      let newDate = new Date(this.state.value);

      if (Date.parse(date)) {
        newDate = new Date(date);
      }

      this.setState({
        value: newDate,
        tmpValue: this.formatDate(newDate),
        typeOfDateInput: 'M',
        isTimeTableOpen: false
      });
    });

    this.state = {
      value: new Date(this.props.value),
      tmpValue: this.formatDate(new Date(this.props.value)),
      typeOfDateInput: _DateComponents_DateConstants__WEBPACK_IMPORTED_MODULE_6__["MONTH"],
      isTimeTableOpen: false
    };
  }

  render() {
    const {
      locale,
      weekStartsOn,
      id,
      placement
    } = this.props;
    const {
      value,
      typeOfDateInput,
      isTimeTableOpen,
      hiddenValue
    } = this.state;
    const popover = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Popover"], {
      id: id,
      className: "bootstrap-datetimepicker-widget date-time-picker-pf dropdown-menu timepicker-sbs"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "row"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DateComponents_DateInput__WEBPACK_IMPORTED_MODULE_3__["default"], {
      date: value,
      setSelected: this.setSelected,
      locale: locale,
      weekStartsOn: weekStartsOn,
      className: "col-md-6",
      typeOfDateInput: typeOfDateInput
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TimeComponents_TimeInput__WEBPACK_IMPORTED_MODULE_5__["default"], {
      time: value,
      setSelected: this.setSelected,
      isTimeTableOpen: isTimeTableOpen,
      locale: locale,
      className: "col-md-6"
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
      className: "picker-switch accordion-toggle"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DateComponents_TodayButton__WEBPACK_IMPORTED_MODULE_4__["default"], {
      setSelected: this.setSelected
    })));
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"], {
      className: "input-group date-time-picker-pf"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
      "aria-label": "date-picker-input",
      type: "text",
      value: this.state.tmpValue,
      onChange: e => this.setState({
        tmpValue: e.target.value
      }),
      onBlur: e => this.setSelected(e.target.value)
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
      trigger: "click",
      placement: placement,
      overlay: popover,
      rootClose: true
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"].Addon, {
      className: "date-time-picker-pf",
      onClick: () => this.setState({
        tmpValue: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_7__["formatTime"])(value, locale)
      })
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      type: "fa",
      name: "calendar"
    })))));
  }

}

DateTimePicker.propTypes = {
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  weekStartsOn: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  hiddenValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  placement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['top', 'bottom'])
};
DateTimePicker.defaultProps = {
  value: new Date(),
  locale: 'en-US',
  weekStartsOn: 1,
  id: 'datetime-picker-popover',
  hiddenValue: true,
  placement: 'top'
};
/* harmony default export */ __webpack_exports__["default"] = (DateTimePicker);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeClock.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeClock.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TimeConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TimeConstants */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeConstants.js");
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; }






class PickTimeClock extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      ampm: this.props.time.getHours() >= 12 ? _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["PM"] : _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["AM"]
    });

    _defineProperty(this, "setTime", (type, amount) => {
      const {
        time,
        setSelected
      } = this.props;

      if (type === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"]) {
        time.setHours(time.getHours() + amount);
      } else if (type === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"]) {
        time.setMinutes(time.getMinutes() + amount);
      }

      setSelected(time);
    });

    _defineProperty(this, "toggleAMPM", () => {
      const {
        time,
        setSelected
      } = this.props;

      if (this.state.ampm === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["AM"]) {
        time.setHours(time.getHours() + 12);
        this.setState({
          ampm: _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["PM"]
        });
      } else {
        time.setHours(time.getHours() - 12);
        this.setState({
          ampm: _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["AM"]
        });
      }

      setSelected(time);
    });
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    return {
      ampm: nextProps.time.getHours() >= 12 ? _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["PM"] : _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["AM"]
    };
  }

  render() {
    const {
      time,
      toggleTimeTable
    } = this.props;
    const minutes = time.getMinutes();
    const hours = time.getHours() % 12 || 12;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "timepicker-picker"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      onClick: () => this.setTime(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"], 1)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      title: "Increment Hour",
      className: "btn clock-btn"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-up"
    }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      className: "separator"
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      onClick: () => this.setTime(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"], 1)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      title: "Increment Minute",
      className: "btn clock-btn"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-up"
    }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      className: "separator"
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      onClick: () => toggleTimeTable(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"])
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "timepicker-hour",
      title: "Pick Hour"
    }, `${hours}`.padStart(2, '0'))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      className: "separator"
    }, ":"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      onClick: () => toggleTimeTable(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"])
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "timepicker-minute",
      title: "Pick Minute"
    }, `${minutes}`.padStart(2, '0'))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
      className: "btn btn-primary ampm-toggle",
      onClick: () => this.toggleAMPM()
    }, this.state.ampm))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      title: "Decrement Hour",
      className: "btn clock-btn",
      onClick: () => this.setTime(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"], -1)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-down"
    }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      className: "separator"
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      title: "Decrement Minute",
      className: "btn clock-btn",
      onClick: () => this.setTime(_TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"], -1)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "glyphicon glyphicon-chevron-down"
    }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      className: "separator"
    })))));
  }

}

PickTimeClock.propTypes = {
  time: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date).isRequired,
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleTimeTable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
PickTimeClock.defaultProps = {
  setSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleTimeTable: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PickTimeClock);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeTable.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeTable.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TimeConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TimeConstants */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeConstants.js");
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; }






class PickTimeTable extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "setTime", (newTime, type) => {
      const {
        time,
        setSelected,
        toggleTimeTable
      } = this.props;
      const hours = time.getHours();
      newTime = parseInt(newTime, 10);

      if (type === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"]) {
        time.setMinutes(newTime);
      } else if (type === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"]) {
        time.setHours(hours < 12 ? newTime % 12 : newTime % 12 + 12);
      }

      setSelected(time);
      toggleTimeTable();
    });
  }

  render() {
    const hoursArray = [['12', '01', '02', '03'], ['04', '05', '06', '07'], ['08', '09', '10', '11']];
    const minutesArray = [['00', '05', '10', '15'], ['20', '25', '30', '35'], ['40', '45', '50', '55']];
    return this.props.type === _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"] ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "timepicker-hours"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, hoursArray.map((hoursRow, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", {
      key: idx
    }, hoursRow.map(hour => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      key: hour,
      className: "hour",
      onClick: () => this.setTime(hour, _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["HOUR"])
    }, hour))))))) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "timepicker-minutes"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, minutesArray.map((minutesRow, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", {
      key: idx
    }, minutesRow.map(minute => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
      key: minute,
      className: "minute",
      onClick: () => this.setTime(minute, _TimeConstants__WEBPACK_IMPORTED_MODULE_3__["MINUTE"])
    }, minute)))))));
  }

}

PickTimeTable.propTypes = {
  time: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date).isRequired,
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleTimeTable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
PickTimeTable.defaultProps = {
  setSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleTimeTable: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PickTimeTable);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeConstants.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeConstants.js ***!
  \**********************************************************************************************************/
/*! exports provided: HOUR, MINUTE, AM, PM */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOUR", function() { return HOUR; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MINUTE", function() { return MINUTE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AM", function() { return AM; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PM", function() { return PM; });
const HOUR = 'HOUR';
const MINUTE = 'MINUTE';
const AM = 'AM';
const PM = 'PM';

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeInput.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeInput.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _PickTimeTable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PickTimeTable */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeTable.js");
/* harmony import */ var _PickTimeClock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PickTimeClock */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/PickTimeClock.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TimeConstants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TimeConstants */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeConstants.js");
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; }









class TimeInput extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      isTimeTableOpen: this.props.isTimeTableOpen,
      typeOfTimeInput: _TimeConstants__WEBPACK_IMPORTED_MODULE_6__["HOUR"],
      selectedTime: this.props.time
    });

    _defineProperty(this, "toggleTimeTable", type => {
      this.setState({
        typeOfTimeInput: type,
        isTimeTableOpen: !this.state.isTimeTableOpen
      });
    });
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    const nextTime = new Date(nextProps.time);
    const prevTime = new Date(prevState.selectedTime);
    const nextIsTableOpen = nextProps.isTimeTableOpen;
    return Date.parse(nextTime) === Date.parse(prevTime) ? null : {
      selectedTime: nextTime,
      isTimeTableOpen: nextIsTableOpen
    };
  }

  render() {
    const {
      time,
      setSelected,
      className
    } = this.props;
    const {
      typeOfTimeInput,
      isTimeTableOpen
    } = this.state;
    const parsedTime = Date.parse(time) ? time : new Date();
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('timepicker', className)
    }, isTimeTableOpen ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PickTimeTable__WEBPACK_IMPORTED_MODULE_2__["default"], {
      time: parsedTime,
      setSelected: setSelected,
      type: typeOfTimeInput,
      show: isTimeTableOpen,
      toggleTimeTable: this.toggleTimeTable
    }) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PickTimeClock__WEBPACK_IMPORTED_MODULE_3__["default"], {
      time: parsedTime,
      setSelected: setSelected,
      toggleTimeTable: this.toggleTimeTable
    }));
  }

}

TimeInput.propTypes = {
  setSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  time: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  isTimeTableOpen: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
TimeInput.defaultProps = {
  setSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  time: new Date(),
  className: '',
  isTimeTableOpen: false
};
/* harmony default export */ __webpack_exports__["default"] = (TimeInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeHelpers.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeHelpers.js ***!
  \*****************************************************************************************/
/*! exports provided: getDateFromTime, formatTime */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDateFromTime", function() { return getDateFromTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTime", function() { return formatTime; });
const getDateFromTime = time => {
  if (time === '') {
    return time;
  }

  if (Date.parse(time)) {
    return new Date(time);
  } else if (Date.parse(`1/1/1 ${time}`)) {
    return new Date(`1/1/1 ${time}`);
  }

  return time;
};
const formatTime = (time, locale = 'en-US') => {
  const options = {
    hour: 'numeric',
    minute: '2-digit'
  };
  const parsedTime = getDateFromTime(time);

  if (Date.parse(parsedTime)) {
    return parsedTime.toLocaleTimeString(locale, options);
  }

  return time;
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimePicker.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimePicker.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../ */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _TimeComponents_TimeInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TimeComponents/TimeInput */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeComponents/TimeInput.js");
/* harmony import */ var _TimeHelpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TimeHelpers */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimeHelpers.js");
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; }







class TimePicker extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      value: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["getDateFromTime"])(this.props.value),
      tmpValue: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["formatTime"])(this.props.value, this.props.locale)
    });

    _defineProperty(this, "setSelected", time => {
      const newTime = Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["getDateFromTime"])(time);

      if (newTime) {
        this.setState({
          value: newTime,
          tmpValue: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["formatTime"])(newTime, this.props.locale)
        });
      } else {
        this.setState({
          tmpValue: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["formatTime"])(newTime, this.props.locale)
        });
      }
    });
  }

  render() {
    const {
      value
    } = this.state;
    const {
      locale,
      placement,
      id
    } = this.props;
    const popover = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Popover"], {
      id: id,
      className: "bootstrap-datetimepicker-widget date-time-picker-pf bootstrap-timepicker-widget"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: "list-unstyled"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
      className: "picker-switch accordion-toggle"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("table", {
      className: "table-condensed"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tbody", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", null)))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TimeComponents_TimeInput__WEBPACK_IMPORTED_MODULE_3__["default"], {
      time: value,
      setSelected: this.setSelected,
      locale: locale
    }))));
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"], {
      className: "input-group date-time-picker-pf time-picker-pf"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
      "aria-label": "time-picker-input",
      type: "text",
      value: this.state.tmpValue,
      onChange: e => this.setState({
        tmpValue: e.target.value
      }),
      onBlur: e => this.setSelected(e.target.value)
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
      trigger: "click",
      placement: placement,
      overlay: popover,
      rootClose: true
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["InputGroup"].Addon, {
      className: "picker-pf",
      onClick: () => this.setState({
        tmpValue: Object(_TimeHelpers__WEBPACK_IMPORTED_MODULE_4__["formatTime"])(value, locale)
      })
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Icon"], {
      type: "fa",
      name: "clock-o"
    }))));
  }

}

TimePicker.propTypes = {
  /** Value of the input */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),

  /** locale string for formating the time string */
  locale: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** id of the popover */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Placement of the popover */
  placement: ___WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"].propTypes.placement
};
TimePicker.defaultProps = {
  value: new Date(),
  locale: 'en-US',
  id: 'popover-time-picker',
  placement: 'top'
};
/* harmony default export */ __webpack_exports__["default"] = (TimePicker);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DateTimePicker/index.js ***!
  \***********************************************************************************/
/*! exports provided: TimePicker, DatePicker, DateTimePicker */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TimePicker */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/TimePicker.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _DatePicker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DatePicker */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DatePicker.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _DatePicker__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _DateTimePicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DateTimePicker */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/DateTimePicker.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateTimePicker", function() { return _DateTimePicker__WEBPACK_IMPORTED_MODULE_2__["default"]; });








/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NavDropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NavDropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js");
/* harmony import */ var react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap/es/Dropdown */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js");


react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].NavDropdown = _NavDropdown__WEBPACK_IMPORTED_MODULE_0__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Dropdown__WEBPACK_IMPORTED_MODULE_1__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_NavDropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/NavDropdown */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavDropdown.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_NavDropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js ***!
  \*****************************************************************************/
/*! exports provided: Dropdown, NavDropdown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NavDropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavDropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/NavDropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return _NavDropdown__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");






/**
 * DropdownKebab Component for Patternfly React
 */

const DropdownKebab = ({
  className,
  children,
  id,
  pullRight,
  componentClass,
  title,
  toggleStyle
}) => {
  const kebabClass = classnames__WEBPACK_IMPORTED_MODULE_0___default()('dropdown-kebab-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"], {
    className: kebabClass,
    id: id,
    pullRight: pullRight,
    componentClass: componentClass
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"].Toggle, {
    bsStyle: toggleStyle,
    title: title,
    noCaret: true
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    name: "ellipsis-v"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["Dropdown"].Menu, null, children));
};

DropdownKebab.propTypes = {
  /** additional kebab dropdown classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** kebab dropdown id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]).isRequired,

  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** dropdown component class */
  componentClass: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** title for kebab */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** toggle style */
  toggleStyle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
DropdownKebab.defaultProps = {
  className: '',
  children: null,
  pullRight: false,
  componentClass: _Button__WEBPACK_IMPORTED_MODULE_5__["ButtonGroup"],
  title: '',
  toggleStyle: 'link'
};
/* harmony default export */ __webpack_exports__["default"] = (DropdownKebab);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js ***!
  \**********************************************************************************/
/*! exports provided: DropdownKebab */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DropdownKebab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/DropdownKebab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownKebab", function() { return _DropdownKebab__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _components_DualListArrows__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/DualListArrows */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js");
/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js");
/* harmony import */ var _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/DualListHiddenSelect */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }










class DualList extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onItemChange", ({
      target: {
        checked,
        dataset: {
          position,
          side,
          parentPosition
        }
      }
    }) => {
      const {
        [side]: {
          selectCount: originalSelectCount,
          items: originalItems,
          isSortAsc,
          filterTerm
        }
      } = this.props;
      const items = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(originalItems);
      const item = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getItem"])(isSortAsc, items, position, parentPosition);
      let selectCount = originalSelectCount;
      item.checked = checked;

      if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasParent"])(item)) {
        const parent = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getItem"])(isSortAsc, items, parentPosition);
        parent.checked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllChildrenChecked"])(parent);
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked);
      } else if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
        const {
          children
        } = item;
        Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(children, checked);
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked, children.length);
      } else {
        selectCount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getUpdatedSelectCount"])(selectCount, checked);
      }

      let isMainChecked = false;

      if (filterTerm) {
        const filteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItemsLength"])(items);
        const selectedFilteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getSelectedFilterredItemsLength"])(items);
        isMainChecked = filteredItemsLength > 0 && selectedFilteredItemsLength === filteredItemsLength;
      } else {
        isMainChecked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllItemsChecked"])(items, selectCount);
      }

      this.props.onItemChange({
        side,
        items,
        selectCount,
        isMainChecked
      });
    });

    _defineProperty(this, "onMainCheckboxChange", ({
      target: {
        checked,
        dataset: {
          side
        }
      }
    }) => {
      const {
        [side]: {
          items: originalItems,
          filterTerm,
          selectCount: originalSelectCount
        }
      } = this.props;
      const items = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(originalItems);
      let selectCount = originalSelectCount;

      if (filterTerm) {
        const filterredItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItems"])(items);
        const toggledAmount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(filterredItems, checked);
        selectCount += toggledAmount * (checked ? 1 : -1);
      } else {
        const toggledAmount = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["toggleAllItems"])(items, checked);
        selectCount = checked ? selectCount + toggledAmount : 0;
      }

      this.props.onMainCheckboxChange({
        side,
        checked,
        items,
        selectCount
      });
    });

    _defineProperty(this, "onSortClick", ({
      target: {
        dataset: {
          side
        }
      }
    }) => {
      const {
        [side]: {
          items,
          isSortAsc
        }
      } = this.props;
      const itemsReversed = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["reverseAllItemsOrder"])(items);
      this.props.onSortClick({
        side,
        items: itemsReversed,
        isSortAsc: !isSortAsc
      });
    });

    _defineProperty(this, "onFilterChange", event => {
      /** https://reactjs.org/docs/events.html#event-pooling */
      event.persist();
      this.onFilterChangeDebounced(event);
    });

    _defineProperty(this, "emitFilterChange", ({
      target: {
        value,
        dataset: {
          side
        }
      }
    }) => {
      const {
        [side]: {
          items: originalItems,
          selectCount
        }
      } = this.props;
      const filterTerm = value.trim();

      if (!value) {
        const items = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["makeAllHiddenFilteredItemsVisible"])(originalItems);
        const isMainChecked = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isAllItemsChecked"])(items, selectCount);
        this.props.onFilterChange({
          side,
          filterTerm,
          items,
          isMainChecked
        });
        return;
      }

      const items = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["filterByHiding"])(originalItems, filterTerm);
      const filteredItemsLength = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getFilterredItemsLength"])(items);
      const isMainChecked = filteredItemsLength > 0 && Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["getSelectedFilterredItemsLength"])(items) === filteredItemsLength;
      this.props.onFilterChange({
        side,
        filterTerm,
        items,
        isMainChecked
      });
    });

    _defineProperty(this, "moveTo", otherSide => {
      const side = otherSide === 'right' ? 'left' : 'right';
      const sideState = this.props[side];
      const otherSideState = this.props[otherSide];
      const sideItemsWithRemainChildren = [];
      let otherSideItems = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(otherSideState.items);
      let sideItems = sideState.items.filter(item => {
        if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemSelected"])(item)) {
          if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
            const {
              isParentExist,
              parentIndex
            } = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemExistOnList"])(otherSideItems, item.label);

            if (isParentExist) {
              const {
                children
              } = otherSideItems[parentIndex];
              children.push(...item.children);
              return false;
            }
          }

          otherSideItems.push(item);
          return false;
        } else if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["itemHasChildren"])(item)) {
          const selectedChildren = [];
          const unselectedChildren = [];
          item.children.forEach(childItem => {
            if (Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemSelected"])(childItem)) {
              selectedChildren.push(childItem);
            } else {
              unselectedChildren.push(childItem);
            }
          });

          if (selectedChildren.length > 0) {
            const {
              isParentExist,
              parentIndex
            } = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["isItemExistOnList"])(otherSideItems, item.label);

            if (isParentExist) {
              otherSideItems[parentIndex].children.push(...selectedChildren);
            } else {
              otherSideItems.push(_objectSpread({}, item, {
                checked: true,
                children: selectedChildren
              }));
            }

            if (unselectedChildren.length > 0) {
              sideItemsWithRemainChildren.push(_objectSpread({}, item, {
                children: unselectedChildren
              }));
            }

            return false;
          }
        }

        return true;
      });

      if (sideItemsWithRemainChildren.length > 0) {
        sideItems.push(...sideItemsWithRemainChildren);
      }

      const updatedSideState = _objectSpread({}, sideState, {
        selectCount: 0,
        isMainChecked: false
      });

      const updatedOtherSideState = _objectSpread({}, otherSideState, {
        selectCount: 0,
        isMainChecked: false
      });

      sideItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["arrangeArray"])(_objectSpread({}, updatedSideState, {
        items: sideItems
      }));
      otherSideItems = Object(_helpers__WEBPACK_IMPORTED_MODULE_7__["arrangeArray"])(_objectSpread({}, updatedOtherSideState, {
        items: otherSideItems,
        resetAllSelected: true
      }));
      this.props.onChange({
        [side]: _objectSpread({}, updatedSideState, {
          items: sideItems
        }),
        [otherSide]: _objectSpread({}, updatedOtherSideState, {
          items: otherSideItems
        })
      });
    });

    _defineProperty(this, "leftArrowClick", () => {
      const {
        arrows: {
          left
        }
      } = this.props;
      left.onClick();
      this.moveTo('left');
    });

    _defineProperty(this, "rightArrowClick", () => {
      const {
        arrows: {
          right
        }
      } = this.props;
      right.onClick();
      this.moveTo('right');
    });

    this.onFilterChangeDebounced = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["debounce"])(this.emitFilterChange, 200);
  }

  render() {
    const {
      left,
      right,
      arrows,
      allowHiddenInputs
    } = this.props;
    const hiddenInputs = allowHiddenInputs ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, left.inputProps, {
      items: left.items
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, right.inputProps, {
      items: right.items
    }))) : null;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "dual-list-pf"
    }, hiddenInputs, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
      side: "left"
    }, left, {
      onItemChange: this.onItemChange,
      onSortClick: this.onSortClick,
      onFilterChange: this.onFilterChange,
      onMainCheckboxChange: this.onMainCheckboxChange
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListArrows__WEBPACK_IMPORTED_MODULE_3__["default"], {
      left: {
        onClick: this.leftArrowClick,
        ariaLabel: arrows.left.ariaLabel
      },
      right: {
        onClick: this.rightArrowClick,
        ariaLabel: arrows.right.ariaLabel
      }
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_DualListSelector__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
      side: "right"
    }, right, {
      onItemChange: this.onItemChange,
      onSortClick: this.onSortClick,
      onFilterChange: this.onFilterChange,
      onMainCheckboxChange: this.onMainCheckboxChange
    })));
  }

}

DualList.propTypes = {
  /**
   * - items: Array of objects that must contain a label and a value.
   * - options: The Kebab menu items.
   * - isSortAsc: Set the list items sorting direction.
   * - sortBy: set the list items sorting factor.
   * - isMainChecked: Set the main checkbox state.
   */
  left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
      children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
        label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
        value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
      }))
    })),
    options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
    isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    sortBy: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    inputProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  }),

  /**
   * - items: Array of objects that must contain a label and a value.
   * - options: The Kebab menu items.
   * - isSortAsc: Set the list items sorting direction.
   * - isMainChecked: Set the main checkbox state.
   * - sortBy: set the list items sorting factor.
   */
  right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    })),
    options: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
    isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    sortBy: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
    inputProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  }),

  /**
   * - Conatains the left and right arrows properties,
   * - Where in every object there are:
   * - onClick - function which determine the onClick event,
   * - ariaLabel - set the aria-label text.
   */
  arrows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
      ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
    }),
    right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
      ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
    })
  }),

  /**
   * Allows adding hidden select inputs
   * that reflects the dual list selected items.
   * It can be used while submitting a form to access the dual list data.
   * */
  allowHiddenInputs: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /**
   * Function that runs after an item was clicked.
   * receives an object of: { side, items, selectCount, isMainChecked } as a callback.
   */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the sort icon was clicked.
   * receives an object of: { side, items, isSortAsc } as a callback.
   */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the filter input has changed.
   * receives an object of: { side, filterTerm } as a callback.
   */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the main checkbox was clicked.
   * receives an object of: { side, checked, items, selectCount } as a callback.
   */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after items have been moved between the lists.
   * receives an object of: { left, right } updated sides as a callback.
   */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DualList.defaultProps = {
  left: {
    items: [],
    options: null,
    isSortAsc: true,
    sortBy: 'label',
    filterTerm: '',
    isMainChecked: false,
    inputProps: null
  },
  right: {
    items: [],
    options: null,
    isSortAsc: true,
    sortBy: 'label',
    filterTerm: '',
    isMainChecked: false,
    inputProps: null
  },
  arrows: {
    left: {
      onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
      ariaLabel: null
    },
    right: {
      onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
      ariaLabel: null
    }
  },
  allowHiddenInputs: false,
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }








class DualListControlled extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onItemChange", ({
      side,
      items,
      selectCount,
      isMainChecked
    }) => {
      const {
        onItemChange
      } = this.props;
      this.setState({
        [side]: _objectSpread({}, this.state[side], {
          items,
          selectCount,
          isMainChecked
        })
      }, () => onItemChange(this.state));
    });

    _defineProperty(this, "onMainCheckboxChange", ({
      side,
      checked,
      items,
      selectCount
    }) => {
      const {
        onMainCheckboxChange
      } = this.props;
      this.setState({
        [side]: _objectSpread({}, this.state[side], {
          items,
          selectCount,
          isMainChecked: checked
        })
      }, () => onMainCheckboxChange(this.state));
    });

    _defineProperty(this, "onSortClick", ({
      side,
      items,
      isSortAsc
    }) => {
      const {
        onSortClick
      } = this.props;
      this.setState({
        [side]: _objectSpread({}, this.state[side], {
          items,
          isSortAsc
        })
      }, () => onSortClick(this.state));
    });

    _defineProperty(this, "onFilterChange", ({
      side,
      filterTerm,
      items,
      isMainChecked
    }) => {
      const {
        onFilterChange
      } = this.props;
      this.setState({
        [side]: _objectSpread({}, this.state[side], {
          filterTerm,
          items,
          isMainChecked
        })
      }, () => onFilterChange(this.state));
    });

    _defineProperty(this, "onChange", ({
      left,
      right
    }) => {
      const {
        onChange
      } = this.props;
      this.setState({
        left,
        right
      }, () => onChange(this.state));
    });

    this.state = _objectSpread({
      prevProps: props
    }, Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["adjustProps"])(props));
  }

  componentDidMount() {
    const {
      onComponentInit
    } = this.props;
    onComponentInit(this.state);
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    return !Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isEqual"])(nextProps, prevState.prevProps) ? _objectSpread({
      prevProps: nextProps
    }, Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["adjustProps"])(nextProps)) : null;
  }

  render() {
    const {
      left,
      right,
      allowHiddenInputs
    } = this.state;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["DualList"], {
      left: _objectSpread({}, left),
      right: _objectSpread({}, right),
      onItemChange: this.onItemChange,
      onSortClick: this.onSortClick,
      onFilterChange: this.onFilterChange,
      onMainCheckboxChange: this.onMainCheckboxChange,
      onChange: this.onChange,
      allowHiddenInputs: allowHiddenInputs
    });
  }

}

DualListControlled.propTypes = {
  /**
   * Function that runs after items have been moved between the lists.
   * Receives the updated state as a callback.
   */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after an item was clicked.
   * Receives the updated state as a callback.
   */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the main checkbox was clicked.
   * Receives the updated state as a callback.
   */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the sort icon was clicked.
   * Receives the updated state as a callback.
   */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the filter input has changed.
   * Receives the updated state as a callback.
   */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /**
   * Function that runs after the component had mounted.
   * Receives the updated state as a callback.
   */
  onComponentInit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DualListControlled.defaultProps = {
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  onComponentInit: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListControlled);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






const DualListArrows = ({
  right,
  left
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "dual-list-pf-arrows"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  "aria-label": right.ariaLabel,
  name: "chevron-circle-down",
  size: "lg",
  tabIndex: "0",
  onClick: right.onClick,
  onKeyPress: right.onClick
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  "aria-label": left.ariaLabel,
  name: "chevron-circle-up",
  size: "lg",
  tabIndex: "0",
  onClick: left.onClick,
  onKeyPress: left.onClick
}));

DualListArrows.propTypes = {
  left: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** Determine what happens on left/up arrow click */
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

    /** Set the left/up arrow aria-label */
    ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  right: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
DualListArrows.defaultProps = {
  left: {
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
    ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["LEFT_ARROW_ARIA_LABEL"]
  },
  right: {
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
    ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["RIGHT_ARROW_ARIA_LABEL"]
  }
};
/* harmony default export */ __webpack_exports__["default"] = (DualListArrows);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListItems */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");







const DualListBody = ({
  items,
  filterTerm,
  onItemChange,
  side,
  noItemsFoundMessage,
  noItemsMessage
}) => {
  let listItems;

  if (items.length > 0) {
    listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItems__WEBPACK_IMPORTED_MODULE_2__["default"], {
      items: items,
      filterTerm: filterTerm,
      onChange: onItemChange,
      side: side
    });

    if (Object(_helpers__WEBPACK_IMPORTED_MODULE_4__["getFilterredItemsLength"])(items) === 0) {
      listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "dual-list-pf-no-items"
      }, noItemsFoundMessage);
    }
  } else {
    listItems = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "dual-list-pf-no-items"
    }, noItemsMessage);
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "dual-list-pf-body"
  }, listItems);
};

DualListBody.propTypes = {
  /** An array of items to create list items elements uppon */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
  })),

  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** A function that is running when the item selected state is toggled. */
  onItemChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the body's message when no items were found while filtering */
  noItemsFoundMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the body's message when there are no items at all */
  noItemsMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DualListBody.defaultProps = {
  items: [],
  filterTerm: null,
  onItemChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  side: null,
  noItemsFoundMessage: _constants__WEBPACK_IMPORTED_MODULE_3__["NO_ITEMS_FOUND"],
  noItemsMessage: _constants__WEBPACK_IMPORTED_MODULE_3__["NO_ITEMS"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");




const DualListCounter = ({
  selected,
  total,
  getCounterMessage
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("strong", null, getCounterMessage(selected, total));

DualListCounter.propTypes = {
  /** The Amount of selected items in the selector */
  selected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** The Amount of total items in the selectror */
  total: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Determines the counter message in the selector's footer,
   * receives the selected and total amounts of items.
   */
  getCounterMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DualListCounter.defaultProps = {
  selected: 0,
  total: 0,
  getCounterMessage: _helpers__WEBPACK_IMPORTED_MODULE_2__["getCounterMessage"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListCounter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var uuid_v1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid/v1 */ "./node_modules/uuid/v1.js");
/* harmony import */ var uuid_v1__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid_v1__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");





const DualListDropDown = ({
  id,
  children
}) => {
  const kebabID = id || `dual-list-pf-kebab-${uuid_v1__WEBPACK_IMPORTED_MODULE_2___default()()}`;
  return children ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["DropdownKebab"], {
    id: kebabID,
    pullRight: true
  }, children) : null;
};

DualListDropDown.propTypes = {
  /** The menu items */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** ID for the kebab container */
  id: 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.number])
};
DualListDropDown.defaultProps = {
  children: null,
  id: null
};
/* harmony default export */ __webpack_exports__["default"] = (DualListDropDown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






const DualListFilter = ({
  onChange,
  side,
  placeHolder
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: "dual-list-pf-filter"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
  onChange: onChange,
  type: "text",
  placeholder: placeHolder,
  autoComplete: "off",
  "data-side": side
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  size: "lg",
  name: "search",
  className: "search-icon"
}));

DualListFilter.propTypes = {
  /** The filter function that runs on the list items when the input changes. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Filter's placeholder. */
  placeHolder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DualListFilter.defaultProps = {
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null,
  placeHolder: _constants__WEBPACK_IMPORTED_MODULE_4__["FILTER_LABEL"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListFilter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListCounter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListCounter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js");





const DualListFooter = ({
  items,
  selectCount,
  getCounterMessage
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "dual-list-pf-footer"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListCounter__WEBPACK_IMPORTED_MODULE_2__["default"], {
  selected: selectCount,
  total: Object(_helpers__WEBPACK_IMPORTED_MODULE_3__["getItemsLength"])(items),
  getCounterMessage: getCounterMessage
}));

DualListFooter.propTypes = {
  /** Items array to get the length from. */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** Amount of selected items in the selector. */
  selectCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Determines the counter message in the selector's footer,
   * receives the selected and total amounts of items.
   */
  getCounterMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DualListFooter.defaultProps = {
  items: [],
  selectCount: 0,
  getCounterMessage: _helpers__WEBPACK_IMPORTED_MODULE_3__["getCounterMessage"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListFilter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListFilter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js");
/* harmony import */ var _DualListSort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSort */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js");
/* harmony import */ var _DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DualListMainCheckbox */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js");
/* harmony import */ var _DualListDropDown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DualListDropDown */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListDropDown.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");









const DualListHeading = ({
  isSortAsc,
  onSortClick,
  onFilterChange,
  onMainCheckboxChange,
  kebabMenu,
  side,
  sortAriaLabel,
  isMainChecked,
  kebabID
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "dual-list-pf-heading"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], {
  side: side,
  onChange: onMainCheckboxChange,
  isChecked: isMainChecked
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListFilter__WEBPACK_IMPORTED_MODULE_2__["default"], {
  side: side,
  onChange: onFilterChange
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListSort__WEBPACK_IMPORTED_MODULE_3__["default"], {
  side: side,
  onClick: onSortClick,
  isSortAsc: isSortAsc,
  ariaLabel: sortAriaLabel
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListDropDown__WEBPACK_IMPORTED_MODULE_5__["default"], {
  id: kebabID
}, kebabMenu));

DualListHeading.propTypes = {
  /** Which type of sort is it to determine the right icon. */
  isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** The function which is running when sort icon is clicked. */
  onSortClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The filter function that runs on the list items when the input changes. */
  onFilterChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The function which is being called on checked state toggled. */
  onMainCheckboxChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The Kebab menu items */
  kebabMenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Which side is the selector, passed by the onClick function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the aria-label of the icon. */
  sortAriaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** controlls the main checkbox */
  isMainChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** ID for the kebab container */
  kebabID: 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.number])
};
DualListHeading.defaultProps = {
  isSortAsc: true,
  onSortClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFilterChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onMainCheckboxChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  kebabMenu: null,
  side: null,
  sortAriaLabel: _constants__WEBPACK_IMPORTED_MODULE_7__["SORT_ARIA_LABEL"],
  isMainChecked: false,
  kebabID: null
};
/* harmony default export */ __webpack_exports__["default"] = (DualListHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js ***!
  \***************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const DualListHiddenSelect = (_ref) => {
  let {
    items
  } = _ref,
      props = _objectWithoutProperties(_ref, ["items"]);

  const selectedValues = [];
  const options = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, items ? items.map(({
    value,
    children,
    label
  }, index) => {
    if (children) {
      return children.map(({
        value: childValue,
        label: childLabel
      }, childIndex) => {
        selectedValues.push(childValue);
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: `${index}-${childIndex}`,
          value: childValue
        }, childLabel);
      });
    }

    selectedValues.push(value);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
      key: index,
      value: value
    }, label);
  }) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null));
  return (// Added 'onChange' after the browser threw a warning of using the value attribute without it.
    react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", _extends({}, props, {
      multiple: true,
      hidden: true,
      value: selectedValues,
      onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
    }), options)
  );
};

DualListHiddenSelect.propTypes = {
  /** An array of items */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
    children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    }))
  }))
};
DualListHiddenSelect.defaultProps = {
  items: []
};
/* harmony default export */ __webpack_exports__["default"] = (DualListHiddenSelect);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _DualListItemTooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListItemTooltip */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js");
/* harmony import */ var _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../components/TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");






const {
  Highlighter
} = _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_4__["TypeAheadSelect"];

const DualListItem = ({
  checked,
  className,
  position,
  parentPosition,
  value,
  label,
  filterTerm,
  onChange,
  side,
  hidden,
  hiddenByFilter,
  disabled,
  tooltipID,
  tooltipText
}) => {
  const cx = classnames__WEBPACK_IMPORTED_MODULE_2___default()('dual-list-pf-item', className, checked && 'selected', disabled && 'disabled');
  const itemLabel = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "dual-list-pf-item-label"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Highlighter, {
    search: filterTerm
  }, label));
  const item = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
    className: cx,
    hidden: hiddenByFilter || hidden
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
    type: "checkbox",
    "data-position": position,
    "data-parent-position": parentPosition,
    onChange: onChange,
    checked: checked || false,
    value: value,
    "data-side": side,
    disabled: disabled
  }), itemLabel);

  const getTooltipID = () => {
    let uniqueTooltipID = `dual-list-item-tooltip-${side}`;

    if (parentPosition) {
      uniqueTooltipID += `-${parentPosition}`;
    }

    uniqueTooltipID += `-${position}`;
    return uniqueTooltipID;
  };

  return tooltipText ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItemTooltip__WEBPACK_IMPORTED_MODULE_3__["default"], {
    text: tooltipText,
    id: tooltipID || getTooltipID()
  }, item) : item;
};

DualListItem.propTypes = {
  /** Is the element chacked */
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Additional html class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The element position, used by the onChange function. */
  position: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** The element parent position, used by the onChange function. */
  parentPosition: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** The element value, used by the onChange function. */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),

  /** The element label, used by the onChange function. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** A function that is running when the item selected state is toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the item visibillity when filtering. */
  hiddenByFilter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Sets the item default visibillity, can't be reverted. */
  hidden: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Disable the item to move between lists */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** unique tooltip ID */
  tooltipID: 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.number]),

  /** text to be shown on the tooltip */
  tooltipText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DualListItem.defaultProps = {
  checked: false,
  className: null,
  parentPosition: null,
  position: 0,
  value: '',
  label: null,
  filterTerm: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  side: null,
  hiddenByFilter: false,
  hidden: false,
  disabled: false,
  tooltipID: null,
  tooltipText: null
};
/* harmony default export */ __webpack_exports__["default"] = (DualListItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");




const DualListItemTooltip = ({
  id,
  text,
  children
}) => {
  const tooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Tooltip"], {
    id: id
  }, text);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
    overlay: tooltip,
    placement: "top",
    trigger: ['hover', 'focus'],
    delayShow: 150
  }, children);
};

DualListItemTooltip.propTypes = {
  /** unique tooltip ID */
  id: 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.number]),

  /** text to be shown on the tooltip */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
DualListItemTooltip.defaultProps = {
  id: null,
  text: null,
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (DualListItemTooltip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DualListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListItem */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }






const DualListItems = ({
  items,
  filterTerm,
  onChange,
  side
}) => {
  const menuItems = items.map((item, index) => {
    const {
      children
    } = item;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, {
      key: `fragment-${index}`
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItem__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
      className: children && 'parent'
    }, item, {
      key: `item-${index}`,
      filterTerm: filterTerm,
      onChange: onChange,
      side: side
    })), children && children.map((child, childIndex) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListItem__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
      className: "child"
    }, child, {
      key: `${item.label}-child${childIndex}`,
      filterTerm: filterTerm,
      onChange: onChange,
      side: side
    }))));
  });
  return menuItems;
};

DualListItems.propTypes = {
  /** An array of items to create list items elements uppon */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]).isRequired,
    children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
      label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
      value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string])
    }))
  })),

  /** The term which is flitering the list. */
  filterTerm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** A function that is running when the item selected state is toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The side of the selector. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DualListItems.defaultProps = {
  items: [],
  filterTerm: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null
};
/* harmony default export */ __webpack_exports__["default"] = (DualListItems);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js ***!
  \***************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");




const DualListMainCheckbox = ({
  isChecked,
  side,
  onChange
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
  className: "dual-list-pf-main-checkbox",
  type: "checkbox",
  "data-side": side,
  onChange: onChange,
  checked: isChecked
});

DualListMainCheckbox.propTypes = {
  /** controlls the checkbox */
  isChecked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** the side of the selectors, passed in the onChange function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The function which is being called on checked state toggled. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DualListMainCheckbox.defaultProps = {
  isChecked: false,
  side: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListMainCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _DualListHeading__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DualListHeading */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js");
/* harmony import */ var _DualListBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListBody */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js");
/* harmony import */ var _DualListFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListFooter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js");





const DualListSelector = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "dual-list-pf-selector"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListHeading__WEBPACK_IMPORTED_MODULE_1__["default"], props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListBody__WEBPACK_IMPORTED_MODULE_2__["default"], props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DualListFooter__WEBPACK_IMPORTED_MODULE_3__["default"], props));

/* harmony default export */ __webpack_exports__["default"] = (DualListSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../.. */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js");






const DualListSort = ({
  onClick,
  side,
  isSortAsc,
  ariaLabel
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(___WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  "aria-label": ariaLabel,
  className: "dual-list-pf-sort-icon",
  type: "pf",
  name: `sort-common-${isSortAsc ? 'asc' : 'desc'}`,
  "data-side": side,
  tabIndex: "0",
  onClick: onClick,
  onKeyPress: onClick
});

DualListSort.propTypes = {
  /** The function which is running when sort icon is clicked. */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Which side is the selector, passed by the onClick function. */
  side: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Which type of sort is it to determine the right icon. */
  isSortAsc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Sets the aria-label of the icon. */
  ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DualListSort.defaultProps = {
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  side: null,
  isSortAsc: true,
  ariaLabel: _constants__WEBPACK_IMPORTED_MODULE_4__["SORT_ARIA_LABEL"]
};
/* harmony default export */ __webpack_exports__["default"] = (DualListSort);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/constants.js ***!
  \*****************************************************************************************/
/*! exports provided: NO_ITEMS_FOUND, NO_ITEMS, SORT_ARIA_LABEL, FILTER_LABEL, RIGHT_ARROW_ARIA_LABEL, LEFT_ARROW_ARIA_LABEL */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ITEMS_FOUND", function() { return NO_ITEMS_FOUND; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ITEMS", function() { return NO_ITEMS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SORT_ARIA_LABEL", function() { return SORT_ARIA_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FILTER_LABEL", function() { return FILTER_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RIGHT_ARROW_ARIA_LABEL", function() { return RIGHT_ARROW_ARIA_LABEL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEFT_ARROW_ARIA_LABEL", function() { return LEFT_ARROW_ARIA_LABEL; });
const NO_ITEMS_FOUND = 'No items were found';
const NO_ITEMS = 'No items to show';
const SORT_ARIA_LABEL = 'reverse-sort-order';
const FILTER_LABEL = 'Filter';
const RIGHT_ARROW_ARIA_LABEL = 'Remove Selection';
const LEFT_ARROW_ARIA_LABEL = 'Add Selection';

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/helpers.js ***!
  \***************************************************************************************/
/*! exports provided: filterByHiding, makeAllHiddenFilteredItemsVisible, sortItems, shouldItemBeChecked, arrangeArray, getDefaultProps, getCheckedAmount, getCounterMessage, adjustProps, isAllChildrenChecked, getItemsLength, reverseAllItemsOrder, getItem, getUpdatedSelectCount, itemHasParent, itemHasChildren, getItemPosition, toggleAllItems, isAllItemsChecked, isItemExistOnList, getFilterredItems, getFilterredItemsLength, getSelectedFilterredItemsLength, isItemSelected, isItemHiddenByFilter, isItemDisabled */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterByHiding", function() { return filterByHiding; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeAllHiddenFilteredItemsVisible", function() { return makeAllHiddenFilteredItemsVisible; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortItems", function() { return sortItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldItemBeChecked", function() { return shouldItemBeChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrangeArray", function() { return arrangeArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultProps", function() { return getDefaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCheckedAmount", function() { return getCheckedAmount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCounterMessage", function() { return getCounterMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustProps", function() { return adjustProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllChildrenChecked", function() { return isAllChildrenChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemsLength", function() { return getItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reverseAllItemsOrder", function() { return reverseAllItemsOrder; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItem", function() { return getItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUpdatedSelectCount", function() { return getUpdatedSelectCount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemHasParent", function() { return itemHasParent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemHasChildren", function() { return itemHasChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemPosition", function() { return getItemPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleAllItems", function() { return toggleAllItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllItemsChecked", function() { return isAllItemsChecked; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemExistOnList", function() { return isItemExistOnList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterredItems", function() { return getFilterredItems; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterredItemsLength", function() { return getFilterredItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectedFilterredItemsLength", function() { return getSelectedFilterredItemsLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemSelected", function() { return isItemSelected; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemHiddenByFilter", function() { return isItemHiddenByFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isItemDisabled", function() { return isItemDisabled; });
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; }

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; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }

const filterByHiding = (list, value) => {
  const filterValue = value.toLowerCase();
  return list.map(item => {
    const itemLabel = item.label.toLowerCase();
    const included = itemLabel.includes(filterValue); // if the item label matches the filter value.

    item.hiddenByFilter = !included; // if it is a parent and its label doesn't match the filter value.

    if (itemHasChildren(item)) {
      if (isItemHiddenByFilter(item)) {
        let childrenIncludedAmount = 0;
        item.children.forEach(childItem => {
          if (childItem.hidden) {
            return;
          }

          const childLabel = childItem.label.toLowerCase();
          const childIncluded = childLabel.includes(filterValue);
          childItem.hiddenByFilter = !childIncluded;
          childrenIncludedAmount += childIncluded ? 1 : 0;
        });
        item.hiddenByFilter = childrenIncludedAmount === 0;
      } else {
        item.children = makeAllHiddenFilteredItemsVisible(item.children);
      }
    }

    return item;
  });
}; // We don't want to touch default hidden items that the consumer set to hidden.

const makeAllHiddenFilteredItemsVisible = list => list.map(item => {
  item.hiddenByFilter = false;

  if (itemHasChildren(item)) {
    item.children.forEach(childItem => {
      childItem.hiddenByFilter = false;
    });
  }

  return item;
});
const sortItems = (items, sortFactor = 'label') => items.sort((a, b) => a[sortFactor].toLowerCase() > b[sortFactor].toLowerCase() ? 1 : -1);
const shouldItemBeChecked = (item, isMainChecked, resetAllSelected) => {
  let checked = item.checked || false;
  const isItemEditable = !item.disabled || !item.hidden || !item.isItemHiddenByFilter;

  if (!isItemEditable) {
    return checked;
  }

  if (resetAllSelected) {
    checked = false;
  } else if (isMainChecked) {
    checked = isMainChecked;
  }

  return checked;
};
const arrangeArray = ({
  items,
  sortBy,
  isSortAsc = true,
  isMainChecked = false,
  resetAllSelected = false
}) => {
  // sort the items
  let itemsCopy = sortItems(items, sortBy).map((item, index) => {
    // add position to the item and update if the main checkbox is initialy checked.
    const modifiedItem = _objectSpread({}, item, {
      position: index,
      checked: shouldItemBeChecked(item, isMainChecked, resetAllSelected)
    });

    if (itemHasChildren(item)) {
      // sort the children array and add a position, parentPosition and update check state.
      modifiedItem.children = sortItems(item.children, sortBy).map((child, childIndex) => _objectSpread({}, child, {
        position: childIndex,
        parentPosition: index,
        checked: shouldItemBeChecked(child, isMainChecked, resetAllSelected)
      }));
    }

    return modifiedItem;
  });
  itemsCopy = isSortAsc ? itemsCopy : reverseAllItemsOrder(itemsCopy);
  return itemsCopy;
};
const getDefaultProps = () => ({
  items: [],
  options: null,
  isSortAsc: true,
  sortBy: 'label',
  filterTerm: '',
  isMainChecked: false
});
const getCheckedAmount = items => {
  let checkedAmount = 0;
  items.forEach(item => {
    if (isItemSelected(item)) {
      checkedAmount += 1;

      if (itemHasChildren(item)) {
        checkedAmount += item.children.length;
      }
    } else if (itemHasChildren(item)) {
      item.children.forEach(child => {
        if (isItemSelected(child)) {
          checkedAmount += 1;
        }
      });
    }
  });
  return checkedAmount;
};
const getCounterMessage = (selected, total) => `${selected} of ${total} items selected`;
const adjustProps = (_ref) => {
  let {
    left,
    right
  } = _ref,
      props = _objectWithoutProperties(_ref, ["left", "right"]);

  const defaultProps = getDefaultProps();
  const leftItems = arrangeArray(_objectSpread({}, left));
  const rightItems = arrangeArray(_objectSpread({}, right));
  return _objectSpread({}, props, {
    left: _objectSpread({}, defaultProps, {}, left, {
      items: leftItems,
      selectCount: getCheckedAmount(leftItems)
    }),
    right: _objectSpread({}, defaultProps, {}, right, {
      items: rightItems,
      selectCount: getCheckedAmount(rightItems)
    })
  });
};
const isAllChildrenChecked = ({
  children
}) => children && children.filter(({
  checked
}) => checked).length === children.length;
const getItemsLength = items => {
  let {
    length
  } = items;
  let hiddenItemsAmount = 0;

  if (length === 0) {
    return 0;
  }

  items.forEach(({
    hidden,
    children
  }) => {
    if (hidden) {
      hiddenItemsAmount += 1;
    }

    if (children) {
      length -= 1;
      children.forEach(child => {
        if (!child.hidden) {
          length += 1;
        }
      });
    }
  });
  return length - hiddenItemsAmount;
};
const reverseAllItemsOrder = items => {
  const reversedItems = [...items].reverse();
  return reversedItems.map(item => item.children ? _objectSpread({}, item, {
    children: item.children.reverse()
  }) : item);
};
const getItem = (isSortAsc, items, position, parentPosition) => {
  // if item is a child.
  if (parentPosition !== undefined) {
    const parent = items[getItemPosition(items, parentPosition, isSortAsc)];
    return parent.children[getItemPosition(parent.children, position, isSortAsc)];
  }

  return items[getItemPosition(items, position, isSortAsc)];
};
const getUpdatedSelectCount = (selectCount, checked, amount = 1) => selectCount + (checked ? amount : -1 * amount);
const itemHasParent = item => item.parentPosition !== undefined;
const itemHasChildren = item => item.children !== undefined;
const getItemPosition = (array, position, isSortAsc) => isSortAsc ? position : array.length - position - 1;
const toggleAllItems = (list, checked) => {
  let toggleCount = 0;
  list.forEach(item => {
    if (item.disabled || item.hidden) {
      return;
    }

    if (item.checked !== checked) {
      item.checked = checked;
      toggleCount += 1;
    }

    if (itemHasChildren(item)) {
      let childrenToggleCount = 0;
      item.children.forEach(childItem => {
        if (childItem.disabled || childItem.hidden) {
          return;
        }

        if (childItem.checked !== checked) {
          childItem.checked = checked;
          childrenToggleCount += 1;
        }
      });

      if (childrenToggleCount > 0) {
        toggleCount += childrenToggleCount - 1;
      }
    }
  });
  return toggleCount;
};
const isAllItemsChecked = (items, selectCount) => selectCount > 0 && selectCount === getItemsLength(items);
const isItemExistOnList = (list, itemLabel) => {
  let parentIndex = null; // find if the parent already exist on the list.

  list.forEach((listItem, index) => {
    if (listItem.label === itemLabel) {
      parentIndex = index;
    }
  });
  return {
    isParentExist: parentIndex !== null,
    parentIndex
  };
};
const getFilterredItems = list => {
  const filteredItems = [];
  list.forEach(item => {
    if (!isItemHiddenByFilter(item)) {
      filteredItems.push(item);
    } else if (itemHasChildren(item)) {
      const filteredChildren = [];
      item.children.forEach(childItem => {
        if (!isItemHiddenByFilter(childItem)) {
          filteredChildren.push(childItem);
        }
      });

      if (filteredChildren.length > 0) {
        filteredItems.push(_objectSpread({}, item, {
          children: filteredChildren
        }));
      }
    }
  });
  return filteredItems;
};
const getFilterredItemsLength = list => getItemsLength(getFilterredItems(list));
const getSelectedFilterredItemsLength = list => {
  const filteredItems = getFilterredItems(list);
  let selectedAmount = 0;
  filteredItems.forEach(item => {
    if (isItemSelected(item)) {
      selectedAmount += 1;

      if (itemHasChildren(item)) {
        let selectedChildrenAmount = 0;
        item.children.forEach(childItem => {
          if (isItemSelected(childItem)) {
            selectedChildrenAmount += 1;
          }
        });

        if (selectedChildrenAmount) {
          selectedAmount += selectedChildrenAmount - 1;
        }
      }
    }
  });
  return selectedAmount;
};
const isItemSelected = item => item.checked;
const isItemHiddenByFilter = item => item.hiddenByFilter;
const isItemDisabled = item => item.disabled;

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js ***!
  \*************************************************************************************/
/*! exports provided: DualList, DualListArrows, DualListBody, DualListControlled, DualListCounter, DualListFilter, DualListFooter, DualListHeading, DualListHiddenSelect, DualListItem, DualListItems, DualListItemTooltip, DualListMainCheckbox, DualListSelector, DualListSort */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DualList__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DualList */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualList", function() { return _DualList__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _components_DualListArrows__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/DualListArrows */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListArrows.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListArrows", function() { return _components_DualListArrows__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _components_DualListBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/DualListBody */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListBody", function() { return _components_DualListBody__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _DualListControlled__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListControlled */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/DualListControlled.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListControlled", function() { return _DualListControlled__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _components_DualListCounter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/DualListCounter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListCounter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListCounter", function() { return _components_DualListCounter__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _components_DualListFilter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/DualListFilter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFilter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFilter", function() { return _components_DualListFilter__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _components_DualListFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/DualListFooter */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFooter", function() { return _components_DualListFooter__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _components_DualListHeading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/DualListHeading */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHeading", function() { return _components_DualListHeading__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/DualListHiddenSelect */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListHiddenSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHiddenSelect", function() { return _components_DualListHiddenSelect__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _components_DualListItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/DualListItem */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItem", function() { return _components_DualListItem__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _components_DualListItems__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/DualListItems */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItems.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItems", function() { return _components_DualListItems__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _components_DualListItemTooltip__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/DualListItemTooltip */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListItemTooltip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItemTooltip", function() { return _components_DualListItemTooltip__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _components_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/DualListMainCheckbox */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListMainCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListMainCheckbox", function() { return _components_DualListMainCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSelector", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _components_DualListSort__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/DualListSort */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/components/DualListSort.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSort", function() { return _components_DualListSort__WEBPACK_IMPORTED_MODULE_14__["default"]; });


















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmptyStateIcon */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js");
/* harmony import */ var _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmptyStateTitle */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js");
/* harmony import */ var _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmptyStateInfo */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js");
/* harmony import */ var _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./EmptyStateHelp */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js");
/* harmony import */ var _EmptyStateAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./EmptyStateAction */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }









/**
 * Empty State Component for Patternfly React
 */

const EmptyState = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

EmptyState.propTypes = {
  /** Child nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyState.defaultProps = {
  className: ''
};
EmptyState.Title = _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_4__["default"];
EmptyState.Icon = _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_3__["default"];
EmptyState.Info = _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_5__["default"];
EmptyState.Help = _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_6__["default"];
EmptyState.Action = _EmptyStateAction__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (EmptyState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * EmptyStateAction renders contents of the element
 */

const EmptyStateAction = (_ref) => {
  let {
    children,
    className,
    secondary
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "secondary"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'blank-slate-pf-main-action': !secondary,
    'blank-slate-pf-secondary-action': secondary
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

EmptyStateAction.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Turn on secondary container styling */
  secondary: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
EmptyStateAction.defaultProps = {
  className: '',
  secondary: false
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateAction);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * EmptyStateHelp renders contents of the element
 */

const EmptyStateHelp = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-helpLink', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", _extends({
    className: classes
  }, props), children);
};

EmptyStateHelp.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateHelp.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateHelp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * EmptyStateIcon renders element
 */

const EmptyStateIcon = (_ref) => {
  let {
    className,
    type,
    name
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "type", "name"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-icon', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({
    type: type,
    name: name
  }, props)));
};

EmptyStateIcon.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Icon type (pf or fa) */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Name of the icon font */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateIcon.defaultProps = {
  type: 'pf',
  name: 'add-circle-o',
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * EmptyStateInfo renders contents of the element
 */

const EmptyStateInfo = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('blank-slate-pf-info', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", _extends({
    className: classes
  }, props), children);
};

EmptyStateInfo.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateInfo.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * EmptyStateTitle renders contents of the element
 */

const EmptyStateTitle = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('h1', 'blank-slate-pf-title', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", _extends({
    className: classes
  }, props), children);
};

EmptyStateTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
EmptyStateTitle.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (EmptyStateTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js ***!
  \*******************************************************************************/
/*! exports provided: EmptyState, EmptyStateIcon, EmptyStateTitle, EmptyStateInfo, EmptyStateHelp, EmptyStateAction */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _EmptyState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyState.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyState", function() { return _EmptyState__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmptyStateIcon */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateIcon", function() { return _EmptyStateIcon__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EmptyStateTitle */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateTitle", function() { return _EmptyStateTitle__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmptyStateInfo */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateInfo", function() { return _EmptyStateInfo__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EmptyStateHelp */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateHelp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateHelp", function() { return _EmptyStateHelp__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _EmptyStateAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./EmptyStateAction */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/EmptyStateAction.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateAction", function() { return _EmptyStateAction__WEBPACK_IMPORTED_MODULE_5__["default"]; });









/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; }






const ALIGN_LEFT = 'left';
const ALIGN_CENTER = 'center';
const ALIGN_TYPES = [ALIGN_LEFT, ALIGN_CENTER];

class ExpandCollapse extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      expanded: false,
      mirroredExpanded: false
    });

    _defineProperty(this, "onClick", () => {
      if (this.props.onToggle) {
        this.props.onToggle();
      } else {
        this.setState(prevState => ({
          expanded: !prevState.expanded
        }));
      }
    });
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    if (prevState.mirroredExpanded !== nextProps.expanded) {
      return {
        expanded: nextProps.expanded,
        mirroredExpanded: nextProps.expanded
      };
    }

    return null;
  }

  render() {
    const {
      children,
      textCollapsed,
      textExpanded,
      align,
      className,
      bordered
    } = this.props;
    const {
      expanded
    } = this.state;
    const separatorClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('expand-collapse-pf-separator', {
      bordered
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('expand-collapse-pf', className)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "expand-collapse-pf-link-container"
    }, align === ALIGN_CENTER && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: separatorClass
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
      bsStyle: "link",
      onClick: this.onClick
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
      type: "fa",
      name: expanded ? 'angle-down' : 'angle-right'
    }), expanded ? textExpanded : textCollapsed), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: separatorClass
    })), this.state.expanded && children);
  }

}

ExpandCollapse.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,

  /** Top-level custom class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in collapsed state */
  textCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in expanded state */
  textExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Align the link to the left or center. */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(ALIGN_TYPES),

  /** Flag to show a separation border line */
  bordered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Flag to control expansion state */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  // eslint-disable-line react/no-unused-prop-types

  /** Callback function to control externally stored expansion state */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ExpandCollapse.defaultProps = {
  className: '',
  textCollapsed: 'Show Advanced Options',
  textExpanded: 'Hide Advanced Options',
  align: ALIGN_LEFT,
  bordered: true,
  expanded: false,
  onToggle: undefined
};
ExpandCollapse.ALIGN_LEFT = ALIGN_LEFT;
ExpandCollapse.ALIGN_CENTER = ALIGN_CENTER;
ExpandCollapse.ALIGN_TYPES = ALIGN_TYPES;
/* harmony default export */ __webpack_exports__["default"] = (ExpandCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js ***!
  \***********************************************************************************/
/*! exports provided: ExpandCollapse */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ExpandCollapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ExpandCollapse */ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/ExpandCollapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandCollapse", function() { return _ExpandCollapse__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
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; }

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; }








/**
 * FieldLevelHelp Component for Patternfly React
 */

const FieldLevelHelp = (_ref) => {
  let {
    children,
    content,
    close,
    rootClose,
    placement,
    buttonClass
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "content", "close", "rootClose", "placement", "buttonClass"]);

  // backwards compatibility of the existing `close` prop - use that prop if it exists
  const closeProp = typeof close !== 'undefined' ? close : rootClose;
  const overlay = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Popover__WEBPACK_IMPORTED_MODULE_5__["Popover"], {
    id: "popover"
  }, content);
  const buttonClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('popover-pf-info', buttonClass);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_6__["OverlayTrigger"], {
    overlay: overlay,
    placement: placement,
    trigger: ['click'],
    rootClose: closeProp
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__["Button"], {
    bsStyle: "link",
    className: buttonClasses
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    type: "pf",
    name: "info"
  })));
};

FieldLevelHelp.propTypes = {
  /** additional fieldlevelhelp classes */
  content: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** close prop */
  close: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** leave popover/tooltip open  */
  rootClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** overlay placement */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** button class */
  buttonClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
FieldLevelHelp.defaultProps = {
  content: null,
  close: undefined,
  rootClose: true,
  placement: 'top',
  buttonClass: '',
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (FieldLevelHelp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js ***!
  \***********************************************************************************/
/*! exports provided: FieldLevelHelp */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _FieldLevelHelp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FieldLevelHelp */ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/FieldLevelHelp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FieldLevelHelp", function() { return _FieldLevelHelp__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _Toolbar_ToolbarConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Toolbar/ToolbarConstants */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js");
/* harmony import */ var _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FilterTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js");
/* harmony import */ var _FilterValueSelector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FilterValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js");
/* harmony import */ var _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FilterCategorySelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js");
/* harmony import */ var _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FilterCategoryValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js");
/* harmony import */ var _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FilterActiveLabel */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js");
/* harmony import */ var _FilterList__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FilterList */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js");
/* harmony import */ var _FilterItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./FilterItem */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }












 // Disabled eslint due to `isDescendantOfToolbar` being a context property we don't want passed by consumers
// eslint-disable-next-line react/prop-types

const ContextualFilter = (_ref) => {
  let {
    children,
    className,
    isDescendantOfToolbar
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "isDescendantOfToolbar"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'filter-pf form-group': true,
    'toolbar-pf-filter': isDescendantOfToolbar
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: "filter-pf-fields"
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: "input-group"
  }, children)));
};

ContextualFilter.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ContextualFilter.defaultProps = {
  children: null,
  className: ''
};
const Filter = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["getContext"])(_Toolbar_ToolbarConstants__WEBPACK_IMPORTED_MODULE_4__["toolbarContextTypes"])(ContextualFilter);
Filter.TypeSelector = _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_5__["default"];
Filter.ValueSelector = _FilterValueSelector__WEBPACK_IMPORTED_MODULE_6__["default"];
Filter.CategorySelector = _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_7__["default"];
Filter.CategoryValueSelector = _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_8__["default"];
Filter.ActiveLabel = _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_9__["default"];
Filter.List = _FilterList__WEBPACK_IMPORTED_MODULE_10__["default"];
Filter.Item = _FilterItem__WEBPACK_IMPORTED_MODULE_11__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Filter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const FilterActiveLabel = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('filter-pf-active-label', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", _extends({
    className: classes
  }, props), children);
};

FilterActiveLabel.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
FilterActiveLabel.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (FilterActiveLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const FilterCategorySelector = (_ref) => {
  let {
    children,
    className,
    id,
    filterCategories,
    currentCategory,
    placeholder,
    onFilterCategorySelected
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "id", "filterCategories", "currentCategory", "placeholder", "onFilterCategorySelected"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-category-select', className);

  if (placeholder || filterCategories && filterCategories.length > 1) {
    let title;

    if (currentCategory) {
      title = currentCategory.title || currentCategory;
    } else {
      title = placeholder || filterCategories[0].title || filterCategories[0];
    }

    let menuId = 'filterCategoryMenu';
    menuId += id ? `_${id}` : '';
    const dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "filter-pf-select"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"], {
      title: title,
      id: menuId,
      className: dropdownClasses
    }, filterCategories && filterCategories.map((item, index) => {
      const menuItemClasses = {
        selected: item === currentCategory
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        className: menuItemClasses,
        key: item.id || index,
        onSelect: () => onFilterCategorySelected(item)
      }, item.title || item);
    }))), children);
  }

  return null;
};

FilterCategorySelector.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID for the component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of filter categories, each can be a string or an object with a 'title' field */
  filterCategories: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,

  /** Current selected category */
  currentCategory: 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]),

  /** Placeholder text when no category is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** function(field, value) - Callback to call when a category is added */
  onFilterCategorySelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
FilterCategorySelector.defaultProps = {
  children: null,
  className: '',
  id: '',
  currentCategory: '',
  placeholder: '',
  onFilterCategorySelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (FilterCategorySelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const FilterCategoryValueSelector = (_ref) => {
  let {
    className,
    id,
    categoryValues,
    currentValue,
    placeholder,
    onCategoryValueSelected
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "id", "categoryValues", "currentValue", "placeholder", "onCategoryValueSelected"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select', className);

  if (placeholder || categoryValues && categoryValues.length > 1) {
    let title;

    if (currentValue) {
      title = currentValue.title || currentValue;
    } else {
      title = placeholder || categoryValues[0].title || categoryValues[0];
    }

    let menuId = 'filterCategoryMenu';
    menuId += id ? `_${id}` : '';
    const dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-category-select-value', 'filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"], {
      className: dropdownClasses,
      title: title,
      id: menuId
    }, categoryValues && categoryValues.map((item, index) => {
      const menuItemClasses = {
        selected: item === currentValue
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        className: menuItemClasses,
        key: item.id || index,
        onSelect: () => onCategoryValueSelected(item)
      }, item.title || item);
    })));
  }

  return null;
};

FilterCategoryValueSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of valid values for the category to select from, each can be a string or an object with a 'title' field */
  categoryValues: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** Currently selected category value */
  currentValue: 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]),

  /** Placeholder text when no category value is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** function(field, value) - Callback to call when a category value is selected */
  onCategoryValueSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
FilterCategoryValueSelector.defaultProps = {
  className: '',
  id: '',
  categoryValues: null,
  currentValue: '',
  placeholder: '',
  onCategoryValueSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (FilterCategoryValueSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const FilterItem = (_ref) => {
  let {
    children,
    className,
    onRemove,
    filterData
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "onRemove", "filterData"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()(className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_4__["DisposableLabel"], {
    type: "info",
    onRemoveClick: () => onRemove(filterData)
  }, children));
};

FilterItem.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** additional filter item classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** callback when filter is removed  */
  onRemove: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** Data to pass to onRemove function */
  filterData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
FilterItem.defaultProps = {
  children: null,
  className: '',
  onRemove: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  filterData: {}
};
/* harmony default export */ __webpack_exports__["default"] = (FilterItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
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; }

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; }





const FilterList = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  if (!children) {
    return null;
  }

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-inline', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("ul", {
    className: classes
  }, children);
};

FilterList.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
FilterList.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (FilterList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const FilterTypeSelector = (_ref) => {
  let {
    className,
    id,
    filterTypes,
    currentFilterType,
    placeholder,
    onFilterTypeSelected
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "id", "filterTypes", "currentFilterType", "placeholder", "onFilterTypeSelected"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('input-group-btn', className);

  if (placeholder || filterTypes && filterTypes.length > 1) {
    let title;

    if (currentFilterType) {
      title = currentFilterType.title || currentFilterType;
    } else {
      title = placeholder || filterTypes[0].title || filterTypes[0];
    }

    let menuId = 'filterFieldTypeMenu';
    menuId += id ? `_${id}` : '';
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"], {
      title: title,
      id: menuId
    }, placeholder && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
      title: placeholder,
      key: "Placeholder",
      onSelect: onFilterTypeSelected
    }, placeholder), filterTypes.map((item, index) => {
      const menuItemClasses = {
        selected: item === currentFilterType
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        className: menuItemClasses,
        key: item.id || index,
        onSelect: () => onFilterTypeSelected(item)
      }, item.title || item);
    })));
  }

  return null;
};

FilterTypeSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of filter types, can be a string or an object with a 'title' field */
  filterTypes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,

  /** Current selected filter type */
  currentFilterType: 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]),

  /** Placeholder text when no filter type is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** function(field, value) - Callback to call when a filter type is selected */
  onFilterTypeSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
FilterTypeSelector.defaultProps = {
  className: '',
  id: '',
  currentFilterType: '',
  placeholder: '',
  onFilterTypeSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (FilterTypeSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const FilterValueSelector = (_ref) => {
  let {
    className,
    id,
    filterValues,
    currentValue,
    placeholder,
    onFilterValueSelected
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "id", "filterValues", "currentValue", "placeholder", "onFilterValueSelected"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select', className);

  if (placeholder || filterValues && filterValues.length > 1) {
    let title;

    if (currentValue) {
      title = currentValue.title || currentValue;
    } else {
      title = placeholder || filterValues[0].title || filterValues[0];
    }

    let menuId = 'filterCategoryMenu';
    menuId += id ? `_${id}` : '';
    const dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('filter-pf-select-dropdown', {
      'filter-selected': title !== placeholder
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"], {
      title: title,
      id: menuId,
      className: dropdownClasses
    }, filterValues && filterValues.map((item, index) => {
      const menuItemClasses = {
        selected: item === currentValue
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        className: menuItemClasses,
        key: item.id || index,
        onSelect: () => onFilterValueSelected(item)
      }, item.title || item);
    })));
  }

  return null;
};

FilterValueSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID for the filter component, necessary for accessibility if there are multiple filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of valid values to select from, each can be a string or an object with a 'title' field */
  filterValues: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,

  /** Currently selected value */
  currentValue: 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]),

  /** Placeholder text when no value is selected */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** function(field, value) - Callback to call when a value is selected */
  onFilterValueSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
FilterValueSelector.defaultProps = {
  className: '',
  id: '',
  currentValue: '',
  placeholder: '',
  onFilterValueSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (FilterValueSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Filter/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Filter/index.js ***!
  \***************************************************************************/
/*! exports provided: Filter, FilterTypeSelector, FilterValueSelector, FilterCategorySelector, FilterCategoryValueSelector, FilterActiveLabel, FilterList, FilterItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Filter */ "./node_modules/patternfly-react/dist/esm/components/Filter/Filter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Filter", function() { return _Filter__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FilterTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterTypeSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterTypeSelector", function() { return _FilterTypeSelector__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _FilterValueSelector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FilterValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterValueSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterValueSelector", function() { return _FilterValueSelector__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FilterCategorySelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategorySelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategorySelector", function() { return _FilterCategorySelector__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FilterCategoryValueSelector */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterCategoryValueSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategoryValueSelector", function() { return _FilterCategoryValueSelector__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FilterActiveLabel */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterActiveLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterActiveLabel", function() { return _FilterActiveLabel__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _FilterList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FilterList */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterList", function() { return _FilterList__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _FilterItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FilterItem */ "./node_modules/patternfly-react/dist/esm/components/Filter/FilterItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterItem", function() { return _FilterItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });











/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Checkbox */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Checkbox.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ControlLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ControlLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ControlLabel.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ControlLabel__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Form.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Form.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Form */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Form.js");
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js");
/* harmony import */ var _ControlLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ControlLabel */ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js");
/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormControl */ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js");
/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _HelpBlock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelpBlock */ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js");
/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js");
/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Radio */ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js");








react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].Checkbox = _Checkbox__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].ControlLabel = _ControlLabel__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].FormControl = _FormControl__WEBPACK_IMPORTED_MODULE_3__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].FormGroup = _FormGroup__WEBPACK_IMPORTED_MODULE_4__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].HelpBlock = _HelpBlock__WEBPACK_IMPORTED_MODULE_5__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].InputGroup = _InputGroup__WEBPACK_IMPORTED_MODULE_6__["default"];
react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"].Radio = _Radio__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Form__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_FormControl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/FormControl */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControl.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_FormControl__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_FormGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/FormGroup */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormGroup.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_FormGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_HelpBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/HelpBlock */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/HelpBlock.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_HelpBlock__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_InputGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/InputGroup */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroup.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_InputGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/Radio.js ***!
  \*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Radio */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Radio.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Form/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Form/index.js ***!
  \*************************************************************************/
/*! exports provided: Checkbox, ControlLabel, Form, FormControl, FormGroup, HelpBlock, InputGroup, Radio */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./node_modules/patternfly-react/dist/esm/components/Form/Checkbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ControlLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ControlLabel */ "./node_modules/patternfly-react/dist/esm/components/Form/ControlLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return _ControlLabel__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Form */ "./node_modules/patternfly-react/dist/esm/components/Form/Form.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _Form__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormControl */ "./node_modules/patternfly-react/dist/esm/components/Form/FormControl.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return _FormControl__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/FormGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return _FormGroup__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _HelpBlock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelpBlock */ "./node_modules/patternfly-react/dist/esm/components/Form/HelpBlock.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return _HelpBlock__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/patternfly-react/dist/esm/components/Form/InputGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _InputGroup__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Radio */ "./node_modules/patternfly-react/dist/esm/components/Form/Radio.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _Radio__WEBPACK_IMPORTED_MODULE_7__["default"]; });











/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Clearfix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Clearfix */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Clearfix.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Clearfix__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Col.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Col__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Col */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Col.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Col__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Grid */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Grid.js");
/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Row */ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js");
/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Col */ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js");
/* harmony import */ var _Clearfix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Clearfix */ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js");




react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Row = _Row__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Col = _Col__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"].Clearfix = _Clearfix__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Grid__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/Row.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Row__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Row */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Row.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Row__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Grid/index.js ***!
  \*************************************************************************/
/*! exports provided: Grid, Row, Col, Clearfix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/Grid.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function() { return _Grid__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Row */ "./node_modules/patternfly-react/dist/esm/components/Grid/Row.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Col */ "./node_modules/patternfly-react/dist/esm/components/Grid/Col.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Clearfix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Clearfix */ "./node_modules/patternfly-react/dist/esm/components/Grid/Clearfix.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return _Clearfix__WEBPACK_IMPORTED_MODULE_3__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const HintBlock = (_ref) => {
  let {
    className,
    onClose,
    title,
    body,
    buttonContent,
    onButtonClick
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "onClose", "title", "body", "buttonContent", "onButtonClick"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('hint-block-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), onClose && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
    type: "button",
    className: "close",
    "aria-hidden": "true",
    "aria-label": "Close",
    onClick: onClose
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: "pficon pficon-close"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: "hint-block-pf-title"
  }, title), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: "hint-block-pf-body"
  }, body), buttonContent && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
    className: "btn btn-primary",
    type: "button",
    onClick: onButtonClick
  }, buttonContent));
};

HintBlock.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Close callback, if not provided the block will not be closable */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** Title for the hint block */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]).isRequired,

  /** Body of the hint block */
  body: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]).isRequired,

  /** Optional button contents for the hint block */
  buttonContent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node]),

  /** Callback for the button if buttonContent is provided */
  onButtonClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
HintBlock.defaultProps = {
  className: '',
  onClose: null,
  buttonContent: null,
  onButtonClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (HintBlock);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js ***!
  \******************************************************************************/
/*! exports provided: HintBlock */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HintBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HintBlock */ "./node_modules/patternfly-react/dist/esm/components/HintBlock/HintBlock.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HintBlock", function() { return _HintBlock__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HorizontalNavMenu */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js");
/* harmony import */ var _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HorizontalNavMenuItem */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js");





const HorizontalNav = props => {
  const {
    children
  } = props;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", {
    className: "navbar navbar-default navbar-pf"
  }, children);
};

HorizontalNav.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
HorizontalNav.defaultProps = {
  children: null
};
HorizontalNav.Menu = _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_2__["default"];
HorizontalNav.MenuItem = _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (HorizontalNav);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);





const HorizontalNavMenu = props => {
  const {
    children,
    twoLevels
  } = props;
  const menuClasses = classnames__WEBPACK_IMPORTED_MODULE_3___default()({
    'persistent-secondary': twoLevels
  }, 'nav navbar-nav navbar-primary');
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "collapse navbar-collapse navbar-collapse-1"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["ListGroup"], {
    componentClass: "ul",
    bsClass: menuClasses
  }, children));
};

HorizontalNavMenu.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  twoLevels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
HorizontalNavMenu.defaultProps = {
  children: null,
  twoLevels: false
};
/* harmony default export */ __webpack_exports__["default"] = (HorizontalNavMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const HorizontalNavMenuItem = props => {
  const {
    children,
    onItemClick,
    title,
    active,
    dropdown,
    submenu,
    dropup,
    pullLeft
  } = props,
        otherProps = _objectWithoutProperties(props, ["children", "onItemClick", "title", "active", "dropdown", "submenu", "dropup", "pullLeft"]);

  const dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'dropdown-submenu': submenu,
    'pull-left': pullLeft
  });
  return dropdown ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"], _extends({
    componentClass: "li",
    className: dropdownClasses
  }, otherProps), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle, {
    useAnchor: true,
    noCaret: submenu
  }, title), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu, {
    className: dropup ? 'dropup' : ''
  }, children)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["ListGroupItem"], _extends({
    listItem: true,
    bsClass: "",
    active: active
  }, otherProps), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    onClick: onItemClick
  }, title), children && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["ListGroup"], {
    componentClass: "ul",
    bsClass: "nav navbar-nav navbar-persistent"
  }, children));
};

HorizontalNavMenuItem.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  onItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  active: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropdown: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  submenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
HorizontalNavMenuItem.defaultProps = {
  children: null,
  onItemClick: null,
  title: '',
  active: false,
  dropdown: false,
  submenu: false,
  dropup: false,
  pullLeft: false
};
/* harmony default export */ __webpack_exports__["default"] = (HorizontalNavMenuItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js ***!
  \**********************************************************************************/
/*! exports provided: HorizontalNav, HorizontalNavMenu, HorizontalNavMenuItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HorizontalNav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HorizontalNav */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNav", function() { return _HorizontalNav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HorizontalNavMenu */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenu.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenu", function() { return _HorizontalNavMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HorizontalNavMenuItem */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/HorizontalNavMenuItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenuItem", function() { return _HorizontalNavMenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fontawesome */ "./node_modules/react-fontawesome/lib/index.js");
/* harmony import */ var react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fontawesome__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _InnerComponents_PatternflyIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InnerComponents/PatternflyIcon */ "./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js");
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; }

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; }






const Icon = (_ref) => {
  let {
    type
  } = _ref,
      props = _objectWithoutProperties(_ref, ["type"]);

  const IconComponent = type === 'fa' && react_fontawesome__WEBPACK_IMPORTED_MODULE_2___default.a || type === 'pf' && _InnerComponents_PatternflyIcon__WEBPACK_IMPORTED_MODULE_3__["default"];

  if (IconComponent) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(IconComponent, props);
  }

  throw new Error(`Unsupported prop type=${type}`);
};

Icon.propTypes = {
  /** Icon type can be 'fa' or 'pf'.
   'fa' is the default type. */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['fa', 'pf']),

  /** Icon name is the pf-name or fa-name without the prefix.
   e.g.: As for 'pf-ok' name will be 'ok' */
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
Icon.defaultProps = {
  type: 'fa'
};
/* harmony default export */ __webpack_exports__["default"] = (Icon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/InnerComponents/PatternflyIcon.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const PatternflyIcon = (_ref) => {
  let {
    name,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["name", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    "aria-hidden": "true",
    className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('pficon', `pficon-${name}`, className)
  }, props));
};

PatternflyIcon.propTypes = {
  /** Patternfly Icon font name */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,

  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
PatternflyIcon.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (PatternflyIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Icon/index.js ***!
  \*************************************************************************/
/*! exports provided: Icon */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/Icon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _Icon__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _InfoTipToggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InfoTipToggle */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js");
/* harmony import */ var _InfoTipMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InfoTipMenu */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js");
/* harmony import */ var _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InfoTipMenuFooter */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js");
/* harmony import */ var _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InfoTipMenuItemIcon */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }










class InfoTip extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      open: false,
      footerFocused: false
    });

    _defineProperty(this, "handleEnterKeyDown", event => {
      this.setState({
        open: !this.state.open
      });
      event.preventDefault();
    });

    _defineProperty(this, "handleTabKeyDown", event => {
      if (this.state.footerFocused) {
        this.setState({
          open: false,
          footerFocused: false
        });
      } else {
        this.setState({
          footerFocused: true
        });
      }

      event.stopPropagation();
      event.nativeEvent.stopImmediatePropagation();
    });

    _defineProperty(this, "handleKeyDown", event => {
      if (event.shiftKey && event.keyCode) {
        return this.handleBackFocus();
      }

      switch (event.keyCode) {
        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].ENTER_KEY:
          return this.handleEnterKeyDown(event);

        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].TAB_KEY:
          return this.handleTabKeyDown(event);

        case _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].ESCAPE_KEY:
          return this.setState({
            open: false
          });

        default:
          return null;
      }
    });

    _defineProperty(this, "handleBackFocus", () => {
      if (this.state.open) {
        this.setState({
          open: false
        });
      }
    });

    _defineProperty(this, "handleClick", event => {
      event.preventDefault();
      this.setState({
        open: !this.state.open
      });
    });

    _defineProperty(this, "handleBlur", event => {
      if (event && event.relatedTarget) {
        event.relatedTarget.click();
      }

      this.setState({
        open: false
      });
    });
  }

  render() {
    const _this$props = this.props,
          {
      children,
      onToggle
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["children", "onToggle"]);

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"], _extends({
      componentClass: "li",
      onClick: this.handleClick,
      onKeyDown: this.handleKeyDown,
      onToggle: this.handleKeyDown,
      open: this.state.open,
      onBlur: this.handleBlur
    }, props), children);
  }

}

InfoTip.propTypes = _objectSpread({}, _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].propTypes, {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
});
InfoTip.Toggle = _InfoTipToggle__WEBPACK_IMPORTED_MODULE_4__["default"];
InfoTip.Menu = _InfoTipMenu__WEBPACK_IMPORTED_MODULE_5__["default"];
InfoTip.MenuItemIcon = _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_7__["default"];
InfoTip.MenuFooter = _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (InfoTip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }



 // This must be a class component react-bootstrap passes a ref to it.
// eslint-disable-next-line react/prefer-stateless-function

class InfoTipMenu extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  render() {
    const _this$props = this.props,
          {
      children,
      className,
      bsRole,
      rootCloseEvent,
      labelledBy,
      // eslint-disable-line react/prop-types
      pullRight,
      // eslint-disable-line react/prop-types
      bsClass
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["children", "className", "bsRole", "rootCloseEvent", "labelledBy", "pullRight", "bsClass"]);

    const infoTipMenuClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()('dropdown-menu', 'infotip', 'bottom-right', className);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: infoTipMenuClass,
      style: {
        padding: ''
      }
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "arrow"
    }), children);
  }

}

_defineProperty(InfoTipMenu, "propTypes", {
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  bsRole: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['click', 'mousedown'])
});

_defineProperty(InfoTipMenu, "defaultProps", {
  bsRole: 'menu',
  className: '',
  rootCloseEvent: 'click'
});

/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const InfoTipMenuFooter = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const infoTipMenuFooterClass = classnames__WEBPACK_IMPORTED_MODULE_1___default()('footer', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: infoTipMenuFooterClass
  }, props), children);
};

InfoTipMenuFooter.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
InfoTipMenuFooter.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenuFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const InfoTipMenuItemIcon = (_ref) => {
  let {
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className"]);

  const infoTipMenuItemIconClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()('i', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({
    className: infoTipMenuItemIconClass
  }, props));
};

InfoTipMenuItemIcon.propTypes = {
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['fa', 'pf']),
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
InfoTipMenuItemIcon.defaultProps = {
  type: 'pf',
  name: 'info',
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (InfoTipMenuItemIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }




 // Must be a class component react-bootstrap passes a ref to this.
// eslint-disable-next-line react/prefer-stateless-function

class InfoTipToggle extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  render() {
    const _this$props = this.props,
          {
      bsClass,
      bsRole,
      children,
      open
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["bsClass", "bsRole", "children", "open"]);

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", _extends({
      href: "#",
      "aria-expanded": open
    }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
      type: "pf",
      name: "info"
    }), " ", children);
  }

}

_defineProperty(InfoTipToggle, "propTypes", _objectSpread({}, _Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].propTypes, {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  open: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
}));

_defineProperty(InfoTipToggle, "defaultProps", {
  bsRole: 'toggle',
  // eslint-disable-line react/default-props-match-prop-types
  children: null,
  open: false,
  className: ''
});

/* harmony default export */ __webpack_exports__["default"] = (InfoTipToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js ***!
  \****************************************************************************/
/*! exports provided: InfoTip, InfoTipToggle, InfoTipMenu, InfoTipMenuItemIcon, InfoTipMenuFooter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _InfoTip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InfoTip */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTip", function() { return _InfoTip__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _InfoTipToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InfoTipToggle */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipToggle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipToggle", function() { return _InfoTipToggle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _InfoTipMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InfoTipMenu */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenu.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenu", function() { return _InfoTipMenu__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InfoTipMenuFooter */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuFooter", function() { return _InfoTipMenuFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InfoTipMenuItemIcon */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/InfoTipMenuItemIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuItemIcon", function() { return _InfoTipMenuItemIcon__WEBPACK_IMPORTED_MODULE_4__["default"]; });








/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





const CancelButton = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"], props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  type: "pf",
  name: "close"
}));

CancelButton.propTypes = _objectSpread({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].propTypes);
/* harmony default export */ __webpack_exports__["default"] = (CancelButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





const ConfirmButton = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_1__["Button"], props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
  type: "fa",
  name: "check"
}));

ConfirmButton.propTypes = _objectSpread({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].propTypes);
ConfirmButton.defaultProps = _objectSpread({}, _Button__WEBPACK_IMPORTED_MODULE_1__["Button"].defaultProps, {
  bsStyle: 'primary'
});
/* harmony default export */ __webpack_exports__["default"] = (ConfirmButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConfirmButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js");
/* harmony import */ var _CancelButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CancelButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js");




const InlineEdit = ({
  value,
  isEditing,
  additionalData,
  renderValue,
  renderEdit
}) => {
  if (isEditing(additionalData)) {
    return renderEdit(value, additionalData);
  }

  return renderValue(value, additionalData);
};

InlineEdit.propTypes = {
  /** Inline edit input value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.any,

  /** Function that determines whether value or edit component should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,

  /** Additional data passed th the render functions */
  additionalData: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,

  /** Returns value component */
  renderValue: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,

  /** Returns edit component */
  renderEdit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func
};
InlineEdit.ConfirmButton = _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__["default"];
InlineEdit.CancelButton = _CancelButton__WEBPACK_IMPORTED_MODULE_2__["default"];
/* harmony default export */ __webpack_exports__["default"] = (InlineEdit);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js ***!
  \*******************************************************************************/
/*! exports provided: InlineEdit, ConfirmButton, CancelButton */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _InlineEdit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/InlineEdit.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InlineEdit", function() { return _InlineEdit__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConfirmButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/ConfirmButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfirmButton", function() { return _ConfirmButton__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _CancelButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CancelButton */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/CancelButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CancelButton", function() { return _CancelButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LabelWithTooltip */ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js");
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; }







class CompoundLabel extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "generateTag", value => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LabelWithTooltip__WEBPACK_IMPORTED_MODULE_4__["default"], {
      key: value.id,
      category: this.props.category,
      value: value,
      onDeleteClick: this.props.onDeleteClick,
      truncate: this.props.valueTruncate,
      bsStyle: this.props.bsStyle,
      className: this.props.innerClassName,
      overlayPlacement: this.props.overlayPlacement
    }));
  }

  render() {
    const values = [...this.props.values];

    if (values.length === 0) {
      return null;
    }

    const categoryTooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_2__["Tooltip"], {
      id: "tooltip"
    }, this.props.category.label);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "label label-primary compound-label-pf"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
      placement: this.props.overlayPlacement,
      overlay: categoryTooltip
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "category-label-pf"
    }, this.props.categoryTruncate(this.props.category.label))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: `list-inline ${this.props.className}`
    }, values.sort((a, b) => a.label < b.label ? -1 : 1).map(tagValue => this.generateTag(tagValue))));
  }

}

CompoundLabel.propTypes = {
  /** Category in CATEGORY: value(s) pair */

  /**  Parent of label, it does not get displayed in this component */
  category: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,

  /** Array of Values in Category:VALUE(S) pair  */

  /** id uniquily identify value within its category, label is text which is displayed */
  values: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired).isRequired,

  /** Fuction callback called when X button is clicked */
  onDeleteClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** Function used to truncate category label */
  categoryTruncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Function used to truncate value label */
  valueTruncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Name of CSS class(es) which are set to outer label */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Bootstrap style which is set to label */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Name of CSS class(es) which are set to inner label(s) */
  innerClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Placement of the overlay */
  overlayPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['top', 'right', 'bottom', 'left'])
};
CompoundLabel.defaultProps = {
  categoryTruncate: str => str.length > 18 ? `${str.substring(0, 18)}...` : str,
  valueTruncate: str => str.length > 18 ? `${str.substring(0, 18)}...` : str,
  className: '',
  bsStyle: 'primary',
  innerClassName: '',
  overlayPlacement: 'bottom'
};
/* harmony default export */ __webpack_exports__["default"] = (CompoundLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Label */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Label.js");
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Label */ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }







const DisposableLabel = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_4__["default"], props); // WARNING: This should be kept consistent with Label.propTypes


DisposableLabel.propTypes = _objectSpread({}, react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes, {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Label type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** callback when Label is removed  */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
}); // WARNING: This should be kept consistent with Label.defaultProps

DisposableLabel.defaultProps = {
  children: null,
  type: 'default',
  onRemoveClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DisposableLabel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/Label.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap/es/Label */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Label.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _RemoveButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./RemoveButton */ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js");
/* harmony import */ var _DisposableLabel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DisposableLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js");
/* harmony import */ var _CompoundLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CompoundLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js");
/* harmony import */ var _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LabelWithTooltip */ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }









const Label = (_ref) => {
  let {
    children,
    onRemoveClick,
    type
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "onRemoveClick", "type"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({
    bsStyle: type
  }, props), children, !!onRemoveClick && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_RemoveButton__WEBPACK_IMPORTED_MODULE_3__["default"], {
    onRemoveClick: onRemoveClick,
    title: "Remove"
  }));
}; // WARNING: If you change propTypes you MUST also change DisposableLabel.propTypes


Label.propTypes = _objectSpread({}, react_bootstrap_es_Label__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes, {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Label type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** callback when Label is removed  */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
}); // WARNING: If you change defaultProps you MUST also change DisposableLabel.defaultProps

Label.defaultProps = {
  children: null,
  type: 'default',
  onRemoveClick: undefined
};
Label.RemoveButton = _RemoveButton__WEBPACK_IMPORTED_MODULE_3__["default"];
Label.DisposableLabel = _DisposableLabel__WEBPACK_IMPORTED_MODULE_4__["default"];
Label.CompoundLabel = _CompoundLabel__WEBPACK_IMPORTED_MODULE_5__["default"];
Label.WithTooltop = _LabelWithTooltip__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Label);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/LabelWithTooltip.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");






const tooltip = text => react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
  id: "tooltip"
}, text);

const LabelWithTooltip = ({
  onDeleteClick,
  category,
  value,
  truncate,
  bsStyle,
  className,
  overlayPlacement
}) => react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", {
  key: value.id
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
  placement: overlayPlacement,
  overlay: tooltip(value.label)
}, react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Label__WEBPACK_IMPORTED_MODULE_2__["Label"], {
  key: value.id,
  onRemoveClick: () => onDeleteClick(category, value),
  bsStyle: bsStyle,
  className: `compound-label-inner-color-pf ${className}`
}, truncate(value.label))));

LabelWithTooltip.propTypes = {
  /** Fuction callback called when X button is clicked */
  onDeleteClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** Category in CATEGORY: value(s) pair */

  /**  Parent of label, it does not get displayed in this component */
  category: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,

  /** Individual Value in Category:VALUE(s) pair  */

  /** id uniquily identify value within its category, label is text which is displayed */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.PropTypes.shape({
    id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,
    label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
  }).isRequired,

  /** Function used to truncate value label */
  truncate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** Name of CSS class(es) which are set to label */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Bootstrap style which is set to label */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Placement of the overlay */
  overlayPlacement: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['top', 'right', 'bottom', 'left'])
};
LabelWithTooltip.defaultProps = {
  className: '',
  bsStyle: 'primary',
  overlayPlacement: 'bottom'
};
/* harmony default export */ __webpack_exports__["default"] = (LabelWithTooltip);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const RemoveButton = (_ref) => {
  let {
    className,
    title,
    onRemoveClick
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "title", "onRemoveClick"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('pficon pficon-close', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
    href: "#",
    onClick: e => {
      e.preventDefault();
      onRemoveClick && onRemoveClick();
    },
    className: "pf-remove-button"
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props, {
    "aria-hidden": "true"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: "sr-only"
  }, title));
};

RemoveButton.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Reader title text */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Callback when remove button is clicked */
  onRemoveClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
RemoveButton.defaultProps = {
  className: '',
  title: 'Remove',
  onRemoveClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (RemoveButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Label/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Label/index.js ***!
  \**************************************************************************/
/*! exports provided: Label, DisposableLabel, RemoveButton, CompoundLabel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Label */ "./node_modules/patternfly-react/dist/esm/components/Label/Label.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _Label__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _DisposableLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DisposableLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/DisposableLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisposableLabel", function() { return _DisposableLabel__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _RemoveButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RemoveButton */ "./node_modules/patternfly-react/dist/esm/components/Label/RemoveButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveButton", function() { return _RemoveButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _CompoundLabel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CompoundLabel */ "./node_modules/patternfly-react/dist/esm/components/Label/CompoundLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundLabel", function() { return _CompoundLabel__WEBPACK_IMPORTED_MODULE_3__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ListGroup */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroup.js");
/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js");


react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"].ListGroupItem = _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ListGroupItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ListGroupItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroupItem.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ListGroupItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js ***!
  \******************************************************************************/
/*! exports provided: ListGroup, ListGroupItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return _ListGroup__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/ListGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return _ListGroupItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony import */ var _ListViewIcon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ListViewIcon */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js");
/* harmony import */ var _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ListViewInfoItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js");
/* harmony import */ var _ListViewItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ListViewItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js");
/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");
/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





















/**
 * Components in this module are used as building blocks for ListViewItem and
 * ListViewRow. If needed, components can be used to create custom ListViewItem
 *
 * Custom ListView example:
 *
 * <ListView>
 *   <ListViewGroupItem stacked expanded>
 *     <ListViewGroupItemHeader toggleExpanded={functionToToggle}> // required only if the ListViewGroupItem is supposed to be expandable
 *       <ListViewExpand expanded />
 *       <ListViewCheckbox />
 *       <ListViewActions>
 *         // buttons, dropdowns...
 *       </ListViewActions>
 *       <ListViewMainInfo>
 *         <ListViewLeft>
 *           <ListViewIcon size="sm" name={iconName} />
 *         </ListViewLeft>
 *         <ListViewBody>
 *           <ListViewDescription>
 *             <ListViewDescriptionHeading>
 *               {name}
 *             </ListViewDescriptionHeading>
 *             <ListViewDescriptionText>
 *               {description}
 *             </ListViewDescriptionText>
 *           </ListViewDescription>
 *           <ListViewAdditionalInfo>
 *             <ListViewInfoItem>
 *               <ListViewIcon type="pf" name="flavor" />
 *               {Item1}
 *             </ListViewInfoItem>
 *             <ListViewInfoItem>
 *               <ListViewIcon type="pf" name="cpu" />
 *               {Item2}
 *             </ListViewInfoItem>
 *           </ListViewAdditionalInfo>
 *         </ListViewBody>
 *       </ListViewMainInfo>
 *     </ListViewGroupItemHeader>
 *
 *     <ListViewGroupItemContainer onClose={functionWhichClosesMe} expanded>
 *       <Row>Some content goes here</Row>
 *     </ListViewGroupItemContainer>
 *
 *   </ListViewGroupItem>
 *   ...
 * </ListView>
 */

/**
 * ListView component wraps ListViewItems
 */

const ListView = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-group list-view-pf list-view-pf-view', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

ListView.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Children nodes - ListViewGroupItem or ListViewItem instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};
ListView.defaultProps = {
  className: '',
  children: null
};
ListView.Actions = _ListViewActions__WEBPACK_IMPORTED_MODULE_3__["default"];
ListView.AdditionalInfo = _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_4__["default"];
ListView.Body = _ListViewBody__WEBPACK_IMPORTED_MODULE_5__["default"];
ListView.Checkbox = _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_6__["default"];
ListView.Description = _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__["default"];
ListView.DescriptionHeading = _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__["default"];
ListView.DescriptionText = _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__["default"];
ListView.Expand = _ListViewExpand__WEBPACK_IMPORTED_MODULE_10__["default"];
ListView.GroupItem = _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_11__["default"];
ListView.GroupItemContainer = _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_12__["default"];
ListView.GroupItemHeader = _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_13__["default"];
ListView.Icon = _ListViewIcon__WEBPACK_IMPORTED_MODULE_14__["default"];
ListView.InfoItem = _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_15__["default"];
ListView.Item = _ListViewItem__WEBPACK_IMPORTED_MODULE_16__["default"];
ListView.Left = _ListViewLeft__WEBPACK_IMPORTED_MODULE_17__["default"];
ListView.MainInfo = _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_18__["default"];
ListView.Row = _ListViewRow__WEBPACK_IMPORTED_MODULE_19__["default"];
/* harmony default export */ __webpack_exports__["default"] = (ListView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewActions wraps ListViewItem actions and positions them to the right
 */

const ListViewActions = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-actions"
}, children);

ListViewActions.propTypes = {
  /** Child nodes which render individual actions - Buttons, DropdownKebab... */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewActions.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewActions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewAdditionalInfo defines additional info section
 */

const ListViewAdditionalInfo = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-additional-info"
}, children);

ListViewAdditionalInfo.propTypes = {
  /** Child nodes - an array of ListViewInfoItem instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node)
};
ListViewAdditionalInfo.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewAdditionalInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewBody wraps the central section of ListViewItem
 */

const ListViewBody = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-body"
}, children);

ListViewBody.propTypes = {
  /** Child nodes - ListViewDescription or ListViewAdditionalInfo instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewBody.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);



/**
 * ListViewCheckbox wraps the input provided as child prop. The input depends
 * on the form solution the consuming application uses (e.g. Field component
 * in case of redux-form)
 */

const ListViewCheckbox = ({
  children,
  className
}) => react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
  className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-view-pf-checkbox', className)
}, children);

ListViewCheckbox.propTypes = {
  /** Child node - form input component */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ListViewCheckbox.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewDescription wraps Heading and Text
 */

const ListViewDescription = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-description"
}, children);

ListViewDescription.propTypes = {
  /** Child nodes - ListViewDescriptionHeading or ListViewDescriptionText instances */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescription.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescription);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewDescriptionHeading renders ListViewItem heading
 */

const ListViewDescriptionHeading = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-group-item-heading"
}, children);

ListViewDescriptionHeading.propTypes = {
  /** Child node - content rendered as heading */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescriptionHeading.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescriptionHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewDescriptionText renders text content of ListViewItem
 */

const ListViewDescriptionText = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-group-item-text"
}, children);

ListViewDescriptionText.propTypes = {
  /** Child node - content rendered in text section of ListViewItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewDescriptionText.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewDescriptionText);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);



/**
 * ListViewExpand renders the caret which signifies that row is expandable.
 * The caret icon points to the right when it is closed and down when it is expanded.
 */

const ListViewExpand = ({
  children,
  expanded,
  toggleExpanded
}) => {
  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'fa fa-angle-right': true,
    'fa-angle-down': expanded
  });
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-view-pf-expand', {
      active: expanded
    }),
    onClick: e => {
      e.stopPropagation();
      toggleExpanded();
    }
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: classes
  }), children);
};

ListViewExpand.propTypes = {
  /** Child nodes which render additional content - used in expandable ListViewInfoItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Expanded state toggle */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Function to execute to trigger toggle */
  toggleExpanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired
};
ListViewExpand.defaultProps = {
  children: null,
  expanded: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewExpand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * ListViewGroupItem is a root node of each ListViewItem
 */

const ListViewGroupItem = (_ref) => {
  let {
    children,
    className,
    stacked,
    expanded
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "stacked", "expanded"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('list-group-item', {
    'list-view-pf-expand-active': expanded,
    'list-view-pf-stacked': stacked
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

ListViewGroupItem.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Toggles the item expanded */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Toggles the item stacked */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ListViewGroupItem.defaultProps = {
  children: null,
  expanded: false,
  stacked: false,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");




/**
 * ListViewGroupItemContainer is used with expandable ListViewItem, wraps the
 * expanded content
 */

const ListViewGroupItemContainer = ({
  children,
  expanded,
  onClose
}) => {
  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'list-group-item-container container-fluid': true,
    hidden: !expanded
  });
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: classes
  }, onClose !== _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"] && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: "close"
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: "pficon pficon-close",
    onClick: onClose
  })), expanded && children);
};

ListViewGroupItemContainer.propTypes = {
  /** Children nodes - the content visible in expanded state */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Boolean indicating whether expandable content is visible */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Function to call when 'close icon' is clicked */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ListViewGroupItemContainer.defaultProps = {
  children: null,
  onClose: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  expanded: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItemContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewGroupItemHeader is used with expandable ListViewItem, wraps everything
 * that is displayed in non expanded state. Handles the toggling of the expanded
 * state
 */

const ListViewGroupItemHeader = ({
  children,
  toggleExpanded
}) => {
  const handleClick = e => {
    // ignore selected child elements click
    if (e.target.tagName !== 'BUTTON' && e.target.tagName !== 'A' && e.target.tagName !== 'INPUT' && !e.target.classList.contains('fa-ellipsis-v')) {
      toggleExpanded();
    }
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "list-group-item-header",
    onClick: handleClick
  }, children);
};

ListViewGroupItemHeader.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Function to execute to trigger toggle */
  toggleExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
};
ListViewGroupItemHeader.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewGroupItemHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * ListViewIcon used as a default content for ListViewLeft
 */

const ListViewIcon = (_ref) => {
  let {
    type,
    name,
    className,
    size
  } = _ref,
      props = _objectWithoutProperties(_ref, ["type", "name", "className", "size"]);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], _extends({
    type: type,
    name: name,
    className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`list-view-pf-icon-${size}`, className)
  }, props));
};

ListViewIcon.propTypes = {
  /** Icon type (pf or fa) */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Name of the icon font */
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,

  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Icon size (sm, md, lg), defaults to 'sm' */
  size: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['sm', 'md', 'lg'])
};
ListViewIcon.defaultProps = {
  type: 'fa',
  size: 'sm',
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * ListViewInfoItem renders contents of individual Info item
 */

const ListViewInfoItem = (_ref) => {
  let {
    children,
    className,
    stacked
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "stacked"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'list-view-pf-additional-info-item-stacked': stacked
  }, 'list-view-pf-additional-info-item', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes,
    onClick: e => e.stopPropagation()
  }, props), children);
};

ListViewInfoItem.propTypes = {
  /** Child node - contents of the additional info item */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Toggle the InfoItem contents stacking */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ListViewInfoItem.defaultProps = {
  children: null,
  className: '',
  stacked: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewInfoItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }









/**
 * ListViewItem - main ListViewItem component which handles the expansion logic.
 * ListViewItem is considered expandable if it has child props. In that case it
 * renders ListViewGroupItemHeader and ListViewGroupItemContainer
 */

class ListViewItem extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      expanded: this.props.initExpanded
    });

    _defineProperty(this, "toggleExpanded", () => {
      const {
        onExpand,
        onExpandClose
      } = this.props;

      if (this.state.expanded) {
        onExpandClose();
      } else {
        onExpand();
      }

      this.setState(prevState => ({
        expanded: !prevState.expanded
      }));
    });
  }

  render() {
    const _this$props = this.props,
          {
      children,
      stacked,
      onExpand,
      onExpandClose,
      actions,
      additionalInfo,
      description,
      heading,
      leftContent,
      checkboxInput,
      hideCloseIcon,
      compoundExpand,
      compoundExpanded,
      onCloseCompoundExpand,
      initExpanded
    } = _this$props,
          other = _objectWithoutProperties(_this$props, ["children", "stacked", "onExpand", "onExpandClose", "actions", "additionalInfo", "description", "heading", "leftContent", "checkboxInput", "hideCloseIcon", "compoundExpand", "compoundExpanded", "onCloseCompoundExpand", "initExpanded"]);

    const {
      expanded
    } = this.state;

    if (children) {
      if (compoundExpand) {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
          expanded: compoundExpanded,
          stacked: stacked
        }, other), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
          checkboxInput: checkboxInput,
          leftContent: leftContent,
          heading: heading,
          description: description,
          additionalInfo: additionalInfo,
          actions: actions
        }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__["default"], {
          expanded: compoundExpanded,
          onClose: hideCloseIcon ? undefined : onCloseCompoundExpand
        }, children));
      }

      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
        expanded: expanded,
        stacked: stacked
      }, other), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_6__["default"], {
        toggleExpanded: this.toggleExpanded
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewExpand__WEBPACK_IMPORTED_MODULE_3__["default"], {
        expanded: expanded,
        toggleExpanded: this.toggleExpanded
      }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
        checkboxInput: checkboxInput,
        leftContent: leftContent,
        heading: heading,
        description: description,
        additionalInfo: additionalInfo,
        actions: actions
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_5__["default"], {
        expanded: expanded,
        onClose: hideCloseIcon ? undefined : this.toggleExpanded
      }, children));
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewGroupItem__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({
      stacked: stacked
    }, other), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewRow__WEBPACK_IMPORTED_MODULE_7__["default"], {
      checkboxInput: checkboxInput,
      leftContent: leftContent,
      heading: heading,
      description: description,
      additionalInfo: additionalInfo,
      actions: actions
    }));
  }

}

ListViewItem.propTypes = {
  /** Child node rendered as expanded content of the ListViewItem */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Display the ListViewItem stacked or not */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Function triggered when expandable content is expanded */
  onExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Function triggered when expandable content is closed */
  onExpandClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Node which renders right-positioned actions (e.g. Buttons, DropdownKebab...) */
  actions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** An array of ListViewInfoItem instances to render additional info items */
  additionalInfo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node),

  /** Contents of ListViewItem description section */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Contents of ListViewItem heading */
  heading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Contents for left section of ListViewItem (usually ListViewIcon) */
  leftContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Checkbox form input component */
  checkboxInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Optionally hide the close icon in expanded content */
  hideCloseIcon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Flag to use compound expansion contents */
  compoundExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Flag to show compound expansion contents */
  compoundExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Flag to initialize expanded state */
  initExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Function triggered when compound expandable content is closed */
  onCloseCompoundExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ListViewItem.defaultProps = {
  children: null,
  actions: null,
  additionalInfo: null,
  description: null,
  heading: null,
  leftContent: null,
  checkboxInput: null,
  compoundExpand: false,
  compoundExpanded: false,
  hideCloseIcon: false,
  onExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExpandClose: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  initExpanded: false,
  onCloseCompoundExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  stacked: false
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewLeft renders nodes positioned on the left side of ListViewItem row
 */

const ListViewLeft = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-left"
}, children);

ListViewLeft.propTypes = {
  /** Child nodes - usually ListViewIcon instance */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewLeft.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewLeft);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * ListViewMainInfo wraps the informational content of the ListViewItem
 */

const ListViewMainInfo = ({
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "list-view-pf-main-info"
}, children);

ListViewMainInfo.propTypes = {
  /** Child nodes - instances of ListViewLeft and ListViewBody */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ListViewMainInfo.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewMainInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");











/**
 * ListViewRow wraps the ListViewItem row, conditionally renders sections
 * based on availability of individual props, maintains the ListItem row structure
 */

const ListViewRow = ({
  actions,
  additionalInfo,
  checkboxInput,
  leftContent,
  heading,
  description
}) => {
  const items = [];

  if (checkboxInput) {
    items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], {
      key: "checkbox"
    }, checkboxInput));
  }

  if (actions) {
    items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewActions__WEBPACK_IMPORTED_MODULE_2__["default"], {
      key: "actions"
    }, actions));
  }

  items.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewMainInfo__WEBPACK_IMPORTED_MODULE_10__["default"], {
    key: "main_info"
  }, leftContent && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewLeft__WEBPACK_IMPORTED_MODULE_5__["default"], null, leftContent), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewBody__WEBPACK_IMPORTED_MODULE_6__["default"], null, (heading || description) && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewDescription__WEBPACK_IMPORTED_MODULE_7__["default"], null, heading && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_8__["default"], null, heading), description && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_9__["default"], null, description)), additionalInfo && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_3__["default"], null, additionalInfo))));
  return items;
};

ListViewRow.propTypes = {
  /** Node which renders right-positioned actions (e.g. Buttons, DropdownKebab...) */
  actions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** An array of ListViewInfoItem instances to render additional info items */
  additionalInfo: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node),

  /** Contents of ListViewItem description section */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Contents of ListViewItem heading */
  heading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Contents for left section of ListViewItem (usually ListViewIcon) */
  leftContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Checkbox form input component */
  checkboxInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
/* harmony default export */ __webpack_exports__["default"] = (ListViewRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ListView/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ListView/index.js ***!
  \*****************************************************************************/
/*! exports provided: ListView, ListViewActions, ListViewAdditionalInfo, ListViewBody, ListViewCheckbox, ListViewDescription, ListViewDescriptionHeading, ListViewDescriptionText, ListViewExpand, ListViewGroupItem, ListViewGroupItemContainer, ListViewGroupItemHeader, ListViewIcon, ListViewInfoItem, ListViewItem, ListViewLeft, ListViewMainInfo, ListViewRow */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ListView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListView */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListView.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListView", function() { return _ListView__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ListViewActions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListViewActions */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewActions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewActions", function() { return _ListViewActions__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListViewAdditionalInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewAdditionalInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewAdditionalInfo", function() { return _ListViewAdditionalInfo__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _ListViewBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ListViewBody */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewBody", function() { return _ListViewBody__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListViewCheckbox */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewCheckbox", function() { return _ListViewCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _ListViewDescription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ListViewDescription */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescription.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescription", function() { return _ListViewDescription__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListViewDescriptionHeading */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionHeading", function() { return _ListViewDescriptionHeading__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ListViewDescriptionText */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewDescriptionText.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionText", function() { return _ListViewDescriptionText__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _ListViewExpand__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListViewExpand */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewExpand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewExpand", function() { return _ListViewExpand__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ListViewGroupItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItem", function() { return _ListViewGroupItem__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ListViewGroupItemContainer */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemContainer", function() { return _ListViewGroupItemContainer__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ListViewGroupItemHeader */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewGroupItemHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemHeader", function() { return _ListViewGroupItemHeader__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _ListViewIcon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ListViewIcon */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewIcon", function() { return _ListViewIcon__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ListViewInfoItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewInfoItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewInfoItem", function() { return _ListViewInfoItem__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _ListViewItem__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ListViewItem */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewItem", function() { return _ListViewItem__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _ListViewLeft__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ListViewLeft */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewLeft.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewLeft", function() { return _ListViewLeft__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ListViewMainInfo */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewMainInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewMainInfo", function() { return _ListViewMainInfo__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _ListViewRow__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ListViewRow */ "./node_modules/patternfly-react/dist/esm/components/ListView/ListViewRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewRow", function() { return _ListViewRow__WEBPACK_IMPORTED_MODULE_17__["default"]; });





















/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js");





class LoadingState extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
  constructor(props) {
    super(props);
    this.state = {
      render: false
    };
  }

  componentDidMount() {
    this.onTimeout = setTimeout(() => {
      this.setState({
        render: true
      });
    }, this.props.timeout);
  }

  componentWillUnmout() {
    clearTimeout(this.onTimeout);
  }

  render() {
    const {
      loading,
      loadingText,
      children,
      size,
      additionalClasses
    } = this.props;
    const spinner = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('loading-state-pf', `loading-state-pf-${size}`, additionalClasses)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Spinner__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
      loading: loading,
      size: size
    }), loadingText);

    if (loading) {
      return this.state.render ? spinner : null;
    }

    return children;
  }

}

LoadingState.propTypes = {
  /** determines whether to show spinner or children */
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** text to show with spinner */
  loadingText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** delay in showing the children */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** size of the spinner */
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'md', 'sm', 'xs']),

  /** additional css classes for LoadingState */
  additionalClasses: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
LoadingState.defaultProps = {
  loading: false,
  loadingText: 'Loading',
  children: null,
  timeout: 300,
  size: 'lg',
  additionalClasses: ''
};
/* harmony default export */ __webpack_exports__["default"] = (LoadingState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js ***!
  \*********************************************************************************/
/*! exports provided: LoadingState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LoadingState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoadingState */ "./node_modules/patternfly-react/dist/esm/components/LoadingState/LoadingState.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingState", function() { return _LoadingState__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageAlerts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlerts */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageFooter */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js");
/* harmony import */ var _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");
/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageWithTranslation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js");
/* harmony import */ var _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
/* harmony import */ var _SocialLoginPage__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SocialLoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js");
/* harmony import */ var _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/LoginPageComponents/SocialLoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js");
/* harmony import */ var _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/LoginPageComponents/BasicLoginPageLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony import */ var _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony import */ var _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/LoginCardComponents/SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony import */ var _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/LoginCardComponents/BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }
































const LoginPagePattern = ({
  container,
  header,
  footerLinks,
  card
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Container, container, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Alerts, {
  alert: container.alert
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.BasicLayout, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Header, header), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].BasicLayout, card.layout, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker, {
  selectedLanguage: card.selectedLanguage,
  availableLanguages: card.availableLanguages,
  onLanguageChange: card.onLanguageChange
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, card.title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].WithValidation, card.form, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form, null)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp, card.signUp)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Footer, {
  links: footerLinks
}))));

const LoginPage = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.WithTranslation, props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LoginPage.Pattern, null));

LoginPage.Container = _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"];
LoginPage.Header = _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_5__["default"];
LoginPage.Footer = _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
LoginPage.Card = _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"];
LoginPage.FooterLinks = _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_7__["default"];
LoginPage.WithTranslation = _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_9__["default"];
LoginPage.Alerts = _components_LoginPageComponents_LoginPageAlerts__WEBPACK_IMPORTED_MODULE_3__["default"];
LoginPage.Alert = _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_2__["default"];
LoginPage.Pattern = LoginPagePattern;
LoginPage.Social = _SocialLoginPage__WEBPACK_IMPORTED_MODULE_11__["default"];
LoginPage.SocialContainer = _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_12__["default"];
LoginPage.BasicLayout = _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_13__["default"];
LoginPage.Link = _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_10__["default"];
LoginPage.CardHeaer = _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_14__["default"];
LoginPage.LanguagePicker = _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_15__["default"];
LoginPage.CardWithValidation = _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_16__["default"];
LoginPage.CardForm = _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_17__["default"];
LoginPage.CardSignUp = _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_18__["default"];
LoginPage.CardInput = _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_19__["default"];
LoginPage.CardInputWarning = _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_20__["default"];
LoginPage.CardSettings = _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_21__["default"];
LoginPage.FormError = _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_22__["default"];
LoginPage.CardForgotPassword = _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_23__["default"];
LoginPage.CardRememberMe = _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_24__["default"];
LoginPage.CardSocialSection = _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_25__["default"];
LoginPage.CardSocialLink = _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_26__["default"];
LoginPage.CardSocialColumns = _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_27__["default"];
LoginPage.SocialLoginCard = _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_28__["default"];
LoginPage.BasicLoginCardLayout = _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_29__["default"];
LoginPagePattern.propTypes = {
  container: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, LoginPage.Container.propTypes)),
  header: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, LoginPage.Header.propTypes)),
  card: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker.propTypes, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form.propTypes, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp.propTypes, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].RememberMe.propTypes, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].ForgotPassword.propTypes)),
  footerLinks: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
LoginPagePattern.defaultProps = {
  container: _objectSpread({}, LoginPage.Container.defaultProps),
  header: _objectSpread({}, LoginPage.Header.defaultProps),
  card: _objectSpread({}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].LanguagePicker.defaultProps, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].Form.defaultProps, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].SignUp.defaultProps, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].RememberMe.defaultProps, {}, _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_8__["default"].ForgotPassword.defaultProps),
  footerLinks: [...LoginPage.Footer.defaultProps.links]
};
LoginPage.propTypes = _objectSpread({}, LoginPagePattern.propTypes);
LoginPage.defaultProps = _objectSpread({}, LoginPagePattern.defaultProps);
/* harmony default export */ __webpack_exports__["default"] = (LoginPage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _LoginPage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





const SocialLoginPagePattern = ({
  container,
  header,
  footerLinks,
  card
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].SocialContainer, container, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Alerts, {
  alert: container.alert
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Header, header), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Social, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].LanguagePicker, {
  selectedLanguage: card.selectedLanguage,
  availableLanguages: card.availableLanguages,
  onLanguageChange: card.onLanguageChange
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, card.title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialSection, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].WithValidation, card.form, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].Form, null))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialSection, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SocialColumns, card.social)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_1__["default"].SignUp, card.signUp)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].Footer, {
  links: footerLinks
}));

const SocialLoginPage = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"].WithTranslation, props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SocialLoginPagePattern, null));

const getLoginPage = props => Object(_LoginPage__WEBPACK_IMPORTED_MODULE_2__["default"])(props);

SocialLoginPage.Pattern = SocialLoginPagePattern;
SocialLoginPagePattern.propTypes = _objectSpread({}, getLoginPage.propTypes);
SocialLoginPagePattern.defaultProps = _objectSpread({}, getLoginPage.defaultProps);
/* harmony default export */ __webpack_exports__["default"] = (SocialLoginPage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BasicLoginCardLayout = (_ref) => {
  let {
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Col"], _extends({
    sm: 10,
    smOffset: 1,
    md: 8,
    mdOffset: 2,
    lg: 8,
    lgOffset: 2
  }, props), children));
};

BasicLoginCardLayout.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
BasicLoginCardLayout.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (BasicLoginCardLayout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js ***!
  \*****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Cards_Card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Cards/Card */ "./node_modules/patternfly-react/dist/esm/components/Cards/Card.js");
/* harmony import */ var _LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony import */ var _LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony import */ var _LoginCardForm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony import */ var _LoginCardSignUp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _LoginCardSettings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _LoginFormError__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony import */ var _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony import */ var _LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony import */ var _LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony import */ var _SocialLoginCard__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony import */ var _BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
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; }

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; }




















const LoginCard = (_ref) => {
  let {
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Cards_Card__WEBPACK_IMPORTED_MODULE_2__["default"], props, children);
};

LoginCard.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
LoginCard.defaultProps = {
  children: null
};
LoginCard.Header = _LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"];
LoginCard.LanguagePicker = _LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_4__["default"];
LoginCard.WithValidation = _LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_5__["default"];
LoginCard.Form = _LoginCardForm__WEBPACK_IMPORTED_MODULE_6__["default"];
LoginCard.SignUp = _LoginCardSignUp__WEBPACK_IMPORTED_MODULE_7__["default"];
LoginCard.Input = _LoginCardInput__WEBPACK_IMPORTED_MODULE_8__["default"];
LoginCard.Settings = _LoginCardSettings__WEBPACK_IMPORTED_MODULE_9__["default"];
LoginCard.FormError = _LoginFormError__WEBPACK_IMPORTED_MODULE_10__["default"];
LoginCard.ForgotPassword = _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_11__["default"];
LoginCard.RememberMe = _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_12__["default"];
LoginCard.Social = _SocialLoginCard__WEBPACK_IMPORTED_MODULE_16__["default"];
LoginCard.SocialLink = _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_13__["default"];
LoginCard.SocialSection = _LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_14__["default"];
LoginCard.SocialColumns = _LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_15__["default"];
LoginCard.BasicLayout = _BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_17__["default"];
/* harmony default export */ __webpack_exports__["default"] = (LoginCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
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; }

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; }





const LoginCardForgotPassword = (_ref) => {
  let {
    label
  } = _ref,
      props = _objectWithoutProperties(_ref, ["label"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"], props, label);
};

LoginCardForgotPassword.propTypes = {
  /** The forgot password label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
LoginCardForgotPassword.defaultProps = {
  label: 'Forgot password?'
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardForgotPassword);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony import */ var _LoginCardSubmitButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardSubmitButton */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js");
/* harmony import */ var _LoginFormError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }










const LoginCardForm = ({
  usernameField,
  passwordField,
  additionalFields,
  submitText,
  disableSubmit,
  onSubmit,
  forgotPassword,
  rememberMe,
  submitError,
  showError,
  attributes,
  isSubmitting,
  topErrorOnly,
  submitButtonAttributes
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_6__["Form"], _extends({
  onSubmit: onSubmit,
  noValidate: true
}, attributes), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginFormError__WEBPACK_IMPORTED_MODULE_5__["default"], {
  show: showError,
  topErrorOnly: topErrorOnly
}, submitError), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"], _objectSpread({}, usernameField, {
  topErrorOnly
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"], _objectSpread({}, passwordField, {
  topErrorOnly
})), additionalFields, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"], {
  rememberMe: rememberMe,
  forgotPassword: forgotPassword
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSubmitButton__WEBPACK_IMPORTED_MODULE_4__["default"], {
  isDisabled: disableSubmit,
  isLoading: isSubmitting,
  attributes: submitButtonAttributes
}, submitText));

LoginCardForm.propTypes = {
  /** login username input's props */
  usernameField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes)),

  /** login password input's props */
  passwordField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes)),

  /** Add additional fields under the inputs  */
  additionalFields: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** The submit button text */
  submitText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the submit button disability */
  disableSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** A callback that will be triggered when the form is submitted */
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** The forgotPassowrd section props */
  forgotPassword: _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.forgotPassword,

  /** The rememberMe section props */
  rememberMe: _LoginCardSettings__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes.rememberMe,

  /** The login form error which is usually shown after the submit - a server error. */
  submitError: 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.node]),

  /** Controlls the form error visibility */
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Additional HTML attributes to pass to the form */
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** Indicates the state of the form submit and whether to show a spinner or not */
  isSubmitting: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** when topErrorOnly is set to true,
   * the helpblock errors/warnings under each input won't appear,
   * instead we will have only the form error above.
   */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Override the button attributes */
  submitButtonAttributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
LoginCardForm.defaultProps = {
  usernameField: _objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    id: 'card_email',
    type: 'email',
    placeholder: 'Email Address'
  }),
  passwordField: _objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    id: 'card_password',
    type: 'password',
    placeholder: 'Password',
    minLength: 8
  }),
  additionalFields: null,
  submitText: null,
  disableSubmit: false,
  onSubmit: _common_helpers__WEBPACK_IMPORTED_MODULE_7__["noop"],
  forgotPassword: {
    label: null,
    href: '#',
    onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_7__["noop"]
  },
  rememberMe: {
    label: null
  },
  submitError: null,
  showError: false,
  attributes: null,
  isSubmitting: false,
  topErrorOnly: false,
  submitButtonAttributes: {}
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardForm);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const LoginCardHeader = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("header", _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-header', className)
  }), children);
};

LoginCardHeader.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
LoginCardHeader.defaultProps = {
  className: '',
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_Fade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/Fade */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }









const LoginCardInput = ({
  id,
  type,
  placeholder,
  size,
  error,
  warning,
  onChange,
  onFocus,
  onBlur,
  onKeyPress,
  showError,
  showWarning,
  className,
  autoComplete,
  attributes,
  topErrorOnly
}) => {
  const helpBlock = !topErrorOnly ? showError && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["HelpBlock"], null, error) || showWarning && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_4__["default"], null, warning) : null;
  let validationState = null;

  if (topErrorOnly) {
    if (showWarning) {
      validationState = 'warning';
    }
  } else if (showError) {
    validationState = 'error';
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["FormGroup"], {
    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('login_card_input', className),
    controlId: id,
    validationState: validationState
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["FormControl"], _extends({}, attributes, {
    type: type,
    placeholder: placeholder,
    bsSize: size,
    onChange: onChange,
    onFocus: onFocus,
    onBlur: onBlur,
    onKeyPress: onKeyPress,
    autoComplete: autoComplete
  })), topErrorOnly && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_5__["FormControl"].Feedback, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Fade__WEBPACK_IMPORTED_MODULE_2__["default"], {
    in: showError || showWarning
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, helpBlock)));
};

LoginCardInput.propTypes = {
  /** The input's id */
  id: 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.number]),

  /** The input's HTML type */
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The input's placeholder */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The bsSize of the input */
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The error which is presented under the input */
  error: 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.node]),

  /** The warning which is presented under the input */
  warning: 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.node]),

  /** A callback which is fired when the input changes. */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Controlls the warning visibility */
  showWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** A callback which is fired when the input blurs. */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** A callback which is fired when the input is focused. */
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** A callback which is fired on a key press. */
  onKeyPress: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** A callback which is fired when the input blurs. */
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** An additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the HTML autocomplete */
  autoComplete: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional HTML input's attributes. */
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** when topErrorOnly is set to true,
   * the helpblock errors/warnings under each input won't appear,
   * instead we will have only the form error above.
   */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
LoginCardInput.defaultProps = {
  id: Math.random().toString(),
  type: 'text',
  placeholder: 'Enter Text',
  size: 'lg',
  error: null,
  warning: null,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  showWarning: false,
  onBlur: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFocus: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onKeyPress: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  showError: false,
  className: null,
  autoComplete: '',
  attributes: null,
  topErrorOnly: false
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardInput);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const LoginCardInputWarning = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  return children && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-input-warning', className)
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    type: "pf",
    name: "warning-triangle-o"
  }), '   ', children);
};

LoginCardInputWarning.propTypes = {
  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
LoginCardInputWarning.defaultProps = {
  children: null,
  className: null
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardInputWarning);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const LoginCardRememberMe = (_ref) => {
  let {
    onClick,
    label,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["onClick", "label", "className"]);

  return label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
    className: `checkbox-label ${className}`
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", _extends({}, props, {
    type: "checkbox",
    onClick: onClick
  })), " ", label);
};

LoginCardRememberMe.propTypes = {
  /** The checkbox label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Callback to trigger when clicking the checkbox */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
LoginCardRememberMe.defaultProps = {
  label: null,
  className: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardRememberMe);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js ***!
  \*************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const LoginCardSettings = (_ref) => {
  let {
    rememberMe,
    forgotPassword,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["rememberMe", "forgotPassword", "className"]);

  return rememberMe.label || forgotPassword.label ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_4__["FormGroup"], _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-settings', className)
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__["default"], rememberMe), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__["default"], forgotPassword)) : null;
};

LoginCardSettings.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** RememberMe component's props. */
  rememberMe: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes)),

  /** ForgotPassword component's props. */
  forgotPassword: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes))
};
LoginCardSettings.defaultProps = {
  className: null,
  rememberMe: {},
  forgotPassword: {}
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSettings);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const LoginCardSignUp = (_ref) => {
  let {
    label,
    link,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["label", "link", "className"]);

  return label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-signup', className)
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, label, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__["default"], link)));
};

LoginCardSignUp.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The sign up label. */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The sign up label. */
  link: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes))
};
LoginCardSignUp.defaultProps = {
  className: '',
  label: null,
  link: {}
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSignUp);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js ***!
  \******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }







class LoginCardSocialColumns extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      expend: false,
      width: window.innerWidth
    });

    _defineProperty(this, "updateWindowWidth", () => {
      this.setState({
        width: window.innerWidth
      });
    });

    _defineProperty(this, "getListItems", () => {
      this.hiddenLinks = [];
      const {
        links,
        numberOfButtonsToShow
      } = this.props;
      return links && links.map((link, index) => {
        if (index >= numberOfButtonsToShow) {
          this.hiddenLinks.push(link);
          return true;
        }

        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"], {
          link: link,
          key: link.key || index
        });
      });
    });

    _defineProperty(this, "getHiddenListItems", () => {
      const {
        numberOfButtonsToShow
      } = this.props;
      return this.hiddenLinks && this.hiddenLinks.map((link, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"], {
        link: link,
        key: link.key || index + numberOfButtonsToShow
      }));
    });

    _defineProperty(this, "toggleExpend", () => {
      this.setState({
        expend: !this.state.expend
      });
    });
  }

  componentDidMount() {
    window.addEventListener('resize', this.updateWindowWidth);
  }

  componentWillUnmount() {
    window.removeEventListener('resize', this.updateWindowWidth);
  }

  render() {
    const {
      links,
      numberOfButtonsToShow
    } = this.props;

    if (!links) {
      return null;
    }

    const {
      expend,
      width
    } = this.state;
    const expendButton = width > 768 && links.length > numberOfButtonsToShow && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Button"], {
      bsStyle: "link",
      bsClass: "btn btn-link login-pf-social-toggle",
      onClick: this.toggleExpend
    }, expend ? 'Less' : 'More', " \xA0", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
      name: `angle-${expend ? 'up' : 'down'}`
    }));
    const doubleColumn = links.length > 4 ? 'login-pf-social-double-col' : '';
    const moreItems = expend || width < 768 ? this.getHiddenListItems() : null;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-social list-unstyled', doubleColumn)
    }, this.getListItems(), moreItems), expendButton);
  }

}

LoginCardSocialColumns.propTypes = {
  /** Array of social links to generate. */
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes))),

  /** The amount of buttons to show. Above this number, the buttons would be hidden */
  numberOfButtonsToShow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
LoginCardSocialColumns.defaultProps = {
  links: [],
  numberOfButtonsToShow: 8
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialColumns);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





const LoginCardSocialLink = ({
  link
}) => link && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
  className: "login-pf-social-link"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"], {
  href: link.href,
  onClick: link.onClick
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
  src: link.src,
  alt: link.alt
}), link.text));

LoginCardSocialLink.propTypes = {
  /** the link element props. */
  link: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    /** The image source */
    src: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

    /** The image alt description */
    alt: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

    /** The link text */
    text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }))
};
LoginCardSocialLink.defaultProps = {
  link: _objectSpread({}, _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
    src: null,
    alt: null,
    text: null
  })
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js ***!
  \******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const LoginCardSocialSection = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("section", _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-social-section', className)
  }), children);
};

LoginCardSocialSection.propTypes = {
  /** Additional css classes. */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Children nodes. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
LoginCardSocialSection.defaultProps = {
  className: null,
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSocialSection);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSubmitButton.js ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





const LoginCardSubmitButton = ({
  isDisabled,
  children,
  isLoading,
  attributes
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Button"], _extends({
  className: "login-pf-submit-button",
  type: "submit",
  bsStyle: "primary",
  bsSize: "large",
  block: true,
  disabled: isDisabled
}, attributes), children, isLoading ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, ' ', react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
  loading: isLoading,
  inline: true,
  size: "xs"
})) : null);

LoginCardSubmitButton.propTypes = {
  /** Sets the button disability  */
  isDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Sets the spinner visibility */
  isLoading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Override the button attributes */
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
LoginCardSubmitButton.defaultProps = {
  isDisabled: false,
  children: null,
  isLoading: false,
  attributes: {}
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardSubmitButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






class LoginCardWithValidation extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      usernameField: {
        value: '',
        errorType: null,
        isFocused: false,
        showError: false
      },
      passwordField: {
        value: '',
        errorType: null,
        warningType: null,
        isFocused: false,
        showError: false
      },
      isCapsLock: false,
      form: {
        showError: this.props.topErrorOnly ? true : this.props.showError,
        submitError: this.props.submitError,
        disableSubmit: true,
        isSubmitting: this.props.isSubmitting,
        topErrorOnly: this.props.topErrorOnly,
        errors: [this.props.submitError]
      }
    });

    _defineProperty(this, "shouldDisableSubmit", (inputType, updatedInputValue) => {
      if (updatedInputValue.length < 1) {
        return true;
      }

      const otherInputType = inputType === 'usernameField' ? 'passwordField' : 'usernameField';
      const otherInputValue = this.state[otherInputType].value;
      return otherInputValue.length < 1;
    });

    _defineProperty(this, "onInputChange", (e, inputType) => {
      const {
        target: {
          value
        }
      } = e;
      this.props[inputType].onChange && this.props[inputType].onChange(e);
      this.setState(({
        form
      }) => ({
        [inputType]: _objectSpread({}, this.state[inputType], {
          value,
          showError: false
        }),
        form: _objectSpread({}, form, {
          disableSubmit: this.shouldDisableSubmit(inputType, value)
        })
      }));
    });

    _defineProperty(this, "onInputFocus", (e, inputType) => {
      this.props[inputType].onFocus && this.props[inputType].onFocus(e);
      this.setState({
        [inputType]: _objectSpread({}, this.state[inputType], {
          isFocused: true,
          showError: false
        })
      });
    });

    _defineProperty(this, "onInputBlur", (e, inputType) => {
      this.props[inputType].onBlur && this.props[inputType].onBlur(e);
      this.setState({
        [inputType]: _objectSpread({}, this.state[inputType], {
          isFocused: false,
          showError: false
        }),
        isCapsLock: false
      });
    });

    _defineProperty(this, "onKeyPress", (e, inputType) => {
      this.props[inputType].onMouseEnter && this.props[inputType].onMouseEnter(e);
      this.handleCapsLock(e);
    });

    _defineProperty(this, "onSubmit", e => {
      e.preventDefault();

      if (this.isFormValid()) {
        this.onSubmitStart();
        this.props.onSubmit(e, this.onSubmitError);
      } else {
        this.handleOnInputErrors();
      }
    });

    _defineProperty(this, "onSubmitStart", () => {
      this.setState(({
        form
      }) => ({
        form: _objectSpread({}, form, {
          disableSubmit: true,
          isSubmitting: true,
          errors: form.topErrorOnly ? [] : form.topErrorOnly,
          showError: false
        })
      }));
    });

    _defineProperty(this, "onSubmitError", submitError => {
      this.setState(({
        form
      }) => ({
        form: _objectSpread({}, form, {
          showError: true,
          submitError,
          errors: [submitError],
          disableSubmit: false,
          isSubmitting: false
        })
      }));
    });

    _defineProperty(this, "getFormError", () => {
      const {
        form: {
          topErrorOnly,
          submitError,
          errors
        }
      } = this.state;
      return topErrorOnly ? errors.map((error, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "login-form-error",
        key: index
      }, error)) : submitError;
    });

    _defineProperty(this, "getModifiedProps", () => {
      const {
        usernameField,
        passwordField,
        isCapsLock,
        form
      } = this.state;
      const {
        passwordField: {
          warnings
        }
      } = this.props;
      const passwordFieldWarningType = this.state.isCapsLock ? 'capsLock' : this.state.passwordField.warningType;
      return {
        usernameField: _objectSpread({}, this.props.usernameField, {
          onChange: e => this.onInputChange(e, 'usernameField'),
          onFocus: e => this.onInputFocus(e, 'usernameField'),
          onBlur: e => this.onInputBlur(e, 'usernameField'),
          onKeyPress: e => this.onKeyPress(e, 'usernameField'),
          error: usernameField.error,
          showError: usernameField.showError
        }),
        passwordField: _objectSpread({}, this.props.passwordField, {
          onChange: e => this.onInputChange(e, 'passwordField'),
          onFocus: e => this.onInputFocus(e, 'passwordField'),
          onBlur: e => this.onInputBlur(e, 'passwordField'),
          onKeyPress: e => this.onKeyPress(e, 'passwordField'),
          warning: warnings && warnings[passwordFieldWarningType],
          showWarning: passwordField.isFocused && isCapsLock,
          error: passwordField.error,
          showError: passwordField.showError
        }),
        onSubmit: e => this.onSubmit(e),
        showError: form.showError,
        disableSubmit: form.disableSubmit,
        isSubmitting: form.isSubmitting,
        submitError: this.getFormError()
      };
    });

    _defineProperty(this, "handleOnInputErrors", () => {
      const {
        usernameField,
        passwordField
      } = this.state;
      const {
        topErrorOnly
      } = this.props;
      topErrorOnly && this.clearFormErrors();

      if (usernameField.value) {
        !this.isUserNameValid() && this.handleOnInvalidUsername();
      } else {
        this.handleOnEmptyInput('usernameField');
      }

      if (passwordField.value) {
        this.isPasswordShort() && this.handleOnPasswordTooShort();
      } else {
        this.handleOnEmptyInput('passwordField');
      }

      !topErrorOnly && this.hideSubmitError();
    });

    _defineProperty(this, "isFormValid", () => !!this.state.usernameField.value && !!this.state.passwordField.value && !this.isPasswordShort() && this.isUserNameValid());

    _defineProperty(this, "isPasswordShort", () => {
      const {
        passwordField: {
          minLength: passwordMinLength
        }
      } = this.props;
      const {
        passwordField: {
          value: {
            length: currentPasswordLength
          }
        }
      } = this.state;
      return passwordMinLength > 0 && currentPasswordLength < passwordMinLength;
    });

    _defineProperty(this, "hideSubmitError", () => {
      this.setState({
        form: _objectSpread({}, this.state.form, {
          showError: false
        })
      });
    });

    _defineProperty(this, "clearFormErrors", () => {
      this.setState(({
        form
      }) => ({
        form: _objectSpread({}, form, {
          errors: []
        })
      }));
    });

    _defineProperty(this, "handleOnPasswordTooShort", () => {
      const {
        passwordField: {
          errors: {
            short: error
          }
        }
      } = this.props;
      this.setState(({
        form,
        passwordField
      }) => form.topErrorOnly ? {
        form: _objectSpread({}, form, {
          errors: [...form.errors, error],
          showError: true
        })
      } : {
        passwordField: _objectSpread({}, passwordField, {
          error,
          showError: true
        })
      });
    });

    _defineProperty(this, "handleOnInvalidUsername", () => {
      const {
        usernameField: {
          errors: {
            invalid: error
          }
        }
      } = this.props;
      this.setState(({
        form,
        usernameField
      }) => form.topErrorOnly ? {
        form: _objectSpread({}, form, {
          errors: [...form.errors, error],
          showError: true
        })
      } : {
        usernameField: _objectSpread({}, usernameField, {
          error,
          showError: true
        })
      });
    });

    _defineProperty(this, "handleOnEmptyInput", inputType => {
      const {
        [inputType]: {
          errors: {
            empty: error
          }
        }
      } = this.props;
      this.setState(({
        form
      }) => form.topErrorOnly ? {
        form: _objectSpread({}, form, {
          errors: [...form.errors, error],
          showError: true
        })
      } : {
        [inputType]: _objectSpread({}, this.state[inputType], {
          error,
          showError: true
        })
      });
    });

    _defineProperty(this, "toggleCapsLock", e => {
      if (!this.state.passwordField.value) {
        return;
      }

      e.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].CAPSLOCK && this.setState({
        isCapsLock: !this.state.isCapsLock
      });
    });

    _defineProperty(this, "handleCapsLock", e => {
      const keyCode = e.keyCode ? e.keyCode : e.which;
      const shiftKey = e.shiftKey ? e.shiftKey : keyCode === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].SHIFT;
      const isCapsLock = keyCode >= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].A && keyCode <= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].Z && !shiftKey || keyCode >= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].NUMPAD['0'] && keyCode <= _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEY_CODES"].F11 && shiftKey;
      this.setState({
        isCapsLock
      });
    });

    _defineProperty(this, "isUserNameValid", () => {
      const {
        usernameField: {
          type: userType
        }
      } = this.props;

      if (userType === 'email') {
        const mailAddress = this.state.usernameField.value;
        const atPos = mailAddress.indexOf('@');
        const dotPos = mailAddress.lastIndexOf('.');
        return atPos > 1 && dotPos - atPos > 2 && atPos < dotPos;
      }

      return true;
    });
  }

  componentDidMount() {
    window.addEventListener('keyup', this.toggleCapsLock);
  }

  componentWillUnmount() {
    window.removeEventListener('keyup', this.toggleCapsLock);
  } // eslint-disable-next-line class-methods-use-this


  static getDerivedStateFromProps(props, state) {
    // disableSubmit prop will only be used in a not validated login card
    const {
      validate,
      disableSubmit
    } = props;

    if (validate) {
      return null;
    }

    if (disableSubmit !== state.form.disableSubmit) {
      return {
        form: {
          disableSubmit
        }
      };
    }

    return null;
  }

  render() {
    const {
      validate,
      children
    } = this.props;
    return validate ? react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(children, _objectSpread({}, this.props, {}, this.getModifiedProps())) : react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(children, _objectSpread({}, this.props));
  }

}

LoginCardWithValidation.propTypes = {
  validate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired,
  usernameField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    errors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
  })),
  passwordField: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, {
    errors: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
    warnings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
    minLength: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
  })),
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  submitError: 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.node]),
  // eslint-disable-next-line react/no-unused-prop-types
  disableSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  isSubmitting: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  showError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
LoginCardWithValidation.defaultProps = {
  validate: true,
  usernameField: _objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.usernameField),
  passwordField: _objectSpread({}, _LoginCardInput__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.passwordField),
  onSubmit: e => e.target.submit(),
  submitError: null,
  disableSubmit: false,
  isSubmitting: false,
  showError: false,
  topErrorOnly: false
};
/* harmony default export */ __webpack_exports__["default"] = (LoginCardWithValidation);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_collapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-collapse */ "./node_modules/react-collapse/lib/index.js");
/* harmony import */ var react_collapse__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_collapse__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const LoginFormError = (_ref) => {
  let {
    children,
    show,
    topErrorOnly,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "show", "topErrorOnly", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('login-form-error', className),
    style: topErrorOnly ? {
      minHeight: '20px'
    } : null
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_collapse__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({}, props, {
    isOpened: children !== null && show
  }), children));
};

LoginFormError.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** children nodes or text */
  children: 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.node]),

  /** Controlls the collapse to open/close */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** if it`s a login page with topErrorOnly, add a fixed space for the form error */
  topErrorOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
LoginFormError.defaultProps = {
  className: null,
  children: null,
  show: false,
  topErrorOnly: false
};
/* harmony default export */ __webpack_exports__["default"] = (LoginFormError);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }







class LoginLanguagePicker extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleClick", e => {
      const {
        onLanguageChange
      } = this.props;
      onLanguageChange(e);
      this.setState({
        title: e.target.text
      });
    });

    const {
      selectedLanguage,
      availableLanguages
    } = props;
    this.state = {
      title: selectedLanguage || availableLanguages && availableLanguages[0].text
    };
  }

  UNSAFE_componentWillReceiveProps(nextProps) {
    const {
      selectedLanguage,
      availableLanguages
    } = nextProps;
    const title = selectedLanguage || availableLanguages && availableLanguages[0].text;
    this.setState({
      title
    });
  }

  render() {
    const {
      availableLanguages,
      className,
      id
    } = this.props;
    const {
      title
    } = this.state;

    if (!availableLanguages) {
      return null;
    }

    const menuItems = availableLanguages.map((language, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["MenuItem"], {
      key: index,
      value: language.value,
      active: title === language.text,
      onClick: this.handleClick
    }, language.text));
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('bootstrap-select btn-group', className)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["DropdownButton"], {
      title: title,
      id: id
    }, menuItems));
  }

}

LoginLanguagePicker.propTypes = {
  /** Provided languages to pass into the dropdown menu */
  availableLanguages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the language menu item's value */
    value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),

    /** the language menu item's text */
    text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })),

  /** The default selected language */
  selectedLanguage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Callback to trigger when selecting a language */
  onLanguageChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The dropdown's id */
  id: 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.number])
};
LoginLanguagePicker.defaultProps = {
  selectedLanguage: null,
  availableLanguages: null,
  onLanguageChange: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  className: null,
  id: 'language-picker'
};
/* harmony default export */ __webpack_exports__["default"] = (LoginLanguagePicker);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginCard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const SocialLoginCard = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginCard__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('login-pf-accounts', className)
  }), children);
};

SocialLoginCard.propTypes = {
  /** The children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
SocialLoginCard.defaultProps = {
  children: null,
  className: null
};
/* harmony default export */ __webpack_exports__["default"] = (SocialLoginCard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const BasicLoginPageLayout = (_ref) => {
  let {
    children,
    layout
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "layout"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Grid"], _extends({}, props, {
    fluid: true
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Row"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Col"], _extends({
    sm: 8,
    smOffset: 2,
    md: 6,
    mdOffset: 3,
    lg: 6,
    lgOffset: 3
  }, layout), children)));
};

BasicLoginPageLayout.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  layout: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
BasicLoginPageLayout.defaultProps = {
  children: null,
  layout: null
};
/* harmony default export */ __webpack_exports__["default"] = (BasicLoginPageLayout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js ***!
  \************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");




const LoginFooterLinks = ({
  links
}) => {
  const listItems = links.map((link, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    key: index
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_2__["default"], {
    className: "login-pf-page-footer-link",
    href: link.href,
    onClick: e => link.onClick(e)
  }, link.children)));
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
    className: "login-pf-page-footer-links list-unstyled"
  }, listItems);
};

LoginFooterLinks.propTypes = {
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
LoginFooterLinks.defaultProps = {
  links: []
};
/* harmony default export */ __webpack_exports__["default"] = (LoginFooterLinks);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }






class LoginPageAlert extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      show: this.props.show
    });

    _defineProperty(this, "closeAlert", e => {
      this.props.onDismiss(e);

      if (!this.state.show) {
        return;
      }

      this.setState({
        show: false
      });
    });
  }

  render() {
    const {
      type,
      message
    } = this.props;
    return this.state.show ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"], {
      type: type,
      onDismiss: e => this.closeAlert(e)
    }, message) : null;
  }

}

LoginPageAlert.propTypes = {
  type: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  onDismiss: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  message: 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.node]),
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
LoginPageAlert.defaultProps = {
  type: 'warning',
  onDismiss: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  message: null,
  show: false
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageAlert);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlerts.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }






const LoginPageAlerts = ({
  alert
}) => {
  if (Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isEmpty"])(alert)) {
    return null;
  }

  if (Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isArray"])(alert)) {
    return alert.map((item, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
      key: index
    }, item)));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageAlert__WEBPACK_IMPORTED_MODULE_3__["default"], alert);
};

LoginPageAlerts.propTypes = {
  alert: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
};
LoginPageAlerts.defaultProps = {
  alert: null
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageAlerts);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js ***!
  \**************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const LoginPageContainer = ({
  backgroundUrl,
  className,
  children
}) => {
  const style = backgroundUrl ? {
    backgroundImage: `url(${backgroundUrl})`
  } : {};
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "login-pf",
    style: style
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: `login-pf-page ${className}`
  }, children));
};

LoginPageContainer.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  backgroundUrl: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
LoginPageContainer.defaultProps = {
  children: null,
  backgroundUrl: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");




const LoginPageFooter = ({
  links
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("footer", {
  className: "login-pf-page-footer"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__["default"], {
  links: links
}));

LoginPageFooter.propTypes = {
  links: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
LoginPageFooter.defaultProps = {
  links: _LoginFooterLinks__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps.links
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const LoginPageHeader = ({
  logoSrc,
  logoTitle,
  caption
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("header", {
  className: "login-pf-page-header"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
  className: "login-pf-brand",
  src: logoSrc,
  title: logoTitle,
  alt: "logo"
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "login-pf-caption"
}, caption));

LoginPageHeader.propTypes = {
  logoSrc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  logoTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  caption: 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.node])
};
LoginPageHeader.defaultProps = {
  logoSrc: null,
  logoTitle: null,
  caption: null
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js ***!
  \*********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const LoginPageLink = (_ref) => {
  let {
    onClick,
    href,
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["onClick", "href", "children"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", _extends({
    href: href,
    onClick: onClick
  }, props), children);
};

LoginPageLink.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
LoginPageLink.defaultProps = {
  children: null,
  href: '#',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js ***!
  \********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony import */ var _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony import */ var _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }







class LoginPageWithTranslation extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onLanguageChange", e => {
      const newLanguage = e.target.attributes.value.value;

      if (!newLanguage || this.state.language === newLanguage) {
        return;
      }

      this.switchToLanguage(newLanguage);
    });

    _defineProperty(this, "onPasswordChange", e => {
      const {
        card
      } = this.props;
      card.form.passwordField.onChange && card.form.passwordField.onChange(e);
      this.setState({
        passwordValue: e.target.value
      });
    });

    _defineProperty(this, "onUsernameChange", e => {
      const {
        card
      } = this.props;
      card.form.usernameField.onChange && card.form.usernameField.onChange(e);
      this.setState({
        usernameValue: e.target.value
      });
    });

    _defineProperty(this, "getDefaultPropsToPass", () => {
      const {
        card
      } = this.props;
      return {
        card: _objectSpread({}, card, {
          onLanguageChange: e => this.onLanguageChange(e),
          form: _objectSpread({}, card.form, {
            usernameField: _objectSpread({}, card.form.usernameField, {
              value: this.state.usernameValue,
              onChange: e => this.onUsernameChange(e)
            }),
            passwordField: _objectSpread({}, card.form.passwordField, {
              value: this.state.passwordValue,
              onChange: e => this.onPasswordChange(e)
            })
          })
        })
      };
    });

    _defineProperty(this, "switchToLanguage", language => {
      const {
        container,
        card,
        header
      } = this.props;
      const languageFile = container.translations[language];

      const translatedProps = _objectSpread({}, this.props, {
        container: _objectSpread({}, container, {
          alert: _objectSpread({}, header.alert, {
            message: languageFile.header.alert
          })
        }),
        header: _objectSpread({}, header, {
          logoTitle: languageFile.header.logo,
          caption: languageFile.header.caption
        }),
        footerLinks: languageFile.footerLinks,
        card: _objectSpread({}, card, {
          title: languageFile.card.header.title,
          selectedLanguage: languageFile.card.header.selectedLanguage,
          availableLanguages: languageFile.card.header.availableLanguages,
          onLanguageChange: e => this.onLanguageChange(e),
          signUp: {
            label: languageFile.card.signUp.label,
            link: _objectSpread({}, card.signUp.link, {
              children: languageFile.card.signUp.link.label
            })
          },
          form: _objectSpread({}, card.form, {
            submitError: languageFile.card.form.error,
            usernameField: _objectSpread({}, card.form.usernameField, {
              onChange: e => this.onUsernameChange(e),
              value: this.state.usernameValue,
              placeholder: languageFile.card.usernameField.placeholder,
              errors: languageFile.card.usernameField.errors
            }),
            passwordField: _objectSpread({}, card.form.passwordField, {
              onChange: e => this.onPasswordChange(e),
              value: this.state.passwordValue,
              placeholder: languageFile.card.passwordField.placeholder,
              errors: languageFile.card.passwordField.errors,
              warnings: languageFile.card.passwordField.warnings
            }),
            submitText: languageFile.card.form.submitText,
            rememberMe: _objectSpread({}, card.rememberMe, {
              label: languageFile.card.rememberMe
            }),
            forgotPassword: _objectSpread({}, card.forgotPassword, {
              label: languageFile.card.forgotPassword
            })
          })
        })
      });

      this.setState({
        translatedProps,
        language
      });
    });

    const {
      selectedLanguage,
      availableLanguages
    } = props.card;
    this.state = {
      language: selectedLanguage && selectedLanguage.value || availableLanguages && availableLanguages[0] && availableLanguages[0].value,
      passwordValue: '',
      usernameValue: '',
      translatedProps: {}
    };
  }

  render() {
    const newProps = _objectSpread({}, this.props, {}, this.getDefaultPropsToPass(), {}, this.state.translatedProps);

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(this.props.children, newProps);
  }

}

LoginPageWithTranslation.propTypes = {
  card: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].LanguagePicker.propTypes, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].Form.propTypes, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].SignUp.propTypes, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].RememberMe.propTypes, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].ForgotPassword.propTypes)),
  header: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes)),
  container: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"].propTypes)),
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired
};
LoginPageWithTranslation.defaultProps = {
  card: _objectSpread({}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].LanguagePicker.defaultProps, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].Form.defaultProps, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].SignUp.defaultProps, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].RememberMe.defaultProps, {}, _LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_2__["default"].ForgotPassword.defaultProps),
  header: _objectSpread({}, _LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_3__["default"].defaultProps),
  container: _objectSpread({}, _LoginPageContainer__WEBPACK_IMPORTED_MODULE_4__["default"].defaultProps)
};
/* harmony default export */ __webpack_exports__["default"] = (LoginPageWithTranslation);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js ***!
  \********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _LoginPageContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const SocialLoginPageContainer = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_LoginPageContainer__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, props, {
    className: `${className} login-pf-page-accounts`
  }), children);
};

SocialLoginPageContainer.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
SocialLoginPageContainer.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (SocialLoginPageContainer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js ***!
  \******************************************************************************/
/*! exports provided: LoginPage, LoginPageContainer, LoginPageHeader, LoginPageFooter, LoginFooterLinks, LoginPageLink, LoginCard, LoginPageWithTranslation, LoginPageAlert, SocialLoginPage, SocialLoginPageContainer, BasicLoginPageLayout, LoginCardHeader, LoginLanguagePicker, LoginCardWithValidation, LoginCardForm, LoginCardSignUp, LoginCardInput, LoginCardInputWarning, LoginCardSettings, LoginFormError, LoginCardForgotPassword, LoginCardRememberMe, LoginCardSocialLink, LoginCardSocialSection, LoginCardSocialColumns, SocialLoginCard, BasicLoginCardLayout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _LoginPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/LoginPage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPage", function() { return _LoginPage__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageContainer", function() { return _components_LoginPageComponents_LoginPageContainer__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageHeader", function() { return _components_LoginPageComponents_LoginPageHeader__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageFooter */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageFooter", function() { return _components_LoginPageComponents_LoginPageFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginFooterLinks */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginFooterLinks.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFooterLinks", function() { return _components_LoginPageComponents_LoginFooterLinks__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCard", function() { return _components_LoginCardComponents_LoginCard__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageWithTranslation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageWithTranslation.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageWithTranslation", function() { return _components_LoginPageComponents_LoginPageWithTranslation__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageAlert */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageAlert.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageAlert", function() { return _components_LoginPageComponents_LoginPageAlert__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/LoginPageComponents/LoginPageLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/LoginPageLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageLink", function() { return _components_LoginPageComponents_LoginPageLink__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _SocialLoginPage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SocialLoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/SocialLoginPage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPage", function() { return _SocialLoginPage__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/LoginPageComponents/SocialLoginPageContainer */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/SocialLoginPageContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPageContainer", function() { return _components_LoginPageComponents_SocialLoginPageContainer__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/LoginPageComponents/BasicLoginPageLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginPageComponents/BasicLoginPageLayout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginPageLayout", function() { return _components_LoginPageComponents_BasicLoginPageLayout__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardHeader */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardHeader", function() { return _components_LoginCardComponents_LoginCardHeader__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginLanguagePicker */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginLanguagePicker.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginLanguagePicker", function() { return _components_LoginCardComponents_LoginLanguagePicker__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardWithValidation */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardWithValidation.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardWithValidation", function() { return _components_LoginCardComponents_LoginCardWithValidation__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForm */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForm.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForm", function() { return _components_LoginCardComponents_LoginCardForm__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSignUp */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSignUp.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSignUp", function() { return _components_LoginCardComponents_LoginCardSignUp__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInput */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInput.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInput", function() { return _components_LoginCardComponents_LoginCardInput__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardInputWarning */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardInputWarning.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInputWarning", function() { return _components_LoginCardComponents_LoginCardInputWarning__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSettings */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSettings.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSettings", function() { return _components_LoginCardComponents_LoginCardSettings__WEBPACK_IMPORTED_MODULE_19__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginFormError */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginFormError.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFormError", function() { return _components_LoginCardComponents_LoginFormError__WEBPACK_IMPORTED_MODULE_20__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardForgotPassword */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardForgotPassword.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForgotPassword", function() { return _components_LoginCardComponents_LoginCardForgotPassword__WEBPACK_IMPORTED_MODULE_21__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardRememberMe */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardRememberMe.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardRememberMe", function() { return _components_LoginCardComponents_LoginCardRememberMe__WEBPACK_IMPORTED_MODULE_22__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialSection */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialSection.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialSection", function() { return _components_LoginCardComponents_LoginCardSocialSection__WEBPACK_IMPORTED_MODULE_23__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialLink */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialLink", function() { return _components_LoginCardComponents_LoginCardSocialLink__WEBPACK_IMPORTED_MODULE_24__["default"]; });

/* harmony import */ var _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/LoginCardComponents/LoginCardSocialColumns */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/LoginCardSocialColumns.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialColumns", function() { return _components_LoginCardComponents_LoginCardSocialColumns__WEBPACK_IMPORTED_MODULE_25__["default"]; });

/* harmony import */ var _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoginCardComponents/SocialLoginCard */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/SocialLoginCard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginCard", function() { return _components_LoginCardComponents_SocialLoginCard__WEBPACK_IMPORTED_MODULE_26__["default"]; });

/* harmony import */ var _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginCardComponents/BasicLoginCardLayout */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/components/LoginCardComponents/BasicLoginCardLayout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginCardLayout", function() { return _components_LoginCardComponents_BasicLoginCardLayout__WEBPACK_IMPORTED_MODULE_27__["default"]; });































/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);


/**
 * Custom Masthead Dropdown
 */

const CustomMastheadDropdown = ({
  className,
  children
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
  className: className
}, children);

CustomMastheadDropdown.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Children elements */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
CustomMastheadDropdown.defaultProps = {
  className: '',
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (CustomMastheadDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _MastheadCollapse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MastheadCollapse */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js");
/* harmony import */ var _MastheadDropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







/**
 * Masthead
 */

const Masthead = (_ref) => {
  let {
    className,
    title,
    titleImg,
    iconImg,
    href,
    onTitleClick,
    navToggle,
    onNavToggleClick,
    middleContent,
    thin,
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "title", "titleImg", "iconImg", "href", "onTitleClick", "navToggle", "onNavToggleClick", "middleContent", "thin", "children"]);

  const mastheadClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    navbar: true,
    'navbar-default': thin,
    'navbar-pf': thin,
    'navbar-pf-vertical': !thin
  }, className);

  const handleTitleClick = e => {
    if (onTitleClick !== _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]) {
      if (e) {
        e.preventDefault();
      }

      onTitleClick();
    }
  };

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", _extends({
    className: mastheadClasses
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "navbar-header"
  }, navToggle && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
    className: "navbar-toggle",
    onClick: onNavToggleClick
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "sr-only"
  }, "Toggle navigation"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    "aria-hidden": "true",
    className: "icon-bar"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    "aria-hidden": "true",
    className: "icon-bar"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    "aria-hidden": "true",
    className: "icon-bar"
  })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: href,
    role: "button",
    className: "navbar-brand",
    onClick: handleTitleClick
  }, iconImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
    className: "navbar-brand-icon",
    src: iconImg,
    alt: ""
  }), titleImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
    className: "navbar-brand-name",
    src: titleImg,
    alt: title
  }), !titleImg && title), middleContent), children);
};

Masthead.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Title of the application (use either this or titleImg) */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of an image for the app's title (use either this or title) */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of an image for the app's icon */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of the application's homepage if the title should be a link */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Alternative to href, callback to call when the brand link is clicked */
  onTitleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Option to have the nav toggle (hamburger), default is true */
  navToggle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Option to have the fit nav, default is false */
  thin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Callback when the nav toggle (hamburger) is clicked */
  onNavToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Content for the center area of the masthead (context selector) */
  middleContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Children (typically MastheadCollapse) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
Masthead.defaultProps = {
  className: '',
  title: '',
  titleImg: '',
  iconImg: '',
  href: '#',
  onTitleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  navToggle: true,
  thin: false,
  onNavToggleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  middleContent: null,
  children: null
};
Masthead.Collapse = _MastheadCollapse__WEBPACK_IMPORTED_MODULE_4__["default"];
Masthead.Dropdown = _MastheadDropdown__WEBPACK_IMPORTED_MODULE_5__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Masthead);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * Masthead
 */

const MastheadCollapse = (_ref) => {
  let {
    className,
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "children"]);

  const menusClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('collapse', 'navbar-collapse', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", _extends({
    className: menusClasses
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
    className: "nav navbar-nav navbar-right navbar-iconic navbar-utility"
  }, children));
};

MastheadCollapse.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Children (likely MastheadDropdown's) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
MastheadCollapse.defaultProps = {
  className: '',
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (MastheadCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _InnerComponents_CustomMastheadDropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InnerComponents/CustomMastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/InnerComponents/CustomMastheadDropdown.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * Masthead
 */

const MastheadDropdown = (_ref) => {
  let {
    className,
    id,
    title,
    noCaret,
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "id", "title", "noCaret", "children"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"], _extends({
    id: id,
    componentClass: _InnerComponents_CustomMastheadDropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
    className: className
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Toggle, {
    className: "nav-item-iconic",
    bsStyle: "link",
    noCaret: noCaret
  }, title), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Menu, null, children));
};

MastheadDropdown.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID of dropdown */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** Title of dropdown */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Children (likely MenuItem's) */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Caret in Dropdown */
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
MastheadDropdown.defaultProps = {
  className: '',
  title: null,
  children: null,
  noCaret: false
};
/* harmony default export */ __webpack_exports__["default"] = (MastheadDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Masthead/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Masthead/index.js ***!
  \*****************************************************************************/
/*! exports provided: Masthead, MastheadCollapse, MastheadDropdown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Masthead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Masthead */ "./node_modules/patternfly-react/dist/esm/components/Masthead/Masthead.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Masthead", function() { return _Masthead__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _MastheadCollapse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MastheadCollapse */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadCollapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadCollapse", function() { return _MastheadCollapse__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _MastheadDropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MastheadDropdown */ "./node_modules/patternfly-react/dist/esm/components/Masthead/MastheadDropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadDropdown", function() { return _MastheadDropdown__WEBPACK_IMPORTED_MODULE_2__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_MenuItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/MenuItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/MenuItem.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_MenuItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js ***!
  \*****************************************************************************/
/*! exports provided: MenuItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/MenuItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }








const MessageDialog = (_ref) => {
  let {
    show,
    onHide,
    primaryAction,
    secondaryAction,
    title,
    icon,
    primaryContent,
    secondaryContent,
    primaryActionButtonBsStyle,
    secondaryActionButtonBsStyle,
    primaryActionButtonContent,
    secondaryActionButtonContent,
    className,
    footer,
    enforceFocus,
    accessibleName,
    accessibleDescription
  } = _ref,
      props = _objectWithoutProperties(_ref, ["show", "onHide", "primaryAction", "secondaryAction", "title", "icon", "primaryContent", "secondaryContent", "primaryActionButtonBsStyle", "secondaryActionButtonBsStyle", "primaryActionButtonContent", "secondaryActionButtonContent", "className", "footer", "enforceFocus", "accessibleName", "accessibleDescription"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"], _extends({
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('message-dialog-pf', className),
    show: show,
    onHide: onHide,
    enforceFocus: enforceFocus,
    "aria-modal": true,
    "aria-labelledby": accessibleName,
    "aria-describedby": accessibleDescription
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].CloseButton, {
    onClick: onHide
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, {
    id: accessibleName
  }, title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, icon && icon, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    id: accessibleDescription
  }, primaryContent && primaryContent, secondaryContent && secondaryContent)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, !footer ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, secondaryActionButtonContent && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["Button"], {
    bsStyle: secondaryActionButtonBsStyle,
    onClick: secondaryAction
  }, secondaryActionButtonContent), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["Button"], {
    autoFocus: true,
    bsStyle: primaryActionButtonBsStyle,
    onClick: primaryAction
  }, primaryActionButtonContent)) : footer));
};

MessageDialog.propTypes = {
  /** additional class(es) */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** When true, the modal will show itself */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool.isRequired,

  /** A callback fired when the header closeButton or backdrop is clicked */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** callback to trigger when clicking the default footer primary action button */
  primaryAction(props, propName, componentName) {
    if (props.footer) {
      return null;
    }

    return prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.checkPropTypes({
      primaryAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
    }, {
      [propName]: props[propName]
    }, propName, componentName);
  },

  /** callback to trigger when clicking the default footer secondary action button */
  secondaryAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Bootstrap button style for primary action */
  primaryActionButtonBsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Bootstrap button style for secondary action */
  secondaryActionButtonBsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** content for default footer primary action button */
  primaryActionButtonContent(props, propName, componentName) {
    if (props.footer) {
      return null;
    }

    return prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.checkPropTypes({
      primaryActionButtonContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node.isRequired
    }, {
      [propName]: props[propName]
    }, propName, componentName);
  },

  /** content for default footer secondary action button */
  secondaryActionButtonContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** modal title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** modal body icon */
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** modal body primary content */
  primaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** modal body secondary content */
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** custom footer */
  footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** When true the modal will prevent focus from leaving the Modal while open */
  enforceFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Gives the modal an accessible name by referring to the element that provides the dialog title. Must be unique, as this sets an id */
  accessibleName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the modal. Must be unique, as this sets an id */
  accessibleDescription: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
MessageDialog.defaultProps = {
  className: '',
  primaryAction: null,
  secondaryAction: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  primaryActionButtonBsStyle: 'primary',
  secondaryActionButtonBsStyle: 'default',
  primaryActionButtonContent: null,
  secondaryActionButtonContent: null,
  title: '',
  icon: null,
  primaryContent: null,
  secondaryContent: null,
  footer: null,
  enforceFocus: true,
  accessibleName: '',
  accessibleDescription: ''
};
/* harmony default export */ __webpack_exports__["default"] = (MessageDialog);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js ***!
  \**********************************************************************************/
/*! exports provided: MessageDialog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _MessageDialog__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MessageDialog */ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/MessageDialog.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageDialog", function() { return _MessageDialog__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/lib/utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/index.js");
/* harmony import */ var react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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; }

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; }

/**
 * CustomModalDialog creates custom ReactBootstrap ModalDialog
 * https://github.com/react-bootstrap/react-bootstrap/blob/bs3-dev/src/ModalDialog.js
 * Up-to-date with the original as of https://github.com/react-bootstrap/react-bootstrap/commit/87a9a97f8670f3a02436f8f520caf36f88e4bdab
 *
 * This extends ModalDialog and adds contentClassName prop for setting
 * `modal-content` div's class
 */




const {
  bsClass
} = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"];
const {
  bsSizes
} = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"];
const {
  getClassSet
} = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"];
const {
  prefix
} = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"];
const {
  splitBsProps
} = react_bootstrap_lib_utils__WEBPACK_IMPORTED_MODULE_3__["bootstrapUtils"]; // React Bootstrap utils/StyleConfig Size is currently not exported

const Size = {
  LARGE: 'large',
  SMALL: 'small'
}; // eslint-disable-next-line react/prefer-stateless-function

class CustomModalDialog extends react__WEBPACK_IMPORTED_MODULE_1___default.a.Component {
  render() {
    const _this$props = this.props,
          {
      dialogClassName,
      contentClassName,
      className,
      style,
      children,
      onMouseDownDialog
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["dialogClassName", "contentClassName", "className", "style", "children", "onMouseDownDialog"]);

    const [bsProps, elementProps] = splitBsProps(props);
    const bsClassName = prefix(bsProps);

    const modalStyle = _objectSpread({
      display: 'block'
    }, style);

    const dialogClasses = _objectSpread({}, getClassSet(bsProps), {
      [bsClassName]: false,
      [prefix(bsProps, 'dialog')]: true
    });

    return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({}, elementProps, {
      tabIndex: "-1",
      role: "dialog",
      style: modalStyle,
      className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(className, bsClassName)
    }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(dialogClassName, dialogClasses),
      onMouseDown: onMouseDownDialog
    }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefix(bsProps, 'content'), contentClassName),
      role: "document"
    }, children)));
  }

}

CustomModalDialog.propTypes = {
  /** A css class to apply to the Modal dialog DOM node. */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** custom modal-content class added to the content DOM node */
  contentClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** base modal class name */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** additional modal styles */
  style: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,

  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node
};
CustomModalDialog.defaultProps = {
  dialogClassName: '',
  contentClassName: '',
  className: '',
  style: {},
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (bsClass('modal', bsSizes([Size.LARGE, Size.SMALL], CustomModalDialog)));

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Modal */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Modal.js");
/* harmony import */ var _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InnerComponents/CustomModalDialog */ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js");
/* harmony import */ var _ModalCloseButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ModalCloseButton */ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js");
/* harmony import */ var _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Patterns/ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony import */ var _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Patterns/StatefulModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






/**
 * Modal Component for Patternfly React
 */

class Modal extends react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"] {
  render() {
    return super.render();
  }

}

Modal.propTypes = _objectSpread({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"].propTypes);
Modal.defaultProps = _objectSpread({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_0__["default"].defaultProps, {
  dialogComponentClass: _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_1__["default"]
});
Modal.CloseButton = _ModalCloseButton__WEBPACK_IMPORTED_MODULE_2__["default"];
Modal.Pattern = _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_3__["default"];
Modal.Pattern.Stateful = _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_4__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Modal);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const ModalCloseButton = (_ref) => {
  let {
    className,
    closeText
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "closeText"]);

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", _extends({
    className: classnames__WEBPACK_IMPORTED_MODULE_0___default()('close', className)
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    type: "pf",
    name: "close",
    "aria-hidden": "true",
    title: closeText
  }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
    className: "sr-only"
  }, closeText));
};

ModalCloseButton.defaultProps = {
  className: '',
  closeText: 'Close'
};
ModalCloseButton.propTypes = {
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Alternate text for close button for screen readers (default 'Close') */
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
/* harmony default export */ __webpack_exports__["default"] = (ModalCloseButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../InnerComponents/CustomModalDialog */ "./node_modules/patternfly-react/dist/esm/components/Modal/InnerComponents/CustomModalDialog.js");
/* harmony import */ var react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap/es/Modal */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Modal.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







/**
 * Modal Pattern component.
 */

const ModalPattern = (_ref) => {
  let {
    show,
    title,
    onClose,
    footer,
    children
  } = _ref,
      rest = _objectWithoutProperties(_ref, ["show", "title", "onClose", "footer", "children"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
    show: show
  }, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].CloseButton, {
    onClick: onClose
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Title, null, title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Body, null, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["default"].Footer, null, footer));
};

ModalPattern.propTypes = _objectSpread({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes, {
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  title: 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.node]),
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  footer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
});
ModalPattern.defaultProps = _objectSpread({}, react_bootstrap_es_Modal__WEBPACK_IMPORTED_MODULE_5__["default"].defaultProps, {
  dialogComponentClass: _InnerComponents_CustomModalDialog__WEBPACK_IMPORTED_MODULE_4__["default"],
  show: false,
  title: '',
  onClose: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  footer: null,
  children: null
});
ModalPattern.displayName = 'ModalPattern';
/* harmony default export */ __webpack_exports__["default"] = (ModalPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _ModalPattern__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }




/**
 * Stateful Modal Pattern component.
 */

class StatefulModalPattern extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  static getDerivedStateFromProps(nextProps, prevState) {
    return {
      show: Object(_index__WEBPACK_IMPORTED_MODULE_2__["propOrState"])(nextProps, prevState, 'show')
    };
  }

  constructor(props) {
    super(props);

    _defineProperty(this, "open", () => {
      this.setState({
        show: true
      });
    });

    _defineProperty(this, "close", () => {
      this.setState({
        show: false
      });
    });

    _defineProperty(this, "getModalPatternProps", () => this.props);

    this.state = {
      show: false
    };
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, this.getModalPatternProps(), {
      show: this.state.show,
      onClose: this.close
    }));
  }

}

StatefulModalPattern.propTypes = _objectSpread({}, Object(_index__WEBPACK_IMPORTED_MODULE_2__["excludeKeys"])(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"].propTypes, ['onClose']));
StatefulModalPattern.defaultProps = _objectSpread({}, Object(_index__WEBPACK_IMPORTED_MODULE_2__["excludeKeys"])(_ModalPattern__WEBPACK_IMPORTED_MODULE_1__["default"].defaultProps, ['onClose', 'show']));
StatefulModalPattern.displayName = 'StatefulModalPattern';
/* harmony default export */ __webpack_exports__["default"] = (StatefulModalPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Modal/index.js ***!
  \**************************************************************************/
/*! exports provided: Modal, ModalCloseButton, ModalPattern, StatefulModalPattern */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/Modal.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _Modal__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ModalCloseButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModalCloseButton */ "./node_modules/patternfly-react/dist/esm/components/Modal/ModalCloseButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalCloseButton", function() { return _ModalCloseButton__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Patterns/ModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/ModalPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalPattern", function() { return _Patterns_ModalPattern__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Patterns/StatefulModalPattern */ "./node_modules/patternfly-react/dist/esm/components/Modal/Patterns/StatefulModalPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulModalPattern", function() { return _Patterns_StatefulModalPattern__WEBPACK_IMPORTED_MODULE_3__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }







class ModelessOverlay extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "updateForTransitions", () => {
      this.setState({
        isIn: this.props.show
      });
    });

    this.state = {
      isIn: false
    };
    this.inTimer = new _common_Timer__WEBPACK_IMPORTED_MODULE_3__["default"](this.updateForTransitions, 150);
  }

  componentWillUnmount() {
    this.inTimer.clearTimer();
  }

  render() {
    const _this$props = this.props,
          {
      children,
      className,
      bsSize,
      show
    } = _this$props,
          otherProps = _objectWithoutProperties(_this$props, ["children", "className", "bsSize", "show"]);

    const {
      isIn
    } = this.state;
    const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('modal modeless-pf fade right-side-modal-pf', {
      shown: show || isIn,
      in: show && isIn
    }, className);

    if (isIn !== show) {
      this.inTimer.clearTimer();
      this.inTimer.startTimer();
    }

    const dialogClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('modal-dialog', {
      'modal-sm': bsSize === 'sm' || bsSize === 'small',
      'modal-lg': bsSize === 'lg' || bsSize === 'large'
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      role: "dialog",
      tabIndex: -1,
      className: classes
    }, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(otherProps, ['show'])), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: dialogClasses
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "modal-content"
    }, children)));
  }

}

ModelessOverlay.propTypes = {
  /** Children */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** When true, the dialog is shown */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Component size variations (effects dialog width). */
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'large', 'sm', 'small', 'default'])
};
ModelessOverlay.defaultProps = {
  children: null,
  className: '',
  show: false,
  bsSize: 'default'
};
/* harmony default export */ __webpack_exports__["default"] = (ModelessOverlay);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js ***!
  \************************************************************************************/
/*! exports provided: ModelessOverlay */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ModelessOverlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ModelessOverlay */ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/ModelessOverlay.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModelessOverlay", function() { return _ModelessOverlay__WEBPACK_IMPORTED_MODULE_0__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js":
/*!**********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Nav */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Nav.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavItem */ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js");


react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _NavItem__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Nav__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_NavItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/NavItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavItem.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_NavItem__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Nav/index.js ***!
  \************************************************************************/
/*! exports provided: Nav, NavItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/Nav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _Nav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NavItem */ "./node_modules/patternfly-react/dist/esm/components/Nav/NavItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return _NavItem__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Navbar */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Navbar.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Navbar/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Navbar/index.js ***!
  \***************************************************************************/
/*! exports provided: Navbar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Navbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Navbar */ "./node_modules/patternfly-react/dist/esm/components/Navbar/Navbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _Navbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Spinner_Spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Spinner/Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _NotificationContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationContent */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js");
/* harmony import */ var _NotificationInfo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationInfo */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js");
/* harmony import */ var _NotificationMessage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NotificationMessage */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js");
/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }











const Notification = (_ref) => {
  let {
    type,
    children,
    seen,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["type", "children", "seen", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
    'drawer-pf-notification': type === 'notification',
    'drawer-pf-loading text-center': type === 'loading'
  }, {
    unread: !seen
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), type === 'loading' ? [react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_3__["default"], {
    key: "notification_spinner",
    inline: true,
    loading: true,
    size: "xs"
  }), ' Loading More'] : children);
};

Notification.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** seen Notification Bool */
  seen: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** show Loading Notification */
  type: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
Notification.defaultProps = {
  children: null,
  className: '',
  seen: false,
  type: 'notification'
};
Notification.Content = _NotificationContent__WEBPACK_IMPORTED_MODULE_4__["default"];
Notification.Info = _NotificationInfo__WEBPACK_IMPORTED_MODULE_5__["default"];
Notification.InfoRight = _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_7__["default"];
Notification.InfoLeft = _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_8__["default"];
Notification.Message = _NotificationMessage__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Notification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationContent = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-content', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationContent.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationContent.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js ***!
  \*****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawer = (_ref) => {
  let {
    hide,
    expanded,
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["hide", "expanded", "children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf drawer-alt-pf drawer-pf-notifications', {
    'drawer-pf-expanded': expanded
  }, {
    hide
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawer.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Expanded bool */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Hide Bool */
  hide: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawer.defaultProps = {
  className: '',
  expanded: false,
  hide: false
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawer);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js ***!
  \******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerAccordion = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-group', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes,
    id: "notification-drawer-accordion"
  }, props), children);
};

NotificationDrawerAccordion.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerAccordion.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerAccordion);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js":
/*!*****************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; }

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; }







const NotificationDrawerDropDown = (_ref) => {
  let {
    id,
    children,
    className,
    pullRight
  } = _ref,
      props = _objectWithoutProperties(_ref, ["id", "children", "className", "pullRight"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('dropdown', {
    'pull-right': pullRight
  }, 'dropdown-kebab-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"], {
    className: classes,
    id: id
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Toggle, {
    bsStyle: "link",
    noCaret: true
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
    name: "ellipsis-v"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_3__["Dropdown"].Menu, {
    className: "dropdown-menu-right"
  }, children));
};

NotificationDrawerDropDown.propTypes = {
  /** dropdown button id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number]),

  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** menu right aligned */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerDropDown.defaultProps = {
  pullRight: true,
  id: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerDropDown);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js ***!
  \**************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanel = (_ref) => {
  let {
    children,
    expanded,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "expanded", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel panel-default', {
    expanded
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanel.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** isExpanded bool */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerPanel.defaultProps = {
  className: '',
  expanded: false
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanel);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js":
/*!********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js ***!
  \********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelAction = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-action', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanelAction.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelAction.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelAction);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js ***!
  \************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelActionLink = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-action-link', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanelActionLink.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelActionLink.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelActionLink);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js":
/*!******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js ***!
  \******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelBody = (_ref) => {
  let {
    maxHeight,
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["maxHeight", "children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-body', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes,
    style: {
      maxHeight
    }
  }, props), children);
};

NotificationDrawerPanelBody.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Custom Height for Panel */
  maxHeight: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
};
NotificationDrawerPanelBody.defaultProps = {
  className: '',
  maxHeight: null
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js ***!
  \**********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelCollapse = (_ref) => {
  let {
    children,
    collapseIn,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "collapseIn", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-collapse', {
    'collapse in': collapseIn
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanelCollapse.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** collapse in bool */
  collapseIn: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerPanelCollapse.defaultProps = {
  className: '',
  collapseIn: false
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelCounter = (_ref) => {
  let {
    text,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["text", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-counter', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), text);
};

NotificationDrawerPanelCounter.propTypes = {
  /** Text prop for the Panel Counter */
  text: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelCounter.defaultProps = {
  className: '',
  text: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelCounter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelHeading = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-heading', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanelHeading.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelHeading.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js":
/*!*******************************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationDrawerPanelTitle = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('panel-title', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", _extends({
    className: classes
  }, props), children);
};

NotificationDrawerPanelTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationDrawerPanelTitle.defaultProps = {
  className: '',
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js ***!
  \***************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _EmptyState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js");
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; }

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; }





const NotificationDrawerEmptyState = (_ref) => {
  let {
    title,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["title", "className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyState"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyStateIcon"], {
    name: "info"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_EmptyState__WEBPACK_IMPORTED_MODULE_2__["EmptyStateTitle"], null, title));
};

NotificationDrawerEmptyState.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
NotificationDrawerEmptyState.defaultProps = {
  className: '',
  title: 'No Notifications Available'
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerEmptyState);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const NotificationDrawerTitle = (_ref) => {
  let {
    expandable,
    onCloseClick,
    onExpandClick,
    title,
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["expandable", "onCloseClick", "onExpandClick", "title", "children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-title', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), expandable && react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
    className: "drawer-pf-toggle-expand",
    onClick: onExpandClick
  }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
    className: "drawer-pf-close",
    onClick: onCloseClick
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    name: "close"
  })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", {
    className: "text-center"
  }, title), children);
};

NotificationDrawerTitle.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Title prop */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Close/Expand Functions */
  onCloseClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  onExpandClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /** is the Drawer expandable prop */
  expandable: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
NotificationDrawerTitle.defaultProps = {
  className: '',
  title: 'Notifications',
  onCloseClick: null,
  onExpandClick: null,
  children: null,
  expandable: true
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerTitle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js ***!
  \***********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");







const NotificationDrawerToggle = ({
  hasUnreadMessages,
  onClick
}) => {
  const iconName = hasUnreadMessages ? 'bell' : 'bell-o';
  const tooltip = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_3__["Tooltip"], {
    id: "tooltip"
  }, "Notifications");
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_2__["OverlayTrigger"], {
    placement: "bottom",
    id: "notifications-toggle-icon",
    overlay: tooltip
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["Button"], {
    onClick: onClick,
    bsStyle: "link",
    className: "nav-item-iconic"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
    name: iconName,
    "aria-describedby": "tooltip"
  })));
};

NotificationDrawerToggle.propTypes = {
  /** has Unread Messages Bool */
  hasUnreadMessages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** onClick func */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
NotificationDrawerToggle.defaultProps = {
  hasUnreadMessages: true,
  onClick: null
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js ***!
  \****************************************************************************************************/
/*! exports provided: NotificationDrawer, NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NotificationDrawer */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawer", function() { return _NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationDrawerTitle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationDrawerTitle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerTitle.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerAccordion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerAccordion */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerAccordion.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanel */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanel.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelAction */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelAction.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelActionLink__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelActionLink */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelActionLink.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelBody__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelBody */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelBody.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelCollapse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelCollapse */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCollapse.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelCounter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelCounter */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelCounter.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelHeading__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelHeading */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelHeading.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerPanelTitle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerPanelTitle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerPanelTitle.js");
/* harmony import */ var _NotificationDrawerAccordion_NotificationDrawerDropDown__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NotificationDrawerAccordion/NotificationDrawerDropDown */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerAccordion/NotificationDrawerDropDown.js");
/* harmony import */ var _NotificationDrawerToggle__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NotificationDrawerToggle */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerToggle.js");
/* harmony import */ var _NotificationDrawerEmptyState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NotificationDrawerEmptyState */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/NotificationDrawerEmptyState.js");
/* harmony import */ var _Wrappers_NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Wrappers/NotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _Wrappers_NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _Wrappers_NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Wrappers/NotificationDrawerPanelWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _Wrappers_NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _Wrappers_StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../Wrappers/StatefulNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _Wrappers_StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _Wrappers_StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../Wrappers/StatefulToggleNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _Wrappers_StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_17__["default"]; });



















_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Accordion = _NotificationDrawerAccordion_NotificationDrawerAccordion__WEBPACK_IMPORTED_MODULE_2__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Panel = _NotificationDrawerAccordion_NotificationDrawerPanel__WEBPACK_IMPORTED_MODULE_3__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelAction = _NotificationDrawerAccordion_NotificationDrawerPanelAction__WEBPACK_IMPORTED_MODULE_4__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelActionLink = _NotificationDrawerAccordion_NotificationDrawerPanelActionLink__WEBPACK_IMPORTED_MODULE_5__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelBody = _NotificationDrawerAccordion_NotificationDrawerPanelBody__WEBPACK_IMPORTED_MODULE_6__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelCollapse = _NotificationDrawerAccordion_NotificationDrawerPanelCollapse__WEBPACK_IMPORTED_MODULE_7__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelCounter = _NotificationDrawerAccordion_NotificationDrawerPanelCounter__WEBPACK_IMPORTED_MODULE_8__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelHeading = _NotificationDrawerAccordion_NotificationDrawerPanelHeading__WEBPACK_IMPORTED_MODULE_9__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].PanelTitle = _NotificationDrawerAccordion_NotificationDrawerPanelTitle__WEBPACK_IMPORTED_MODULE_10__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Title = _NotificationDrawerTitle__WEBPACK_IMPORTED_MODULE_1__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Dropdown = _NotificationDrawerAccordion_NotificationDrawerDropDown__WEBPACK_IMPORTED_MODULE_11__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].Toggle = _NotificationDrawerToggle__WEBPACK_IMPORTED_MODULE_12__["default"];
_NotificationDrawer__WEBPACK_IMPORTED_MODULE_0__["default"].EmptyState = _NotificationDrawerEmptyState__WEBPACK_IMPORTED_MODULE_13__["default"];


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
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; }

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; }







const NotificationInfo = (_ref) => {
  let {
    rightText,
    leftText,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["rightText", "leftText", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-info', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_4__["default"], {
    text: leftText
  }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_NotificationInfoRight__WEBPACK_IMPORTED_MODULE_3__["default"], {
    text: rightText
  }));
};

NotificationInfo.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** leftText and rightText Strings */
  leftText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rightText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationInfo.defaultProps = {
  className: '',
  leftText: '',
  rightText: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationInfo);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const NotificationInfoLeft = ({
  text
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: "date"
}, text);

NotificationInfoLeft.propTypes = {
  /** Text */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationInfoLeft);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const NotificationInfoRight = ({
  text
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: "time"
}, text);

NotificationInfoRight.propTypes = {
  /** Text */
  text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationInfoRight);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const NotificationMessage = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('drawer-pf-notification-message', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), children);
};

NotificationMessage.propTypes = {
  /** Child node - contents of the element */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node.isRequired,

  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
NotificationMessage.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationMessage);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* eslint-disable no-throw-literal */

/* eslint-disable no-throw-literal */
const okIcon = 'ok';
const infoIcon = 'info';
const warningIcon = 'warning-triangle-o';
const errorIcon = 'error-circle-o';
const closeIcon = 'close';
const questionSign = 'glyphicon glyphicon-question-sign';
/* harmony default export */ __webpack_exports__["default"] = (type => {
  switch (type) {
    case 'ok':
    case 'notice':
    case 'success':
      return okIcon;

    case 'info':
      return infoIcon;

    case 'warning':
      return warningIcon;

    case 'danger':
    case 'error':
      return errorIcon;

    case 'close':
      return closeIcon;

    case 'question-sign':
      return questionSign;

    default:
      throw {
        error: `unknown icon type ${type}`
      };
  }
});

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js ***!
  \*******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_bootstrap_es_Collapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap/es/Collapse */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Collapse.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../index */ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js");
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Icon_consts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Icon.consts */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/Icon.consts.js");











const NotificationDrawerPanelWrapper = ({
  panelkey,
  panelName,
  className,
  notifications,
  isExpanded,
  togglePanel,
  onNotificationClick,
  onNotificationAsRead,
  onNotificationHide,
  onMarkPanelAsRead,
  onClickedLink,
  onMarkPanelAsClear,
  showLoading,
  translations
}) => {
  const unreadCount = notifications.filter(notification => !notification.seen).length;

  const getUnread = () => {
    if (unreadCount !== 1) {
      return `${unreadCount} ${translations.unreadEvents}`;
    }

    return `1 ${translations.unreadEvent}`;
  };

  const notificationClickHandler = (panel, notification, seen) => {
    onNotificationClick(panel, notification);

    if (!seen) {
      onNotificationAsRead(panel, notification);
    }
  };

  const notificationsMap = notifications.map((notification, i) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"], {
    key: i,
    seen: notification.seen,
    onClick: () => notificationClickHandler(panelkey, notification.id, notification.seen)
  }, notification.actions ? Object.keys(notification.actions).length > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].Dropdown, {
    pullRight: true,
    id: i
  }, notification.actions.links.map((link, j) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"], {
    key: j,
    id: `notification-kebab-${j}`,
    onClick: () => onClickedLink(link)
  }, link.title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"], {
    divider: true
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_7__["MenuItem"], {
    id: "notification-kebab-hide",
    onClick: () => onNotificationHide(panelkey, notification.id)
  }, translations.deleteNotification)) : null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
    className: "pull-left",
    type: "pf",
    name: Object(_Icon_consts__WEBPACK_IMPORTED_MODULE_9__["default"])(notification.level)
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Content, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Message, null, notification.text), notification.created_at && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"].Info, {
    leftText: new Date(notification.created_at).toLocaleDateString(),
    rightText: new Date(notification.created_at).toLocaleTimeString()
  }))));
  const renderNotifications = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelBody, {
    key: "containsNotifications"
  }, showLoading ? [notificationsMap, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Notification"], {
    key: "loading",
    type: "loading"
  })] : notificationsMap);
  const renderClearReadButtons = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelAction, {
    key: panelkey
  }, unreadCount > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelActionLink, {
    className: "drawer-pf-action-link",
    "data-toggle": "mark-all-read"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_6__["Button"], {
    bsStyle: "link",
    onClick: () => onMarkPanelAsRead(panelkey)
  }, translations.readAll)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelActionLink, {
    "data-toggle": "clear-all"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_6__["Button"], {
    bsStyle: "link",
    onClick: () => onMarkPanelAsClear(panelkey)
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
    type: "pf",
    name: "close"
  }), translations.clearAll)));
  const noNotificationsMessage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].EmptyState, {
    title: translations.emptyState
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].Panel, {
    className: className,
    expanded: isExpanded
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelHeading, {
    onClick: () => togglePanel(panelkey)
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelTitle, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    className: isExpanded ? '' : 'collapsed'
  }, panelName)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelCounter, {
    text: getUnread()
  })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Collapse__WEBPACK_IMPORTED_MODULE_2__["default"], {
    in: isExpanded
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_4__["NotificationDrawer"].PanelCollapse, {
    id: panelkey
  }, notifications.length > 0 ? [renderNotifications, renderClearReadButtons] : noNotificationsMessage)));
};

NotificationDrawerPanelWrapper.propTypes = {
  /** Panel Key,Name */
  panelkey: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  panelName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Notification Panels Array */
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** function(panelkey, notificationkey) on Notification Click */
  onNotificationClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey, notificationkey) on Notification Mark as Read Click */
  onNotificationAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** on function(panelkey) Panel Read All Click */
  onMarkPanelAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(url) on Dropdown Link Click */
  onClickedLink: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey, notificationkey) on Notification Hide Click */
  onNotificationHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey) Panel Clear All Click */
  onMarkPanelAsClear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function() togglePanel Click */
  togglePanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** show Loading notification Bool */
  showLoading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** translations for Title, EmptyState, Read/Clear */
  translations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    emptyState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    readAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    clearAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    deleteNotification: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
NotificationDrawerPanelWrapper.defaultProps = {
  panelkey: '1',
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  isExpanded: false,
  className: null,
  panelName: null,
  onNotificationClick: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNotificationAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onMarkPanelAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onClickedLink: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNotificationHide: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onMarkPanelAsClear: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  togglePanel: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  showLoading: false,
  translations: {
    title: 'Notifications',
    unreadEvent: 'Unread Event',
    unreadEvents: 'Unread Events',
    emptyState: 'No Notifications Available',
    readAll: 'Mark All Read',
    clearAll: 'Clear All',
    deleteNotification: 'Hide this notification'
  }
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerPanelWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }







const NotificationDrawerWrapper = ({
  panels,
  translations,
  toggleDrawerHide,
  toggleDrawerExpand,
  isExpandable,
  isExpanded,
  expandedPanel,
  togglePanel,
  onNotificationClick,
  onNotificationAsRead,
  onNotificationHide,
  onMarkPanelAsRead,
  onMarkPanelAsClear,
  onClickedLink
}) => {
  const translationsWrapper = _objectSpread({}, _index__WEBPACK_IMPORTED_MODULE_3__["NotificationDrawerPanelWrapper"].defaultProps.translations, {}, translations);

  const notificationPanels = panels.map((panel, i) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["NotificationDrawerPanelWrapper"], {
    key: i,
    panelName: panel.panelName,
    panelkey: panel.panelkey,
    onClickedLink: onClickedLink,
    notifications: panel.notifications,
    togglePanel: togglePanel,
    isExpanded: expandedPanel === panel.panelkey,
    onNotificationClick: onNotificationClick,
    onNotificationAsRead: onNotificationAsRead,
    onNotificationHide: onNotificationHide,
    onMarkPanelAsRead: onMarkPanelAsRead,
    onMarkPanelAsClear: onMarkPanelAsClear,
    showLoading: panel.showLoading,
    translations: translationsWrapper
  }));
  const noNotificationsMessage = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].EmptyState, {
    title: translations.emptyState
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"], {
    expanded: isExpanded
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Title, {
    title: translations.title,
    onCloseClick: () => toggleDrawerHide(),
    expandable: isExpandable,
    onExpandClick: toggleDrawerExpand
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Accordion, null, notificationPanels.length === 0 ? noNotificationsMessage : notificationPanels));
};

NotificationDrawerWrapper.propTypes = {
  /** toggleDrawer Hide/Expand func */
  toggleDrawerExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  toggleDrawerHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** function(panelkey, notificationkey) on Notification Click */
  onNotificationClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey, notificationkey) on Notification Mark as Read Click */
  onNotificationAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** on function(panelkey) Panel Read All Click */
  onMarkPanelAsRead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(url) on Dropdown Link Click */
  onClickedLink: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey, notificationkey) on Notification Hide Click */
  onNotificationHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function(panelkey) Panel Clear All Click */
  onMarkPanelAsClear: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** function() togglePanel Click */
  togglePanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** show Loading notification Bool */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** expanded Panel */
  expandedPanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** translations for Title, EmptyState, Read/Clear */
  translations: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    unreadEvents: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    emptyState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    readAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    clearAll: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    deleteNotification: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
NotificationDrawerWrapper.defaultProps = {
  panels: null,
  toggleDrawerHide: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  toggleDrawerExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  togglePanel: null,
  isExpanded: false,
  onNotificationClick: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onNotificationAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onMarkPanelAsRead: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onClickedLink: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onNotificationHide: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onMarkPanelAsClear: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  isExpandable: true,
  expandedPanel: null,
  translations: {}
};
/* harmony default export */ __webpack_exports__["default"] = (NotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
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; }





class StatefulNotificationDrawerWrapper extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onClickLink", url => {
      window.open(url.href);
    });

    _defineProperty(this, "onMarkPanelAsRead", panelkey => {
      const panels = this.state.panels.map(panel => {
        if (panel.panelkey === panelkey) {
          panel.notifications.map(notification => {
            notification.seen = true;
            return notification;
          });
        }

        return panel;
      });
      this.setState({
        panels
      });
      this.updateUnreadCount();
    });

    _defineProperty(this, "onMarkPanelAsClear", key => {
      const panels = this.state.panels.map(panel => {
        if (panel.panelkey === key) {
          panel.notifications = [];
        }

        return panel;
      });
      this.setState({
        panels
      });
      this.updateUnreadCount();
    });

    _defineProperty(this, "onNotificationAsRead", (panelkey, nkey) => {
      const panels = this.state.panels.map(panel => {
        if (panel.panelkey === panelkey) {
          panel.notifications.map(notification => {
            if (notification.id === nkey) {
              notification.seen = true;
            }

            return notification;
          });
        }

        return panel;
      });
      this.setState({
        panels
      });
      this.updateUnreadCount();
    });

    _defineProperty(this, "onNotificationClick", () => {// On Click
    });

    _defineProperty(this, "onNotificationHide", (panelkey, nkey) => {
      const panels = this.state.panels.map(panel => {
        if (panel.panelkey === panelkey) {
          for (let i = 0; i < panel.notifications.length; i++) {
            if (nkey === panel.notifications[i].id) {
              panel.notifications.splice(i, 1);
            }
          }
        }

        return panel;
      });
      this.setState({
        panels
      });
      this.updateUnreadCount();
    });

    _defineProperty(this, "togglePanel", key => {
      if (this.state.expandedPanel === key) {
        this.setState({
          expandedPanel: '-1'
        });
      } else {
        this.setState({
          expandedPanel: key
        });
      }
    });

    _defineProperty(this, "toggleDrawerExpand", () => {
      this.setState(prevState => ({
        isExpanded: !prevState.isExpanded
      }));
    });

    _defineProperty(this, "updateUnreadCount", () => {
      let hasunread = false;

      for (let i = 0; i < this.state.panels.length; i++) {
        for (let j = 0; j < this.state.panels[i].notifications.length; j++) {
          if (this.state.panels[i].notifications[j].seen === false) {
            hasunread = true;
          }
        }
      }

      this.props.updateUnreadCount(hasunread);
    });

    this.state = {
      panels: props.panels,
      isExpanded: props.isExpanded,
      expandedPanel: props.expandedPanel
    };
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawerWrapper"], {
      panels: this.state.panels,
      togglePanel: this.togglePanel,
      toggleDrawerExpand: this.toggleDrawerExpand,
      isExpanded: this.state.isExpanded,
      isExpandable: this.props.isExpandable,
      expandedPanel: this.state.expandedPanel,
      toggleDrawerHide: this.props.toggleDrawer,
      onNotificationClick: this.onNotificationClick,
      onNotificationAsRead: this.onNotificationAsRead,
      onNotificationHide: this.onNotificationHide,
      onMarkPanelAsClear: this.onMarkPanelAsClear,
      onMarkPanelAsRead: this.onMarkPanelAsRead,
      onClickedLink: this.onClickLink
    });
  }

}

StatefulNotificationDrawerWrapper.propTypes = {
  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** is Expanded Bool */
  isExpanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** updateUnreadCount Func */
  updateUnreadCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** toggleDrawer Func */
  toggleDrawer: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** is Drawer Expandable prop */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** expanded Panel */
  expandedPanel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
StatefulNotificationDrawerWrapper.defaultProps = {
  panels: null,
  isExpanded: false,
  updateUnreadCount: null,
  toggleDrawer: null,
  isExpandable: true,
  expandedPanel: null
};
/* harmony default export */ __webpack_exports__["default"] = (StatefulNotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../NotificationDrawer/index */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js");
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; }






class StatefulToggleNotificationDrawerWrapper extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "toggleDrawer", () => {
      this.setState(prevState => ({
        isDrawerOpen: !prevState.isDrawerOpen
      }));
    });

    _defineProperty(this, "updateUnreadCount", bool => {
      if (bool) {
        this.setState({
          hasUnreadMessages: true
        });
      } else {
        this.setState({
          hasUnreadMessages: false
        });
      }
    });

    this.state = {
      panels: props.panels,
      isDrawerOpen: props.isDrawerOpen,
      hasUnreadMessages: props.hasUnreadMessages
    };
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: "nav navbar-nav navbar-right navbar-iconic"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_NotificationDrawer_index__WEBPACK_IMPORTED_MODULE_2__["NotificationDrawer"].Toggle, {
      hasUnreadMessages: this.state.hasUnreadMessages,
      onClick: this.toggleDrawer
    }), this.state.isDrawerOpen && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["StatefulNotificationDrawerWrapper"], {
      panels: this.state.panels,
      maxPanelHeight: this.props.maxPanelHeight,
      isDrawerOpen: true,
      isExpandable: this.props.isExpandable,
      hasUnreadMessages: true,
      updateUnreadCount: this.updateUnreadCount,
      toggleDrawer: this.toggleDrawer
    }));
  }

}

StatefulToggleNotificationDrawerWrapper.propTypes = {
  /** Notification Panels Array */
  panels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** Is Drawer Open Bool */
  isDrawerOpen: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** has Unread Messages Bool */
  hasUnreadMessages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** is Drawer Expandable */
  isExpandable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Max Panel Height */
  maxPanelHeight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
StatefulToggleNotificationDrawerWrapper.defaultProps = {
  panels: null,
  isDrawerOpen: false,
  hasUnreadMessages: false,
  isExpandable: true,
  maxPanelHeight: null
};
/* harmony default export */ __webpack_exports__["default"] = (StatefulToggleNotificationDrawerWrapper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/index.js ***!
  \******************************************************************************************/
/*! exports provided: NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _NotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationDrawerPanelWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/NotificationDrawerPanelWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _NotificationDrawerPanelWrapper__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StatefulNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _StatefulNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./StatefulToggleNotificationDrawerWrapper */ "./node_modules/patternfly-react/dist/esm/components/Notification/Wrappers/StatefulToggleNotificationDrawerWrapper.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _StatefulToggleNotificationDrawerWrapper__WEBPACK_IMPORTED_MODULE_3__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Notification/index.js ***!
  \*********************************************************************************/
/*! exports provided: Notification, NotificationContent, NotificationInfo, NotificationMessage, NotificationInfoRight, NotificationInfoLeft */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./node_modules/patternfly-react/dist/esm/components/Notification/Notification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _Notification__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _NotificationContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationContent */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationContent", function() { return _NotificationContent__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _NotificationInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NotificationInfo */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfo.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfo", function() { return _NotificationInfo__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _NotificationMessage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NotificationMessage */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationMessage.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationMessage", function() { return _NotificationMessage__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationInfoRight */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoRight.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoRight", function() { return _NotificationInfoRight__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationInfoLeft */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationInfoLeft.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoLeft", function() { return _NotificationInfoLeft__WEBPACK_IMPORTED_MODULE_5__["default"]; });









/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Overlay */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Overlay.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Overlay__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Overlay/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Overlay/index.js ***!
  \****************************************************************************/
/*! exports provided: Overlay */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Overlay */ "./node_modules/patternfly-react/dist/esm/components/Overlay/Overlay.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _Overlay__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/OverlayTrigger */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/OverlayTrigger.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js ***!
  \***********************************************************************************/
/*! exports provided: OverlayTrigger */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/OverlayTrigger.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return _OverlayTrigger__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");





/**
 * Pager component for Patternfly React
 */

const Pager = ({
  baseClassName,
  className,
  messages,
  disableNext,
  onNextPage,
  disablePrevious,
  onPreviousPage
}) => {
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pager', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({
      disabled: disablePrevious
    }, 'previous')
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({
      disabled: disablePrevious
    }),
    onClick: e => {
      e.preventDefault();

      if (!disablePrevious) {
        onPreviousPage(e);
      }
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    className: "i",
    name: "angle-left"
  }), messages.previousPage)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({
      disabled: disableNext
    }, 'next')
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({
      disabled: disableNext
    }),
    onClick: e => {
      e.preventDefault();

      if (!disableNext) {
        onNextPage(e);
      }
    }
  }, messages.nextPage, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    className: "i",
    name: "angle-right"
  }))));
};

Pager.propTypes = {
  /** Base css class */
  baseClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),

  /** next button disabled */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** previous button disabled */
  disablePrevious: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** previous page callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
Pager.defaultProps = {
  baseClassName: 'content-view-pf-pagination',
  className: '',
  messages: {
    nextPage: 'Next',
    previousPage: 'Previous'
  },
  disableNext: false,
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disablePrevious: false,
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (Pager);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js ***!
  \*********************************************************************************************/
/*! exports provided: PAGINATION_VIEW, PAGINATION_VIEW_TYPES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return PAGINATION_VIEW; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return PAGINATION_VIEW_TYPES; });
const PAGINATION_VIEW = {
  LIST: 'list',
  CARD: 'card',
  TABLE: 'table'
};
const PAGINATION_VIEW_TYPES = [PAGINATION_VIEW.LIST, PAGINATION_VIEW.CARD, PAGINATION_VIEW.TABLE];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowAmountOfPages */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js");
/* harmony import */ var _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationRowButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js");
/* harmony import */ var _PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaginationRowItems */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js");
/* harmony import */ var _PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PaginationRowBack */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js");
/* harmony import */ var _PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PaginationRowForward */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");














/**
 * PaginationRow component for Patternfly React
 */

const PaginationRow = ({
  baseClassName,
  className,
  viewType,
  pagination,
  pageSizeDropUp,
  pageInputValue,
  amountOfPages,
  itemCount,
  itemsStart,
  itemsEnd,
  messages,
  dropdownButtonId,
  onSubmit,
  onPerPageSelect,
  onFirstPage,
  onPreviousPage,
  onPageInput,
  onNextPage,
  onLastPage,
  disableNext,
  disablePrev
}) => {
  const {
    page,
    perPage,
    perPageOptions = []
  } = pagination;
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(baseClassName, className, {
    'list-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].LIST,
    'card-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].CARD,
    'table-view-pf-pagination': viewType === _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"].TABLE,
    clearfix: true
  });
  const pageValue = pageInputValue !== undefined ? pageInputValue : page;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["Form"], {
    className: classes,
    onSubmit: e => {
      e.preventDefault();
      onSubmit(e);
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["FormGroup"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_11__["DropdownButton"], {
    title: perPage,
    dropup: pageSizeDropUp,
    componentClass: _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__["default"],
    onSelect: onPerPageSelect,
    id: dropdownButtonId
  }, perPageOptions.map((option, i) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_12__["MenuItem"], {
    eventKey: option,
    active: option === perPage,
    key: i
  }, option))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, messages.perPage)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["FormGroup"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__["default"], {
    itemCount: itemCount,
    itemsStart: itemsStart,
    itemsEnd: itemsEnd,
    messagesOf: messages.of
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__["default"], {
    page: page,
    messagesFirstPage: messages.firstPage,
    messagesPreviousPage: messages.previousPage,
    onFirstPage: onFirstPage,
    onPreviousPage: onPreviousPage,
    disable: disablePrev
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["ControlLabel"], {
    className: "sr-only"
  }, messages.currentPage), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_10__["FormControl"], {
    className: "pagination-pf-page",
    type: "text",
    value: pageValue,
    onChange: onPageInput
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__["default"], {
    messagesOf: messages.of,
    amountOfPages: amountOfPages
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__["default"], {
    page: page,
    amountOfPages: amountOfPages,
    messagesNextPage: messages.nextPage,
    messagesLastPage: messages.lastPage,
    onNextPage: onNextPage,
    onLastPage: onLastPage,
    disable: disableNext
  })));
};

PaginationRow.propTypes = {
  /** Base css class */
  baseClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** pagination row view type */
  viewType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW_TYPES"]).isRequired,

  /** user pagination settings */
  pagination: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the current page */
    page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

    /** the current per page setting */
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

    /** per page options */
    perPageOptions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
  }).isRequired,

  /** Page size button drops up */
  pageSizeDropUp: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** page input (optional override for page input) */
  pageInputValue: 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.number]),

  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated items start */
  itemsStart: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated items end */
  itemsEnd: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    firstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    lastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    of: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),

  /** dropdown button id */
  dropdownButtonId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** onSubmit callback */
  onSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** per page selection callback */
  onPerPageSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** first page callback */
  onFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** previous page selection callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** user page input callback */
  onPageInput: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** last page callback */
  onLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** disable next page */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** disable previous page */
  disablePrev: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRow.defaultProps = {
  baseClassName: 'content-view-pf-pagination',
  className: '',
  messages: {
    firstPage: 'First Page',
    previousPage: 'Previous Page',
    currentPage: 'Current Page',
    nextPage: 'Next Page',
    lastPage: 'Last Page',
    perPage: 'per page',
    of: 'of'
  },
  pageInputValue: '',
  pageSizeDropUp: true,
  onSubmit: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPerPageSelect: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onFirstPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onPageInput: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  onLastPage: _common_helpers__WEBPACK_IMPORTED_MODULE_8__["noop"],
  dropdownButtonId: 'pagination-row-dropdown',
  disableNext: false,
  disablePrev: false
};
PaginationRow.AmountOfPages = _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_3__["default"];
PaginationRow.ArrowIcon = _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_13__["default"];
PaginationRow.Back = _PaginationRowBack__WEBPACK_IMPORTED_MODULE_6__["default"];
PaginationRow.ButtonGroup = _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_4__["default"];
PaginationRow.Forward = _PaginationRowForward__WEBPACK_IMPORTED_MODULE_7__["default"];
PaginationRow.Items = _PaginationRowItems__WEBPACK_IMPORTED_MODULE_5__["default"];
PaginationRow.PAGINATION_VIEW = _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW"];
PaginationRow.PAGINATION_VIEW_TYPES = _PaginationConstants__WEBPACK_IMPORTED_MODULE_9__["PAGINATION_VIEW_TYPES"];
/* harmony default export */ __webpack_exports__["default"] = (PaginationRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
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; }

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; }



/**
 * PaginationRowAmountOfPages component for Patternfly React
 */

const PaginationRowAmountOfPages = (_ref) => {
  let {
    messagesOf,
    amountOfPages
  } = _ref,
      props = _objectWithoutProperties(_ref, ["messagesOf", "amountOfPages"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", props, "\xA0", messagesOf, "\xA0", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "pagination-pf-pages"
  }, amountOfPages));
};

PaginationRowAmountOfPages.propTypes = {
  /** messages of */
  messagesOf: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowAmountOfPages);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
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; }

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; }




/**
 * PaginationRowArrowIcon component for Patternfly React
 */

const PaginationRowArrowIcon = (_ref) => {
  let {
    name
  } = _ref,
      props = _objectWithoutProperties(_ref, ["name"]);

  const iconName = `angle-${name}`;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    type: "fa",
    name: iconName,
    className: "i"
  });
};

PaginationRowArrowIcon.propTypes = {
  /** icon name */
  name: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['left', 'double-left', 'right', 'double-right']).isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowArrowIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * PaginationRowBack component for Patternfly React
 */

const PaginationRowBack = (_ref) => {
  let {
    className,
    page,
    messagesFirstPage,
    messagesPreviousPage,
    onFirstPage,
    onPreviousPage,
    disable
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "page", "messagesFirstPage", "messagesPreviousPage", "onFirstPage", "onPreviousPage", "disable"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pagination', 'pagination-pf-back', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: page === 1 || disable ? 'disabled' : ''
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    title: messagesFirstPage,
    onClick: e => {
      e.preventDefault();

      if (page !== 1) {
        onFirstPage(e);
      }
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
    name: "double-left"
  }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: page === 1 || disable ? 'disabled' : ''
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    title: messagesPreviousPage,
    onClick: e => {
      e.preventDefault();

      if (page !== 1) {
        onPreviousPage(e);
      }
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
    name: "left"
  }))));
};

PaginationRowBack.propTypes = {
  /** additional class names */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** pagination page */
  page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** messages firstPage */
  messagesFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** messages previousPage */
  messagesPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** first page callback */
  onFirstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** previous page selection callback */
  onPreviousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** disable back button */
  disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRowBack.defaultProps = {
  className: '',
  onFirstPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onPreviousPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disable: false
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowBack);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const PaginationRowButtonGroup = (_ref) => {
  let {
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["ButtonGroup"], _extends({}, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'pagination-pf-pagesize')
  }));
};

PaginationRowButtonGroup.propTypes = {
  /** additional classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
PaginationRowButtonGroup.defaultProps = {
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowButtonGroup);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }

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; }






/**
 * PaginationRowForward component for Patternfly React
 */

const PaginationRowForward = (_ref) => {
  let {
    className,
    page,
    amountOfPages,
    messagesNextPage,
    messagesLastPage,
    onNextPage,
    onLastPage,
    disable
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "page", "amountOfPages", "messagesNextPage", "messagesLastPage", "onNextPage", "onLastPage", "disable"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('pagination', 'pagination-pf-forward', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
    className: classes
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: page === amountOfPages || disable ? 'disabled' : ''
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    title: messagesNextPage,
    onClick: e => {
      e.preventDefault();

      if (page !== amountOfPages) {
        onNextPage(e);
      }
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
    name: "right"
  }))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
    className: page === amountOfPages || disable ? 'disabled' : ''
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    title: messagesLastPage,
    onClick: e => {
      e.preventDefault();

      if (page !== amountOfPages) {
        onLastPage(e);
      }
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_3__["default"], {
    name: "double-right"
  }))));
};

PaginationRowForward.propTypes = {
  /** additional class names */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** pagination page */
  page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated amount of pages */
  amountOfPages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** messages next page */
  messagesNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** messages last page */
  messagesLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,

  /** next page callback */
  onNextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** last page callback */
  onLastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** disable next button  */
  disable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
PaginationRowForward.defaultProps = {
  className: '',
  onNextPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onLastPage: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  disable: false
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowForward);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
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; }

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; }



/**
 * PaginationRowItems component for Patternfly React
 */

const PaginationRowItems = (_ref) => {
  let {
    itemCount,
    itemsStart,
    itemsEnd,
    messagesOf
  } = _ref,
      props = _objectWithoutProperties(_ref, ["itemCount", "itemsStart", "itemsEnd", "messagesOf"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "pagination-pf-items-current"
  }, itemsStart, "-", itemsEnd), "\xA0", messagesOf, "\xA0", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "pagination-pf-items-total"
  }, itemCount));
};

PaginationRowItems.propTypes = {
  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated items start */
  itemsStart: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** calculated items end */
  itemsEnd: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** messages Of */
  messagesOf: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (PaginationRowItems);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _PaginationRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PaginationRow */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
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; }







class Paginator extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleFormSubmit", e => {
      this.setPage(this.state.pageChangeValue);
    });

    this.initPagination(props);
    this.state = {
      pageChangeValue: props.pagination.page
    };
  }

  UNSAFE_componentWillReceiveProps(nextProps) {
    const {
      pagination
    } = nextProps;

    if (this.state.pageChangeValue !== pagination.page) {
      this.setState({
        pageChangeValue: Number(pagination.page)
      });
    }

    this.initPagination(nextProps);
  }

  setPage(value) {
    const page = Number(value);

    if (!Number.isNaN(value) && value !== '' && page > 0 && page <= this.totalPages()) {
      this.props.onPageSet(page);
    }
  }

  setPageRelative(diff) {
    const {
      pagination
    } = this.props;
    const page = Number(pagination.page) + diff;
    this.setPage(page);
  }

  handlePageChange(e) {
    this.setState({
      pageChangeValue: e.target.value
    });
  }

  initPagination(props) {
    const {
      pagination
    } = props;
    this.perPage = Number(pagination.perPage);
    this.currentPage = Number(pagination.page);
    this.itemCount = Number(props.itemCount);
  }

  totalPages() {
    return Math.ceil(this.props.itemCount / this.perPage);
  }

  render() {
    const {
      pageChangeValue
    } = this.state;
    const {
      className,
      viewType,
      itemCount,
      messages,
      dropdownButtonId,
      onPerPageSelect,
      pagination,
      disableNext,
      disablePrev
    } = this.props;
    const itemsStart = (this.currentPage - 1) * this.perPage + 1;
    const itemsEnd = Math.min(itemsStart + this.perPage - 1, this.itemCount);
    const totalPages = this.totalPages();
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_PaginationRow__WEBPACK_IMPORTED_MODULE_2__["default"], {
      className: className,
      onSubmit: this.handleFormSubmit,
      viewType: viewType,
      pagination: pagination,
      pageInputValue: pageChangeValue,
      amountOfPages: this.totalPages(),
      itemCount: itemCount,
      itemsStart: itemsStart,
      itemsEnd: itemsEnd,
      messages: messages,
      dropdownButtonId: dropdownButtonId,
      onPerPageSelect: onPerPageSelect,
      onFirstPage: () => this.setPage(1),
      onPreviousPage: () => this.setPageRelative(-1),
      onPageInput: e => this.handlePageChange(e),
      onNextPage: () => this.setPageRelative(1),
      onLastPage: () => this.setPage(totalPages),
      disableNext: disableNext,
      disablePrev: disablePrev
    });
  }

}

Paginator.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** pagination row view type */
  viewType: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_PaginationConstants__WEBPACK_IMPORTED_MODULE_4__["PAGINATION_VIEW_TYPES"]).isRequired,

  /** user pagination settings */
  pagination: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    /** the current page */
    page: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

    /** the current per page setting */
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

    /** per page options */
    perPageOptions: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
  }).isRequired,

  /** calculated number of rows */
  itemCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    firstPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    previousPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    nextPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    lastPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    perPage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    of: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),

  /** dropdown button id */
  dropdownButtonId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** A callback triggered when a page is switched */
  onPageSet: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** per page selection callback */
  onPerPageSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** disable next page */
  disableNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** disable previous page */
  disablePrev: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
Paginator.defaultProps = {
  className: '',
  messages: {
    firstPage: 'First Page',
    previousPage: 'Previous Page',
    currentPage: 'Current Page',
    nextPage: 'Next Page',
    lastPage: 'Last Page',
    perPage: 'per page',
    of: 'of'
  },
  dropdownButtonId: 'pagination-row-dropdown',
  onPerPageSelect: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onPageSet: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  disableNext: false,
  disablePrev: false
};
/* harmony default export */ __webpack_exports__["default"] = (Paginator);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/index.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/index.js ***!
  \*******************************************************************************/
/*! exports provided: paginate, Pager, Paginator, PAGINATION_VIEW, PAGINATION_VIEW_TYPES, PaginationRow, PaginationRowAmountOfPages, PaginationRowArrowIcon, PaginationRowBack, PaginationRowButtonGroup, PaginationRowForward, PaginationRowItems */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _paginate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./paginate */ "./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginate", function() { return _paginate__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaginationConstants */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationConstants.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return _PaginationConstants__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW_TYPES"]; });

/* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Pager */ "./node_modules/patternfly-react/dist/esm/components/Pagination/Pager.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pager", function() { return _Pager__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Paginator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Paginator */ "./node_modules/patternfly-react/dist/esm/components/Pagination/Paginator.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Paginator", function() { return _Paginator__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _PaginationRow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationRow */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRow", function() { return _PaginationRow__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaginationRowAmountOfPages */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowAmountOfPages.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowAmountOfPages", function() { return _PaginationRowAmountOfPages__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PaginationRowArrowIcon */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowArrowIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowArrowIcon", function() { return _PaginationRowArrowIcon__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _PaginationRowBack__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PaginationRowBack */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowBack.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowBack", function() { return _PaginationRowBack__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PaginationRowButtonGroup */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowButtonGroup", function() { return _PaginationRowButtonGroup__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _PaginationRowForward__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PaginationRowForward */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowForward.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowForward", function() { return _PaginationRowForward__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _PaginationRowItems__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./PaginationRowItems */ "./node_modules/patternfly-react/dist/esm/components/Pagination/PaginationRowItems.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowItems", function() { return _PaginationRowItems__WEBPACK_IMPORTED_MODULE_10__["default"]; });














/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Pagination/paginate.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return paginate; });
/**
 * Client Side Pagination helper which returns amountOfPages, itemCount,
 * itemsStart, itemsEnd, and paginated rows
 */
function paginate({
  page,
  perPage
}) {
  return (rows = []) => {
    // adapt to zero indexed logic
    const p = page - 1 || 0;
    const amountOfPages = Math.ceil(rows.length / perPage);
    const startPage = p < amountOfPages ? p : 0;
    const endOfPage = startPage * perPage + perPage;
    return {
      amountOfPages,
      itemCount: rows.length,
      itemsStart: startPage * perPage + 1,
      itemsEnd: endOfPage > rows.length ? rows.length : endOfPage,
      rows: rows.slice(startPage * perPage, endOfPage)
    };
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Popover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Popover */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Popover.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Popover__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Popover/index.js ***!
  \****************************************************************************/
/*! exports provided: Popover */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/Popover.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _Popover__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/ProgressBar */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ProgressBar.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_ProgressBar__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js ***!
  \********************************************************************************/
/*! exports provided: ProgressBar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/ProgressBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return _ProgressBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js ***!
  \*****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _SessionTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js");




const msTimes = {
  seconds: 1000,
  minutes: 60 * 1000,
  hours: 60 * 60 * 1000
};

class CountDownSessionTimeout extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);
    this.timer = new _common_Timer__WEBPACK_IMPORTED_MODULE_2__["default"](() => {}, -1);
    this.state = {
      timeLeft: 0
    };
  }

  componentDidMount() {
    if (this.props.timeLeft < this.props.displayBefore) {
      this.setTimeout('dialog');
    } else {
      this.setTimeout('init');
    }
  }

  componentWillUnount() {
    this.timer.clearTimer();
  }

  setTimeout(mode) {
    const {
      sessionTime,
      timeLeft,
      displayBefore,
      units
    } = this.props;

    switch (mode) {
      case 'logout':
        {
          this.setState(() => ({
            timeLeft: 0
          }));
          this.timer.clearTimer();
          break;
        }

      case 'continue':
        {
          this.setState(() => ({
            timeLeft: sessionTime
          }));
          this.timer.startTimer(() => this.setTimeout('dialog'), (sessionTime - displayBefore) * msTimes[units]);
          break;
        }

      case 'dialog':
        {
          const leftNow = timeLeft < displayBefore ? timeLeft : displayBefore;
          this.setState(() => ({
            timeLeft: leftNow
          }));
          this.timer.startTimer(() => this.setTimeout('logout'), leftNow * msTimes[units]);
          break;
        }

      case 'init':
        {
          this.setState(() => ({
            timeLeft
          }));
          this.timer.startTimer(() => this.setTimeout('dialog'), (timeLeft - displayBefore) * msTimes[units]);
          break;
        }

      default:
        {
          break;
        }
    }
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SessionTimeout__WEBPACK_IMPORTED_MODULE_3__["default"], {
      logoutFnc: () => this.setTimeout('logout'),
      continueFnc: () => this.setTimeout('continue'),
      displayBefore: this.props.displayBefore,
      timeLeft: this.state.timeLeft,
      secondaryContent: this.props.secondaryContent
    });
  }

}

CountDownSessionTimeout.propTypes = {
  timeLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  sessionTime: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  displayBefore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  units: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(Object.keys(msTimes)),
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
CountDownSessionTimeout.defaultProps = {
  displayBefore: 10,
  units: 'seconds',
  secondaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "You will be logged out in 10 seconds.")
};
/* harmony default export */ __webpack_exports__["default"] = (CountDownSessionTimeout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CountDownSessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js");





const SessionTimeout = props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["MessageDialog"], {
  show: props.timeLeft > 0 && props.timeLeft <= props.displayBefore,
  primaryActionButtonContent: props.continueContent,
  primaryAction: props.continueFnc,
  secondaryActionButtonContent: props.logoutContent,
  secondaryAction: props.logoutFnc,
  primaryContent: props.primaryContent,
  secondaryContent: props.secondaryContent,
  onHide: props.logoutFnc,
  icon: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    type: "pf",
    name: "warning-triangle-o"
  })
});

SessionTimeout.propTypes = {
  timeLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  displayBefore: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  continueContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  continueFnc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  logoutContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  logoutFnc: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
  primaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  secondaryContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
SessionTimeout.defaultProps = {
  displayBefore: 10,
  continueContent: 'Continue Session',
  logoutContent: 'Log Out',
  primaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
    className: "lead"
  }, "Your session is about to expire"),
  secondaryContent: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "You will be logged out in a few seconds."), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "To continue your session click on the Continue Session button."))
};
SessionTimeout.CountDown = _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (SessionTimeout);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js ***!
  \***********************************************************************************/
/*! exports provided: SessionTimeout, CountDownSessionTimeout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SessionTimeout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/SessionTimeout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTimeout", function() { return _SessionTimeout__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CountDownSessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/CountDownSessionTimeout.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CountDownSessionTimeout", function() { return _CountDownSessionTimeout__WEBPACK_IMPORTED_MODULE_1__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! bootstrap-slider-without-jquery */ "./node_modules/bootstrap-slider-without-jquery/dist/bootstrap-slider.js");
/* harmony import */ var bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2__);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }




const orientation = {
  horizontal: 'horizontal',
  vertical: 'vertical'
};

class BootstrapSlider extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  componentDidMount() {
    this.slider = new bootstrap_slider_without_jquery__WEBPACK_IMPORTED_MODULE_2___default.a(this.sliderDiv, _objectSpread({}, this.props));

    const onSlide = value => {
      this.props.onSlide(value);
      this.slider.setValue(value);
    };

    this.slider.on('slide', onSlide);
    this.slider.on('slideStop', onSlide);
  } // Instead of rendering the slider element again and again,
  // we took advantage of the bootstrap-slider library
  // and only update the new value or format when new props arrive.


  UNSAFE_componentWillReceiveProps(nextProps) {
    this.slider.setValue(nextProps.value); // Sets the tooltip format.

    this.slider.setAttribute('formatter', nextProps.formatter); // Adjust the tooltip to "sit" ontop of the slider's handle. #LibraryBug
    // check

    if (this.props.orientation === orientation.horizontal) {
      this.slider.tooltip.style.marginLeft = `-${this.slider.tooltip.offsetWidth / 2}px`;

      if (this.props.ticks_labels && this.slider.tickLabelContainer) {
        this.slider.tickLabelContainer.style.marginTop = '0px';
      }
    } else {
      this.slider.tooltip.style.marginTop = `-${this.slider.tooltip.offsetHeight / 2}px`;
    }
  }

  render() {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
      className: "slider-pf",
      type: "range",
      ref: input => {
        this.sliderDiv = input;
      }
    });
  }

}

BootstrapSlider.propTypes = {
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]).isRequired,
  formatter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onSlide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  orientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  ticks_labels: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
BootstrapSlider.defaultProps = {
  formatter: v => v,
  onSlide: event => event,
  orientation: 'horizontal',
  ticks_labels: []
};
/* harmony default export */ __webpack_exports__["default"] = (BootstrapSlider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const Boundaries = props => {
  const {
    children,
    min,
    max,
    reversed,
    showBoundaries,
    slider
  } = props;
  const minElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, min);
  const maxElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, max);
  let leftBoundary = null;
  let rightBoundary = null;

  if (showBoundaries) {
    if (reversed) {
      leftBoundary = maxElement;
      rightBoundary = minElement;
    } else {
      leftBoundary = minElement;
      rightBoundary = maxElement;
    }
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: "slider-pf"
  }, leftBoundary, slider, rightBoundary, children);
};

Boundaries.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  reversed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  showBoundaries: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  slider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object.isRequired
};
Boundaries.defaultProps = {
  children: [],
  min: 0,
  max: 100,
  reversed: false,
  showBoundaries: false
};
/* harmony default export */ __webpack_exports__["default"] = (Boundaries);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");





const DropdownMenu = props => {
  const {
    dropup,
    dropdownList,
    onFormatChange,
    title
  } = props;
  const menuItems = dropdownList.map((item, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_3__["MenuItem"], {
    bsClass: "slider_menuitem",
    onClick: event => onFormatChange(event.target.text),
    key: index,
    value: item
  }, item));
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"], {
    id: "slider_dropdown",
    dropup: dropup,
    pullRight: true
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Toggle, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, title || dropdownList[0])), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_2__["Dropdown"].Menu, null, menuItems));
};

DropdownMenu.propTypes = {
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  dropdownList: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  onFormatChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DropdownMenu.defaultProps = {
  dropup: false,
  dropdownList: null,
  onFormatChange: null,
  title: null
};
/* harmony default export */ __webpack_exports__["default"] = (DropdownMenu);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _BootstrapSlider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BootstrapSlider */ "./node_modules/patternfly-react/dist/esm/components/Slider/BootstrapSlider.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _Boundaries__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Boundaries */ "./node_modules/patternfly-react/dist/esm/components/Slider/Boundaries.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/patternfly-react/dist/esm/components/Slider/DropdownMenu.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }










class Slider extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSlide", value => {
      const newValue = value < this.props.min ? this.props.min : value;
      this.setState({
        value: newValue
      }, () => this.props.onSlide(newValue));
    });

    _defineProperty(this, "onInputChange", event => {
      const newValue = parseInt(event.target.value || 0, 10);
      this.setState({
        value: newValue
      }, () => this.props.onSlide(newValue));
    });

    _defineProperty(this, "onFormatChange", format => {
      this.setState({
        tooltipFormat: format
      }, this.props.onFormatChange(format));
    });

    _defineProperty(this, "formatter", value => `${value} ${this.state.tooltipFormat}`);

    this.state = {
      value: this.props.value,
      tooltipFormat: this.props.dropdownList && this.props.dropdownList[0] || this.props.inputFormat
    };
  }

  componentDidUpdate(prevProps) {
    if (prevProps.value !== this.props.value) {
      this.onSlide(this.props.value);
    }
  }

  render() {
    let label = null;
    let sliderClass = 'col-xs-12 col-sm-12 col-md-12';
    const labelClass = 'col-xs-2 col-sm-2 col-md-2';

    if (this.props.label || this.props.icon) {
      sliderClass = 'col-xs-10 col-sm-10 col-md-10';
      label = this.props.icon ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], _extends({
        className: labelClass
      }, this.props.icon)) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"], {
        htmlFor: this.props.id,
        bsClass: labelClass
      }, this.props.label);
    }

    let formatElement;

    if (this.props.inputFormat) {
      formatElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, this.props.inputFormat);
    }

    if (this.props.dropdownList) {
      formatElement = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DropdownMenu__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({}, this.props, {
        onFormatChange: this.onFormatChange,
        title: this.state.tooltipFormat
      }));
    }

    const inputElement = this.props.input && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
      bsClass: "slider-input-pf",
      type: "number",
      value: this.state.value,
      min: this.props.min,
      max: this.props.max,
      onChange: this.onInputChange
    });
    const BSSlider = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_BootstrapSlider__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, this.props, {
      formatter: this.formatter,
      value: this.state.value,
      onSlide: this.onSlide
    }));
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, label, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: sliderClass
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Boundaries__WEBPACK_IMPORTED_MODULE_6__["default"], _extends({
      slider: BSSlider
    }, this.props), inputElement, formatElement)));
  }

}

Slider.propTypes = {
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  orientation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  step: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number]),
  toolTip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  onSlide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onFormatChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  labelClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  input: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  sliderClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  dropdownList: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  inputFormat: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
Slider.defaultProps = {
  id: null,
  orientation: 'horizontal',
  min: 0,
  max: 100,
  value: 0,
  step: 1,
  toolTip: false,
  onSlide: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onFormatChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  label: null,
  labelClass: null,
  input: false,
  sliderClass: null,
  icon: null,
  dropdownList: null,
  inputFormat: ''
};
/* harmony default export */ __webpack_exports__["default"] = (Slider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Slider/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Slider/index.js ***!
  \***************************************************************************/
/*! exports provided: Slider */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Slider */ "./node_modules/patternfly-react/dist/esm/components/Slider/Slider.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _Slider__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _SortTypeSelector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SortTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js");
/* harmony import */ var _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SortDirectionSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * Sort Component for PatternFly React
 */

const Sort = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('form-group', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

Sort.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
Sort.defaultProps = {
  children: null,
  className: ''
};
Sort.TypeSelector = _SortTypeSelector__WEBPACK_IMPORTED_MODULE_3__["default"];
Sort.DirectionSelector = _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_4__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Sort);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const SortDirectionSelector = (_ref) => {
  let {
    className,
    isNumeric,
    isAscending
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "isNumeric", "isAscending"]);

  let directionName;

  if (isNumeric) {
    directionName = isAscending ? 'sort-numeric-asc' : 'sort-numeric-desc';
  } else {
    directionName = isAscending ? 'sort-alpha-asc' : 'sort-alpha-desc';
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["Button"], _extends({
    bsStyle: "link",
    className: className
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
    type: "fa",
    className: "sort-direction",
    name: directionName
  }));
};

SortDirectionSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Boolean if current sort type is numeric */
  isNumeric: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Boolean if current sort direction is ascending */
  isAscending: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
SortDirectionSelector.defaultProps = {
  className: '',
  isNumeric: true,
  isAscending: true
};
/* harmony default export */ __webpack_exports__["default"] = (SortDirectionSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







const SortTypeSelector = (_ref) => {
  let {
    className,
    id,
    sortTypes,
    currentSortType,
    onSortTypeSelected
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "id", "sortTypes", "currentSortType", "onSortTypeSelected"]);

  let menuId = 'sortTypeMenu';
  menuId += id ? `_${id}` : '';

  if (sortTypes && sortTypes.length > 1) {
    let title;

    if (currentSortType) {
      title = currentSortType.title || currentSortType;
    } else {
      title = sortTypes[0].title || sortTypes[0];
    }

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["DropdownButton"], _extends({
      className: className,
      title: title,
      id: menuId
    }, props), sortTypes.map((item, index) => {
      const classes = {
        selected: item === currentSortType
      };
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_MenuItem__WEBPACK_IMPORTED_MODULE_3__["MenuItem"], {
        className: classes,
        key: item.id || index,
        onSelect: () => onSortTypeSelected && onSortTypeSelected(item)
      }, item.title || item);
    }));
  }

  return null;
};

SortTypeSelector.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** ID for the sort component, necessary for accessibility if there are sort filters on a page */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Array of sort types, can be a string or an object with a 'title' field */
  sortTypes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array.isRequired,

  /** Current selected sort type */
  currentSortType: 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]),

  /** function(field, value) - Callback to call when a sort type is selected */
  onSortTypeSelected: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SortTypeSelector.defaultProps = {
  className: '',
  id: '',
  currentSortType: null,
  onSortTypeSelected: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (SortTypeSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Sort/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Sort/index.js ***!
  \*************************************************************************/
/*! exports provided: Sort, SortTypeSelector, SortDirectionSelector */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Sort__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Sort */ "./node_modules/patternfly-react/dist/esm/components/Sort/Sort.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sort", function() { return _Sort__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _SortTypeSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SortTypeSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortTypeSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortTypeSelector", function() { return _SortTypeSelector__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SortDirectionSelector */ "./node_modules/patternfly-react/dist/esm/components/Sort/SortDirectionSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortDirectionSelector", function() { return _SortDirectionSelector__WEBPACK_IMPORTED_MODULE_2__["default"]; });






/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const Spinner = (_ref) => {
  let {
    loading,
    size,
    inline,
    children,
    inverse,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["loading", "size", "inline", "children", "inverse", "className"]);

  if (loading) {
    const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'spinner', `spinner-${size}`, {
      'spinner-inline': inline,
      'spinner-inverse': inverse
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
      className: classes
    }, props));
  }

  return children || null;
};

Spinner.propTypes = {
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  inline: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'md', 'sm', 'xs']),
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
Spinner.defaultProps = {
  loading: false,
  size: 'md',
  inline: false,
  inverse: false,
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (Spinner);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Spinner/index.js ***!
  \****************************************************************************/
/*! exports provided: Spinner */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/Spinner.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _Spinner__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap-switch */ "./node_modules/react-bootstrap-switch/dist/js/index.js");
/* harmony import */ var react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SwitchConstants */ "./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js");


react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a.SWITCH_BS_SIZES = _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__["SWITCH_BS_SIZES"];
react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a.SWITCH_COLORS = _SwitchConstants__WEBPACK_IMPORTED_MODULE_1__["SWITCH_COLORS"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_switch__WEBPACK_IMPORTED_MODULE_0___default.a);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/SwitchConstants.js ***!
  \*************************************************************************************/
/*! exports provided: SWITCH_BS_SIZES, SWITCH_COLORS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SWITCH_BS_SIZES", function() { return SWITCH_BS_SIZES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SWITCH_COLORS", function() { return SWITCH_COLORS; });
const SWITCH_BS_SIZES = ['mini', 'small', 'normal', 'large'];
const SWITCH_COLORS = ['primary', 'info', 'success', 'warning', 'danger', 'default'];

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Switch/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Switch/index.js ***!
  \***************************************************************************/
/*! exports provided: Switch */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Switch */ "./node_modules/patternfly-react/dist/esm/components/Switch/Switch.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _Switch__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





const actionHeaderCellFormatter = (value, {
  column
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableHeading__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
  "aria-label": column.header.label
}, column.header.props), column.header.label);

actionHeaderCellFormatter.propTypes = {
  /** cell value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
actionHeaderCellFormatter.defaultProps = {
  value: null,
  column: {}
};
/* harmony default export */ __webpack_exports__["default"] = (actionHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js ***!
  \****************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");

 // wraps the default header definitions and adds support for `customFormatters`

const customHeaderFormattersDefinition = ({
  cellProps,
  columns,
  sortingColumns,
  rows,
  onSelectAllRows,
  onSort
}) => {
  const {
    index
  } = cellProps;
  const column = columns[index];
  const {
    customFormatters
  } = column.header;

  if (customFormatters) {
    return customFormatters.reduce((params, formatter) => ({
      value: formatter(params)
    }), {
      cellProps,
      column,
      sortingColumns,
      rows,
      onSelectAllRows,
      onSort
    }).value;
  }

  return cellProps.children;
};

customHeaderFormattersDefinition.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,

  /** column definitions */
  columns: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array,

  /** sorting object definition */
  sortingColumns: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object,

  /** current table rows */
  rows: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.array,

  /** on select all rows callback */
  onSelectAllRows: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,

  /** onSort callback */
  onSort: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func
};
customHeaderFormattersDefinition.defaultProps = {
  cellProps: {},
  columns: [],
  sortingColumns: {},
  onSort: _common_helpers__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (customHeaderFormattersDefinition);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _InlineEdit___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../InlineEdit/ */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");


/*
Creates a reactabular formatter:

(<value>, {
  rowData: <object>,
  property: <string>,
  column: <column>,
  columnIndex: <number>,
  rowIndex: <number> }) => <string|React element>
*/

const inlineEditFormatterFactory = ({
  isEditing,
  renderValue,
  renderEdit
} = {}) => (value, additionalData) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit___WEBPACK_IMPORTED_MODULE_1__["InlineEdit"], {
  value: value,
  additionalData: additionalData,
  isEditing: isEditing,
  renderValue: renderValue,
  renderEdit: renderEdit
});

/* harmony default export */ __webpack_exports__["default"] = (inlineEditFormatterFactory);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");






const selectionCellFormatter = ({
  rowData,
  rowIndex
}, onSelectRow, id, label) => {
  const checkboxId = id || `select${rowIndex}`;
  const checkboxLabel = label || `Select row ${rowIndex}`;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableSelectionCell__WEBPACK_IMPORTED_MODULE_3__["default"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], {
    id: checkboxId,
    label: checkboxLabel,
    checked: rowData.selected,
    onChange: e => {
      onSelectRow(e, rowData);
    }
  }));
};

selectionCellFormatter.propTypes = {
  /** rowData for this row */
  rowData: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** rowIndex for this row */
  rowIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** row selected callback */
  onSelectRow: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  // eslint-disable-line react/no-unused-prop-types

  /** checkbox id override */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  // eslint-disable-line react/no-unused-prop-types

  /** checkbox label override */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string // eslint-disable-line react/no-unused-prop-types

};
selectionCellFormatter.defaultProps = {
  rowData: {},
  onSelectRow: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  id: '',
  label: ''
};
/* harmony default export */ __webpack_exports__["default"] = (selectionCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js ***!
  \************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }







const selectionHeaderCellFormatter = ({
  cellProps,
  column,
  rows,
  onSelectAllRows
}) => {
  const unselectedRows = rows.filter(r => !r.selected).length > 0;
  const id = cellProps.id || 'selectAll';
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableSelectionHeading__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
    "aria-label": column.header.label
  }, cellProps), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableCheckbox__WEBPACK_IMPORTED_MODULE_4__["default"], {
    id: id,
    label: column.header.label,
    checked: !unselectedRows,
    onChange: onSelectAllRows
  }));
};

selectionHeaderCellFormatter.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** current table rows */
  rows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** on select all rows callback */
  onSelectAllRows: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
selectionHeaderCellFormatter.defaultProps = {
  cellProps: {},
  column: {},
  rows: [],
  onSelectAllRows: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (selectionHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }






const sortableHeaderCellFormatter = ({
  cellProps,
  column,
  sortingColumns,
  onSort
}) => {
  const sortDirection = sortingColumns[column.property] && sortingColumns[column.property].direction;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableHeading__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({
    onClick: e => {
      onSort(e, column, sortDirection);
    },
    sort: true,
    sortDirection: sortDirection,
    "aria-label": column.header.label
  }, cellProps), column.header.label);
};

sortableHeaderCellFormatter.propTypes = {
  /** column header cell props */
  cellProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** column definition */
  column: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** sorting object definition */
  sortingColumns: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,

  /** onSort callback */
  onSort: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
sortableHeaderCellFormatter.defaultProps = {
  cellProps: {},
  column: {},
  sortingColumns: {},
  onSort: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (sortableHeaderCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");




const tableCellFormatter = value => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableCell__WEBPACK_IMPORTED_MODULE_2__["default"], null, value);

tableCellFormatter.propTypes = {
  /** cell value */
  value: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node // eslint-disable-line react/no-unused-prop-types

};
tableCellFormatter.defaultProps = {
  value: null
};
/* harmony default export */ __webpack_exports__["default"] = (tableCellFormatter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/Table.js ***!
  \**************************************************************************/
/*! exports provided: Table */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var reactabular_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! reactabular-table */ "./node_modules/reactabular-table/dist/index.js");
/* harmony import */ var reactabular_table__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(reactabular_table__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return reactabular_table__WEBPACK_IMPORTED_MODULE_0__; });
/* harmony import */ var _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Formatters/actionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js");
/* harmony import */ var _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formatters/customHeaderFormattersDefinition */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js");
/* harmony import */ var _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formatters/selectionCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js");
/* harmony import */ var _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Formatters/selectionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js");
/* harmony import */ var _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Formatters/sortableHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js");
/* harmony import */ var _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Formatters/tableCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js");
/* harmony import */ var _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Formatters/inlineEditFormatterFactory */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js");
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
/* harmony import */ var _TableActions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableActions */ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js");
/* harmony import */ var _TableButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TableButton */ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js");
/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");
/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
/* harmony import */ var _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableDropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js");
/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
/* harmony import */ var _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TableInlineEditRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js");
/* harmony import */ var _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TableInlineEditHeaderRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js");
/* harmony import */ var _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TablePfProvider */ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js");
/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");




















reactabular_table__WEBPACK_IMPORTED_MODULE_0__["actionHeaderCellFormatter"] = _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_1__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["customHeaderFormattersDefinition"] = _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_2__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["defaultSortingOrder"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["defaultSortingOrder"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["selectionCellFormatter"] = _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_3__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["selectionHeaderCellFormatter"] = _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["sortableHeaderCellFormatter"] = _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_5__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["tableCellFormatter"] = _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_6__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["inlineEditFormatterFactory"] = _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_7__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Actions"] = _TableActions__WEBPACK_IMPORTED_MODULE_9__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Button"] = _TableButton__WEBPACK_IMPORTED_MODULE_10__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Cell"] = _TableCell__WEBPACK_IMPORTED_MODULE_11__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Checkbox"] = _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["DropdownKebab"] = _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["Heading"] = _TableHeading__WEBPACK_IMPORTED_MODULE_14__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["PfProvider"] = _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["InlineEditRow"] = _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TableInlineEditHeaderRow"] = _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["SelectionCell"] = _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["SelectionHeading"] = _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__["default"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_ALIGN"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGN"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_ALIGNMENT_TYPES"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGNMENT_TYPES"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_SORT_DIRECTION"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTION"];
reactabular_table__WEBPACK_IMPORTED_MODULE_0__["TABLE_SORT_DIRECTIONS"] = _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTIONS"];


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * TableActions component for Patternfly React
 */

const TableActions = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-actions', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", _extends({
    className: classes
  }, props), children);
};

TableActions.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableActions.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableActions);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button/ButtonConstants */ "./node_modules/patternfly-react/dist/esm/components/Button/ButtonConstants.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }







/**
 * TableButton component for Patternfly React
 */

const TableButton = (_ref) => {
  let {
    children,
    className,
    onClick
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "onClick"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-btn', className);

  const {
    bsStyle
  } = props,
        otherProps = _objectWithoutProperties(props, ["bsStyle"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, otherProps), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
    onClick: onClick,
    bsStyle: bsStyle
  }, children));
};

TableButton.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** onClick callback for button */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__["BUTTON_BS_STYLES"])
};
TableButton.defaultProps = {
  children: null,
  className: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_5__["noop"],
  bsStyle: 'default'
};
TableButton.BUTTON_BS_STYLES = _Button_ButtonConstants__WEBPACK_IMPORTED_MODULE_4__["BUTTON_BS_STYLES"];
/* harmony default export */ __webpack_exports__["default"] = (TableButton);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * TableCell component for Patternfly React
 */

const TableCell = (_ref) => {
  let {
    children,
    className,
    align
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "align"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'text-right': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].RIGHT,
    'text-center': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].CENTER
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", _extends({
    className: classes
  }, props), children);
};

TableCell.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Cell alignment */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGNMENT_TYPES"])
};
TableCell.defaultProps = {
  children: null,
  className: '',
  align: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].DEFAULT
};
/* harmony default export */ __webpack_exports__["default"] = (TableCell);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * TableCheckbox component for Patternfly React
 */

const TableCheckbox = (_ref) => {
  let {
    id,
    label,
    checked,
    onChange
  } = _ref,
      props = _objectWithoutProperties(_ref, ["id", "label", "checked", "onChange"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
    srOnly: true,
    htmlFor: id
  }, label), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", _extends({
    type: "checkbox",
    id: id,
    checked: checked,
    onChange: onChange
  }, props)));
};

TableCheckbox.propTypes = {
  /** checkbox id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** checkbox label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** checkbox is checked */
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** onChange callback */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
TableCheckbox.defaultProps = {
  id: '',
  label: '',
  checked: false,
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (TableCheckbox);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _InlineEdit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _common_closestPolyfill__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/closestPolyfill */ "./node_modules/patternfly-react/dist/esm/common/closestPolyfill.js");
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; }








class TableConfirmButtonsRow extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "saveRowDimensions", element => {
      if (element) {
        this.element = element;
      }

      if (this.element) {
        this.setState({
          rowDimensions: this.element.getBoundingClientRect()
        });
      }
    });

    _defineProperty(this, "handleScroll", event => {
      this.saveRowDimensions();
    });

    _defineProperty(this, "handleResize", event => {
      this.fetchClientDimensions();
      this.saveRowDimensions();
    });

    this.state = {};
    this.handleScroll = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["debounce"])(this.handleScroll, 100);
    this.handleResize = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_4__["debounce"])(this.handleResize, 100);
  }

  componentDidMount() {
    this.fetchClientDimensions();
    window.addEventListener('scroll', this.handleScroll);
    window.addEventListener('resize', this.handleResize);
  }

  componentWillUnmount() {
    window.removeEventListener('scroll', this.handleScroll);
    window.removeEventListener('resize', this.handleResize);
  }

  fetchClientDimensions() {
    this.setState({
      window: {
        width: document.documentElement.clientWidth,
        height: document.documentElement.clientHeight
      }
    });
  }

  renderConfirmButtons() {
    const divStyle = this.state.rowDimensions ? this.props.buttonsPosition(this.state.window, this.element.getBoundingClientRect()) : {};
    const buttonsClass = `inline-edit-buttons ${this.props.buttonsClassName}`;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      style: divStyle,
      className: buttonsClass,
      key: "confirmButtons"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit__WEBPACK_IMPORTED_MODULE_3__["ConfirmButton"], {
      bsStyle: "primary",
      key: "confirm",
      "aria-label": this.props.messages.confirmButtonLabel,
      onMouseUp: () => this.props.onConfirm()
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_InlineEdit__WEBPACK_IMPORTED_MODULE_3__["CancelButton"], {
      bsStyle: "default",
      key: "cancel",
      "aria-label": this.props.messages.cancelButtonLabel,
      onMouseUp: () => this.props.onCancel()
    }));
  }

  render() {
    const editing = this.props.isEditing();
    const rowClass = editing ? 'editing' : '';
    const elements = [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", {
      ref: this.saveRowDimensions,
      className: rowClass,
      key: "tableRow"
    }, this.props.children)];

    if (editing && (this.element || this.props.buttonsMountpoint)) {
      elements.push( // mount the confirm buttons below the table
      Object(react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"])(this.renderConfirmButtons(), this.props.buttonsMountpoint || this.element.closest('table').parentNode));
    }

    return elements;
  }

}

TableConfirmButtonsRow.shouldComponentUpdate = true;
TableConfirmButtonsRow.defaultProps = {
  isEditing: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onConfirm: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  onCancel: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  buttonsPosition: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"],
  buttonsClassName: '',
  children: [],
  messages: {
    confirmButtonLabel: 'Save',
    cancelButtonLabel: 'Cancel'
  },
  buttonsMountpoint: undefined
};
TableConfirmButtonsRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Inject confirm buttons positions */
  buttonsPosition: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Additional confirm buttons classes */
  buttonsClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),

  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  }),
  buttonsMountpoint: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any
};
/* harmony default export */ __webpack_exports__["default"] = (TableConfirmButtonsRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js ***!
  \***********************************************************************************/
/*! exports provided: TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS, defaultSortingOrder */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return TABLE_ALIGN; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return TABLE_ALIGNMENT_TYPES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return TABLE_SORT_DIRECTION; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return TABLE_SORT_DIRECTIONS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return defaultSortingOrder; });
const TABLE_ALIGN = {
  CENTER: 'center',
  RIGHT: 'right',
  DEFAULT: ''
};
const TABLE_ALIGNMENT_TYPES = [TABLE_ALIGN.CENTER, TABLE_ALIGN.RIGHT, TABLE_ALIGN.DEFAULT];
const TABLE_SORT_DIRECTION = {
  ASC: 'asc',
  DESC: 'desc',
  DEFAULT: ''
};
const TABLE_SORT_DIRECTIONS = [TABLE_SORT_DIRECTION.ASC, TABLE_SORT_DIRECTION.DESC, TABLE_SORT_DIRECTION.DEFAULT]; // Reactabular sorting order allows you to specifiy sort asc/desc only and removes
// the unsorted state. This is consistent with current PF Data Table but should
// be better spelled out in our design docs.
// https://github.com/patternfly/patternfly-design/issues/516
// https://reactabular.js.org/#/data/sorting?a=customizing-sorting-order

const defaultSortingOrder = {
  FIRST: 'asc',
  asc: 'desc',
  desc: 'asc'
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _DropdownKebab__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * TableDropdownKebab component for Patternfly React
 */

const TableDropdownKebab = (_ref) => {
  let {
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children"]);

  const CustomButtonGroup = buttonProps => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["ButtonGroup"], _extends({}, buttonProps, {
    bsClass: " "
  }));

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_DropdownKebab__WEBPACK_IMPORTED_MODULE_3__["DropdownKebab"], _extends({
    componentClass: CustomButtonGroup,
    toggleStyle: "default"
  }, props), children);
};

TableDropdownKebab.propTypes = {
  /** children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
TableDropdownKebab.defaultProps = {
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (TableDropdownKebab);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * TableHeading component for Patternfly React
 */

const TableHeading = (_ref) => {
  let {
    children,
    className,
    align,
    sort,
    sortDirection
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "align", "sort", "sortDirection"]);

  const sortingClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    sorting_asc: sortDirection === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].ASC,
    sorting_desc: sortDirection === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].DESC
  });
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    'text-right': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].RIGHT,
    'text-center': align === _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].CENTER
  }, sort ? sortingClass || 'sorting' : '', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", _extends({
    className: classes
  }, props), children);
};

TableHeading.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Heading alignment */
  align: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGNMENT_TYPES"]),

  /** sortable heading */
  sort: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** sort direction */
  sortDirection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(_TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTIONS"])
};
TableHeading.defaultProps = {
  children: null,
  className: '',
  sort: false,
  align: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_ALIGN"].DEFAULT,
  sortDirection: _TableConstants__WEBPACK_IMPORTED_MODULE_3__["TABLE_SORT_DIRECTION"].DEFAULT
};
/* harmony default export */ __webpack_exports__["default"] = (TableHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableConfirmButtonsRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





const TableInlineEditHeaderRow = props => {
  const buttonsPosition = (window, rowDimensions) => {
    const position = {};
    position.bottom = window.height - rowDimensions.bottom - 3;
    position.right = window.width - rowDimensions.right + 10;
    return position;
  };

  const buttonsClassName = 'top bold';

  const rowProps = _objectSpread({}, props, {
    buttonsPosition,
    buttonsClassName
  });

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"], rowProps);
};

TableInlineEditHeaderRow.shouldComponentUpdate = true;
TableInlineEditHeaderRow.defaultProps = _objectSpread({}, _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps);
TableInlineEditHeaderRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),

  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
/* harmony default export */ __webpack_exports__["default"] = (TableInlineEditHeaderRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TableConfirmButtonsRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConfirmButtonsRow.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





const TableInlineEditRow = props => {
  const buttonsPosition = (window, rowDimensions) => {
    const position = {};

    if (props.last) {
      position.bottom = window.height - rowDimensions.top - 1;
    } else {
      position.top = rowDimensions.bottom - 1;
    }

    position.right = window.width - rowDimensions.right + 10;
    return position;
  };

  const buttonsClassName = props.last ? 'top' : 'bottom';
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, props, {
    buttonsPosition: buttonsPosition,
    buttonsClassName: buttonsClassName
  }));
};

TableInlineEditRow.shouldComponentUpdate = true;
TableInlineEditRow.defaultProps = _objectSpread({}, _TableConfirmButtonsRow__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, {
  last: false
});
TableInlineEditRow.propTypes = {
  /** Function that determines whether values or edit components should be rendered */
  isEditing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Confirm edit callback */
  onConfirm: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Cancel edit callback */
  onCancel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Flag to indicate last row */
  last: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Row cells */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node), prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node]),

  /** Message text inputs for i18n */
  messages: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    confirmButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    cancelButtonLabel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })
};
/* harmony default export */ __webpack_exports__["default"] = (TableInlineEditRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Table */ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * TablePfProvider component for Patternfly React
 */

const TablePfProvider = (_ref) => {
  let {
    children,
    className,
    dataTable,
    striped,
    bordered,
    inlineEdit,
    hover,
    condensed,
    components
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "dataTable", "striped", "bordered", "inlineEdit", "hover", "condensed", "components"]);

  const headerCell = cellProps => cellProps.children;

  const tableCell = cellProps => cellProps.children;

  const tableRow = rowProps => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr", rowProps, rowProps.children);

  tableRow.shouldComponentUpdate = true;
  components.header = Object.assign({
    cell: headerCell
  }, components.header || {});
  components.body = Object.assign({
    cell: tableCell,
    row: tableRow
  }, components.body || {});
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    table: true,
    dataTable,
    'table-striped': striped,
    'table-bordered': bordered,
    'table-hover': hover,
    'table-condensed': condensed,
    'pf-table-inline-edit': inlineEdit
  }, className);
  const attributes = {};

  if (dataTable) {
    attributes.role = 'grid';
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Table__WEBPACK_IMPORTED_MODULE_3__["Table"].Provider, _extends({
    className: classes,
    renderers: components
  }, props, attributes), children);
};

TablePfProvider.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** apply dataTable class */
  dataTable: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** apply Striped class */
  striped: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** apply Bordered class */
  bordered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** apply Hover class */
  hover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** apply Condensed class */
  condensed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** apply pf-table-inline-edit class */
  inlineEdit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** reactabular components override */
  components: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
};
TablePfProvider.defaultProps = {
  children: null,
  className: '',
  dataTable: false,
  striped: false,
  bordered: false,
  hover: false,
  condensed: false,
  inlineEdit: false,
  components: {}
};
/* harmony default export */ __webpack_exports__["default"] = (TablePfProvider);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * TableSelectionCell component for Patternfly React
 */

const TableSelectionCell = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-select', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", _extends({
    className: classes
  }, props), children);
};

TableSelectionCell.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableSelectionCell.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableSelectionCell);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * TableSelectionHeading component for Patternfly React
 */

const TableSelectionHeading = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('table-view-pf-select', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("th", _extends({
    className: classes
  }, props), children);
};

TableSelectionHeading.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TableSelectionHeading.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TableSelectionHeading);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Table/index.js":
/*!**************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Table/index.js ***!
  \**************************************************************************/
/*! exports provided: actionHeaderCellFormatter, customHeaderFormattersDefinition, defaultSortingOrder, selectionCellFormatter, selectionHeaderCellFormatter, sortableHeaderCellFormatter, tableCellFormatter, inlineEditFormatterFactory, Table, TableActions, TableButton, TableCell, TableCheckbox, TableDropdownKebab, TableHeading, TablePfProvider, TableInlineEditRow, TableInlineEditHeaderRow, TableSelectionCell, TableSelectionHeading, TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Formatters/actionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/actionHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "actionHeaderCellFormatter", function() { return _Formatters_actionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Formatters/customHeaderFormattersDefinition */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/customHeaderFormattersDefinition.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customHeaderFormattersDefinition", function() { return _Formatters_customHeaderFormattersDefinition__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Formatters/selectionCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionCellFormatter", function() { return _Formatters_selectionCellFormatter__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formatters/selectionHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/selectionHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionHeaderCellFormatter", function() { return _Formatters_selectionHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Formatters/sortableHeaderCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/sortableHeaderCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortableHeaderCellFormatter", function() { return _Formatters_sortableHeaderCellFormatter__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Formatters/tableCellFormatter */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/tableCellFormatter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tableCellFormatter", function() { return _Formatters_tableCellFormatter__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Formatters/inlineEditFormatterFactory */ "./node_modules/patternfly-react/dist/esm/components/Table/Formatters/inlineEditFormatterFactory.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inlineEditFormatterFactory", function() { return _Formatters_inlineEditFormatterFactory__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Table */ "./node_modules/patternfly-react/dist/esm/components/Table/Table.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _Table__WEBPACK_IMPORTED_MODULE_7__["Table"]; });

/* harmony import */ var _TableConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TableConstants */ "./node_modules/patternfly-react/dist/esm/components/Table/TableConstants.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["defaultSortingOrder"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGN"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_ALIGNMENT_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTION"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return _TableConstants__WEBPACK_IMPORTED_MODULE_8__["TABLE_SORT_DIRECTIONS"]; });

/* harmony import */ var _TableActions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TableActions */ "./node_modules/patternfly-react/dist/esm/components/Table/TableActions.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableActions", function() { return _TableActions__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _TableButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TableButton */ "./node_modules/patternfly-react/dist/esm/components/Table/TableButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableButton", function() { return _TableButton__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TableCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCell.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCell", function() { return _TableCell__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TableCheckbox */ "./node_modules/patternfly-react/dist/esm/components/Table/TableCheckbox.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCheckbox", function() { return _TableCheckbox__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TableDropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/Table/TableDropdownKebab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableDropdownKebab", function() { return _TableDropdownKebab__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _TableHeading__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TableHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeading", function() { return _TableHeading__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TableInlineEditRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditRow", function() { return _TableInlineEditRow__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./TableInlineEditHeaderRow */ "./node_modules/patternfly-react/dist/esm/components/Table/TableInlineEditHeaderRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditHeaderRow", function() { return _TableInlineEditHeaderRow__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TablePfProvider */ "./node_modules/patternfly-react/dist/esm/components/Table/TablePfProvider.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TablePfProvider", function() { return _TablePfProvider__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./TableSelectionCell */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionCell.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionCell", function() { return _TableSelectionCell__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TableSelectionHeading */ "./node_modules/patternfly-react/dist/esm/components/Table/TableSelectionHeading.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionHeading", function() { return _TableSelectionHeading__WEBPACK_IMPORTED_MODULE_19__["default"]; });























/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js ***!
  \***********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tab */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tab.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tab__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContainer.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabContainer__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabContent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabContent */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContent.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabContent__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_TabPane__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/TabPane */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabPane.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_TabPane__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js":
/*!************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js ***!
  \************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tabs */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tabs.js");
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabPane */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js");
/* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tab */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js");





react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].Tab = _Tab__WEBPACK_IMPORTED_MODULE_4__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabContainer = _TabContainer__WEBPACK_IMPORTED_MODULE_1__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabContent = _TabContent__WEBPACK_IMPORTED_MODULE_2__["default"];
react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"].TabPane = _TabPane__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tabs__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tabs/index.js":
/*!*************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tabs/index.js ***!
  \*************************************************************************/
/*! exports provided: TabContainer, TabContent, TabPane, Tabs, Tab */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return _TabContainer__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabPane */ "./node_modules/patternfly-react/dist/esm/components/Tabs/TabPane.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tabs */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tabs.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _Tabs__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Tab */ "./node_modules/patternfly-react/dist/esm/components/Tabs/Tab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return _Tab__WEBPACK_IMPORTED_MODULE_4__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _ToastNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js");
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }






/**
 * TimedToastNotification Component for Patternfly React
 */

class TimedToastNotification extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "onMouseEnter", () => {
      const {
        onMouseEnter
      } = this.props;
      onMouseEnter && onMouseEnter();
    });

    _defineProperty(this, "onMouseLeave", () => {
      const {
        onMouseLeave
      } = this.props;
      onMouseLeave && onMouseLeave();
    });
  }

  componentDidMount() {
    const {
      paused,
      persistent,
      onDismiss,
      timerdelay
    } = this.props;

    if (!persistent) {
      this.timer = new _common_Timer__WEBPACK_IMPORTED_MODULE_2__["default"](onDismiss, timerdelay);
      this.timer.startTimer();
    }
    /** if we are paused on mount, then clear the timer
     * after having initialized with the correct delay */


    if (paused) {
      this.timer && this.timer.clearTimer();
    }
  }

  UNSAFE_componentWillReceiveProps(nextProps) {
    /**
     * If paused prop changes, update our timer
     */
    if (nextProps.paused !== this.props.paused) {
      if (nextProps.paused) {
        this.timer && this.timer.clearTimer();
      } else {
        this.timer && this.timer.startTimer();
      }
    }
  }

  componentWillUnmount() {
    this.timer && this.timer.clearTimer();
  }

  render() {
    const {
      children,
      className,
      type,
      onDismiss
    } = this.props;
    const {
      onMouseEnter,
      onMouseLeave
    } = this;
    const toastProps = {
      className,
      type,
      onDismiss,
      onMouseEnter,
      onMouseLeave
    };
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ToastNotification__WEBPACK_IMPORTED_MODULE_3__["default"], toastProps, children);
  }

} // WARNING: This should be kept consistent with ToastNotification.propTypes


TimedToastNotification.propTypes = _objectSpread({}, _Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].propTypes, {
  /** pauses notification from dismissing */
  paused: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** persistent keeps the notification up endlessly until closed */
  persistent: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** timer delay until dismiss */
  timerdelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** onMouseEnter callback */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** onMouseLeave callback */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
}); // WARNING: This should be kept consistent with ToastNotification.defaultProps

TimedToastNotification.defaultProps = _objectSpread({}, _Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].defaultProps, {
  paused: false,
  timerdelay: 8000
});
TimedToastNotification.TOAST_NOTIFICATION_TYPES = [..._Alert__WEBPACK_IMPORTED_MODULE_4__["Alert"].ALERT_TYPES];
TimedToastNotification.displayName = 'TimedToastNotification';
/* harmony default export */ __webpack_exports__["default"] = (TimedToastNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
/* harmony import */ var _ToastNotificationList__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToastNotificationList */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * ToastNotification Component for Patternfly React
 */

const ToastNotification = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const notificationClasses = classnames__WEBPACK_IMPORTED_MODULE_0___default()('toast-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"], _extends({
    className: notificationClasses
  }, props), children);
}; // WARNING: If you change propTypes OR defaultProps  you MUST also change TimedToastNotification


ToastNotification.propTypes = _objectSpread({}, _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].propTypes);
ToastNotification.defaultProps = _objectSpread({}, _Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].defaultProps); // WARNING: If you change TOAST_NOTIFICATION_TYPES you MUST also change TimedToastNotification

ToastNotification.TOAST_NOTIFICATION_TYPES = [..._Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"].ALERT_TYPES];
ToastNotification.Timed = _TimedToastNotification__WEBPACK_IMPORTED_MODULE_3__["default"];
ToastNotification.List = _ToastNotificationList__WEBPACK_IMPORTED_MODULE_4__["default"];
/* harmony default export */ __webpack_exports__["default"] = (ToastNotification);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
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; }






/**
 * ToastNotificationList Component for Patternfly React
 */

class ToastNotificationList extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      paused: false
    });

    _defineProperty(this, "onMouseEnter", () => {
      this.setState({
        paused: true
      });
      const {
        onMouseEnter
      } = this.props;
      onMouseEnter();
    });

    _defineProperty(this, "onMouseLeave", () => {
      this.setState({
        paused: false
      });
      const {
        onMouseLeave
      } = this.props;
      onMouseLeave();
    });

    _defineProperty(this, "onMouseOver", () => {
      this.setState({
        paused: true
      });
      const {
        onMouseOver
      } = this.props;
      onMouseOver();
    });
  }

  UNSAFE_componentWillReceiveProps() {
    this.setState({
      paused: false
    });
  }

  renderChildren() {
    const {
      paused
    } = this.state;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(this.props.children, child => {
      if (Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _TimedToastNotification__WEBPACK_IMPORTED_MODULE_4__["default"].displayName)) {
        /**
         * If any of the notifications are hovered, pause
         * all child notifications from dismissing
         */
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.cloneElement(child, {
          paused
        });
      }

      return child;
    });
  }

  render() {
    const {
      className
    } = this.props;
    const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('toast-notifications-list-pf', className);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      onMouseEnter: this.onMouseEnter,
      onMouseLeave: this.onMouseLeave,
      onMouseOver: this.onMouseOver,
      onFocus: this.onMouseOver,
      className: classes
    }, this.renderChildren());
  }

}

ToastNotificationList.propTypes = {
  /** additional notification list classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** onMouseEnter callback */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** onMouseLeave callback */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** onMouseOver callback */
  onMouseOver: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
ToastNotificationList.defaultProps = {
  className: '',
  onMouseEnter: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onMouseLeave: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onMouseOver: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  children: null
};
/* harmony default export */ __webpack_exports__["default"] = (ToastNotificationList);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js ***!
  \**************************************************************************************/
/*! exports provided: ToastNotification, TimedToastNotification, ToastNotificationList */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _ToastNotification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotification", function() { return _ToastNotification__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TimedToastNotification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimedToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/TimedToastNotification.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimedToastNotification", function() { return _TimedToastNotification__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ToastNotificationList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ToastNotificationList */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/ToastNotificationList.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotificationList", function() { return _ToastNotificationList__WEBPACK_IMPORTED_MODULE_2__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
/* harmony import */ var _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToolbarResults */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js");
/* harmony import */ var _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToolbarRightContent */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js");
/* harmony import */ var _ToolbarFind__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToolbarFind */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js");
/* harmony import */ var _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ToolbarViewSelector */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js");
/* harmony import */ var _ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ToolbarConstants */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js");
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; }

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; }












const ContextualToolbar = (_ref) => {
  let {
    children,
    className,
    preventSubmit
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "preventSubmit"]);

  const toolbarChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(children, child => !Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"].displayName));
  const resultsChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(children, child => Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["hasDisplayName"])(child, _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"].displayName));
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["ToolbarContextProvider"], {
    isDescendantOfToolbar: true
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"], {
    fluid: true,
    className: className
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"].Row, {
    className: "toolbar-pf"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_4__["Grid"].Col, {
    sm: 12
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("form", {
    className: "toolbar-pf-actions",
    onSubmit: e => {
      if (preventSubmit) {
        e.preventDefault();
      }
    }
  }, toolbarChildren), resultsChildren))));
};

ContextualToolbar.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Prevent submission of toolbar children internal form */
  preventSubmit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
ContextualToolbar.defaultProps = {
  children: null,
  className: '',
  preventSubmit: false
};
const Toolbar = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(_ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["toolbarContextTypes"], _ToolbarConstants__WEBPACK_IMPORTED_MODULE_9__["getToolbarContext"])(ContextualToolbar);
Toolbar.Results = _ToolbarResults__WEBPACK_IMPORTED_MODULE_5__["default"];
Toolbar.RightContent = _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_6__["default"];
Toolbar.Find = _ToolbarFind__WEBPACK_IMPORTED_MODULE_7__["default"];
Toolbar.ViewSelector = _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_8__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Toolbar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarConstants.js ***!
  \***************************************************************************************/
/*! exports provided: toolbarContextTypes, getToolbarContext, ToolbarContextProvider */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toolbarContextTypes", function() { return toolbarContextTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getToolbarContext", function() { return getToolbarContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolbarContextProvider", function() { return ToolbarContextProvider; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");



const toolbarContextTypes = {
  isDescendantOfToolbar: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

const getToolbarContext = props => ({
  isDescendantOfToolbar: props.isDescendantOfToolbar
});

const provideToolbarContext = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(toolbarContextTypes, getToolbarContext);
const ToolbarContextProvider = provideToolbarContext(props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, props.children));


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
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; }









class ToolbarFind extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      dropdownShown: false,
      currentValue: ''
    });

    _defineProperty(this, "onValueKeyPress", keyEvent => {
      const {
        onEnter
      } = this.props;
      const {
        currentValue
      } = this.state;

      if (keyEvent.key === 'Enter' && onEnter) {
        onEnter(currentValue);
      }
    });

    _defineProperty(this, "handleFindNext", () => {
      const {
        currentValue
      } = this.state;
      const {
        onFindNext
      } = this.props;

      if (onFindNext) {
        onFindNext(currentValue);
      }
    });

    _defineProperty(this, "handleFindPrevious", () => {
      const {
        currentValue
      } = this.state;
      const {
        onFindPrevious
      } = this.props;

      if (onFindPrevious) {
        onFindPrevious(currentValue);
      }
    });

    _defineProperty(this, "handleValueChange", event => {
      const {
        onChange
      } = this.props;
      this.setState({
        currentValue: event.target.value
      });

      if (onChange) {
        onChange(event.target.value);
      }
    });

    _defineProperty(this, "hideDropdown", () => {
      this.setState({
        dropdownShown: false
      });
    });

    _defineProperty(this, "toggleDropdownShown", () => {
      this.setState(prevState => ({
        dropdownShown: !prevState.dropdownShown
      }));
    });
  }

  renderCounts() {
    const {
      currentValue
    } = this.state;
    const {
      currentIndex,
      totalCount
    } = this.props;

    if (currentValue && currentValue !== '') {
      return [react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
        className: "find-pf-nums",
        key: "findCountText"
      }, currentIndex || 0, " of ", totalCount), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        bsStyle: "link",
        key: "findPrevious",
        onClick: this.handleFindPrevious
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "fa",
        name: "angle-up"
      })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        bsStyle: "link",
        key: "findNext",
        onClick: this.handleFindNext
      }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "fa",
        name: "angle-down"
      }))];
    }

    return null;
  }

  render() {
    const {
      dropdownShown,
      currentValue
    } = this.state;
    const {
      className,
      placeholder
    } = this.props;
    const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('form-group toolbar-pf-find', className);
    const dropdownClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('find-pf-dropdown-container', {
      show: dropdownShown
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classes
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
      bsStyle: "link",
      className: "btn-find",
      onClick: this.toggleDropdownShown
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
      type: "fa",
      name: "search"
    })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: dropdownClasses
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Form__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
      type: "text",
      id: "find",
      value: currentValue,
      placeholder: placeholder,
      onKeyPress: e => this.onValueKeyPress(e),
      onChange: this.handleValueChange
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "find-pf-buttons"
    }, this.renderCounts(), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["Button"], {
      bsStyle: "link",
      className: "btn-find-close",
      onClick: this.hideDropdown
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
      type: "pf",
      name: "close"
    })))));
  }

}

ToolbarFind.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** index of current item */
  currentIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** total number of items */
  totalCount: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Placeholder text when empty */
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Callback function when user hits the enter key */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Callback function when the find value changes */
  onChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Callback function when the find next is selected */
  onFindNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Callback function when the find previous is selected */
  onFindPrevious: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ToolbarFind.defaultProps = {
  className: '',
  currentIndex: 0,
  placeholder: '',
  onEnter: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onChange: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFindNext: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  onFindPrevious: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ToolbarFind);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






const ToolbarResults = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('toolbar-pf-results', className);

  if (!children) {
    return null;
  }

  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_3__["Row"], _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_3__["Col"], {
    sm: 12
  }, children));
};

ToolbarResults.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ToolbarResults.defaultProps = {
  children: null,
  className: ''
};
ToolbarResults.displayName = 'ToolbarResults';
/* harmony default export */ __webpack_exports__["default"] = (ToolbarResults);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const ToolbarRightContent = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('toolbar-pf-action-right', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

ToolbarRightContent.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
ToolbarRightContent.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ToolbarRightContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const ToolbarViewSelector = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('form-group toolbar-pf-view-selector', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

ToolbarViewSelector.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
ToolbarViewSelector.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (ToolbarViewSelector);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js ***!
  \****************************************************************************/
/*! exports provided: Toolbar, ToolbarResults, ToolbarRightContent, ToolbarFind, ToolbarViewSelector */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Toolbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Toolbar */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/Toolbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toolbar", function() { return _Toolbar__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _ToolbarResults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ToolbarResults */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarResults.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarResults", function() { return _ToolbarResults__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ToolbarRightContent */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarRightContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarRightContent", function() { return _ToolbarRightContent__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _ToolbarFind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToolbarFind */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarFind.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarFind", function() { return _ToolbarFind__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToolbarViewSelector */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/ToolbarViewSelector.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarViewSelector", function() { return _ToolbarViewSelector__WEBPACK_IMPORTED_MODULE_4__["default"]; });








/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_es_Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap/es/Tooltip */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tooltip.js");

/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_es_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js ***!
  \****************************************************************************/
/*! exports provided: Tooltip */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/Tooltip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TreeViewNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewNode */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js");
/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
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; }










class TreeView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      focusedNodeId: '',
      expandSiblings: ''
    });

    _defineProperty(this, "onFocus", node => {
      this.setState(() => ({
        focusedNodeId: node.dataset.id
      }));
    });

    _defineProperty(this, "onKeyDown", event => {
      const nodes = this.getVisibleNodes([...this.treeRef.current.getElementsByTagName('li')]);
      const currentNodePosition = nodes.findIndex(element => element.dataset.id === this.state.focusedNodeId);

      if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_DOWN && currentNodePosition !== nodes.length - 1) {
        nodes[currentNodePosition + 1].focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_UP && currentNodePosition !== 0) {
        nodes[currentNodePosition - 1].focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].HOME) {
        const [firstNode] = nodes;
        firstNode.focus();
      } else if (event.key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].END) {
        const [lastVisibleNode] = nodes.slice(-1);
        lastVisibleNode.focus();
      }
    });

    _defineProperty(this, "onKeyPress", event => {
      const nodes = this.getVisibleNodes([...this.treeRef.current.getElementsByTagName('li')]);
      const currentNodePosition = nodes.findIndex(element => element.dataset.id === this.state.focusedNodeId);
      const {
        key
      } = event;

      if (/[a-zA-Z]{1}/.test(key) && key.length === 1) {
        const searchableNodes = nodes.slice(currentNodePosition + 1);
        const firstMatchingNode = searchableNodes.find(node => {
          const nodeText = node.querySelector('.treeitem-row').textContent;
          const [firstLetter] = nodeText;
          return firstLetter === key;
        });

        if (firstMatchingNode) {
          firstMatchingNode.focus();
        } else {
          const [firstNode] = nodes;
          firstNode.focus();
        }
      }

      if (key === '*') {
        this.setState(prevState => ({
          expandSiblings: prevState.focusedNodeId
        }));
      }
    });

    _defineProperty(this, "getVisibleNodes", nodes => nodes.filter(node => !node.className.match(/node-hidden/)));

    _defineProperty(this, "clearExpandSiblings", () => {
      this.setState(() => ({
        expandSiblings: ''
      }));
    });

    _defineProperty(this, "treeRef", react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef());
  }

  render() {
    const {
      nodes,
      selectNode,
      highlightOnHover,
      highlightOnSelect,
      accessibleName
    } = this.props;
    const {
      focusedNodeId,
      expandSiblings
    } = this.state;
    const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('list-group', {
      'treeview-select': highlightOnSelect,
      'treeview-hover': highlightOnHover
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "treeview"
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: classes,
      ref: this.treeRef,
      onKeyDown: this.onKeyDown,
      onKeyPress: this.onKeyPress,
      role: "tree",
      "aria-label": accessibleName
    }, nodes && nodes.map((node, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewNode__WEBPACK_IMPORTED_MODULE_4__["default"], {
      node: node,
      key: index,
      index: index,
      nodeId: String(index),
      level: 1,
      selectNode: selectNode,
      onFocus: this.onFocus,
      focusedNodeId: focusedNodeId,
      setSize: nodes.length,
      expandSiblings: expandSiblings,
      clearExpandSiblings: this.clearExpandSiblings
    }))));
  }

}

TreeView.propTypes = {
  /** Array of node objects */
  nodes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** Function that will be triggered when a selectable node is clicked */
  selectNode: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Highlight node row on hover */
  highlightOnHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Highlight node row when clicked */
  highlightOnSelect: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Identification for assistive devices */
  accessibleName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TreeView.defaultProps = {
  highlightOnHover: false,
  highlightOnSelect: false,
  nodes: [],
  selectNode: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  accessibleName: ''
};
TreeView.Node = _TreeViewNode__WEBPACK_IMPORTED_MODULE_4__["default"];
TreeView.Expand = _TreeViewExpand__WEBPACK_IMPORTED_MODULE_5__["default"];
TreeView.Icon = _TreeViewIcon__WEBPACK_IMPORTED_MODULE_6__["default"];
TreeView.Indents = _TreeViewIndents__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (TreeView);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");





const TreeViewExpand = ({
  nodes,
  expanded,
  toggleExpand
}) => {
  const hasChildren = nodes.length > 0;
  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('icon indent', {
    'expand-icon fa fa-angle-right': hasChildren && !expanded
  }, {
    'expand-icon fa fa-angle-down': hasChildren && expanded
  }, {
    glyphicon: !hasChildren
  });
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    onClick: toggleExpand,
    className: classes,
    "aria-hidden": true
  });
};

TreeViewExpand.propTypes = {
  nodes: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  toggleExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
TreeViewExpand.defaultProps = {
  nodes: [],
  expanded: false,
  toggleExpand: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (TreeViewExpand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);




const TreeViewIcon = ({
  icon
}) => {
  const classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()('icon node-icon indent', icon);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: classes,
    "aria-hidden": true
  });
};

TreeViewIcon.propTypes = {
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
TreeViewIcon.defaultProps = {
  icon: 'fa fa-folder'
};
/* harmony default export */ __webpack_exports__["default"] = (TreeViewIcon);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const TreeViewIndents = ({
  level
}) => {
  const indents = [];

  if (level === 1) {
    return null;
  }

  for (let i = 1; i <= (level - 1) * 4; i++) {
    indents.push(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "indent",
      key: i
    }));
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, indents);
};

TreeViewIndents.propTypes = {
  level: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired
};
/* harmony default export */ __webpack_exports__["default"] = (TreeViewIndents);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
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; }









class TreeViewNode extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      expanded: this.props.node.hasOwnProperty('state') && this.props.node.state.expanded || false,
      focused: false,
      tabIndex: -1,
      nodeId: this.props.nodeId
    });

    _defineProperty(this, "onKeyDown", e => {
      const {
        nodeId
      } = this.state;
      const {
        node,
        focusedNodeId
      } = this.props;
      const {
        key
      } = e;

      if (node.nodes && focusedNodeId === nodeId && (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_RIGHT || key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_LEFT)) {
        e.stopPropagation();

        if (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ARROW_RIGHT) {
          this.setState(() => ({
            expanded: true
          }));
        } else {
          this.setState(() => ({
            expanded: false
          }));
        }
      }

      if (key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].SPACE || key === _common_helpers__WEBPACK_IMPORTED_MODULE_3__["KEYS"].ENTER) {
        e.stopPropagation();
        this.handleSelect(e);
      }
    });

    _defineProperty(this, "onFocus", e => {
      e.stopPropagation();
      this.props.onFocus(this.nodeRef.current);
      this.setState(() => ({
        focused: true
      }));
    });

    _defineProperty(this, "onBlur", () => {
      this.setState(() => ({
        focused: false
      }));
    });

    _defineProperty(this, "handleSelect", e => {
      const {
        node,
        selectNode
      } = this.props;
      e.stopPropagation();

      if (node.selectable) {
        this.nodeRef.current.focus();
        selectNode(node);
      }
    });

    _defineProperty(this, "toggleExpand", e => {
      e.stopPropagation();
      this.toggleExpandedState();
    });

    _defineProperty(this, "toggleExpandedState", () => {
      this.setState(prevState => ({
        expanded: !prevState.expanded
      }));
    });

    _defineProperty(this, "nodeRef", react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef());
  }

  static getDerivedStateFromProps(nextProps, prevState) {
    // Collapse the current node if any of its parents is collapsed. This should
    // only fire for nodes that are level 2 or greater
    if (!nextProps.visible && nextProps.level > 1) {
      return {
        expanded: false
      };
    } // Roving tab index
    // When a treeview is first rendered and not interacted with, the first
    // node should have a tabindex of 0, while the rest of the nodes have a
    // tabindex of -1. Subsequently, the tabindex "roves" to whatever node has
    // gained focus


    const tabIndex = nextProps.focusedNodeId === prevState.nodeId || !nextProps.focusedNodeId && prevState.nodeId === '0' ? 0 : -1;

    if (tabIndex !== prevState.tabIndex) {
      return {
        tabIndex
      };
    } // * keyboard action


    if (nextProps.expandSiblings) {
      const siblingsLevel = nextProps.expandSiblings.split('-').length;

      if (parseInt(siblingsLevel, 10) === nextProps.level) {
        nextProps.clearExpandSiblings();
        return {
          expanded: true
        };
      }
    }

    return null;
  } // A node can be set to be expanded by default


  render() {
    const {
      node,
      level,
      visible,
      selectNode,
      index,
      onFocus,
      focusedNodeId,
      setSize,
      expandSiblings,
      clearExpandSiblings
    } = this.props;
    const {
      expanded,
      focused,
      tabIndex,
      nodeId
    } = this.state;
    const treeitemClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('list-group-item', {
      'node-hidden': level > 1 ? !visible : false,
      'node-selected': node.selected
    });
    const treeitemRowClasses = classnames__WEBPACK_IMPORTED_MODULE_2___default()('treeitem-row', {
      focus: focused
    });
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
      className: treeitemClasses,
      onClick: this.handleSelect,
      onFocus: this.onFocus,
      onBlur: this.onBlur,
      onKeyDown: this.onKeyDown,
      ref: this.nodeRef,
      tabIndex: tabIndex,
      "data-id": nodeId,
      role: "treeitem",
      "aria-expanded": node.nodes && expanded,
      "aria-level": level,
      "aria-posinset": index + 1,
      "aria-setsize": setSize
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: treeitemRowClasses
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewIndents__WEBPACK_IMPORTED_MODULE_6__["default"], {
      level: level
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewExpand__WEBPACK_IMPORTED_MODULE_4__["default"], {
      nodes: node.nodes,
      expanded: expanded,
      toggleExpand: this.toggleExpand
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TreeViewIcon__WEBPACK_IMPORTED_MODULE_5__["default"], {
      icon: node.icon
    }), node.text), node.nodes && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
      className: "list-group",
      role: "group"
    }, node.nodes.map((childNode, idx) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(TreeViewNode, {
      node: childNode,
      key: idx,
      index: idx,
      level: level + 1,
      visible: expanded,
      selectNode: selectNode,
      onFocus: onFocus,
      focusedNodeId: focusedNodeId,
      setSize: node.nodes.length,
      expandSiblings: expandSiblings,
      clearExpandSiblings: clearExpandSiblings,
      nodeId: `${nodeId}-${idx}`
    }))));
  }

}

TreeViewNode.propTypes = {
  node: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  level: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  visible: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  selectNode: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  index: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  focusedNodeId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  setSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  expandSiblings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  clearExpandSiblings: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  nodeId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
TreeViewNode.defaultProps = {
  node: {},
  visible: false,
  selectNode: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  onFocus: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  expandSiblings: '',
  clearExpandSiblings: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  nodeId: ''
};
/* harmony default export */ __webpack_exports__["default"] = (TreeViewNode);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TreeView/index.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TreeView/index.js ***!
  \*****************************************************************************/
/*! exports provided: TreeView, TreeViewNode, TreeViewExpand, TreeViewIcon, TreeViewIndents */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TreeView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TreeView */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeView.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return _TreeView__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _TreeViewNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeViewNode */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewNode.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewNode", function() { return _TreeViewNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _TreeViewExpand__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TreeViewExpand */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewExpand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewExpand", function() { return _TreeViewExpand__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _TreeViewIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TreeViewIcon */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIcon.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIcon", function() { return _TreeViewIcon__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _TreeViewIndents__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewIndents */ "./node_modules/patternfly-react/dist/esm/components/TreeView/TreeViewIndents.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIndents", function() { return _TreeViewIndents__WEBPACK_IMPORTED_MODULE_4__["default"]; });







/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }





class AsyncTypeAheadSelect extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      options: this.props.options,
      isLoading: this.props.isLoading
    });

    _defineProperty(this, "onSearchStart", () => this.setState({
      isLoading: true
    }));

    _defineProperty(this, "onSearchEnd", options => this.setState({
      options,
      isLoading: false
    }));

    _defineProperty(this, "handleSearch", query => {
      this.onSearchStart();
      Promise.resolve(this.props.onSearch(query)).then(options => this.onSearchEnd(options));
    });
  }

  render() {
    const _this$props = this.props,
          {
      innerRef
    } = _this$props,
          props = _objectWithoutProperties(_this$props, ["innerRef"]);

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_1__["AsyncTypeahead"], _extends({}, props, {
      ref: innerRef,
      onSearch: this.handleSearch,
      options: this.state.options,
      isLoading: this.state.isLoading
    }));
  }

}

AsyncTypeAheadSelect.propTypes = {
  /** Callback function for search */
  onSearch: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired,

  /** Array of selectable options */
  options: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,

  /** Flag to indicate if typeahead is loading */
  isLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Internal property to access the react bootstrap typeahead component via outer ref property */
  innerRef: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any
};
AsyncTypeAheadSelect.defaultProps = {
  options: [],
  isLoading: false,
  innerRef: null
};
/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_0___default.a.forwardRef((props, ref) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(AsyncTypeAheadSelect, _extends({}, props, {
  innerRef: ref
}))));

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncTypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js");


react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Highlighter = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Highlighter"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Menu = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Menu"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].MenuItem = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["MenuItem"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Token = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Token"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].TypeaheadMenu = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["TypeaheadMenu"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].asyncContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["asyncContainer"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].menuItemContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["menuItemContainer"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].tokenContainer = react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["tokenContainer"];
react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"].Async = _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_0__["Typeahead"]);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js ***!
  \************************************************************************************/
/*! exports provided: TypeAheadSelect, AsyncTypeAheadSelect */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TypeAheadSelect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeAheadSelect", function() { return _TypeAheadSelect__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncTypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/AsyncTypeAheadSelect.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncTypeAheadSelect", function() { return _AsyncTypeAheadSelect__WEBPACK_IMPORTED_MODULE_1__["default"]; });





/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js");







const randomId = () => Date.now();

const AvailableTooltipFunction = (max, now) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
  id: randomId()
}, "Available ", max - now, " %");

const UsedTooltipFunction = (max, now) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
  id: randomId()
}, "Used ", now, " %");

const UtilizationBar = ({
  min,
  max,
  now,
  availableTooltipFunction,
  usedTooltipFunction,
  descriptionPlacementTop,
  description,
  thresholdWarning,
  thresholdError,
  label,
  className
}) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["mainDivClasses"])(!descriptionPlacementTop, className, description, label)
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: descriptionPlacementTop ? null : 'progress-bar'
}, label && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
  className: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["labelClasses"])(descriptionPlacementTop)
}, label), description && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "progress-description label-text"
}, description)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  className: "progress"
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
  overlay: usedTooltipFunction(max, now),
  placement: "top",
  trigger: ['hover', 'focus'],
  rootClose: false
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_2__["ProgressBar"], {
  bsStyle: Object(_helpers__WEBPACK_IMPORTED_MODULE_5__["barStyle"])(thresholdWarning, thresholdError, now),
  min: min,
  max: max,
  now: now,
  key: 1,
  isChild: true
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
  overlay: availableTooltipFunction(max, now),
  placement: "top",
  trigger: ['hover', 'focus'],
  rootClose: false
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_2__["ProgressBar"], {
  min: min,
  max: max,
  now: max - now,
  key: 2,
  bsClass: "progress-bar progress-bar-remaining",
  isChild: true
}))));

UtilizationBar.propTypes = {
  /** Minimal value */
  min: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Maximal value */
  max: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Current value */
  now: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Threshold value. Bar will change value to orange if it's surpassed. */
  thresholdWarning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Threshold value. Bar will change value to red if it's surpassed.  */
  thresholdError: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Function that renders tooltip for available part of bar. Takes params max and now. */
  availableTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Function that renders tooltip for used part of bar. Takes params max and now. */
  usedTooltipFunction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Description that is displayed on the right side */
  description: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Units */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** If set labels will be placed above utilization bar */
  descriptionPlacementTop: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** User's custom classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
UtilizationBar.defaultProps = {
  min: 0,
  max: 100,
  availableTooltipFunction: AvailableTooltipFunction,
  usedTooltipFunction: UsedTooltipFunction,
  descriptionPlacementTop: false,
  thresholdWarning: null,
  thresholdError: null,
  description: null,
  label: null,
  className: null
};
/* harmony default export */ __webpack_exports__["default"] = (UtilizationBar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/helpers.js ***!
  \*************************************************************************************/
/*! exports provided: labelClasses, mainDivClasses, barStyle */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelClasses", function() { return labelClasses; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mainDivClasses", function() { return mainDivClasses; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "barStyle", function() { return barStyle; });
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);

const labelClasses = top => classnames__WEBPACK_IMPORTED_MODULE_0___default()({
  'progress-label-top-right': top,
  'progress-label-right': !top
}, 'pull-right', 'display-inline-block');
const mainDivClasses = (onSide, userClasses, description, label) => classnames__WEBPACK_IMPORTED_MODULE_0___default()({
  'progress-container': onSide && description,
  'progress-description-left': onSide && description,
  'progress-label-right': onSide && label
}, userClasses, 'utilization-bar-pf');
const barStyle = (thresholdWarning, thresholdError, now) => {
  if (thresholdWarning && thresholdError) {
    let style = 'success';

    if (thresholdWarning <= now) {
      style = 'warning';
    }

    if (thresholdError <= now) {
      style = 'danger';
    }

    return style;
  }

  return null;
};

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js ***!
  \***********************************************************************************/
/*! exports provided: UtilizationBar */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _UtilizationBar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UtilizationBar */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/UtilizationBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationBar", function() { return _UtilizationBar__WEBPACK_IMPORTED_MODULE_0__["default"]; });



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js");
/* harmony import */ var _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavMasthead */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _common_Timer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/Timer */ "./node_modules/patternfly-react/dist/esm/common/Timer.js");
/* harmony import */ var _common_controlled__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./VerticalNavSecondaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js");
/* harmony import */ var _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./VerticalNavTertiaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js");
/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony import */ var _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./VerticalNavIconBar */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js");
/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
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; }

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; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }


















/**
 * VerticalNav - The Vertical Navigation pattern
 * http://www.patternfly.org/pattern-library/navigation/vertical-navigation/
 */

class BaseVerticalNav extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "state", {
      forceHidden: false,
      // eslint-disable-line react/no-unused-state
      controlledActivePath: false,
      controlledHoverPath: false,
      controlledMobilePath: false,
      controlledPinnedPath: false
    });

    _defineProperty(this, "onLayoutChange", newLayout => {
      const {
        onLayoutChange,
        setControlledState
      } = this.props;
      setControlledState({
        isMobile: newLayout === 'mobile'
      });
      onLayoutChange && onLayoutChange(newLayout);
    });

    _defineProperty(this, "setActivePath", activePath => {
      if (!this.state.controlledActivePath) {
        this.props.setControlledState({
          activePath
        });
      }
    });

    _defineProperty(this, "setControlledActivePath", controlledActivePath => {
      this.setState({
        controlledActivePath
      });
    });

    _defineProperty(this, "setControlledHoverPath", controlledHoverPath => {
      this.setState({
        controlledHoverPath
      });
    });

    _defineProperty(this, "setControlledMobilePath", controlledMobilePath => {
      this.setState({
        controlledMobilePath
      });
    });

    _defineProperty(this, "setControlledPinnedPath", controlledPinnedPath => {
      this.setState({
        controlledPinnedPath
      });
    });

    _defineProperty(this, "setHoverPath", hoverPath => {
      if (!this.state.controlledHoverPath) {
        this.props.setControlledState(_objectSpread({
          hoverPath
        }, hoverPath === null ? {
          showMobileNav: false
        } : {}));
      }
    });

    _defineProperty(this, "setMobilePath", mobilePath => {
      if (!this.state.controlledMobilePath) {
        this.props.setControlledState({
          mobilePath
        });
      }
    });

    _defineProperty(this, "setPinnedPath", pinnedPath => {
      if (!this.state.controlledPinnedPath) {
        this.props.setControlledState({
          pinnedPath
        });
      }
    });

    _defineProperty(this, "hoverTimer", new _common_Timer__WEBPACK_IMPORTED_MODULE_7__["default"]());

    _defineProperty(this, "clearBodyClasses", () => {
      if (this.props.dynamicBodyClasses) {
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(false, 'collapsed-nav');
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(false, 'hidden-nav');
      }
    });

    _defineProperty(this, "collapseMenu", () => {
      const {
        onCollapse,
        setControlledState
      } = this.props;
      setControlledState({
        navCollapsed: true
      });
      onCollapse && onCollapse();
    });

    _defineProperty(this, "expandMenu", () => {
      const {
        onExpand,
        setControlledState
      } = this.props;
      setControlledState({
        navCollapsed: false
      });
      onExpand && onExpand();
    });

    _defineProperty(this, "forceHideSecondaryMenu", () => {
      this.setState({
        forceHidden: true
      }); // eslint-disable-line react/no-unused-state

      setTimeout(() => {
        this.setState({
          forceHidden: false
        }); // eslint-disable-line react/no-unused-state
      }, 500);
    });

    _defineProperty(this, "handleBodyClick", () => {
      // Clear hover state on body click. Helps especially when using blurDisabled prop.
      this.setHoverPath(null);
    });

    _defineProperty(this, "navigateToItem", item => {
      const {
        onNavigate
      } = this.props;
      onNavigate(item); // Note: This should become router-aware later on.
    });

    _defineProperty(this, "updateBodyClasses", () => {
      // Note: Updating the body element classes from here like this is a hacky, non-react-y pattern.
      // It's only here for consistency. See comments on getBodyContentElement in ./constants.js.
      const {
        dynamicBodyClasses,
        navCollapsed,
        pinnedPath,
        isMobile
      } = this.props;
      const collapsed = navCollapsed && pinnedPath === null;

      if (dynamicBodyClasses) {
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(!isMobile && collapsed, 'collapsed-nav');
        Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["setBodyClassIf"])(isMobile, 'hidden-nav');
      }
    });

    _defineProperty(this, "updateNavOnItemBlur", (primary, secondary, tertiary, idPath, parentPath, noDelay, callback) => {
      const {
        hoverPath,
        blurDelay,
        blurDisabled,
        setControlledState
      } = this.props;
      const item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      const hovered = hoverPath && hoverPath.startsWith(idPath);
      this.hoverTimer.clearTimer();

      if (hovered) {
        const doBlur = () => {
          if (!blurDisabled) {
            // IMPORTANT: We reference this.props below for the hoverPath value when the timeout fires.
            // If we just use the hoverPath in scope from above, it is from when the timeout was set.
            if (idPath === this.props.hoverPath) {
              // Only bump up the hover path if it's still set to the item we're blurring
              setControlledState({
                hoverPath: parentPath
              });
            }

            callback && callback(primary, secondary, tertiary);
          }
        };

        if (item.subItems && item.subItems.length > 0) {
          if (noDelay) {
            doBlur();
          } else {
            this.hoverTimer.startTimer(doBlur, blurDelay);
          }
        }
      }
    });

    _defineProperty(this, "updateNavOnItemClick", (primary, secondary, tertiary, idPath, parentPath) => {
      const {
        onItemClick,
        hoverPath,
        hoverDisabled,
        isMobile
      } = this.props;
      this.hoverTimer.skipTimer();
      const item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      const isLeafItem = !item.subItems || item.subItems.length === 0;

      if (isMobile) {
        this.setMobilePath(null);
      }

      if (isLeafItem) {
        this.setHoverPath(null);
      } else if (hoverDisabled && hoverPath === idPath) {
        // Clicking the currently-"hovered" item in hoverDisabled un-"hovers" it.
        this.setHoverPath(parentPath);
      }

      if (isLeafItem || !isMobile) {
        this.navigateToItem(item);
      }

      onItemClick && onItemClick(primary, secondary, tertiary);
    });

    _defineProperty(this, "updateNavOnItemHover", (primary, secondary, tertiary, idPath, parentPath, callback) => {
      const {
        onItemHover,
        hoverPath,
        hoverDelay,
        hoverDisabled,
        isMobile
      } = this.props;
      const item = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["deepestOf"])(primary, secondary, tertiary);
      const hovered = hoverPath && hoverPath.startsWith(idPath);
      const targetPath = item.subItems && item.subItems.length > 0 ? idPath : parentPath;
      const that = this;

      if (!isMobile) {
        this.hoverTimer.clearTimer();

        if (!hovered) {
          this.hoverTimer.startTimer(skipped => {
            if (skipped || !hoverDisabled) {
              that.setHoverPath(targetPath);
              callback && callback(primary, secondary, tertiary);
              onItemHover && onItemHover(primary, secondary, tertiary);
            }
          }, hoverDelay);
        }
      }
    });

    _defineProperty(this, "updateNavOnMenuToggleClick", () => {
      const {
        onMenuToggleClick,
        isMobile,
        showMobileNav,
        navCollapsed,
        setControlledState
      } = this.props;

      if (isMobile) {
        if (showMobileNav) {
          setControlledState({
            showMobileNav: false
          });
        } else {
          this.setMobilePath(null);
          setControlledState({
            showMobileNav: true
          });
        }
      } else if (navCollapsed) {
        this.expandMenu();
      } else {
        this.collapseMenu();
      }

      onMenuToggleClick && onMenuToggleClick();
    });

    _defineProperty(this, "updateNavOnMobileSelection", (primary, secondary, tertiary) => {
      const {
        onMobileSelection
      } = this.props; // All the behavior here is handled by mobilePath and setMobilePath,
      // but we still make a callback available here.

      onMobileSelection && onMobileSelection(primary, secondary, tertiary);
    });

    _defineProperty(this, "updateNavOnPin", (item, depth, pinned) => {
      const {
        onItemPin,
        isMobile
      } = this.props;

      if (!isMobile) {
        onItemPin && onItemPin(item, depth, pinned);
      }
    });
  }

  componentDidMount() {
    this.updateBodyClasses();
    _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].addChangeListener(this.onLayoutChange);
    Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["addBodyEventListener"])('mousedown', this.handleBodyClick);
  }

  componentDidUpdate(oldProps) {
    const bodyClassProps = ['navCollapsed', 'pinnedPath', 'showMobileNav', 'isMobile'];

    if (Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["propsChanged"])(bodyClassProps, oldProps, this.props)) {
      this.updateBodyClasses();
    }
  }

  componentWillUnmount() {
    // Clear any timers so they don't trigger while the component is unmounted.
    this.hoverTimer.clearTimer();
    this.clearBodyClasses();
    _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].removeChangeListener(this.onLayoutChange);
    Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["removeBodyEventListener"])('mousedown', this.handleBodyClick);
  }

  render() {
    const {
      items,
      children
    } = this.props; // Nav items may be passed either as nested VerticalNavItem children, or as nested items in a prop.
    // The items prop will take priority, if present, and must be an array of item objects (not React components).
    // If the items prop is not present, items must be expressed as VerticalNavItem children instead.

    const itemsFromChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, child => Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"].displayName));
    const itemsFromProps = items && items.length > 0 && items.map((primaryItem, i) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"], {
      item: primaryItem,
      key: `primary_${primaryItem.title}`
    }, primaryItem.subItems && primaryItem.subItems.map(secondaryItem => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__["default"], {
      id: secondaryItem.id,
      dataID: secondaryItem.dataID,
      isDivider: secondaryItem.isDivider,
      preventHref: secondaryItem.preventHref,
      item: secondaryItem,
      key: `secondary_${secondaryItem.title}`
    }, secondaryItem.subItems && secondaryItem.subItems.map(tertiaryItem => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__["default"], {
      item: tertiaryItem,
      key: `tertiary_${tertiaryItem.title}`
    }))))));
    const itemComponents = itemsFromProps || itemsFromChildren || [];
    const {
      hiddenIcons,
      pinnableMenus,
      showBadges,
      forceHidden,
      hideMasthead,
      persistentSecondary,
      hoverDelay,
      blurDelay,
      isMobile,
      showMobileNav,
      masthead,
      navCollapsed,
      activePath,
      hoverPath,
      mobilePath,
      pinnedPath
    } = this.props;
    const mastheadElem = masthead || react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('navbar navbar-pf-vertical')
    }, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["findChild"])(children, child => Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__["default"].displayName)));

    const getPathDepth = path => path && path.split('/').filter(s => s !== '').length;

    const mobileDepth = getPathDepth(mobilePath);
    const hoverDepth = getPathDepth(hoverPath);
    const pinnedDepth = getPathDepth(pinnedPath);
    const showMobileSecondary = isMobile && mobileDepth >= 1;
    const showMobileTertiary = isMobile && mobileDepth >= 2;
    const hoverSecondaryNav = hoverDepth >= 1;
    const hoverTertiaryNav = hoverDepth >= 2;
    const pinnedSecondaryNav = pinnedDepth >= 1;
    const pinnedTertiaryNav = pinnedDepth >= 2;
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["NavContextProvider"], {
      idPath: "/",
      updateNavOnMenuToggleClick: this.updateNavOnMenuToggleClick,
      updateNavOnItemHover: this.updateNavOnItemHover,
      updateNavOnItemBlur: this.updateNavOnItemBlur,
      updateNavOnItemClick: this.updateNavOnItemClick,
      updateNavOnMobileSelection: this.updateNavOnMobileSelection,
      setActivePath: this.setActivePath,
      setHoverPath: this.setHoverPath,
      setMobilePath: this.setMobilePath,
      setPinnedPath: this.setPinnedPath,
      setControlledActivePath: this.setControlledActivePath,
      setControlledHoverPath: this.setControlledHoverPath,
      setControlledMobilePath: this.setControlledMobilePath,
      setControlledPinnedPath: this.setControlledPinnedPath,
      activePath: activePath,
      hoverPath: hoverPath,
      mobilePath: mobilePath,
      pinnedPath: pinnedPath,
      hiddenIcons: hiddenIcons,
      pinnableMenus: pinnableMenus,
      isMobile: isMobile,
      showMobileSecondary: showMobileSecondary,
      showMobileTertiary: showMobileTertiary,
      showBadges: showBadges,
      navCollapsed: navCollapsed,
      updateNavOnPin: this.updateNavOnPin,
      forceHideSecondaryMenu: this.forceHideSecondaryMenu,
      hoverDelay: hoverDelay,
      blurDelay: blurDelay
    }, !hideMasthead && mastheadElem, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('nav-pf-vertical nav-pf-vertical-with-sub-menus', {
        'nav-pf-vertical-collapsible-menus': pinnableMenus,
        'hidden-icons-pf': hiddenIcons,
        'nav-pf-vertical-with-badges': showBadges,
        'nav-pf-persistent-secondary': persistentSecondary,
        'show-mobile-secondary': showMobileSecondary,
        'show-mobile-tertiary': showMobileTertiary,
        'hover-secondary-nav-pf': hoverSecondaryNav,
        'hover-tertiary-nav-pf': hoverTertiaryNav,
        'collapsed-secondary-nav-pf': pinnableMenus && pinnedSecondaryNav,
        'collapsed-tertiary-nav-pf': pinnableMenus && pinnedTertiaryNav,
        hidden: isMobile,
        collapsed: !isMobile && navCollapsed,
        'force-hide-secondary-nav-pf': forceHidden,
        'show-mobile-nav': showMobileNav
      })
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"], {
      componentClass: "ul"
    }, itemComponents)));
  }

}

const controlledState = {
  // NOTE: If you use any of these props, be sure to also use the corresponding callbacks/handlers.
  // These props override values of the same name set by setControlledState().
  types: {
    /** Use the mobile layout of the component. Corresponds to onLayoutChange callback. */
    isMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

    /** Display the nav in mobile mode */
    showMobileNav: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

    /** Collapse the nav. Corresponds to onMenuToggleClick or onCollapse and onExpand callbacks. */
    navCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

    /** The idPath matching the currently active item. Corresponds to onItemClick callback. */
    activePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

    /** The idPath matching the currently hovered item. Corresponds to onItemHover and onItemBlur callbacks. */
    hoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

    /** The idPath matching the currently selected item on mobile. Corresponds to onMobileSelection callback. */
    mobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

    /** The idPath matching the currently pinned item. Corresponds to onItemPin callback. */
    pinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  },
  defaults: {
    isMobile: _common_patternfly__WEBPACK_IMPORTED_MODULE_9__["layout"].is('mobile'),
    showMobileNav: null,
    navCollapsed: null,
    activePath: null,
    hoverPath: null,
    mobilePath: null,
    pinnedPath: null
  }
};
BaseVerticalNav.propTypes = _objectSpread({}, controlledState.types, {
  /** Navigation items, passed as an array of objects (as opposed to JSX children w/ props) */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"])),

  /** Enables the pin buttons on the active submenu. */
  pinnableMenus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Automatically applies classes to the body element when the layout changes. */
  dynamicBodyClasses: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Hide all icons */
  hiddenIcons: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Show badges in nav items */
  showBadges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Don't show items on hover, require a click */
  hoverDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Don't hide items on blur, require a click elsewhere */
  blurDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Force the nav to be hidden temporarily. */
  forceHidden: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Hide the masthead and notification drawer areas. */
  hideMasthead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Persist the secondary nav */
  persistentSecondary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Delay between mouse hover and menu show in ms */
  hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** Delay between mouse blur and menu hide in ms */
  blurDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /**  */
  masthead: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Optional callback for updating isMobile prop */
  onLayoutChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  // eslint-disable-line react/require-default-props

  /** Optional callback for updating navCollapsed and showMobileNav props (option 1) */
  onMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating navCollapsed and showMobileNav props (option 2) */
  onCollapse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating navCollapsed and showMobileNav props (option 2) */
  onExpand: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating active props on items or activePath prop. Only called on leaf item click. */
  onNavigate: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating active props on items or activePath prop. Called on any item click. */
  onItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating hovered prop on items */
  onItemHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating hovered prop on items */
  onItemBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  // eslint-disable-line react/no-unused-prop-types

  /** Optional callback for updating pinned props on items or pinnedPath prop. */
  onItemPin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating mobilePath prop */
  onMobileSelection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  // *

  /** Navigation items, passed as Item, SecondaryItem and TertiaryItem children. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Helper injected by `controlled()` to manage controlledStateTypes values */
  setControlledState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func // eslint-disable-line react/require-default-props

});
BaseVerticalNav.defaultProps = {
  items: null,
  pinnableMenus: false,
  dynamicBodyClasses: true,
  hiddenIcons: false,
  showBadges: false,
  hoverDisabled: false,
  blurDisabled: false,
  forceHidden: false,
  hideMasthead: false,
  persistentSecondary: true,
  hoverDelay: 500,
  blurDelay: 700,
  masthead: null,
  onMenuToggleClick: null,
  onCollapse: null,
  onExpand: null,
  onItemClick: null,
  onItemHover: null,
  onItemBlur: null,
  onItemPin: null,
  onMobileSelection: null,
  onNavigate: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  children: null
};
const NoPersist = Object(_common_controlled__WEBPACK_IMPORTED_MODULE_8__["default"])(controlledState)(BaseVerticalNav);
const WithPersist = Object(_common_controlled__WEBPACK_IMPORTED_MODULE_8__["default"])(_objectSpread({}, controlledState, {
  persist: ['navCollapsed', 'pinnedPath']
}))(BaseVerticalNav);

const VerticalNav = (_ref) => {
  let {
    persist
  } = _ref,
      props = _objectWithoutProperties(_ref, ["persist"]);

  return persist ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(WithPersist, props) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(NoPersist, props);
};

VerticalNav.propTypes = _objectSpread({}, BaseVerticalNav.propTypes, {
  persist: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
});
VerticalNav.defaultProps = _objectSpread({}, BaseVerticalNav.defaultProps, {
  persist: true
});
VerticalNav.displayName = 'VerticalNav';
VerticalNav.NoPersist = NoPersist;
VerticalNav.WithPersist = WithPersist;
VerticalNav.Masthead = _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_5__["default"];
VerticalNav.Item = _VerticalNavItem__WEBPACK_IMPORTED_MODULE_4__["default"];
VerticalNav.SecondaryItem = _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_11__["default"];
VerticalNav.TertiaryItem = _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_12__["default"];
VerticalNav.Brand = _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_13__["default"];
VerticalNav.IconBar = _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_14__["default"];
VerticalNav.Badge = _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_15__["default"];
VerticalNav.Divider = _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_16__["default"];
/* harmony default export */ __webpack_exports__["default"] = (VerticalNav);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");






const VerticalNavBadge = props => {
  const {
    badgeClass,
    iconClass,
    tooltip,
    count
  } = props;
  const key = badgeClass || iconClass || count;
  const badgeDiv = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('badge', badgeClass)
  }, count && iconClass && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: iconClass
  }), count && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, count));
  return !tooltip ? badgeDiv : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_3__["OverlayTrigger"], {
    key: key,
    placement: "right",
    overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_4__["Tooltip"], {
      id: key
    }, tooltip)
  }, badgeDiv);
};

VerticalNavBadge.propTypes = {
  badgeClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  count: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
VerticalNavBadge.defaultProps = {
  badgeClass: '',
  iconClass: '',
  tooltip: '',
  count: undefined
};
VerticalNavBadge.displayName = 'VerticalNav.Badge';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavBadge);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



const VerticalNavBrand = props => {
  const {
    title,
    href,
    onClick,
    iconImg,
    children
  } = props; // The img prop is just a shorthand for the titleImg prop.
  // When also using iconImg, it is less confusing to pass titleImg instead of img.

  const titleImg = props.titleImg || props.img;
  const brandChildren = children || react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, iconImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
    className: "navbar-brand-icon",
    src: iconImg,
    alt: title
  }), titleImg && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", {
    className: "navbar-brand-name",
    src: titleImg,
    alt: title
  }), !titleImg && title && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "navbar-brand-txt"
  }, title));
  return href || onClick ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: href,
    onClick: onClick,
    className: "navbar-brand"
  }, brandChildren) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "navbar-brand"
  }, brandChildren);
};

VerticalNavBrand.propTypes = {
  /** Title of the application (use either this or titleImg) */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of an image for the app's title (use either this or title) */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Alias for titleImg */
  img: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of an image for the app's icon */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** URL of the application's homepage if the title should be a link */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Alternative to href, callback to call when the brand link is clicked */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Custom children components to render instead. If passed, above props are ignored. */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
VerticalNavBrand.defaultProps = {
  title: '',
  titleImg: '',
  img: '',
  iconImg: '',
  href: '',
  onClick: null,
  // noop should not be used b/c onClick differentiates render
  children: null
};
VerticalNavBrand.displayName = 'VerticalNav.Brand';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavBrand);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js ***!
  \***********************************************************************************************/
/*! exports provided: getNextDepth, deepestOf, componentForDepth, wrongDepth, correctDepth, isNavItem, getItemProps, itemObjectTypes, navContextTypes, NavContextProvider, setBodyClassIf, addBodyEventListener, removeBodyEventListener */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextDepth", function() { return getNextDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deepestOf", function() { return deepestOf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentForDepth", function() { return componentForDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrongDepth", function() { return wrongDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "correctDepth", function() { return correctDepth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNavItem", function() { return isNavItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getItemProps", function() { return getItemProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "itemObjectTypes", function() { return itemObjectTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "navContextTypes", function() { return navContextTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavContextProvider", function() { return NavContextProvider; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setBodyClassIf", function() { return setBodyClassIf; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addBodyEventListener", function() { return addBodyEventListener; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeBodyEventListener", function() { return removeBodyEventListener; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./index */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





 // Properties of the nav item object, which can also be passed as
// props directly to Item, SecondaryItem and TertiaryItem components.

const itemObjectTypes = {
  /** Title of the nav item */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Class applied to the item for icons */
  iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Badges rendered on the item */
  badges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
    badgeClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    tooltip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
    count: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
    iconClass: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
  })),

  /** Sub-items, either can be passed as objects here or as JSX children */
  subItems: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array,

  /** Is this the current active item? (used only if tracking this in app) */
  active: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Is this the current hovered item? (used only if tracking this in app) */
  hovered: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Is this the last item we tapped on mobile? (used only if tracking this in app) */
  selectedOnMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Is this item pinned? (used only if tracking this in app) */
  pinned: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Set the activePath to this item initially, but allow that state to change. */
  initialActive: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** If this item is a link, what URL it should go to. */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Optional callback for updating hovered prop */
  onHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating hovered prop */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional callback for updating active prop */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Optional additional className(s) to be applied to the item */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
}; // Props that can be passed to a NavContextProvider

const navContextTypes = {
  /** The path down the item tree so far (made up of each item's idPath() joined by '/') */
  idPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The depth down the item tree so far. Assume 'primary' if undefined. */
  depth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['primary', 'secondary', 'tertiary']),

  /** The nav item object of the ancestor at primary depth, for secondary and tertiary items. */
  primaryItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(itemObjectTypes),
  // *

  /** The nav item object of the ancestor at secondary depth, for tertiary items. */
  secondaryItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(itemObjectTypes),
  // *

  /** See VerticalNav.propTypes */
  activePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNav.propTypes */
  hoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNav.propTypes */
  mobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNav.propTypes */
  pinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNav.propTypes */
  hiddenIcons: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** See VerticalNav.propTypes */
  pinnableMenus: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** See VerticalNav.propTypes */
  isMobile: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** See VerticalNav.propTypes */
  navCollapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** See VerticalNav.propTypes */
  hoverDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** See VerticalNav.propTypes */
  blurDelay: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** See VerticalNav.propTypes */
  showBadges: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemHover: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemBlur: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnItemClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnPin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  updateNavOnMobileSelection: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  setActivePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  setHoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  setMobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  setPinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Notifies the main component that an item has used the active prop. */
  setControlledActivePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Notifies the main component that an item has used the hovered prop. */
  setControlledHoverPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Notifies the main component that an item has used the selectedOnMobile prop. */
  setControlledMobilePath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Notifies the main component that an item has used the selectedOnMobile prop. */
  setControlledPinnedPath: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Reference to method of the same name in the VerticalNav container. */
  forceHideSecondaryMenu: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** (Internal helper value) */
  showMobileSecondary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** (Internal helper value) */
  showMobileTertiary: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};

const getNextDepth = depth => depth === 'primary' && 'secondary' || depth === 'secondary' && 'tertiary' || 'primary';

const deepestOf = (pri, sec, ter) => pri && sec && ter || pri && sec || pri;

const componentForDepth = depth => {
  if (depth === 'primary') {
    return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavItem"];
  }

  if (depth === 'secondary') {
    return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavSecondaryItem"];
  }

  if (depth === 'tertiary') {
    return _index__WEBPACK_IMPORTED_MODULE_4__["VerticalNavTertiaryItem"];
  }

  return null;
};

const wrongDepth = (props, expectedDepth) => {
  if (props.depth !== expectedDepth) {
    const componentUsed = componentForDepth(expectedDepth).displayName; // eslint-disable-next-line no-console

    console.warn(`Warning: ${componentUsed} was used at ${props.depth} depth, but it is for ${expectedDepth} items.`);
  }
};

const correctDepth = props => {
  const Component = componentForDepth(props.depth); // eslint-disable-next-line no-console

  console.warn(`Rendering with ${Component.displayName} instead.`);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Component, props);
};

correctDepth.propTypes = {
  depth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
correctDepth.defaultProps = {
  depth: 'primary'
};

const isNavItem = node => node && node.type && node.type.displayName && node.type.displayName.includes('VerticalNav') && node.type.displayName.includes('Item');

const getItemProps = props => {
  const itemChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["filterChildren"])(props.children, isNavItem);
  return _objectSpread({}, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["selectKeys"])(props, Object.keys(itemObjectTypes)), {
    subItems: itemChildren && itemChildren.map(child => getItemProps(child.props))
  });
};

const NavContextProvider = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["withContext"])(navContextTypes, providerProps => {
  // The item prop doesn't get included in context, but must be passed to the provider
  // In order to properly include primaryItem and secondaryItem in context.
  const {
    item,
    primaryItem,
    secondaryItem
  } = providerProps;
  const nextDepth = getNextDepth(providerProps.depth);
  return _objectSpread({}, Object(_common_helpers__WEBPACK_IMPORTED_MODULE_3__["selectKeys"])(providerProps, Object.keys(navContextTypes)), {
    depth: nextDepth,
    primaryItem: nextDepth === 'secondary' ? item : primaryItem,
    secondaryItem: nextDepth === 'tertiary' ? item : secondaryItem // We don't need a tertiaryItem in context (see VerticalNavItem.getContextNavItems)

  });
})(props => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, props.children)); // WARNING: HACK! HAAAACK HACK HACK HACK WARNING THIS IS A HACK.
// We only use this to apply magic body classes when the prop `dynamicBodyClasses` is used.
// And only for consistency-- the better solution is to manage these classes yourself in the application.

const getBodyContentElement = () => document.querySelector('.container-pf-nav-pf-vertical');

const setBodyClassIf = (condition, className) => {
  const body = getBodyContentElement();

  if (condition) {
    body && body.classList.add(className);
  } else {
    body && body.classList.remove(className);
  }
};

const addBodyEventListener = (eventName, handler) => {
  const body = getBodyContentElement();
  body && body.addEventListener(eventName, handler);
};

const removeBodyEventListener = (eventName, handler) => {
  const body = getBodyContentElement();
  body && body.removeEventListener(eventName, handler);
};



/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js ***!
  \*************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





const VerticalNavDividerItem = (_ref) => {
  let {
    title,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["title", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_0___default()('vertical-sub-header-pf', className);
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", _extends({
    className: classes
  }, props), title);
};

VerticalNavDividerItem.propTypes = {
  /** Additional element css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,

  /** Title of divider */
  title: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
VerticalNavDividerItem.defaultProps = {
  className: '',
  title: ''
};
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavDividerItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js ***!
  \*********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js");




const VerticalNavIconBar = props => {
  const iconBar = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Nav__WEBPACK_IMPORTED_MODULE_2__["Nav"], {
    navbar: true,
    pullRight: true,
    className: "navbar-iconic"
  }, props.children);
  return props.collapse ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("nav", {
    className: "collapse navbar-collapse"
  }, iconBar) : iconBar;
};

VerticalNavIconBar.propTypes = {
  /** Children to render inside .navbar-right */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Whether to also wrap the children in a .navbar-collapse */
  collapse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
VerticalNavIconBar.defaultProps = {
  collapse: true,
  children: null
};
VerticalNavIconBar.displayName = 'VerticalNav.IconBar';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavIconBar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





/**
 * VerticalNav.Item - a child component for primary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the primary-specific code from Helper into this file.
 */

const BaseVerticalNavItem = props => {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'primary')) {
    return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavItem.propTypes = _objectSpread({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);
const VerticalNavItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavItem);
VerticalNavItem.propTypes = _objectSpread({}, BaseVerticalNavItem.propTypes);
VerticalNavItem.displayName = 'VerticalNav.Item';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }













class BaseVerticalNavItemHelper extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  constructor(...args) {
    super(...args);

    _defineProperty(this, "onItemBlur", noDelay => {
      const {
        primary,
        secondary,
        tertiary
      } = this.getContextNavItems();
      const {
        updateNavOnItemBlur,
        idPath,
        onBlur
      } = this.props;
      updateNavOnItemBlur(primary, secondary, tertiary, this.idPath(), idPath, noDelay, onBlur);
    });

    _defineProperty(this, "onItemClick", event => {
      const {
        primary,
        secondary,
        tertiary
      } = this.getContextNavItems();
      const {
        isMobile,
        preventHref,
        updateNavOnItemClick,
        idPath
      } = this.props;
      const {
        onClick
      } = this.navItem();

      if (preventHref && !!onClick) {
        event.preventDefault();
      }

      updateNavOnItemClick(primary, secondary, tertiary, this.idPath(), idPath); // Clears all mobile selections

      if (isMobile) {
        this.onMobileSelection(primary, secondary, tertiary); // Applies new mobile selection here
      }

      this.setActive();
      onClick && onClick(primary, secondary, tertiary);
    });

    _defineProperty(this, "onItemHover", () => {
      const {
        primary,
        secondary,
        tertiary
      } = this.getContextNavItems();
      const {
        updateNavOnItemHover,
        idPath,
        onHover
      } = this.props;
      updateNavOnItemHover(primary, secondary, tertiary, this.idPath(), idPath, onHover);
    });

    _defineProperty(this, "onMobileSelection", (primary, secondary, tertiary) => {
      const {
        setMobilePath,
        updateNavOnMobileSelection
      } = this.props;
      setMobilePath(this.idPath());
      updateNavOnMobileSelection(primary, secondary, tertiary);
    });

    _defineProperty(this, "getContextNavItems", () => {
      // We have primary, secondary, and tertiary items as props if they are part of the parent context,
      // but we also want to include the current item when calling handlers.
      const {
        depth,
        primaryItem,
        secondaryItem,
        tertiaryItem
      } = this.props;
      const navItem = this.navItem();
      return {
        primary: depth === 'primary' ? navItem : primaryItem,
        secondary: depth === 'secondary' ? navItem : secondaryItem,
        tertiary: depth === 'tertiary' ? navItem : tertiaryItem
      };
    });

    _defineProperty(this, "setActive", () => {
      this.props.setActivePath(this.idPath());
    });

    _defineProperty(this, "id", () => {
      const {
        id,
        title
      } = this.navItem(null, true); // Need to ignorePath here so we don't get an infinite call stack...

      return id || title || this.props.index;
    });

    _defineProperty(this, "idPath", () => `${this.props.idPath}${this.id()}/`);

    _defineProperty(this, "navItem", (oldProps, ignorePath) => {
      const props = oldProps || this.props; // Properties of the item object take priority over individual item props

      const item = _objectSpread({}, Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getItemProps"])(props), {}, props.item); // Automatically set the active, hovered, and selectedOnMobile properties based on current path...
      // ...But don't call idPath() when called from inside id(), or there will be an infinite loop.


      const valOrOnPath = (val, path) => val || (ignorePath ? null : path && path.startsWith(this.idPath()));

      return _objectSpread({}, item, {
        active: valOrOnPath(item.active, props.activePath),
        hovered: valOrOnPath(item.hovered, props.hoverPath),
        selectedOnMobile: valOrOnPath(item.selectedOnMobile, props.mobilePath),
        pinned: valOrOnPath(item.pinned, props.pinnedPath)
      });
    });

    _defineProperty(this, "pinNextDepth", () => {
      const {
        isMobile,
        depth,
        setMobilePath,
        forceHideSecondaryMenu,
        setPinnedPath,
        updateNavOnPin,
        idPath,
        pinnedPath
      } = this.props;
      const nextDepth = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getNextDepth"])(depth);

      if (isMobile) {
        // On mobile, the pin buttons act as back buttons instead.
        if (depth === 'primary') {
          // Going back to primary nav clears all selection.
          setMobilePath(null);
        } else if (depth === 'secondary') {
          // Going back to secondary nav de-selects this item and re-selects the parent.
          setMobilePath(idPath); // idPath prop, which is parent's path, not this.idPath().
        }
      } else {
        setPinnedPath(!pinnedPath ? this.idPath() : null);

        if (pinnedPath) {
          forceHideSecondaryMenu();
          this.onItemBlur(true);
        }
      }

      updateNavOnPin(this.navItem(), nextDepth, !pinnedPath);
    });
  }

  componentDidMount() {
    if (this.props.active) {
      this.props.setControlledActivePath(true);
    }

    if (this.props.hovered) {
      this.props.setControlledHoverPath(true);
    }

    if (this.props.selectedOnMobile) {
      this.props.setControlledMobilePath(true);
    }

    if (this.props.pinned) {
      this.props.setControlledPinnedPath(true);
    }

    if (this.navItem().initialActive) {
      this.setActive();
    }
  }

  UNSAFE_componentWillReceiveProps(newProps) {
    const {
      setControlledActivePath,
      setControlledHoverPath,
      setControlledMobilePath,
      setControlledPinnedPath
    } = this.props;

    if (!this.props.active && newProps.active) {
      // If the active prop is being added, make sure the activePath is in sync.
      if (newProps.activePath !== this.idPath()) {
        this.setActive();
      }

      setControlledActivePath(true);
    }

    if (!this.props.hovered && newProps.hovered) {
      // If the hovered prop is being added, make sure the hoverPath is in sync.
      if (newProps.hoverPath !== this.idPath()) {
        this.setHovered();
      }

      setControlledHoverPath(true);
    }

    if (!this.props.selectedOnMobile && newProps.selectedOnMobile) {
      // If the selectedOnMobile prop is being added, make sure the mobilePath is in sync.
      if (newProps.mobilePath !== this.idPath()) {
        this.setMobilePath(this.idPath());
      }

      setControlledMobilePath(true);
    }

    if (!this.props.pinned && newProps.pinned) {
      // If the pinned prop is being added, make sure the pinnedPath is in sync.
      if (newProps.pinnedPath !== this.idPath()) {
        this.setPinnedPath(this.idPath());
      }

      setControlledPinnedPath(true);
    }
  }

  setHovered() {
    this.props.setHoverPath(this.idPath());
  }

  render() {
    const {
      pinnableMenus,
      hiddenIcons,
      isDivider,
      navCollapsed,
      showMobileSecondary,
      showMobileTertiary,
      showBadges,
      children,
      isMobile,
      pinnedPath,
      id,
      dataID
    } = this.props; // The nav item can either be passed directly as one item object prop, or as individual props.

    const navItem = this.navItem();
    const {
      active,
      hovered,
      selectedOnMobile,
      pinned,
      title,
      iconClass,
      badges,
      subItems,
      href,
      onClick,
      className
    } = navItem;
    const depth = this.props.depth || 'primary';
    const nextDepth = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["getNextDepth"])(depth);
    const NextDepthItem = Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["componentForDepth"])(nextDepth);
    const childItemComponents = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["filterChildren"])(children, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["isNavItem"]) || subItems && subItems.length > 0 && subItems.map(childItem => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(NextDepthItem, {
      item: childItem,
      key: childItem.title
    }));

    if (!childItemComponents && !href && !onClick) {
      // eslint-disable-next-line
      console.warn('Warning: Non-navigable item at', this.idPath(), '\nNav items should have one or more of: subItems, href, onClick.');
    }

    const childBadgeComponents = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["filterChildren"])(children, child => Object(_common_helpers__WEBPACK_IMPORTED_MODULE_8__["hasDisplayName"])(child, _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"].displayName)) || badges && badges.length > 0 && badges.map(badge => {
      const badgeKey = badge.badgeClass || badge.iconClass || badge.tooltip || badge.count;
      return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"], _extends({}, badge, {
        key: badgeKey
      }));
    });
    const onPinnedPath = pinnedPath && pinnedPath.startsWith(this.idPath());
    const icon = iconClass && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(iconClass, {
        hidden: hiddenIcons
      }),
      title: title
    });
    const item = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroupItem"], {
      listItem: true // Renders as <li>. Other props can change this, see logic in react-bootstrap's ListGroupItem.
      ,
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({
        [`${nextDepth}-nav-item-pf`]: depth !== 'tertiary' && childItemComponents && childItemComponents.length > 0,
        active: active || pinned && pinnableMenus,
        // This is the only class we have at the tertiary depth.
        'is-hover': pinnableMenus && onPinnedPath || depth !== 'tertiary' && hovered,
        // This class is present at primary and secondary depths if selectedOnMobile is true,
        // except for the primary depth, where it is only present if showMobileSecondary is also true.
        'mobile-nav-item-pf': selectedOnMobile && (depth === 'primary' && showMobileSecondary || depth === 'secondary'),
        // This class is confusingly named, but the logic is more readable.
        'mobile-secondary-item-pf': selectedOnMobile && depth === 'primary' && showMobileTertiary // I don't know, that's just how this stuff was in patternfly-ng...

      }, className),
      onMouseEnter: this.onItemHover // NOTE onItemBlur takes a boolean, we want to prevent it being passed a truthy event.
      ,
      onMouseLeave: e => this.onItemBlur(false)
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      id: id,
      "data-id": dataID,
      href: href || '#',
      onClick: this.onItemClick
    }, depth === 'primary' && icon && (!isMobile && navCollapsed ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_OverlayTrigger__WEBPACK_IMPORTED_MODULE_5__["OverlayTrigger"], {
      placement: "bottom",
      overlay: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_6__["Tooltip"], {
        id: title
      }, title)
    }, icon) : icon), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
      className: "list-group-item-value"
    }, title), showBadges && childBadgeComponents && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "badge-container-pf"
    }, childBadgeComponents)), childItemComponents && childItemComponents.length > 0 && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: `nav-pf-${nextDepth}-nav`
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
      className: "nav-item-pf-header"
    }, (pinnableMenus || isMobile) && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(`${nextDepth}-collapse-toggle-pf`, {
        collapsed: onPinnedPath
      }),
      onClick: this.pinNextDepth
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["NavContextProvider"], _extends({}, this.props, {
      idPath: this.idPath(),
      item: navItem
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroup"], {
      componentClass: "ul"
    }, childItemComponents))));
    const divider = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_4__["ListGroupItem"], {
      listItem: true
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_9__["default"], {
      title: title
    }));
    return isDivider ? divider : item;
  }

}

BaseVerticalNavItemHelper.propTypes = _objectSpread({}, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"], {}, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["navContextTypes"], {
  /** Properties of the nav item, as an object. Can alternatively be passed as individual props. */
  item: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["itemObjectTypes"]),

  /**
   * Sub-items, passed as JSX children (SecondaryItem, TertiaryItem).
   * Can alternatively pass subItems array as part of item or as its own prop.
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Divider bool */
  isDivider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** should Prevent Href */
  preventHref: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** anchor id */
  id: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** anchor data-id */
  dataID: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
});
BaseVerticalNavItemHelper.defaultProps = {
  item: {},
  children: null,
  title: '',
  isDivider: false,
  preventHref: true,
  id: null,
  dataID: null
};
const VerticalNavItemHelper = Object(recompose__WEBPACK_IMPORTED_MODULE_3__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_10__["navContextTypes"])(BaseVerticalNavItemHelper);
VerticalNavItemHelper.displayName = 'VerticalNavItemHelper';
VerticalNavItemHelper.propTypes = _objectSpread({}, BaseVerticalNavItemHelper.propTypes);
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavItemHelper);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap/es/Navbar */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Navbar.js");
/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }








/**
 * VerticalNavMasthead - the first child of a VerticalNav component
 */

const BaseVerticalNavMasthead = props => {
  const {
    children,
    href,
    iconImg,
    titleImg,
    title
  } = props;
  const brandChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, child => Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"].displayName));
  const otherChildren = Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["filterChildren"])(children, child => !Object(_common_helpers__WEBPACK_IMPORTED_MODULE_6__["hasDisplayName"])(child, _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"].displayName));
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__["default"].Header, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_es_Navbar__WEBPACK_IMPORTED_MODULE_3__["default"].Toggle, {
    onClick: props.updateNavOnMenuToggleClick
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "sr-only"
  }, "Toggle navigation"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "icon-bar"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "icon-bar"
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "icon-bar"
  })), brandChildren && brandChildren.length > 0 ? brandChildren : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavBrand__WEBPACK_IMPORTED_MODULE_4__["default"], {
    title: title,
    titleImg: titleImg,
    iconImg: iconImg,
    href: href
  })), otherChildren);
};

BaseVerticalNavMasthead.propTypes = _objectSpread({}, _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__["navContextTypes"], {
  /** See VerticalNavBrand.propTypes */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNavBrand.propTypes */
  titleImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNavBrand.propTypes */
  iconImg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNavBrand.propTypes */
  href: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** See VerticalNavBrand.propTypes */
  updateNavOnMenuToggleClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** If any non-Brand children are passed, they will be rendered after the .navbar-header */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
});
BaseVerticalNavMasthead.defaultProps = {
  title: '',
  titleImg: '',
  iconImg: '',
  href: '',
  updateNavOnMenuToggleClick: _common_helpers__WEBPACK_IMPORTED_MODULE_6__["noop"],
  children: null
};
const VerticalNavMasthead = Object(recompose__WEBPACK_IMPORTED_MODULE_2__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_5__["navContextTypes"])(BaseVerticalNavMasthead);
VerticalNavMasthead.propTypes = _objectSpread({}, BaseVerticalNavMasthead.propTypes);
VerticalNavMasthead.displayName = 'VerticalNav.Masthead';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavMasthead);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js ***!
  \***************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





/**
 * VerticalNav.SecondaryItem - a child component for secondary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the secondary-specific code from Helper into this file.
 */

const BaseVerticalNavSecondaryItem = props => {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'secondary')) {
    return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavSecondaryItem.propTypes = _objectSpread({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);
const VerticalNavSecondaryItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavSecondaryItem);
VerticalNavSecondaryItem.propTypes = _objectSpread({}, BaseVerticalNavSecondaryItem.propTypes);
VerticalNavSecondaryItem.displayName = 'VerticalNav.SecondaryItem';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavSecondaryItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js ***!
  \**************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! recompose */ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js");
/* harmony import */ var _VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavConstants */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavConstants.js");
/* harmony import */ var _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavItemHelper */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItemHelper.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }





/**
 * VerticalNav.TertiaryItem - a child component for tertiary nav items under VerticalNav
 * This is a thin wrapper for VerticalNavItemHelper, to expose the warnings and the explicit-depth API.
 * In the future, we could lift some of the tertiary-specific code from Helper into this file.
 */

const BaseVerticalNavTertiaryItem = props => {
  if (Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["wrongDepth"])(props, 'tertiary')) {
    return Object(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["correctDepth"])(props);
  }

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"], props);
};

BaseVerticalNavTertiaryItem.propTypes = _objectSpread({}, _VerticalNavItemHelper__WEBPACK_IMPORTED_MODULE_3__["default"].propTypes);
const VerticalNavTertiaryItem = Object(recompose__WEBPACK_IMPORTED_MODULE_1__["getContext"])(_VerticalNavConstants__WEBPACK_IMPORTED_MODULE_2__["navContextTypes"])(BaseVerticalNavTertiaryItem);
VerticalNavTertiaryItem.propTypes = _objectSpread({}, BaseVerticalNavTertiaryItem.propTypes);
VerticalNavTertiaryItem.displayName = 'VerticalNav.TertiaryItem';
/* harmony default export */ __webpack_exports__["default"] = (VerticalNavTertiaryItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js ***!
  \********************************************************************************/
/*! exports provided: VerticalNav, VerticalNavMasthead, VerticalNavItem, VerticalNavSecondaryItem, VerticalNavTertiaryItem, VerticalNavBrand, VerticalNavIconBar, VerticalNavBadge, VerticalNavDividerItem */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _VerticalNav__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VerticalNav */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNav", function() { return _VerticalNav__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VerticalNavMasthead */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavMasthead.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavMasthead", function() { return _VerticalNavMasthead__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _VerticalNavItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VerticalNavItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavItem", function() { return _VerticalNavItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalNavSecondaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavSecondaryItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavSecondaryItem", function() { return _VerticalNavSecondaryItem__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./VerticalNavTertiaryItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavTertiaryItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavTertiaryItem", function() { return _VerticalNavTertiaryItem__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./VerticalNavBrand */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBrand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBrand", function() { return _VerticalNavBrand__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./VerticalNavIconBar */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavIconBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavIconBar", function() { return _VerticalNavIconBar__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./VerticalNavBadge */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavBadge.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBadge", function() { return _VerticalNavBadge__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./VerticalNavDividerItem */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/VerticalNavDividerItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavDividerItem", function() { return _VerticalNavDividerItem__WEBPACK_IMPORTED_MODULE_8__["default"]; });












/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _WizardPattern__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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; }






/**
 * StatefulWizardPattern - the Stateful Wizard Pattern component.
 */

class StatefulWizardPattern extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component {
  static getDerivedStateFromProps(nextProps, prevState) {
    return {
      activeStepIndex: Object(_index__WEBPACK_IMPORTED_MODULE_4__["propOrState"])(nextProps, prevState, 'activeStepIndex')
    };
  }

  constructor(props) {
    super(props);

    _defineProperty(this, "onStepChanged", newStepIndex => {
      const {
        shouldPreventStepChange,
        steps
      } = this.props;
      const {
        activeStepIndex
      } = this.state;
      const {
        shouldPreventExit
      } = steps[activeStepIndex];
      const {
        shouldPreventEnter
      } = steps[newStepIndex];

      if (shouldPreventStepChange(activeStepIndex, newStepIndex) || shouldPreventExit && shouldPreventExit(newStepIndex) || shouldPreventEnter && shouldPreventEnter(activeStepIndex)) {
        return;
      }

      this.setState({
        activeStepIndex: newStepIndex
      });
    });

    this.state = {
      activeStepIndex: 0
    };
  }

  render() {
    const _this$props = this.props,
          {
      shouldDisableNextStep,
      shouldDisablePreviousStep,
      shouldDisableCancelButton
    } = _this$props,
          otherProps = _objectWithoutProperties(_this$props, ["shouldDisableNextStep", "shouldDisablePreviousStep", "shouldDisableCancelButton"]);

    const {
      activeStepIndex
    } = this.state; // NOTE: the steps array is passed down with ...otherProps, including any shouldPreventEnter or shouldPreventExit functions inside it.
    // These functions are for StatefulWizardPattern only and should not be used in WizardPattern despite being passed down here.

    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({
      nextStepDisabled: shouldDisableNextStep(activeStepIndex),
      previousStepDisabled: shouldDisablePreviousStep(activeStepIndex),
      cancelButtonDisabled: shouldDisableCancelButton(activeStepIndex)
    }, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(otherProps, ['shouldPreventStepChange']), {
      activeStepIndex: activeStepIndex // Value from state, as set by getDerivedStateFromProps
      ,
      onStepChanged: this.onStepChanged
    }));
  }

}

StatefulWizardPattern.propTypes = _objectSpread({}, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"].propTypes, ['activeStepIndex', 'nextStepDisabled', 'previousStepDisabled', 'cancelButtonDisabled']), {
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_objectSpread({}, _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__["wizardStepShape"], {
    shouldPreventEnter: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
    shouldPreventExit: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
  }))),
  shouldDisableNextStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldDisablePreviousStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldDisableCancelButton: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  shouldPreventStepChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
});
StatefulWizardPattern.defaultProps = _objectSpread({}, Object(_index__WEBPACK_IMPORTED_MODULE_4__["excludeKeys"])(_WizardPattern__WEBPACK_IMPORTED_MODULE_2__["default"].defaultProps, ['activeStepIndex', 'nextStepDisabled', 'previousStepDisabled', 'cancelButtonDisabled']), {
  shouldDisableNextStep: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldDisablePreviousStep: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldDisableCancelButton: _index__WEBPACK_IMPORTED_MODULE_4__["noop"],
  shouldPreventStepChange: _index__WEBPACK_IMPORTED_MODULE_4__["noop"]
});
StatefulWizardPattern.displayName = 'StatefulWizardPattern';
/* harmony default export */ __webpack_exports__["default"] = (StatefulWizardPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _WizardPatternBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * WizardPattern - the Wizard Pattern component.
 */

const WizardPattern = (_ref) => {
  let {
    steps,
    activeStepIndex,
    onStepChanged,
    onNext,
    onBack,
    nextStepDisabled,
    previousStepDisabled,
    cancelButtonDisabled,
    title,
    loadingTitle,
    loadingMessage,
    show,
    onHide,
    onExited,
    stepButtonsDisabled,
    cancelText,
    backText,
    nextText,
    closeText,
    loading,
    nextButtonRef,
    bodyHeader,
    children
  } = _ref,
      props = _objectWithoutProperties(_ref, ["steps", "activeStepIndex", "onStepChanged", "onNext", "onBack", "nextStepDisabled", "previousStepDisabled", "cancelButtonDisabled", "title", "loadingTitle", "loadingMessage", "show", "onHide", "onExited", "stepButtonsDisabled", "cancelText", "backText", "nextText", "closeText", "loading", "nextButtonRef", "bodyHeader", "children"]);

  const onFirstStep = activeStepIndex === 0;
  const onFinalStep = activeStepIndex === steps.length - 1;

  const onHideClick = () => {
    onHide(onFinalStep);
  };

  const onBackClick = () => {
    goToStep(Math.max(activeStepIndex - 1, 0));
  };

  const onNextClick = () => {
    goToStep(Math.min(activeStepIndex + 1, steps.length - 1));
  };

  const getStep = (index = activeStepIndex) => steps[index];

  const getPrevStep = (relativeToIndex = activeStepIndex) => relativeToIndex > 0 && steps[relativeToIndex - 1];

  const getNextStep = (relativeToIndex = activeStepIndex) => relativeToIndex < steps.length - 1 && steps[relativeToIndex + 1];

  const activeStep = getStep();

  const goToStep = newStepIndex => {
    if (shouldPreventGoToStep(newStepIndex)) {
      return;
    }

    if (newStepIndex === activeStepIndex + 1) {
      const stepOnNextResult = activeStep.onNext && activeStep.onNext();
      const propOnNextResult = onNext(newStepIndex);
      const stepFailed = stepOnNextResult === false || propOnNextResult === false;

      if (stepFailed) {
        return;
      }
    }

    if (newStepIndex === activeStepIndex - 1) {
      const stepFailed = onBack(newStepIndex) === false;

      if (stepFailed) {
        return;
      }
    }

    if (onStepChanged) {
      onStepChanged(newStepIndex);
    }
  };

  const shouldPreventGoToStep = newStepIndex => {
    const targetStep = getStep(newStepIndex);
    const stepBeforeTarget = getPrevStep(newStepIndex);
    const preventExitActive = activeStep.preventExit;
    const preventEnterTarget = targetStep.preventEnter || stepBeforeTarget && stepBeforeTarget.isInvalid;
    const nextStepClicked = newStepIndex > activeStepIndex;
    return preventExitActive || preventEnterTarget || nextStepClicked ? nextStepDisabled : previousStepDisabled;
  };

  const activeStepStr = (activeStepIndex + 1).toString();
  const prevStepUnreachable = previousStepDisabled || onFirstStep || activeStep.preventExit || getPrevStep().preventEnter; // nextStepUnreachable is still true onFinalStep, because the Next button turns into a Close button

  const nextStepUnreachable = nextStepDisabled || activeStep.isInvalid || activeStep.preventExit || getNextStep().preventEnter;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"], _extends({
    show: show,
    onHide: onHideClick,
    onExited: onExited
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Header, {
    onClose: onHideClick,
    title: title
  }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Body, null, bodyHeader, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_WizardPatternBody__WEBPACK_IMPORTED_MODULE_3__["default"], {
    loadingTitle: loadingTitle,
    loadingMessage: loadingMessage,
    loading: loading,
    steps: steps,
    activeStepIndex: activeStepIndex,
    activeStepStr: activeStepStr,
    goToStep: goToStep,
    nextStepDisabled: nextStepDisabled,
    stepButtonsDisabled: stepButtonsDisabled
  })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Footer, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Button"], {
    bsStyle: "default",
    className: "btn-cancel",
    disabled: cancelButtonDisabled,
    onClick: onHideClick
  }, cancelText), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Button"], {
    bsStyle: "default",
    onClick: onBackClick,
    disabled: prevStepUnreachable
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    type: "fa",
    name: "angle-left"
  }), backText), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Button"], {
    bsStyle: "primary",
    onClick: onFinalStep ? onHideClick : onNextClick,
    disabled: nextStepUnreachable,
    ref: nextButtonRef
  }, onFinalStep ? closeText : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, nextText, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    type: "fa",
    name: "angle-right"
  })))), children);
};

WizardPattern.propTypes = {
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  title: 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.node]),
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onBack: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onNext: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  onStepChanged: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  loadingTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loadingMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  cancelText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  backText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  nextText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  closeText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_WizardPatternConstants__WEBPACK_IMPORTED_MODULE_4__["wizardStepShape"])),
  nextStepDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  previousStepDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  stepButtonsDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  cancelButtonDisabled: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  nextButtonRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  bodyHeader: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
WizardPattern.defaultProps = {
  show: false,
  title: '',
  onHide: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExited: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onBack: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onNext: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onStepChanged: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  loadingTitle: 'Loading Wizard...',
  loadingMessage: 'Loading...',
  loading: false,
  cancelText: 'Cancel',
  backText: 'Back',
  nextText: 'Next',
  closeText: 'Close',
  steps: [],
  nextStepDisabled: false,
  previousStepDisabled: false,
  stepButtonsDisabled: false,
  cancelButtonDisabled: false,
  nextButtonRef: _index__WEBPACK_IMPORTED_MODULE_2__["noop"],
  bodyHeader: null,
  children: null
};
WizardPattern.displayName = 'WizardPattern';
/* harmony default export */ __webpack_exports__["default"] = (WizardPattern);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js ***!
  \************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../index */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardPatternConstants */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





/**
 * WizardPatternBody - the Wizard Pattern Body component.
 */

const WizardPatternBody = ({
  loading,
  steps,
  activeStepIndex,
  goToStep,
  loadingTitle,
  loadingMessage,
  activeStepStr
}) => {
  if (loading) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Row, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Main, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
      size: "lg",
      className: "blank-slate-pf-icon",
      loading: true
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"].Action, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, loadingTitle)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["EmptyState"].Action, {
      secondary: true
    }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, loadingMessage)))));
  }

  const stepProps = (stepIndex, title) => {
    const label = (stepIndex + 1).toString();
    return {
      key: `wizard-step-${title}`,
      stepIndex,
      label,
      step: label,
      title,
      activeStep: activeStepStr
    };
  };

  if (steps && steps.length) {
    const step = steps[activeStepIndex];
    const renderedStep = step && step.render && step.render(activeStepIndex, step.title);
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Steps, {
      steps: steps.map((stepObj, index) => react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Step, _extends({}, stepProps(index, stepObj.title), {
        onClick: () => goToStep(index)
      })))
    }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Row, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Main, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_2__["Wizard"].Contents, {
      stepIndex: activeStepIndex,
      activeStepIndex: activeStepIndex
    }, renderedStep))));
  }

  return null;
};

WizardPatternBody.propTypes = {
  loadingTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loadingMessage: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape(_WizardPatternConstants__WEBPACK_IMPORTED_MODULE_3__["wizardStepShape"])),
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,
  activeStepStr: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  goToStep: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
WizardPatternBody.defaultProps = {
  loadingTitle: 'Loading Wizard...',
  loadingMessage: 'Loading...',
  loading: false,
  steps: [],
  activeStepIndex: 0,
  activeStepStr: '1',
  goToStep: _index__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WizardPatternBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternConstants.js ***!
  \*****************************************************************************************************/
/*! exports provided: wizardStepShape */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wizardStepShape", function() { return wizardStepShape; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);

const wizardStepShape = {
  title: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  render: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  onNext: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func,
  isInvalid: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  preventEnter: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool,
  preventExit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.bool
};


/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js":
/*!****************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js ***!
  \****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony import */ var _WizardBody__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js");
/* harmony import */ var _WizardContents__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardContents */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js");
/* harmony import */ var _WizardFooter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WizardFooter */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js");
/* harmony import */ var _WizardHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WizardHeader */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js");
/* harmony import */ var _WizardMain__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WizardMain */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js");
/* harmony import */ var _WizardReviewContent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WizardReviewContent */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js");
/* harmony import */ var _WizardReviewItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WizardReviewItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js");
/* harmony import */ var _WizardReviewStep__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./WizardReviewStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js");
/* harmony import */ var _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WizardReviewSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js");
/* harmony import */ var _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./WizardReviewSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js");
/* harmony import */ var _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./WizardReviewSubSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js");
/* harmony import */ var _WizardRow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./WizardRow */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js");
/* harmony import */ var _WizardSidebar__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./WizardSidebar */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js");
/* harmony import */ var _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./WizardSidebarGroup */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js");
/* harmony import */ var _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./WizardSidebarGroupItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js");
/* harmony import */ var _WizardStep__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./WizardStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js");
/* harmony import */ var _WizardSteps__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./WizardSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js");
/* harmony import */ var _WizardSubStep__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./WizardSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js");
/* harmony import */ var _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Patterns/WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony import */ var _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Patterns/WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony import */ var _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Patterns/StatefulWizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }


























/**
 * Wizard - main Wizard component.
 */

const Wizard = (_ref) => {
  let {
    children,
    className,
    dialogClassName,
    show,
    onClose,
    onExited
  } = _ref,
      rest = _objectWithoutProperties(_ref, ["children", "className", "dialogClassName", "show", "onClose", "onExited"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"], _extends({
    show: show,
    onHide: onClose,
    onExited: onExited,
    dialogClassName: dialogClassName || 'modal-lg wizard-pf'
  }, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
    className: className
  }, children));
};

Wizard.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Wizard dialog class */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** show modal */
  show: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,

  /** on close callback */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** on exited callback */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
Wizard.defaultProps = {
  children: null,
  className: '',
  dialogClassName: '',
  show: false,
  onClose: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"],
  onExited: _common_helpers__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
Wizard.Body = _WizardBody__WEBPACK_IMPORTED_MODULE_4__["default"];
Wizard.Contents = _WizardContents__WEBPACK_IMPORTED_MODULE_5__["default"];
Wizard.Footer = _WizardFooter__WEBPACK_IMPORTED_MODULE_6__["default"];
Wizard.Header = _WizardHeader__WEBPACK_IMPORTED_MODULE_7__["default"];
Wizard.Main = _WizardMain__WEBPACK_IMPORTED_MODULE_8__["default"];
Wizard.ReviewContent = _WizardReviewContent__WEBPACK_IMPORTED_MODULE_9__["default"];
Wizard.ReviewItem = _WizardReviewItem__WEBPACK_IMPORTED_MODULE_10__["default"];
Wizard.ReviewStep = _WizardReviewStep__WEBPACK_IMPORTED_MODULE_11__["default"];
Wizard.ReviewSteps = _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_12__["default"];
Wizard.ReviewSubStep = _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_13__["default"];
Wizard.ReviewSubSteps = _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_14__["default"];
Wizard.Row = _WizardRow__WEBPACK_IMPORTED_MODULE_15__["default"];
Wizard.Sidebar = _WizardSidebar__WEBPACK_IMPORTED_MODULE_16__["default"];
Wizard.SidebarGroup = _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_17__["default"];
Wizard.SidebarGroupItem = _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_18__["default"];
Wizard.Step = _WizardStep__WEBPACK_IMPORTED_MODULE_19__["default"];
Wizard.Steps = _WizardSteps__WEBPACK_IMPORTED_MODULE_20__["default"];
Wizard.SubStep = _WizardSubStep__WEBPACK_IMPORTED_MODULE_21__["default"];
Wizard.Pattern = _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_22__["default"];
Wizard.Pattern.Body = _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_23__["default"];
Wizard.Pattern.Stateful = _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_24__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Wizard);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardBody component for Patternfly React
 */

const WizardBody = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-body', 'clearfix', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Body, _extends({
    className: classes
  }, props), children);
};

WizardBody.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardBody.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardBody);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardContents component for Patternfly React
 */

const WizardContents = (_ref) => {
  let {
    children,
    className,
    stepIndex,
    subStepIndex,
    activeStepIndex,
    activeSubStepIndex
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "stepIndex", "subStepIndex", "activeStepIndex", "activeSubStepIndex"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-contents', {
    // hide contents if the step is not active
    // OR if we have sub steps and this sub step is not active
    hidden: activeStepIndex !== stepIndex || activeSubStepIndex !== null && activeSubStepIndex !== subStepIndex
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

WizardContents.propTypes = {
  /** WizardStep nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The wizard step index for these contents */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** The wizard sub step index for these contents */
  subStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number,

  /** The active wizard step index */
  activeStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** The active wizard sub step index */
  activeSubStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number
};
WizardContents.defaultProps = {
  children: null,
  className: '',
  subStepIndex: null,
  activeSubStepIndex: null
};
/* harmony default export */ __webpack_exports__["default"] = (WizardContents);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardFooter component for Patternfly React
 */

const WizardFooter = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-footer', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Footer, _extends({
    className: classes
  }, props), children);
};

WizardFooter.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardFooter.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardFooter);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
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; }

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; }





/**
 * WizardHeader component for Patternfly React
 */

const WizardHeader = (_ref) => {
  let {
    onClose,
    title
  } = _ref,
      props = _objectWithoutProperties(_ref, ["onClose", "title"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Header, props, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
    className: "close",
    onClick: onClose,
    "aria-hidden": "true",
    "aria-label": "Close"
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
    type: "pf",
    name: "close"
  })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Modal__WEBPACK_IMPORTED_MODULE_3__["Modal"].Title, null, title));
};

WizardHeader.propTypes = {
  /** onClose callback */
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,

  /** The wizard title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node
};
WizardHeader.defaultProps = {
  title: null
};
/* harmony default export */ __webpack_exports__["default"] = (WizardHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardMain component for Patternfly React
 */

const WizardMain = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-main', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

WizardMain.propTypes = {
  /** WizardStep nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardMain.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardMain);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardReviewContent component for Patternfly React
 */

const WizardReviewContent = (_ref) => {
  let {
    children,
    className,
    collapsed
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "collapsed"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-content', {
    collapse: collapsed
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

WizardReviewContent.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewContent.defaultProps = {
  children: null,
  className: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewContent);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardReviewItem component for Patternfly React
 */

const WizardReviewItem = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-item', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), children);
};

WizardReviewItem.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardReviewItem.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardReviewStep component for Patternfly React
 */

const WizardReviewStep = (_ref) => {
  let {
    children,
    onClick,
    title,
    collapsed
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "onClick", "title", "collapsed"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_2__["ListGroupItem"], _extends({
    listItem: true
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    onClick: onClick,
    className: collapsed ? 'collapsed' : ''
  }, title), children);
};

WizardReviewStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewStep.defaultProps = {
  children: null,
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  title: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardReviewSteps component for Patternfly React
 */

const WizardReviewSteps = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-steps', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"], {
    componentClass: "ul"
  }, children));
};

WizardReviewSteps.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardReviewSteps.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardReviewSubStep component for Patternfly React
 */

const WizardReviewSubStep = (_ref) => {
  let {
    children,
    onClick,
    label,
    title,
    collapsed
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "onClick", "label", "title", "collapsed"]);

  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_2__["ListGroupItem"], _extends({
    listItem: true
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    onClick: onClick,
    className: collapsed ? 'collapsed' : ''
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-substep-number"
  }, label), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-substep-title"
  }, title)), children);
};

WizardReviewSubStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,

  /** Review step label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Review step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewSubStep.defaultProps = {
  children: null,
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"],
  label: '',
  title: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSubStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardReviewSubSteps component for Patternfly React
 */

const WizardReviewSubSteps = (_ref) => {
  let {
    children,
    className,
    collapsed
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "collapsed"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-review-substeps', {
    collapse: collapsed
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"], {
    componentClass: "ul"
  }, children));
};

WizardReviewSubSteps.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Step collapsed */
  collapsed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
WizardReviewSubSteps.defaultProps = {
  children: null,
  className: '',
  collapsed: false
};
/* harmony default export */ __webpack_exports__["default"] = (WizardReviewSubSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardRow component for Patternfly React
 */

const WizardRow = (_ref) => {
  let {
    children,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-row', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("section", _extends({
    className: classes
  }, props), children);
};

WizardRow.propTypes = {
  /** Children nodes  */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardRow.defaultProps = {
  children: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardRow);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardSidebar component for Patternfly React
 */

const WizardSidebar = (_ref) => {
  let {
    items,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["items", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-sidebar', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), items);
};

WizardSidebar.propTypes = {
  /** Wizard sidebar items */
  items: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardSidebar.defaultProps = {
  items: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebar);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardSidebarGroup component for Patternfly React
 */

const WizardSidebarGroup = (_ref) => {
  let {
    children,
    className,
    step,
    activeStep
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "step", "activeStep"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    hidden: `${step}` !== `${activeStep}`
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroup"], _extends({
    componentClass: "ul",
    className: classes
  }, props), children);
};

WizardSidebarGroup.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The wizard step number for this step */
  step: 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.number]),

  /** The active step */
  activeStep: 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.number])
};
WizardSidebarGroup.defaultProps = {
  children: null,
  className: '',
  step: '',
  activeStep: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebarGroup);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }






/**
 * WizardSidebarGroupItem component for Patternfly React
 */

const WizardSidebarGroupItem = (_ref) => {
  let {
    stepIndex,
    subStepIndex,
    className,
    subStep,
    label,
    title,
    activeSubStep,
    onClick
  } = _ref,
      props = _objectWithoutProperties(_ref, ["stepIndex", "subStepIndex", "className", "subStep", "label", "title", "activeSubStep", "onClick"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()({
    active: `${subStep}` === `${activeSubStep}`
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ListGroup__WEBPACK_IMPORTED_MODULE_3__["ListGroupItem"], _extends({
    className: classes,
    listItem: true
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    onClick: e => {
      e.preventDefault();
      onClick(stepIndex, subStepIndex);
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-substep-number"
  }, label), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-substep-title"
  }, title)));
};

WizardSidebarGroupItem.propTypes = {
  /** The wizard parent step index */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** The wizard sub step index */
  subStepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** This wizard sub step name */
  subStep: 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.number]),

  /** This wizard sub step label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** This wizard sub step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The currently active wizard substep */
  activeSubStep: 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.number]),

  /** Sidebar group item click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
WizardSidebarGroupItem.defaultProps = {
  className: '',
  subStep: '',
  label: '',
  title: '',
  activeSubStep: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSidebarGroupItem);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }





/**
 * WizardStep component for Patternfly React
 */

const WizardStep = (_ref) => {
  let {
    children,
    className,
    stepIndex,
    step,
    label,
    title,
    activeStep,
    onClick
  } = _ref,
      props = _objectWithoutProperties(_ref, ["children", "className", "stepIndex", "step", "label", "title", "activeStep", "onClick"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-step', {
    active: `${step}` === `${activeStep}`
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
    href: "#",
    onClick: e => {
      e.preventDefault();
      onClick(stepIndex);
    }
  }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-step-number"
  }, label), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
    className: "wizard-pf-step-title"
  }, title), children));
};

WizardStep.propTypes = {
  /** Children nodes */
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The wizard step index */
  stepIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number.isRequired,

  /** The wizard step for this step */
  step: 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.number]),

  /** The wizard step number label */
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The wizard step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The active step */
  activeStep: 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.number]),

  /** Step click handler */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
WizardStep.defaultProps = {
  children: null,
  className: '',
  step: '',
  label: '',
  title: '',
  activeStep: '',
  onClick: _common_helpers__WEBPACK_IMPORTED_MODULE_3__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WizardStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardSteps component for Patternfly React
 */

const WizardSteps = (_ref) => {
  let {
    steps,
    className
  } = _ref,
      props = _objectWithoutProperties(_ref, ["steps", "className"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-steps', className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
    className: classes
  }, props), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", {
    className: "wizard-pf-steps-indicator"
  }, steps));
};

WizardSteps.propTypes = {
  /** WizardStep nodes */
  steps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node,

  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
WizardSteps.defaultProps = {
  steps: null,
  className: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSteps);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }




/**
 * WizardSubStep component for Patternfly React
 */

const WizardSubStep = (_ref) => {
  let {
    className,
    subStep,
    title,
    activeSubStep
  } = _ref,
      props = _objectWithoutProperties(_ref, ["className", "subStep", "title", "activeSubStep"]);

  const classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()('wizard-pf-step-title-substep', {
    active: `${subStep}` === `${activeSubStep}`
  }, className);
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", _extends({
    className: classes
  }, props), title);
};

WizardSubStep.propTypes = {
  /** Additional css classes */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The wizard sub step for this step */
  subStep: 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.number]),

  /** The wizard sub step title */
  title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** The active step */
  activeSubStep: 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.number])
};
WizardSubStep.defaultProps = {
  className: '',
  subStep: '',
  title: '',
  activeSubStep: ''
};
/* harmony default export */ __webpack_exports__["default"] = (WizardSubStep);

/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/components/Wizard/index.js":
/*!***************************************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/components/Wizard/index.js ***!
  \***************************************************************************/
/*! exports provided: Wizard, WizardBody, WizardContents, WizardFooter, WizardHeader, WizardMain, WizardReviewContent, WizardReviewItem, WizardReviewStep, WizardReviewSteps, WizardReviewSubStep, WizardReviewSubSteps, WizardRow, WizardSidebar, WizardSidebarGroup, WizardSidebarGroupItem, WizardStep, WizardSteps, WizardSubStep, WizardPattern, WizardPatternBody, StatefulWizardPattern */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Wizard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Wizard */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Wizard.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wizard", function() { return _Wizard__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _WizardBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./WizardBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardBody", function() { return _WizardBody__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony import */ var _WizardContents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WizardContents */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardContents.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardContents", function() { return _WizardContents__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _WizardFooter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardFooter */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardFooter", function() { return _WizardFooter__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _WizardHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardHeader */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardHeader", function() { return _WizardHeader__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _WizardMain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardMain */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardMain.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardMain", function() { return _WizardMain__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _WizardReviewContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WizardReviewContent */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewContent", function() { return _WizardReviewContent__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _WizardReviewItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WizardReviewItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewItem", function() { return _WizardReviewItem__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _WizardReviewStep__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WizardReviewStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewStep", function() { return _WizardReviewStep__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WizardReviewSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSteps", function() { return _WizardReviewSteps__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WizardReviewSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubStep", function() { return _WizardReviewSubStep__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./WizardReviewSubSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardReviewSubSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubSteps", function() { return _WizardReviewSubSteps__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _WizardRow__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./WizardRow */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardRow.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardRow", function() { return _WizardRow__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _WizardSidebar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./WizardSidebar */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebar", function() { return _WizardSidebar__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./WizardSidebarGroup */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroup", function() { return _WizardSidebarGroup__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./WizardSidebarGroupItem */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSidebarGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroupItem", function() { return _WizardSidebarGroupItem__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _WizardStep__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./WizardStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardStep", function() { return _WizardStep__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _WizardSteps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./WizardSteps */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSteps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSteps", function() { return _WizardSteps__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _WizardSubStep__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./WizardSubStep */ "./node_modules/patternfly-react/dist/esm/components/Wizard/WizardSubStep.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSubStep", function() { return _WizardSubStep__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Patterns/WizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPattern", function() { return _Patterns_WizardPattern__WEBPACK_IMPORTED_MODULE_19__["default"]; });

/* harmony import */ var _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Patterns/WizardPatternBody */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/WizardPatternBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPatternBody", function() { return _Patterns_WizardPatternBody__WEBPACK_IMPORTED_MODULE_20__["default"]; });

/* harmony import */ var _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Patterns/StatefulWizardPattern */ "./node_modules/patternfly-react/dist/esm/components/Wizard/Patterns/StatefulWizardPattern.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulWizardPattern", function() { return _Patterns_StatefulWizardPattern__WEBPACK_IMPORTED_MODULE_21__["default"]; });

























/***/ }),

/***/ "./node_modules/patternfly-react/dist/esm/index.js":
/*!*********************************************************!*\
  !*** ./node_modules/patternfly-react/dist/esm/index.js ***!
  \*********************************************************/
/*! exports provided: controlled, bindMethods, debounce, propExists, propOrState, selectKeys, filterKeys, excludeKeys, childrenToArray, filterChildren, findChild, propsChanged, hasDisplayName, nullValues, noop, KEY_CODES, KEYS, helpers, Alert, AboutModal, AboutModalVersions, AboutModalVersionItem, ApplicationLauncher, ApplicationLauncherItem, ApplicationLauncherToggle, Badge, Breadcrumb, Button, ButtonGroup, DropdownButton, SplitButton, Card, CardTitle, CardBody, CardHeading, CardFooter, CardLink, CardGrid, CardDropdownButton, CardHeightMatching, AggregateStatusCount, AggregateStatusNotification, AggregateStatusNotifications, UtilizationCard, UtilizationCardDetails, UtilizationCardDetailsCount, UtilizationCardDetailsDesc, UtilizationCardDetailsLine1, UtilizationCardDetailsLine2, AreaChart, BarChart, BulletChart, BulletChartTitle, BulletChartValue, BulletChartRange, BulletChartAxis, BulletChartAxisTic, BulletChartLegend, BulletChartLegendItem, BulletChartThreshold, DonutChart, GroupedBarChart, LineChart, PieChart, SingleAreaChart, SingleLineChart, SparklineChart, StackedBarChart, Dropdown, NavDropdown, DropdownKebab, DualList, DualListArrows, DualListBody, DualListControlled, DualListCounter, DualListFilter, DualListFooter, DualListHeading, DualListHiddenSelect, DualListItem, DualListItems, DualListItemTooltip, DualListMainCheckbox, DualListSelector, DualListSort, EmptyState, EmptyStateIcon, EmptyStateTitle, EmptyStateInfo, EmptyStateHelp, EmptyStateAction, FieldLevelHelp, Filter, FilterTypeSelector, FilterValueSelector, FilterCategorySelector, FilterCategoryValueSelector, FilterActiveLabel, FilterList, FilterItem, Checkbox, ControlLabel, Form, FormControl, FormGroup, HelpBlock, InputGroup, Radio, Grid, Row, Col, Clearfix, HintBlock, HorizontalNav, HorizontalNavMenu, HorizontalNavMenuItem, Icon, InfoTip, InfoTipToggle, InfoTipMenu, InfoTipMenuItemIcon, InfoTipMenuFooter, InlineEdit, ConfirmButton, CancelButton, Label, DisposableLabel, RemoveButton, CompoundLabel, ListGroup, ListGroupItem, ListView, ListViewActions, ListViewAdditionalInfo, ListViewBody, ListViewCheckbox, ListViewDescription, ListViewDescriptionHeading, ListViewDescriptionText, ListViewExpand, ListViewGroupItem, ListViewGroupItemContainer, ListViewGroupItemHeader, ListViewIcon, ListViewInfoItem, ListViewItem, ListViewLeft, ListViewMainInfo, ListViewRow, LoadingState, LoginPage, LoginPageContainer, LoginPageHeader, LoginPageFooter, LoginFooterLinks, LoginPageLink, LoginCard, LoginPageWithTranslation, LoginPageAlert, SocialLoginPage, SocialLoginPageContainer, BasicLoginPageLayout, LoginCardHeader, LoginLanguagePicker, LoginCardWithValidation, LoginCardForm, LoginCardSignUp, LoginCardInput, LoginCardInputWarning, LoginCardSettings, LoginFormError, LoginCardForgotPassword, LoginCardRememberMe, LoginCardSocialLink, LoginCardSocialSection, LoginCardSocialColumns, SocialLoginCard, BasicLoginCardLayout, Masthead, MastheadCollapse, MastheadDropdown, MenuItem, MessageDialog, Modal, ModalCloseButton, ModalPattern, StatefulModalPattern, ModelessOverlay, Nav, NavItem, Navbar, Notification, NotificationContent, NotificationInfo, NotificationMessage, NotificationInfoRight, NotificationInfoLeft, NotificationDrawer, NotificationDrawerWrapper, NotificationDrawerPanelWrapper, StatefulNotificationDrawerWrapper, StatefulToggleNotificationDrawerWrapper, OverlayTrigger, paginate, Pager, Paginator, PAGINATION_VIEW, PAGINATION_VIEW_TYPES, PaginationRow, PaginationRowAmountOfPages, PaginationRowArrowIcon, PaginationRowBack, PaginationRowButtonGroup, PaginationRowForward, PaginationRowItems, Popover, ProgressBar, SessionTimeout, CountDownSessionTimeout, Slider, Sort, SortTypeSelector, SortDirectionSelector, Spinner, Switch, actionHeaderCellFormatter, customHeaderFormattersDefinition, defaultSortingOrder, selectionCellFormatter, selectionHeaderCellFormatter, sortableHeaderCellFormatter, tableCellFormatter, inlineEditFormatterFactory, Table, TableActions, TableButton, TableCell, TableCheckbox, TableDropdownKebab, TableHeading, TablePfProvider, TableInlineEditRow, TableInlineEditHeaderRow, TableSelectionCell, TableSelectionHeading, TABLE_ALIGN, TABLE_ALIGNMENT_TYPES, TABLE_SORT_DIRECTION, TABLE_SORT_DIRECTIONS, TabContainer, TabContent, TabPane, Tabs, Tab, ToastNotification, TimedToastNotification, ToastNotificationList, Toolbar, ToolbarResults, ToolbarRightContent, ToolbarFind, ToolbarViewSelector, Tooltip, TreeView, TreeViewNode, TreeViewExpand, TreeViewIcon, TreeViewIndents, TypeAheadSelect, AsyncTypeAheadSelect, UtilizationBar, VerticalNav, VerticalNavMasthead, VerticalNavItem, VerticalNavSecondaryItem, VerticalNavTertiaryItem, VerticalNavBrand, VerticalNavIconBar, VerticalNavBadge, VerticalNavDividerItem, Wizard, WizardBody, WizardContents, WizardFooter, WizardHeader, WizardMain, WizardReviewContent, WizardReviewItem, WizardReviewStep, WizardReviewSteps, WizardReviewSubStep, WizardReviewSubSteps, WizardRow, WizardSidebar, WizardSidebarGroup, WizardSidebarGroupItem, WizardStep, WizardSteps, WizardSubStep, WizardPattern, WizardPatternBody, StatefulWizardPattern, patternfly, layout, ExpandCollapse, Overlay, BreadcrumbSwitcher, ClassificationBanner, TimePicker, DatePicker, DateTimePicker */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _common_controlled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/controlled */ "./node_modules/patternfly-react/dist/esm/common/controlled.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "controlled", function() { return _common_controlled__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _common_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/helpers */ "./node_modules/patternfly-react/dist/esm/common/helpers.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindMethods", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["bindMethods"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["debounce"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propExists", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propExists"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propOrState", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propOrState"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["selectKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filterKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["filterKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "excludeKeys", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["excludeKeys"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "childrenToArray", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["childrenToArray"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filterChildren", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["filterChildren"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findChild", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["findChild"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propsChanged", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["propsChanged"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasDisplayName", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["hasDisplayName"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nullValues", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["nullValues"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["noop"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KEY_CODES", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["KEY_CODES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "KEYS", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["KEYS"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "helpers", function() { return _common_helpers__WEBPACK_IMPORTED_MODULE_1__["helpers"]; });

/* harmony import */ var _components_Alert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Alert */ "./node_modules/patternfly-react/dist/esm/components/Alert/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _components_Alert__WEBPACK_IMPORTED_MODULE_2__["Alert"]; });

/* harmony import */ var _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/AboutModal */ "./node_modules/patternfly-react/dist/esm/components/AboutModal/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModal", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModal"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersions", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModalVersions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AboutModalVersionItem", function() { return _components_AboutModal__WEBPACK_IMPORTED_MODULE_3__["AboutModalVersionItem"]; });

/* harmony import */ var _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/ApplicationLauncher */ "./node_modules/patternfly-react/dist/esm/components/ApplicationLauncher/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncher", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncher"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherItem", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncherItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ApplicationLauncherToggle", function() { return _components_ApplicationLauncher__WEBPACK_IMPORTED_MODULE_4__["ApplicationLauncherToggle"]; });

/* harmony import */ var _components_Badge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/Badge */ "./node_modules/patternfly-react/dist/esm/components/Badge/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _components_Badge__WEBPACK_IMPORTED_MODULE_5__["Badge"]; });

/* harmony import */ var _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/Breadcrumb */ "./node_modules/patternfly-react/dist/esm/components/Breadcrumb/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _components_Breadcrumb__WEBPACK_IMPORTED_MODULE_6__["Breadcrumb"]; });

/* harmony import */ var _components_Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/Button */ "./node_modules/patternfly-react/dist/esm/components/Button/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["Button"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["ButtonGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["DropdownButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return _components_Button__WEBPACK_IMPORTED_MODULE_7__["SplitButton"]; });

/* harmony import */ var _components_Cards__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/Cards */ "./node_modules/patternfly-react/dist/esm/components/Cards/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["Card"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardTitle", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardBody", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeading", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardFooter", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardLink", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGrid", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardGrid"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDropdownButton", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardDropdownButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardHeightMatching", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["CardHeightMatching"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusCount", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotification", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AggregateStatusNotifications", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["AggregateStatusNotifications"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCard", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetails", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetails"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsCount", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsCount"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsDesc", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsDesc"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine1", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsLine1"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationCardDetailsLine2", function() { return _components_Cards__WEBPACK_IMPORTED_MODULE_8__["UtilizationCardDetailsLine2"]; });

/* harmony import */ var _components_Chart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/Chart */ "./node_modules/patternfly-react/dist/esm/components/Chart/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AreaChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["AreaChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BarChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartTitle", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartValue", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartValue"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartRange", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartRange"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxis", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartAxis"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartAxisTic", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartAxisTic"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegend", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartLegend"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartLegendItem", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartLegendItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BulletChartThreshold", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["BulletChartThreshold"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DonutChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["DonutChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedBarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["GroupedBarChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["LineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["PieChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleAreaChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SingleAreaChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SingleLineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SingleLineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SparklineChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["SparklineChart"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StackedBarChart", function() { return _components_Chart__WEBPACK_IMPORTED_MODULE_9__["StackedBarChart"]; });

/* harmony import */ var _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/Dropdown */ "./node_modules/patternfly-react/dist/esm/components/Dropdown/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__["Dropdown"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return _components_Dropdown__WEBPACK_IMPORTED_MODULE_10__["NavDropdown"]; });

/* harmony import */ var _components_DropdownKebab__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/DropdownKebab */ "./node_modules/patternfly-react/dist/esm/components/DropdownKebab/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownKebab", function() { return _components_DropdownKebab__WEBPACK_IMPORTED_MODULE_11__["DropdownKebab"]; });

/* harmony import */ var _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/DualListSelector */ "./node_modules/patternfly-react/dist/esm/components/DualListSelector/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualList", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualList"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListArrows", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListArrows"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListBody", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListControlled", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListControlled"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListCounter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListCounter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFilter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListFilter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListFooter", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHeading", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListHiddenSelect", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListHiddenSelect"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItem", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItems", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItems"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListItemTooltip", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListItemTooltip"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListMainCheckbox", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListMainCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSelector", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DualListSort", function() { return _components_DualListSelector__WEBPACK_IMPORTED_MODULE_12__["DualListSort"]; });

/* harmony import */ var _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/EmptyState */ "./node_modules/patternfly-react/dist/esm/components/EmptyState/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyState", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyState"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateIcon", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateTitle", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateTitle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateInfo", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateHelp", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateHelp"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyStateAction", function() { return _components_EmptyState__WEBPACK_IMPORTED_MODULE_13__["EmptyStateAction"]; });

/* harmony import */ var _components_FieldLevelHelp__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/FieldLevelHelp */ "./node_modules/patternfly-react/dist/esm/components/FieldLevelHelp/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FieldLevelHelp", function() { return _components_FieldLevelHelp__WEBPACK_IMPORTED_MODULE_14__["FieldLevelHelp"]; });

/* harmony import */ var _components_Filter__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/Filter */ "./node_modules/patternfly-react/dist/esm/components/Filter/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Filter", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["Filter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterTypeSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterTypeSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterValueSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterValueSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategorySelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterCategorySelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterCategoryValueSelector", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterCategoryValueSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterActiveLabel", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterActiveLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterList", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterList"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FilterItem", function() { return _components_Filter__WEBPACK_IMPORTED_MODULE_15__["FilterItem"]; });

/* harmony import */ var _components_Form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/Form */ "./node_modules/patternfly-react/dist/esm/components/Form/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Checkbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ControlLabel", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["ControlLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Form"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["FormControl"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["FormGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HelpBlock", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["HelpBlock"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["InputGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _components_Form__WEBPACK_IMPORTED_MODULE_16__["Radio"]; });

/* harmony import */ var _components_Grid__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/Grid */ "./node_modules/patternfly-react/dist/esm/components/Grid/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Grid", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Grid"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Row"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Col"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Clearfix", function() { return _components_Grid__WEBPACK_IMPORTED_MODULE_17__["Clearfix"]; });

/* harmony import */ var _components_HintBlock__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/HintBlock */ "./node_modules/patternfly-react/dist/esm/components/HintBlock/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HintBlock", function() { return _components_HintBlock__WEBPACK_IMPORTED_MODULE_18__["HintBlock"]; });

/* harmony import */ var _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/HorizontalNav */ "./node_modules/patternfly-react/dist/esm/components/HorizontalNav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNav", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenu", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNavMenu"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HorizontalNavMenuItem", function() { return _components_HorizontalNav__WEBPACK_IMPORTED_MODULE_19__["HorizontalNavMenuItem"]; });

/* harmony import */ var _components_Icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/Icon */ "./node_modules/patternfly-react/dist/esm/components/Icon/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _components_Icon__WEBPACK_IMPORTED_MODULE_20__["Icon"]; });

/* harmony import */ var _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/InfoTip */ "./node_modules/patternfly-react/dist/esm/components/InfoTip/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTip", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTip"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipToggle", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipToggle"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenu", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenu"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuItemIcon", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenuItemIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InfoTipMenuFooter", function() { return _components_InfoTip__WEBPACK_IMPORTED_MODULE_21__["InfoTipMenuFooter"]; });

/* harmony import */ var _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/InlineEdit */ "./node_modules/patternfly-react/dist/esm/components/InlineEdit/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InlineEdit", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["InlineEdit"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfirmButton", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["ConfirmButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CancelButton", function() { return _components_InlineEdit__WEBPACK_IMPORTED_MODULE_22__["CancelButton"]; });

/* harmony import */ var _components_Label__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/Label */ "./node_modules/patternfly-react/dist/esm/components/Label/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Label", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["Label"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DisposableLabel", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["DisposableLabel"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoveButton", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["RemoveButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CompoundLabel", function() { return _components_Label__WEBPACK_IMPORTED_MODULE_23__["CompoundLabel"]; });

/* harmony import */ var _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/ListGroup */ "./node_modules/patternfly-react/dist/esm/components/ListGroup/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__["ListGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return _components_ListGroup__WEBPACK_IMPORTED_MODULE_24__["ListGroupItem"]; });

/* harmony import */ var _components_ListView__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/ListView */ "./node_modules/patternfly-react/dist/esm/components/ListView/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListView", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListView"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewActions", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewActions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewAdditionalInfo", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewAdditionalInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewBody", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewCheckbox", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescription", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescription"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionHeading", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescriptionHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewDescriptionText", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewDescriptionText"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewExpand", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewExpand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemContainer", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItemContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewGroupItemHeader", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewGroupItemHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewIcon", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewInfoItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewInfoItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewItem", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewLeft", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewLeft"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewMainInfo", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewMainInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListViewRow", function() { return _components_ListView__WEBPACK_IMPORTED_MODULE_25__["ListViewRow"]; });

/* harmony import */ var _components_LoadingState__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/LoadingState */ "./node_modules/patternfly-react/dist/esm/components/LoadingState/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingState", function() { return _components_LoadingState__WEBPACK_IMPORTED_MODULE_26__["LoadingState"]; });

/* harmony import */ var _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/LoginPage */ "./node_modules/patternfly-react/dist/esm/components/LoginPage/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPage", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageContainer", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageHeader", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageFooter", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFooterLinks", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginFooterLinks"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageLink", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCard", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageWithTranslation", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageWithTranslation"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginPageAlert", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginPageAlert"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPage", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginPage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginPageContainer", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginPageContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginPageLayout", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["BasicLoginPageLayout"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardHeader", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginLanguagePicker", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginLanguagePicker"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardWithValidation", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardWithValidation"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForm", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardForm"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSignUp", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSignUp"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInput", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardInput"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardInputWarning", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardInputWarning"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSettings", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSettings"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginFormError", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginFormError"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardForgotPassword", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardForgotPassword"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardRememberMe", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardRememberMe"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialLink", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialLink"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialSection", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialSection"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoginCardSocialColumns", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["LoginCardSocialColumns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SocialLoginCard", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["SocialLoginCard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BasicLoginCardLayout", function() { return _components_LoginPage__WEBPACK_IMPORTED_MODULE_27__["BasicLoginCardLayout"]; });

/* harmony import */ var _components_Masthead__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/Masthead */ "./node_modules/patternfly-react/dist/esm/components/Masthead/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Masthead", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["Masthead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadCollapse", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["MastheadCollapse"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MastheadDropdown", function() { return _components_Masthead__WEBPACK_IMPORTED_MODULE_28__["MastheadDropdown"]; });

/* harmony import */ var _components_MenuItem__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/MenuItem */ "./node_modules/patternfly-react/dist/esm/components/MenuItem/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _components_MenuItem__WEBPACK_IMPORTED_MODULE_29__["MenuItem"]; });

/* harmony import */ var _components_MessageDialog__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/MessageDialog */ "./node_modules/patternfly-react/dist/esm/components/MessageDialog/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MessageDialog", function() { return _components_MessageDialog__WEBPACK_IMPORTED_MODULE_30__["MessageDialog"]; });

/* harmony import */ var _components_Modal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/Modal */ "./node_modules/patternfly-react/dist/esm/components/Modal/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["Modal"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalCloseButton", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["ModalCloseButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalPattern", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["ModalPattern"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulModalPattern", function() { return _components_Modal__WEBPACK_IMPORTED_MODULE_31__["StatefulModalPattern"]; });

/* harmony import */ var _components_ModelessOverlay__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/ModelessOverlay */ "./node_modules/patternfly-react/dist/esm/components/ModelessOverlay/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModelessOverlay", function() { return _components_ModelessOverlay__WEBPACK_IMPORTED_MODULE_32__["ModelessOverlay"]; });

/* harmony import */ var _components_Nav__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/Nav */ "./node_modules/patternfly-react/dist/esm/components/Nav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _components_Nav__WEBPACK_IMPORTED_MODULE_33__["Nav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return _components_Nav__WEBPACK_IMPORTED_MODULE_33__["NavItem"]; });

/* harmony import */ var _components_Navbar__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/Navbar */ "./node_modules/patternfly-react/dist/esm/components/Navbar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _components_Navbar__WEBPACK_IMPORTED_MODULE_34__["Navbar"]; });

/* harmony import */ var _components_Notification__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/Notification */ "./node_modules/patternfly-react/dist/esm/components/Notification/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["Notification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationContent", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfo", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfo"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationMessage", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationMessage"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoRight", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfoRight"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationInfoLeft", function() { return _components_Notification__WEBPACK_IMPORTED_MODULE_35__["NotificationInfoLeft"]; });

/* harmony import */ var _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/Notification/NotificationDrawer */ "./node_modules/patternfly-react/dist/esm/components/Notification/NotificationDrawer/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawer", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawerWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationDrawerPanelWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["NotificationDrawerPanelWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulNotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["StatefulNotificationDrawerWrapper"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulToggleNotificationDrawerWrapper", function() { return _components_Notification_NotificationDrawer__WEBPACK_IMPORTED_MODULE_36__["StatefulToggleNotificationDrawerWrapper"]; });

/* harmony import */ var _components_OverlayTrigger__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/OverlayTrigger */ "./node_modules/patternfly-react/dist/esm/components/OverlayTrigger/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return _components_OverlayTrigger__WEBPACK_IMPORTED_MODULE_37__["OverlayTrigger"]; });

/* harmony import */ var _components_Pagination__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/Pagination */ "./node_modules/patternfly-react/dist/esm/components/Pagination/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "paginate", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["paginate"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pager", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["Pager"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Paginator", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["Paginator"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PAGINATION_VIEW"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PAGINATION_VIEW_TYPES", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PAGINATION_VIEW_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRow", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowAmountOfPages", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowAmountOfPages"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowArrowIcon", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowArrowIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowBack", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowBack"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowButtonGroup", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowButtonGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowForward", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowForward"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationRowItems", function() { return _components_Pagination__WEBPACK_IMPORTED_MODULE_38__["PaginationRowItems"]; });

/* harmony import */ var _components_Popover__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/Popover */ "./node_modules/patternfly-react/dist/esm/components/Popover/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _components_Popover__WEBPACK_IMPORTED_MODULE_39__["Popover"]; });

/* harmony import */ var _components_ProgressBar__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/ProgressBar */ "./node_modules/patternfly-react/dist/esm/components/ProgressBar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return _components_ProgressBar__WEBPACK_IMPORTED_MODULE_40__["ProgressBar"]; });

/* harmony import */ var _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/SessionTimeout */ "./node_modules/patternfly-react/dist/esm/components/SessionTimeout/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SessionTimeout", function() { return _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__["SessionTimeout"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CountDownSessionTimeout", function() { return _components_SessionTimeout__WEBPACK_IMPORTED_MODULE_41__["CountDownSessionTimeout"]; });

/* harmony import */ var _components_Slider__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/Slider */ "./node_modules/patternfly-react/dist/esm/components/Slider/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _components_Slider__WEBPACK_IMPORTED_MODULE_42__["Slider"]; });

/* harmony import */ var _components_Sort__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/Sort */ "./node_modules/patternfly-react/dist/esm/components/Sort/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sort", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["Sort"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortTypeSelector", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["SortTypeSelector"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SortDirectionSelector", function() { return _components_Sort__WEBPACK_IMPORTED_MODULE_43__["SortDirectionSelector"]; });

/* harmony import */ var _components_Spinner__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/Spinner */ "./node_modules/patternfly-react/dist/esm/components/Spinner/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _components_Spinner__WEBPACK_IMPORTED_MODULE_44__["Spinner"]; });

/* harmony import */ var _components_Switch__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/Switch */ "./node_modules/patternfly-react/dist/esm/components/Switch/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _components_Switch__WEBPACK_IMPORTED_MODULE_45__["Switch"]; });

/* harmony import */ var _components_Table__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./components/Table */ "./node_modules/patternfly-react/dist/esm/components/Table/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "actionHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["actionHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customHeaderFormattersDefinition", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["customHeaderFormattersDefinition"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSortingOrder", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["defaultSortingOrder"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["selectionCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectionHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["selectionHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortableHeaderCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["sortableHeaderCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tableCellFormatter", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["tableCellFormatter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inlineEditFormatterFactory", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["inlineEditFormatterFactory"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["Table"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableActions", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableActions"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableButton", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableButton"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCell", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableCell"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableCheckbox", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableCheckbox"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableDropdownKebab", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableDropdownKebab"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableHeading", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TablePfProvider", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TablePfProvider"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditRow", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableInlineEditRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableInlineEditHeaderRow", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableInlineEditHeaderRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionCell", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableSelectionCell"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TableSelectionHeading", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TableSelectionHeading"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGN", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_ALIGN"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_ALIGNMENT_TYPES", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_ALIGNMENT_TYPES"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTION", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_SORT_DIRECTION"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TABLE_SORT_DIRECTIONS", function() { return _components_Table__WEBPACK_IMPORTED_MODULE_46__["TABLE_SORT_DIRECTIONS"]; });

/* harmony import */ var _components_Tabs__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./components/Tabs */ "./node_modules/patternfly-react/dist/esm/components/Tabs/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabContainer"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["TabPane"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["Tabs"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return _components_Tabs__WEBPACK_IMPORTED_MODULE_47__["Tab"]; });

/* harmony import */ var _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./components/ToastNotification */ "./node_modules/patternfly-react/dist/esm/components/ToastNotification/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotification", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["ToastNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimedToastNotification", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["TimedToastNotification"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastNotificationList", function() { return _components_ToastNotification__WEBPACK_IMPORTED_MODULE_48__["ToastNotificationList"]; });

/* harmony import */ var _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./components/Toolbar */ "./node_modules/patternfly-react/dist/esm/components/Toolbar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toolbar", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["Toolbar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarResults", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarResults"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarRightContent", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarRightContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarFind", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarFind"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolbarViewSelector", function() { return _components_Toolbar__WEBPACK_IMPORTED_MODULE_49__["ToolbarViewSelector"]; });

/* harmony import */ var _components_Tooltip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./components/Tooltip */ "./node_modules/patternfly-react/dist/esm/components/Tooltip/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _components_Tooltip__WEBPACK_IMPORTED_MODULE_50__["Tooltip"]; });

/* harmony import */ var _components_TreeView__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./components/TreeView */ "./node_modules/patternfly-react/dist/esm/components/TreeView/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeView"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewNode", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewNode"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewExpand", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewExpand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIcon", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewIcon"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeViewIndents", function() { return _components_TreeView__WEBPACK_IMPORTED_MODULE_51__["TreeViewIndents"]; });

/* harmony import */ var _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./components/TypeAheadSelect */ "./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TypeAheadSelect", function() { return _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__["TypeAheadSelect"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncTypeAheadSelect", function() { return _components_TypeAheadSelect__WEBPACK_IMPORTED_MODULE_52__["AsyncTypeAheadSelect"]; });

/* harmony import */ var _components_UtilizationBar__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./components/UtilizationBar */ "./node_modules/patternfly-react/dist/esm/components/UtilizationBar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UtilizationBar", function() { return _components_UtilizationBar__WEBPACK_IMPORTED_MODULE_53__["UtilizationBar"]; });

/* harmony import */ var _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./components/VerticalNav */ "./node_modules/patternfly-react/dist/esm/components/VerticalNav/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNav", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNav"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavMasthead", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavMasthead"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavSecondaryItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavSecondaryItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavTertiaryItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavTertiaryItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBrand", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavBrand"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavIconBar", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavIconBar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavBadge", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavBadge"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VerticalNavDividerItem", function() { return _components_VerticalNav__WEBPACK_IMPORTED_MODULE_54__["VerticalNavDividerItem"]; });

/* harmony import */ var _components_Wizard__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./components/Wizard */ "./node_modules/patternfly-react/dist/esm/components/Wizard/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Wizard", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["Wizard"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardBody", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardContents", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardContents"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardFooter", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardFooter"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardHeader", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardHeader"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardMain", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardMain"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewContent", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewContent"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewItem", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSubStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardReviewSubSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardReviewSubSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardRow", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardRow"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebar", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebar"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroup", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebarGroup"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSidebarGroupItem", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSidebarGroupItem"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSteps", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSteps"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardSubStep", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardSubStep"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPattern", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardPattern"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "WizardPatternBody", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["WizardPatternBody"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StatefulWizardPattern", function() { return _components_Wizard__WEBPACK_IMPORTED_MODULE_55__["StatefulWizardPattern"]; });

/* harmony import */ var _common_patternfly__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./common/patternfly */ "./node_modules/patternfly-react/dist/esm/common/patternfly.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "patternfly", function() { return _common_patternfly__WEBPACK_IMPORTED_MODULE_56__["patternfly"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "layout", function() { return _common_patternfly__WEBPACK_IMPORTED_MODULE_56__["layout"]; });

/* harmony import */ var _components_ExpandCollapse__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./components/ExpandCollapse */ "./node_modules/patternfly-react/dist/esm/components/ExpandCollapse/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ExpandCollapse", function() { return _components_ExpandCollapse__WEBPACK_IMPORTED_MODULE_57__["ExpandCollapse"]; });

/* harmony import */ var _components_Overlay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./components/Overlay */ "./node_modules/patternfly-react/dist/esm/components/Overlay/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _components_Overlay__WEBPACK_IMPORTED_MODULE_58__["Overlay"]; });

/* harmony import */ var _components_BreadcrumbSwitcher__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./components/BreadcrumbSwitcher */ "./node_modules/patternfly-react/dist/esm/components/BreadcrumbSwitcher/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbSwitcher", function() { return _components_BreadcrumbSwitcher__WEBPACK_IMPORTED_MODULE_59__["BreadcrumbSwitcher"]; });

/* harmony import */ var _components_ClassificationBanner__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./components/ClassificationBanner */ "./node_modules/patternfly-react/dist/esm/components/ClassificationBanner/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClassificationBanner", function() { return _components_ClassificationBanner__WEBPACK_IMPORTED_MODULE_60__["ClassificationBanner"]; });

/* harmony import */ var _components_DateTimePicker__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./components/DateTimePicker */ "./node_modules/patternfly-react/dist/esm/components/DateTimePicker/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _components_DateTimePicker__WEBPACK_IMPORTED_MODULE_61__["TimePicker"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _components_DateTimePicker__WEBPACK_IMPORTED_MODULE_61__["DatePicker"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DateTimePicker", function() { return _components_DateTimePicker__WEBPACK_IMPORTED_MODULE_61__["DateTimePicker"]; });
































































/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/create-react-context/lib/implementation.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/create-react-context/lib/implementation.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _gud = __webpack_require__(/*! gud */ "./node_modules/gud/index.js");

var _gud2 = _interopRequireDefault(_gud);

var _warning = __webpack_require__(/*! warning */ "./node_modules/patternfly-react/node_modules/create-react-context/node_modules/warning/warning.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 MAX_SIGNED_31_BIT_INT = 1073741823;

// Inlined Object.is polyfill.
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
function objectIs(x, y) {
  if (x === y) {
    return x !== 0 || 1 / x === 1 / y;
  } else {
    return x !== x && y !== y;
  }
}

function createEventEmitter(value) {
  var handlers = [];
  return {
    on: function on(handler) {
      handlers.push(handler);
    },
    off: function off(handler) {
      handlers = handlers.filter(function (h) {
        return h !== handler;
      });
    },
    get: function get() {
      return value;
    },
    set: function set(newValue, changedBits) {
      value = newValue;
      handlers.forEach(function (handler) {
        return handler(value, changedBits);
      });
    }
  };
}

function onlyChild(children) {
  return Array.isArray(children) ? children[0] : children;
}

function createReactContext(defaultValue, calculateChangedBits) {
  var _Provider$childContex, _Consumer$contextType;

  var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__';

  var Provider = function (_Component) {
    _inherits(Provider, _Component);

    function Provider() {
      var _temp, _this, _ret;

      _classCallCheck(this, Provider);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret);
    }

    Provider.prototype.getChildContext = function getChildContext() {
      var _ref;

      return _ref = {}, _ref[contextProp] = this.emitter, _ref;
    };

    Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      if (this.props.value !== nextProps.value) {
        var oldValue = this.props.value;
        var newValue = nextProps.value;
        var changedBits = void 0;

        if (objectIs(oldValue, newValue)) {
          changedBits = 0; // No change
        } else {
          changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
          if (true) {
            (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
          }

          changedBits |= 0;

          if (changedBits !== 0) {
            this.emitter.set(nextProps.value, changedBits);
          }
        }
      }
    };

    Provider.prototype.render = function render() {
      return this.props.children;
    };

    return Provider;
  }(_react.Component);

  Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex);

  var Consumer = function (_Component2) {
    _inherits(Consumer, _Component2);

    function Consumer() {
      var _temp2, _this2, _ret2;

      _classCallCheck(this, Consumer);

      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = {
        value: _this2.getValue()
      }, _this2.onUpdate = function (newValue, changedBits) {
        var observedBits = _this2.observedBits | 0;
        if ((observedBits & changedBits) !== 0) {
          _this2.setState({ value: _this2.getValue() });
        }
      }, _temp2), _possibleConstructorReturn(_this2, _ret2);
    }

    Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      var observedBits = nextProps.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentDidMount = function componentDidMount() {
      if (this.context[contextProp]) {
        this.context[contextProp].on(this.onUpdate);
      }
      var observedBits = this.props.observedBits;

      this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default
      : observedBits;
    };

    Consumer.prototype.componentWillUnmount = function componentWillUnmount() {
      if (this.context[contextProp]) {
        this.context[contextProp].off(this.onUpdate);
      }
    };

    Consumer.prototype.getValue = function getValue() {
      if (this.context[contextProp]) {
        return this.context[contextProp].get();
      } else {
        return defaultValue;
      }
    };

    Consumer.prototype.render = function render() {
      return onlyChild(this.props.children)(this.state.value);
    };

    return Consumer;
  }(_react.Component);

  Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType);


  return {
    Provider: Provider,
    Consumer: Consumer
  };
}

exports.default = createReactContext;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/create-react-context/lib/index.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/create-react-context/lib/index.js ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _implementation = __webpack_require__(/*! ./implementation */ "./node_modules/patternfly-react/node_modules/create-react-context/lib/implementation.js");

var _implementation2 = _interopRequireDefault(_implementation);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _react2.default.createContext || _implementation2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/create-react-context/node_modules/warning/warning.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/create-react-context/node_modules/warning/warning.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (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__ = "development" !== 'production';

var warning = function() {};

if (__DEV__) {
  var printWarning = function printWarning(format, args) {
    var len = arguments.length;
    args = new Array(len > 1 ? len - 1 : 0);
    for (var 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(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;


/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _asyncContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js"));

var _Typeahead = _interopRequireDefault(__webpack_require__(/*! ./Typeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _default = (0, _asyncContainer["default"])(_Typeahead["default"]);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var SIZER_STYLE = {
  height: 0,
  left: 0,
  overflow: 'scroll',
  position: 'absolute',
  top: 0,
  visibility: 'hidden',
  whiteSpace: 'pre'
};
var INPUT_PROPS_BLACKLIST = ['inputClassName', 'inputRef', 'inputStyle'];
var MIN_WIDTH = 1;

var cleanInputProps = function cleanInputProps(inputProps) {
  var cleanProps = {};
  Object.keys(inputProps).forEach(function (key) {
    if (INPUT_PROPS_BLACKLIST.indexOf(key) === -1) {
      cleanProps[key] = inputProps[key];
    }
  });
  return cleanProps;
};

var copyStyles = function copyStyles(styles, node) {
  /* eslint-disable no-param-reassign */
  node.style.fontSize = styles.fontSize;
  node.style.fontFamily = styles.fontFamily;
  node.style.fontWeight = styles.fontWeight;
  node.style.fontStyle = styles.fontStyle;
  node.style.letterSpacing = styles.letterSpacing;
  node.style.textTransform = styles.textTransform;
  /* eslint-enable no-param-reassign */
};

var AutosizeInput =
/*#__PURE__*/
function (_React$Component) {
  _inherits(AutosizeInput, _React$Component);

  function AutosizeInput() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, AutosizeInput);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(AutosizeInput)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "state", {
      inputWidth: MIN_WIDTH
    });

    _defineProperty(_assertThisInitialized(_this), "_copyInputStyles", function () {
      var inputStyles = _this._input && window.getComputedStyle && window.getComputedStyle(_this._input);

      if (!inputStyles) {
        return;
      }

      copyStyles(inputStyles, _this._sizer);

      if (_this._placeHolderSizer) {
        copyStyles(inputStyles, _this._placeHolderSizer);
      }
    });

    _defineProperty(_assertThisInitialized(_this), "_updateInputWidth", function () {
      if (!_this._sizer || _this._sizer.scrollWidth === undefined) {
        return;
      }

      _this._copyInputStyles();

      var placeholderWidth = _this._placeHolderSizer && _this._placeHolderSizer.scrollWidth || MIN_WIDTH;
      var inputWidth = Math.max(_this._sizer.scrollWidth, placeholderWidth) + 2;

      if (inputWidth !== _this.state.inputWidth) {
        _this.setState({
          inputWidth: inputWidth
        });
      }
    });

    return _this;
  }

  _createClass(AutosizeInput, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._updateInputWidth();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      this._updateInputWidth();
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props = this.props,
          className = _this$props.className,
          defaultValue = _this$props.defaultValue,
          placeholder = _this$props.placeholder,
          value = _this$props.value;

      var wrapperStyle = _objectSpread({}, this.props.style);

      if (!wrapperStyle.display) {
        wrapperStyle.display = 'inline-block';
      }

      var inputProps = cleanInputProps(_objectSpread({}, this.props, {
        className: this.props.inputClassName,
        style: _objectSpread({}, this.props.inputStyle, {
          boxSizing: 'content-box',
          width: "".concat(this.state.inputWidth, "px")
        })
      }));
      return _react["default"].createElement("div", {
        className: className,
        style: wrapperStyle
      }, _react["default"].createElement("input", _extends({}, inputProps, {
        ref: function ref(el) {
          _this2._input = el;

          if (typeof _this2.props.inputRef === 'function') {
            _this2.props.inputRef(el);
          }
        }
      })), _react["default"].createElement("div", {
        ref: function ref(el) {
          return _this2._sizer = el;
        },
        style: SIZER_STYLE
      }, defaultValue || value || ''), placeholder ? _react["default"].createElement("div", {
        ref: function ref(el) {
          return _this2._placeHolderSizer = el;
        },
        style: SIZER_STYLE
      }, placeholder) : null);
    }
  }]);

  return AutosizeInput;
}(_react["default"].Component);

AutosizeInput.propTypes = {
  /**
   * ClassName for the input element.
   */
  inputClassName: _propTypes["default"].string,

  /**
   * Ref callback for the input element.
   */
  inputRef: _propTypes["default"].func,

  /**
   * CSS styles for the input element.
   */

  /* eslint-disable-next-line react/forbid-prop-types */
  inputStyle: _propTypes["default"].object
};
var _default = AutosizeInput;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

/**
 * ClearButton
 *
 * http://getbootstrap.com/css/#helper-classes-close
 */
var ClearButton = function ClearButton(_ref) {
  var bsSize = _ref.bsSize,
      className = _ref.className,
      label = _ref.label,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ["bsSize", "className", "label", "onClick"]);

  return _react["default"].createElement("button", _extends({}, props, {
    "aria-label": label,
    className: (0, _classnames["default"])('close', 'rbt-close', {
      'rbt-close-lg': bsSize === 'large' || bsSize === 'lg'
    }, className),
    onClick: function onClick(e) {
      e.stopPropagation();

      _onClick(e);
    },
    type: "button"
  }), _react["default"].createElement("span", {
    "aria-hidden": "true"
  }, "\xD7"), _react["default"].createElement("span", {
    className: "sr-only"
  }, label));
};

ClearButton.propTypes = {
  bsSize: _propTypes["default"].oneOf(['large', 'lg', 'small', 'sm']),
  label: _propTypes["default"].string,
  onClick: _propTypes["default"].func.isRequired
};
ClearButton.defaultProps = {
  label: 'Clear'
};
var _default = ClearButton;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

/**
 * Stripped-down version of https://github.com/helior/react-highlighter
 *
 * Results are already filtered by the time the component is used internally so
 * we can safely ignore case and diacritical marks for the purposes of matching.
 */
var Highlighter =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Highlighter, _React$Component);

  function Highlighter() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Highlighter);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Highlighter)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_count", 0);

    return _this;
  }

  _createClass(Highlighter, [{
    key: "render",
    value: function render() {
      var children = this.props.search ? this._renderHighlightedChildren() : this.props.children;
      return _react["default"].createElement("span", null, children);
    }
  }, {
    key: "_renderHighlightedChildren",
    value: function _renderHighlightedChildren() {
      var children = [];
      var remaining = this.props.children;

      while (remaining) {
        var bounds = (0, _utils.getMatchBounds)(remaining, this.props.search);

        if (!bounds) {
          this._count += 1;
          children.push(_react["default"].createElement("span", {
            key: this._count
          }, remaining));
          return children;
        } // Capture the string that leads up to a match...


        var nonMatch = remaining.slice(0, bounds.start);

        if (nonMatch) {
          this._count += 1;
          children.push(_react["default"].createElement("span", {
            key: this._count
          }, nonMatch));
        } // Now, capture the matching string...


        var match = remaining.slice(bounds.start, bounds.end);

        if (match) {
          this._count += 1;
          children.push(_react["default"].createElement("mark", {
            className: "rbt-highlight-text",
            key: this._count
          }, match));
        } // And if there's anything left over, continue the loop.


        remaining = remaining.slice(bounds.end);
      }

      return children;
    }
  }]);

  return Highlighter;
}(_react["default"].Component);

Highlighter.propTypes = {
  children: _propTypes["default"].string.isRequired,
  search: _propTypes["default"].string.isRequired
};
var _default = Highlighter;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Loader = function Loader(_ref) {
  var bsSize = _ref.bsSize;
  return _react["default"].createElement("div", {
    className: (0, _classnames["default"])('rbt-loader', {
      'rbt-loader-lg': bsSize === 'large' || bsSize === 'lg',
      'rbt-loader-sm': bsSize === 'small' || bsSize === 'sm'
    })
  });
};

Loader.propTypes = {
  bsSize: _propTypes["default"].oneOf(['large', 'lg', 'small', 'sm'])
};
var _default = Loader;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _isRequiredForA11y = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js"));

var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

/**
 * Menu component that handles empty state when passed a set of results.
 */
var Menu =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Menu, _React$Component);

  function Menu() {
    _classCallCheck(this, Menu);

    return _possibleConstructorReturn(this, _getPrototypeOf(Menu).apply(this, arguments));
  }

  _createClass(Menu, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      var _this$props = this.props,
          inputHeight = _this$props.inputHeight,
          scheduleUpdate = _this$props.scheduleUpdate; // Update the menu position if the height of the input changes.

      if (inputHeight !== prevProps.inputHeight) {
        scheduleUpdate();
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          emptyLabel = _this$props2.emptyLabel,
          id = _this$props2.id,
          innerRef = _this$props2.innerRef,
          maxHeight = _this$props2.maxHeight,
          style = _this$props2.style,
          text = _this$props2.text;
      var contents = _react.Children.count(children) === 0 ? _react["default"].createElement(_MenuItem.BaseMenuItem, {
        disabled: true
      }, emptyLabel) : children;
      return _react["default"].createElement("ul", {
        className: (0, _classnames["default"])('rbt-menu', 'dropdown-menu', 'show', className),
        id: id,
        key: // Force a re-render if the text changes to ensure that menu
        // positioning updates correctly.
        text,
        ref: innerRef,
        role: "listbox",
        style: _objectSpread({}, style, {
          display: 'block',
          maxHeight: maxHeight,
          overflow: 'auto'
        })
      }, contents);
    }
  }]);

  return Menu;
}(_react["default"].Component);

Menu.propTypes = {
  /**
   * Needed for accessibility.
   */
  id: (0, _isRequiredForA11y["default"])(_propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string])),

  /**
   * Maximum height of the dropdown menu.
   */
  maxHeight: _propTypes["default"].string
};
Menu.defaultProps = {
  maxHeight: '300px'
};

Menu.Divider = function (props) {
  return _react["default"].createElement("li", {
    className: "divider dropdown-divider",
    role: "separator"
  });
};

Menu.Header = function (props) {
  return _react["default"].createElement("li", _extends({}, props, {
    className: "dropdown-header"
  }));
};

var _default = Menu;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.BaseMenuItem = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _menuItemContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var BaseMenuItem =
/*#__PURE__*/
function (_React$Component) {
  _inherits(BaseMenuItem, _React$Component);

  function BaseMenuItem() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, BaseMenuItem);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(BaseMenuItem)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_handleClick", function (e) {
      var _this$props = _this.props,
          disabled = _this$props.disabled,
          onClick = _this$props.onClick;
      e.preventDefault();
      !disabled && onClick(e);
    });

    return _this;
  }

  _createClass(BaseMenuItem, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          active = _this$props2.active,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          onClick = _this$props2.onClick,
          onMouseDown = _this$props2.onMouseDown,
          props = _objectWithoutProperties(_this$props2, ["active", "children", "className", "disabled", "onClick", "onMouseDown"]);

      var conditionalClassNames = {
        active: active,
        disabled: disabled
      };
      return (
        /* eslint-disable jsx-a11y/anchor-is-valid */
        _react["default"].createElement("li", _extends({}, props, {
          className: (0, _classnames["default"])(conditionalClassNames, className)
        }), _react["default"].createElement("a", {
          className: (0, _classnames["default"])('dropdown-item', conditionalClassNames),
          href: "#",
          onClick: this._handleClick,
          onMouseDown: onMouseDown
        }, children))
        /* eslint-enable jsx-a11y/anchor-is-valid */

      );
    }
  }]);

  return BaseMenuItem;
}(_react["default"].Component);

exports.BaseMenuItem = BaseMenuItem;
BaseMenuItem.defaultProps = {
  onClick: _noop["default"]
};

var _default = (0, _menuItemContainer["default"])(BaseMenuItem);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _componentOrElement = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js"));

var _Portal = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/Portal */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/Portal.js"));

var _Popper = _interopRequireDefault(__webpack_require__(/*! react-popper/lib/cjs/Popper */ "./node_modules/react-popper/lib/cjs/Popper.js"));

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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; }

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; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

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; } }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var BODY_CLASS = 'rbt-body-container';

function getModifiers(_ref) {
  var align = _ref.align,
      flip = _ref.flip;
  return {
    computeStyles: {
      enabled: true,
      fn: function fn(data) {
        // Use the following condition instead of `align === 'justify'` since
        // it allows the component to fall back to justifying the menu width
        // even when `align` is undefined.
        if (align !== 'right' && align !== 'left') {
          // Set the popper width to match the target width.

          /* eslint-disable-next-line no-param-reassign */
          data.styles.width = data.offsets.reference.width;
        }

        return data;
      }
    },
    flip: {
      enabled: flip
    },
    preventOverflow: {
      escapeWithReference: true
    }
  };
}

function isBody(container) {
  return container === document.body;
}
/**
 * Custom `Overlay` component, since the version in `react-overlays` doesn't
 * work for our needs. Specifically, the `Position` component doesn't provide
 * the customized placement we need.
 */


var Overlay =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Overlay);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Overlay)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_update", function () {
      var _container$classList;

      var _this$props = _this.props,
          className = _this$props.className,
          container = _this$props.container,
          show = _this$props.show;

      if (!(show && isBody(container))) {
        return;
      } // Set a classname on the body for scoping purposes.


      container.classList.add(BODY_CLASS);
      !!className && (_container$classList = container.classList).add.apply(_container$classList, _toConsumableArray(className.split(' ')));
    });

    return _this;
  }

  _createClass(Overlay, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._update();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      var _this$props2 = this.props,
          onMenuHide = _this$props2.onMenuHide,
          onMenuShow = _this$props2.onMenuShow,
          onMenuToggle = _this$props2.onMenuToggle,
          show = _this$props2.show;

      if (show !== prevProps.show) {
        show ? onMenuShow() : onMenuHide();
        onMenuToggle(show);
      } // Remove scoping classes if menu isn't being appended to document body.


      var className = prevProps.className,
          container = prevProps.container;

      if (isBody(container) && !isBody(this.props.container)) {
        var _container$classList2;

        container.classList.remove(BODY_CLASS);
        !!className && (_container$classList2 = container.classList).remove.apply(_container$classList2, _toConsumableArray(className.split(' ')));
      }

      this._update();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          align = _this$props3.align,
          children = _this$props3.children,
          container = _this$props3.container,
          dropup = _this$props3.dropup,
          referenceElement = _this$props3.referenceElement,
          show = _this$props3.show;

      if (!(show && _react.Children.count(children))) {
        return null;
      }

      var child = _react.Children.only(children);

      var xPlacement = align === 'right' ? 'end' : 'start';
      var yPlacement = dropup ? 'top' : 'bottom';
      return _react["default"].createElement(_Portal["default"], {
        container: container
      }, _react["default"].createElement(_Popper["default"], {
        modifiers: getModifiers(this.props),
        placement: "".concat(yPlacement, "-").concat(xPlacement),
        referenceElement: referenceElement
      }, function (_ref2) {
        var ref = _ref2.ref,
            props = _objectWithoutProperties(_ref2, ["ref"]);

        return (0, _react.cloneElement)(child, _objectSpread({}, child.props, {}, props, {
          innerRef: ref,
          inputHeight: referenceElement ? referenceElement.offsetHeight : 0
        }));
      }));
    }
  }]);

  return Overlay;
}(_react["default"].Component);

Overlay.propTypes = {
  children: _propTypes["default"].element,
  container: _componentOrElement["default"].isRequired,
  onMenuHide: _propTypes["default"].func,
  onMenuShow: _propTypes["default"].func,
  onMenuToggle: _propTypes["default"].func,
  referenceElement: _componentOrElement["default"],
  show: _propTypes["default"].bool
};
Overlay.defaultProps = {
  onMenuHide: _noop["default"],
  onMenuShow: _noop["default"],
  onMenuToggle: _noop["default"],
  show: false
};
var _default = Overlay;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _ClearButton = _interopRequireDefault(__webpack_require__(/*! ./ClearButton.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js"));

var _tokenContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js"));

var _constants = __webpack_require__(/*! ./constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

/**
 * Token
 *
 * Individual token component, generally displayed within the TokenizerInput
 * component, but can also be rendered on its own.
 */
var Token =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Token, _React$Component);

  function Token() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Token);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Token)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_renderRemoveableToken", function () {
      var _this$props = _this.props,
          active = _this$props.active,
          children = _this$props.children,
          className = _this$props.className,
          onRemove = _this$props.onRemove,
          props = _objectWithoutProperties(_this$props, ["active", "children", "className", "onRemove"]);

      return _react["default"].createElement("div", _extends({}, props, {
        className: (0, _classnames["default"])('rbt-token', 'rbt-token-removeable', {
          'rbt-token-active': active
        }, className)
      }), children, _react["default"].createElement(_ClearButton["default"], {
        className: "rbt-token-remove-button",
        label: "Remove",
        onClick: onRemove,
        onKeyDown: _this._handleRemoveButtonKeydown,
        tabIndex: -1
      }));
    });

    _defineProperty(_assertThisInitialized(_this), "_renderToken", function () {
      var _this$props2 = _this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          href = _this$props2.href;
      var classnames = (0, _classnames["default"])('rbt-token', {
        'rbt-token-disabled': disabled
      }, className);

      if (href) {
        return _react["default"].createElement("a", {
          className: classnames,
          href: href
        }, children);
      }

      return _react["default"].createElement("div", {
        className: classnames
      }, children);
    });

    _defineProperty(_assertThisInitialized(_this), "_handleRemoveButtonKeydown", function (e) {
      switch (e.keyCode) {
        case _constants.RETURN:
          _this.props.onRemove();

          break;

        default:
          break;
      }
    });

    return _this;
  }

  _createClass(Token, [{
    key: "render",
    value: function render() {
      return this.props.onRemove && !this.props.disabled ? this._renderRemoveableToken() : this._renderToken();
    }
  }]);

  return Token;
}(_react["default"].Component);

Token.propTypes = {
  active: _propTypes["default"].bool,

  /**
   * Handler for removing/deleting the token. If not defined, the token will
   * be rendered in a read-only state.
   */
  onRemove: _propTypes["default"].func,
  tabIndex: _propTypes["default"].number
};
Token.defaultProps = {
  active: false,
  tabIndex: 0
};

var _default = (0, _tokenContainer["default"])(Token);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _ClearButton = _interopRequireDefault(__webpack_require__(/*! ./ClearButton.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js"));

var _Loader = _interopRequireDefault(__webpack_require__(/*! ./Loader.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Loader.react.js"));

var _Overlay = _interopRequireDefault(__webpack_require__(/*! ./Overlay.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Overlay.react.js"));

var _TypeaheadInputMulti = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadInputMulti.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js"));

var _TypeaheadInputSingle = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadInputSingle.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js"));

var _TypeaheadMenu = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js"));

var _typeaheadContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/typeaheadContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var Typeahead =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Typeahead, _React$Component);

  function Typeahead() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, Typeahead);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Typeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_renderInput", function (inputProps) {
      var Input = inputProps.multiple ? _TypeaheadInputMulti["default"] : _TypeaheadInputSingle["default"];
      return _react["default"].createElement(Input, inputProps);
    });

    _defineProperty(_assertThisInitialized(_this), "_renderAux", function () {
      var _this$props = _this.props,
          bsSize = _this$props.bsSize,
          clearButton = _this$props.clearButton,
          disabled = _this$props.disabled,
          isLoading = _this$props.isLoading,
          onClear = _this$props.onClear,
          selected = _this$props.selected;
      var content;

      if (isLoading) {
        content = _react["default"].createElement(_Loader["default"], {
          bsSize: bsSize
        });
      } else if (clearButton && !disabled && selected.length) {
        content = _react["default"].createElement(_ClearButton["default"], {
          bsSize: bsSize,
          onClick: onClear,
          onFocus: function onFocus(e) {
            // Prevent the main input from auto-focusing again.
            e.stopPropagation();
          },
          onMouseDown: _utils.preventInputBlur
        });
      }

      return content ? _react["default"].createElement("div", {
        className: (0, _classnames["default"])('rbt-aux', {
          'rbt-aux-lg': bsSize === 'large' || bsSize === 'lg'
        })
      }, content) : null;
    });

    return _this;
  }

  _createClass(Typeahead, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props2 = this.props,
          bodyContainer = _this$props2.bodyContainer,
          children = _this$props2.children,
          className = _this$props2.className,
          isMenuShown = _this$props2.isMenuShown,
          menuId = _this$props2.menuId,
          renderMenu = _this$props2.renderMenu,
          results = _this$props2.results;
      var inputProps = (0, _pick["default"])(this.props, ['activeIndex', 'activeItem', 'bsSize', 'disabled', 'inputProps', 'inputRef', 'isFocused', 'isInvalid', 'isMenuShown', 'isValid', 'labelKey', 'menuId', 'multiple', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onRemove', 'placeholder', 'renderToken', 'selected', 'text']);
      var overlayProps = (0, _pick["default"])(this.props, ['align', 'className', 'dropup', 'flip', 'onMenuHide', 'onMenuShow', 'onMenuToggle']);
      var menuProps = (0, _pick["default"])(this.props, ['emptyLabel', 'labelKey', 'maxHeight', 'newSelectionPrefix', 'renderMenuItemChildren', 'text']);

      var auxContent = this._renderAux();

      return _react["default"].createElement("div", {
        className: (0, _classnames["default"])('rbt', 'clearfix', 'open', {
          'has-aux': !!auxContent
        }, className),
        style: {
          position: 'relative'
        },
        tabIndex: -1
      }, this._renderInput(_objectSpread({}, inputProps, {
        // Use `findDOMNode` here since it's easier and less fragile than
        // forwarding refs down to the input's container.
        // TODO: Consider using `forwardRef` when React 16.3 usage is higher.

        /* eslint-disable-next-line react/no-find-dom-node */
        ref: function ref(node) {
          return _this2._inputContainer = (0, _reactDom.findDOMNode)(node);
        }
      })), typeof children === 'function' ? children(this.props) : children, auxContent, _react["default"].createElement(_Overlay["default"], _extends({}, overlayProps, {
        container: bodyContainer ? document.body : this,
        referenceElement: this._inputContainer,
        show: isMenuShown
      }), renderMenu(results, _objectSpread({}, menuProps, {
        id: menuId
      }))), _react["default"].createElement("div", {
        "aria-atomic": true,
        "aria-live": "polite",
        className: "sr-only rbt-sr-status",
        role: "status"
      }, (0, _utils.getAccessibilityStatus)(this.props)));
    }
  }]);

  return Typeahead;
}(_react["default"].Component);

Typeahead.propTypes = {
  renderMenu: _propTypes["default"].func
};
Typeahead.defaultProps = {
  renderMenu: function renderMenu(results, menuProps) {
    return _react["default"].createElement(_TypeaheadMenu["default"], _extends({}, menuProps, {
      options: results
    }));
  }
};

var _default = (0, _typeaheadContainer["default"])(Typeahead);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.withContext = void 0;

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _createReactContext = _interopRequireDefault(__webpack_require__(/*! create-react-context */ "./node_modules/patternfly-react/node_modules/create-react-context/lib/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var TypeaheadContext = (0, _createReactContext["default"])({
  activeIndex: -1,
  hintText: '',
  initialItem: null,
  isOnlyResult: false,
  onActiveItemChange: _noop["default"],
  onAdd: _noop["default"],
  onInitialItemChange: _noop["default"],
  onMenuItemClick: _noop["default"],
  selectHintOnEnter: false
});

var withContext = function withContext(Component, values) {
  // Note: Use a class instead of function component to support refs.

  /* eslint-disable-next-line react/prefer-stateless-function */
  return (
    /*#__PURE__*/
    function (_React$Component) {
      _inherits(_class, _React$Component);

      function _class() {
        _classCallCheck(this, _class);

        return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
      }

      _createClass(_class, [{
        key: "render",
        value: function render() {
          var _this = this;

          return _react["default"].createElement(TypeaheadContext.Consumer, null, function (context) {
            return _react["default"].createElement(Component, _extends({}, _this.props, (0, _pick["default"])(context, values)));
          });
        }
      }]);

      return _class;
    }(_react["default"].Component)
  );
};

exports.withContext = withContext;
var _default = TypeaheadContext;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _AutosizeInput = _interopRequireDefault(__webpack_require__(/*! ./AutosizeInput.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js"));

var _Token = _interopRequireDefault(__webpack_require__(/*! ./Token.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _hintContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/hintContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js"));

var _inputContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/inputContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js"));

var _constants = __webpack_require__(/*! ./constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var HintedAutosizeInput = (0, _hintContainer["default"])(_AutosizeInput["default"]);

var TypeaheadInputMulti =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadInputMulti, _React$Component);

  function TypeaheadInputMulti() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, TypeaheadInputMulti);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TypeaheadInputMulti)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_renderToken", function (option, idx) {
      var _this$props = _this.props,
          _onRemove = _this$props.onRemove,
          renderToken = _this$props.renderToken;

      var props = _objectSpread({}, _this.props, {
        onRemove: function onRemove() {
          return _onRemove(option);
        }
      });

      return renderToken(option, props, idx);
    });

    _defineProperty(_assertThisInitialized(_this), "_handleContainerClickOrFocus", function (e) {
      // Don't focus the input if it's disabled.
      if (_this.props.disabled) {
        e.target.blur();
        return;
      } // Move cursor to the end if the user clicks outside the actual input.


      var inputNode = _this._input;

      if (e.target !== inputNode && (0, _utils.isSelectable)(inputNode)) {
        inputNode.selectionStart = inputNode.value.length;
      }

      inputNode.focus();
    });

    _defineProperty(_assertThisInitialized(_this), "_handleKeyDown", function (e) {
      var _this$props2 = _this.props,
          onKeyDown = _this$props2.onKeyDown,
          selected = _this$props2.selected,
          value = _this$props2.value;

      switch (e.keyCode) {
        case _constants.BACKSPACE:
          if (e.target === _this._input && selected.length && !value) {
            // Prevent browser from going back.
            e.preventDefault(); // If the input is selected and there is no text, focus the last
            // token when the user hits backspace.

            var children = _this._wrapper.children;
            var lastToken = children[children.length - 2];
            lastToken && lastToken.focus();
          }

          break;

        default:
          break;
      }

      onKeyDown(e);
    });

    return _this;
  }

  _createClass(TypeaheadInputMulti, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props3 = this.props,
          className = _this$props3.className,
          inputClassName = _this$props3.inputClassName,
          labelKey = _this$props3.labelKey,
          onRemove = _this$props3.onRemove,
          renderToken = _this$props3.renderToken,
          selected = _this$props3.selected,
          props = _objectWithoutProperties(_this$props3, ["className", "inputClassName", "labelKey", "onRemove", "renderToken", "selected"]);

      return (
        /* eslint-disable jsx-a11y/no-static-element-interactions */

        /* eslint-disable jsx-a11y/click-events-have-key-events */
        _react["default"].createElement("div", {
          className: (0, _classnames["default"])('form-control', 'rbt-input-multi', className),
          disabled: props.disabled,
          onClick: this._handleContainerClickOrFocus,
          onFocus: this._handleContainerClickOrFocus,
          tabIndex: -1
        }, _react["default"].createElement("div", {
          className: "rbt-input-wrapper",
          ref: function ref(el) {
            return _this2._wrapper = el;
          }
        }, selected.map(this._renderToken), _react["default"].createElement(HintedAutosizeInput, _extends({}, props, {
          inputClassName: (0, _classnames["default"])('rbt-input-main', inputClassName),
          inputRef: function inputRef(input) {
            _this2._input = input;

            _this2.props.inputRef(input);
          },
          inputStyle: {
            backgroundColor: 'transparent',
            border: 0,
            boxShadow: 'none',
            cursor: 'inherit',
            outline: 'none',
            padding: 0
          },
          onKeyDown: this._handleKeyDown,
          style: {
            position: 'relative',
            zIndex: 1
          }
        }))))
        /* eslint-enable jsx-a11y/no-static-element-interactions */

        /* eslint-enable jsx-a11y/click-events-have-key-events */

      );
    }
  }]);

  return TypeaheadInputMulti;
}(_react["default"].Component);

TypeaheadInputMulti.propTypes = {
  /**
   * Provides a hook for customized rendering of tokens when multiple
   * selections are enabled.
   */
  renderToken: _propTypes["default"].func
};
TypeaheadInputMulti.defaultProps = {
  renderToken: function renderToken(option, props, idx) {
    return _react["default"].createElement(_Token["default"], {
      disabled: props.disabled,
      key: idx,
      onRemove: props.onRemove,
      tabIndex: props.tabIndex
    }, (0, _utils.getOptionLabel)(option, props.labelKey));
  }
};

var _default = (0, _inputContainer["default"])(TypeaheadInputMulti);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js ***!
  \****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _hintContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/hintContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js"));

var _inputContainer = _interopRequireDefault(__webpack_require__(/*! ./containers/inputContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var TypeaheadInputSingle =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadInputSingle, _React$Component);

  function TypeaheadInputSingle() {
    _classCallCheck(this, TypeaheadInputSingle);

    return _possibleConstructorReturn(this, _getPrototypeOf(TypeaheadInputSingle).apply(this, arguments));
  }

  _createClass(TypeaheadInputSingle, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          className = _this$props.className,
          inputRef = _this$props.inputRef,
          props = _objectWithoutProperties(_this$props, ["className", "inputRef"]);

      return _react["default"].createElement("input", _extends({}, props, {
        className: (0, _classnames["default"])('rbt-input-main', 'form-control', className),
        ref: inputRef
      }));
    }
  }]);

  return TypeaheadInputSingle;
}(_react["default"].Component);

var _default = (0, _inputContainer["default"])((0, _hintContainer["default"])(TypeaheadInputSingle));

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _Highlighter = _interopRequireDefault(__webpack_require__(/*! ./Highlighter.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js"));

var _Menu = _interopRequireDefault(__webpack_require__(/*! ./Menu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js"));

var _MenuItem = _interopRequireDefault(__webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js"));

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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; }

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; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var TypeaheadMenu =
/*#__PURE__*/
function (_React$Component) {
  _inherits(TypeaheadMenu, _React$Component);

  function TypeaheadMenu() {
    var _getPrototypeOf2;

    var _this;

    _classCallCheck(this, TypeaheadMenu);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TypeaheadMenu)).call.apply(_getPrototypeOf2, [this].concat(args)));

    _defineProperty(_assertThisInitialized(_this), "_renderMenuItem", function (option, idx) {
      var _this$props = _this.props,
          labelKey = _this$props.labelKey,
          newSelectionPrefix = _this$props.newSelectionPrefix,
          renderMenuItemChildren = _this$props.renderMenuItemChildren,
          text = _this$props.text;
      var label = (0, _utils.getOptionLabel)(option, labelKey);
      var menuItemProps = {
        disabled: option.disabled,
        key: idx,
        label: label,
        option: option,
        position: idx
      };

      if (option.customOption) {
        return _react["default"].createElement(_MenuItem["default"], _extends({}, menuItemProps, {
          className: "rbt-menu-custom-option",
          label: newSelectionPrefix + label
        }), newSelectionPrefix, _react["default"].createElement(_Highlighter["default"], {
          search: text
        }, label));
      }

      if (option.paginationOption) {
        return [_react["default"].createElement(_Menu["default"].Divider, {
          key: "pagination-item-divider"
        }), _react["default"].createElement(_MenuItem["default"], _extends({}, menuItemProps, {
          className: "rbt-menu-pagination-option",
          key: "pagination-item"
        }), label)];
      }

      return _react["default"].createElement(_MenuItem["default"], menuItemProps, renderMenuItemChildren(option, _this.props, idx));
    });

    return _this;
  }

  _createClass(TypeaheadMenu, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          labelKey = _this$props2.labelKey,
          newSelectionPrefix = _this$props2.newSelectionPrefix,
          options = _this$props2.options,
          renderMenuItemChildren = _this$props2.renderMenuItemChildren,
          menuProps = _objectWithoutProperties(_this$props2, ["labelKey", "newSelectionPrefix", "options", "renderMenuItemChildren"]);

      return _react["default"].createElement(_Menu["default"], menuProps, options.map(this._renderMenuItem));
    }
  }]);

  return TypeaheadMenu;
}(_react["default"].Component);

TypeaheadMenu.propTypes = {
  /**
   * Provides the ability to specify a prefix before the user-entered text to
   * indicate that the selection will be new. No-op unless `allowNew={true}`.
   */
  newSelectionPrefix: _propTypes["default"].string,

  /**
   * Provides a hook for customized rendering of menu item contents.
   */
  renderMenuItemChildren: _propTypes["default"].func
};
TypeaheadMenu.defaultProps = {
  newSelectionPrefix: 'New selection: ',
  renderMenuItemChildren: function renderMenuItemChildren(option, props, idx) {
    return _react["default"].createElement(_Highlighter["default"], {
      search: props.text
    }, (0, _utils.getOptionLabel)(option, props.labelKey));
  }
};
var _default = TypeaheadMenu;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DEFAULT_LABELKEY = exports.DOWN = exports.RIGHT = exports.UP = exports.LEFT = exports.SPACE = exports.ESC = exports.RETURN = exports.TAB = exports.BACKSPACE = void 0;

/**
 * Common (non-printable) keycodes for `keydown` and `keyup` events. Note that
 * `keypress` handles things differently and may not return the same values.
 */
var BACKSPACE = 8;
exports.BACKSPACE = BACKSPACE;
var TAB = 9;
exports.TAB = TAB;
var RETURN = 13;
exports.RETURN = RETURN;
var ESC = 27;
exports.ESC = ESC;
var SPACE = 32;
exports.SPACE = SPACE;
var LEFT = 37;
exports.LEFT = LEFT;
var UP = 38;
exports.UP = UP;
var RIGHT = 39;
exports.RIGHT = RIGHT;
var DOWN = 40;
exports.DOWN = DOWN;
var DEFAULT_LABELKEY = 'label';
exports.DEFAULT_LABELKEY = DEFAULT_LABELKEY;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _debounce = _interopRequireDefault(__webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes2 = __webpack_require__(/*! ../propTypes */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var DEFAULT_DELAY_MS = 200;
/**
 * HoC that encapsulates common behavior and functionality for doing
 * asynchronous searches, including:
 *
 *  - Debouncing user input
 *  - Optional query caching
 *  - Search prompt and empty results behaviors
 */

var asyncContainer = function asyncContainer(Typeahead) {
  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "_cache", {});

      _defineProperty(_assertThisInitialized(_this), "_query", _this.props.defaultInputValue || '');

      _defineProperty(_assertThisInitialized(_this), "_getEmptyLabel", function () {
        var _this$props = _this.props,
            emptyLabel = _this$props.emptyLabel,
            isLoading = _this$props.isLoading,
            promptText = _this$props.promptText,
            searchText = _this$props.searchText;

        if (!_this._query.length) {
          return promptText;
        }

        if (isLoading) {
          return searchText;
        }

        return emptyLabel;
      });

      _defineProperty(_assertThisInitialized(_this), "_handleInputChange", function (query, e) {
        _this.props.onInputChange && _this.props.onInputChange(query, e);

        _this._handleSearchDebounced(query);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleSearch", function (query) {
        _this._query = query;
        var _this$props2 = _this.props,
            minLength = _this$props2.minLength,
            onSearch = _this$props2.onSearch,
            useCache = _this$props2.useCache;

        if (!query || minLength && query.length < minLength) {
          return;
        } // Use cached results, if applicable.


        if (useCache && _this._cache[query]) {
          // Re-render the component with the cached results.
          _this.forceUpdate();

          return;
        } // Perform the search.


        onSearch(query);
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this._handleSearchDebounced = (0, _debounce["default"])(this._handleSearch, this.props.delay);
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        if (prevProps.isLoading && this.props.useCache) {
          this._cache[this._query] = this.props.options;
        }
      }
    }, {
      key: "componentWillUnmount",
      value: function componentWillUnmount() {
        this._cache = {};
        this._query = '';

        this._handleSearchDebounced.cancel();
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var _this$props3 = this.props,
            options = _this$props3.options,
            useCache = _this$props3.useCache,
            props = _objectWithoutProperties(_this$props3, ["options", "useCache"]);

        var cachedQuery = this._cache[this._query]; // Disable custom selections during a search unless `allowNew` is a
        // function.

        var allowNew = typeof props.allowNew === 'function' ? props.allowNew : props.allowNew && !props.isLoading;
        return _react["default"].createElement(Typeahead, _extends({}, props, {
          allowNew: allowNew,
          emptyLabel: this._getEmptyLabel(),
          onInputChange: this._handleInputChange,
          options: useCache && cachedQuery ? cachedQuery : options,
          ref: function ref(instance) {
            return _this2._instance = instance;
          }
        }));
      }
      /**
       * Make the component instance available.
       */

    }, {
      key: "getInstance",
      value: function getInstance() {
        return this._instance;
      }
    }]);

    return WrappedTypeahead;
  }(_react["default"].Component);

  WrappedTypeahead.displayName = "AsyncContainer(".concat((0, _utils.getDisplayName)(Typeahead), ")");
  WrappedTypeahead.propTypes = {
    /**
     * Delay, in milliseconds, before performing search.
     */
    delay: _propTypes["default"].number,

    /**
     * Whether or not a request is currently pending. Necessary for the
     * container to know when new results are available.
     */
    isLoading: _propTypes["default"].bool.isRequired,

    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes["default"].number,

    /**
     * Callback to perform when the search is executed.
     */
    onSearch: _propTypes["default"].func.isRequired,

    /**
     * Options to be passed to the typeahead. Will typically be the query
     * results, but can also be initial default options.
     */
    options: _propTypes2.optionType,

    /**
     * Message displayed in the menu when there is no user input.
     */
    promptText: _propTypes["default"].node,

    /**
     * Message displayed in the menu while the request is pending.
     */
    searchText: _propTypes["default"].node,

    /**
     * Whether or not the component should cache query results.
     */
    useCache: _propTypes["default"].bool
  };
  WrappedTypeahead.defaultProps = {
    delay: DEFAULT_DELAY_MS,
    minLength: 2,
    options: [],
    promptText: 'Type to search...',
    searchText: 'Searching...',
    useCache: true
  };
  return WrappedTypeahead;
};

var _default = asyncContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _pick = _interopRequireDefault(__webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _TypeaheadContext = _interopRequireDefault(__webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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 contextContainer(Typeahead) {
  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "_handleKeyDown", function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onKeyDown = _this$props.onKeyDown,
            onAdd = _this$props.onAdd;

        switch (e.keyCode) {
          case _constants.RETURN:
            if ((0, _utils.getIsOnlyResult)(_this.props) && initialItem) {
              onAdd(initialItem);
            }

            break;

          default:
            break;
        }

        onKeyDown(e);
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        var _this$props2 = this.props,
            allowNew = _this$props2.allowNew,
            onInitialItemChange = _this$props2.onInitialItemChange,
            results = _this$props2.results; // Clear the initial item when there are no results.

        if (!(allowNew || results.length)) {
          onInitialItemChange(null);
        }
      }
    }, {
      key: "render",
      value: function render() {
        var contextValues = (0, _pick["default"])(this.props, ['activeIndex', 'initialItem', 'onActiveItemChange', 'onAdd', 'onInitialItemChange', 'onMenuItemClick', 'selectHintOnEnter']);
        return _react["default"].createElement(_TypeaheadContext["default"].Provider, {
          value: _objectSpread({}, contextValues, {
            hintText: (0, _utils.getHintText)(this.props),
            isOnlyResult: (0, _utils.getIsOnlyResult)(this.props)
          })
        }, _react["default"].createElement(Typeahead, _extends({}, this.props, {
          onKeyDown: this._handleKeyDown
        })));
      }
    }]);

    return WrappedTypeahead;
  }(_react["default"].Component);

  return WrappedTypeahead;
}

var _default = contextContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _AutosizeInput = _interopRequireDefault(__webpack_require__(/*! ../AutosizeInput.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js"));

var _TypeaheadContext = __webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

// IE doesn't seem to get the composite computed value (eg: 'padding',
// 'borderStyle', etc.), so generate these from the individual values.
function interpolateStyle(styles, attr) {
  var subattr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

  // Title-case the sub-attribute.
  if (subattr) {
    /* eslint-disable-next-line no-param-reassign */
    subattr = subattr.replace(subattr[0], subattr[0].toUpperCase());
  }

  return ['Top', 'Right', 'Bottom', 'Left'].map(function (dir) {
    return styles[attr + dir + subattr];
  }).join(' ');
}

function copyStyles(inputNode, hintNode) {
  var inputStyle = window.getComputedStyle(inputNode);
  /* eslint-disable no-param-reassign */

  hintNode.style.borderStyle = interpolateStyle(inputStyle, 'border', 'style');
  hintNode.style.borderWidth = interpolateStyle(inputStyle, 'border', 'width');
  hintNode.style.fontSize = inputStyle.fontSize;
  hintNode.style.lineHeight = inputStyle.lineHeight;
  hintNode.style.margin = interpolateStyle(inputStyle, 'margin');
  hintNode.style.padding = interpolateStyle(inputStyle, 'padding');
  /* eslint-enable no-param-reassign */
}

function hintContainer(Input) {
  var HintedInput =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(HintedInput, _React$Component);

    function HintedInput() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, HintedInput);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(HintedInput)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "_handleKeyDown", function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onAdd = _this$props.onAdd,
            onKeyDown = _this$props.onKeyDown;

        if ((0, _utils.shouldSelectHint)(e, _this.props)) {
          e.preventDefault(); // Prevent input from blurring on TAB.

          onAdd(initialItem);
        }

        onKeyDown(e);
      });

      return _this;
    }

    _createClass(HintedInput, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var _this$props2 = this.props,
            hintText = _this$props2.hintText,
            initialItem = _this$props2.initialItem,
            _inputRef = _this$props2.inputRef,
            onAdd = _this$props2.onAdd,
            selectHintOnEnter = _this$props2.selectHintOnEnter,
            props = _objectWithoutProperties(_this$props2, ["hintText", "initialItem", "inputRef", "onAdd", "selectHintOnEnter"]);

        return _react["default"].createElement("div", {
          className: "rbt-input-hint-container",
          style: {
            position: 'relative'
          }
        }, _react["default"].createElement(Input, _extends({}, props, {
          inputRef: function inputRef(input) {
            _this2._input = input;

            _inputRef(input);
          },
          onKeyDown: this._handleKeyDown
        })), _react["default"].createElement(_AutosizeInput["default"], {
          "aria-hidden": true,
          className: "rbt-input-hint",
          inputRef: function inputRef(hint) {
            return _this2._hint = hint;
          },
          inputStyle: {
            backgroundColor: 'transparent',
            borderColor: 'transparent',
            boxShadow: 'none',
            color: 'rgba(0, 0, 0, 0.35)'
          },
          readOnly: true,
          style: {
            left: 0,
            pointerEvents: 'none',
            position: 'absolute',
            top: 0
          },
          tabIndex: -1,
          value: hintText
        }));
      }
    }]);

    return HintedInput;
  }(_react["default"].Component);

  HintedInput.displayName = "HintContainer(".concat((0, _utils.getDisplayName)(Input), ")");
  return (0, _TypeaheadContext.withContext)(HintedInput, ['hintText', 'initialItem', 'onAdd', 'selectHintOnEnter']);
}

var _default = hintContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function inputContainer(Input) {
  var WrappedInput =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedInput, _React$Component);

    function WrappedInput() {
      _classCallCheck(this, WrappedInput);

      return _possibleConstructorReturn(this, _getPrototypeOf(WrappedInput).apply(this, arguments));
    }

    _createClass(WrappedInput, [{
      key: "render",
      value: function render() {
        var _cx;

        var _this$props = this.props,
            activeIndex = _this$props.activeIndex,
            bsSize = _this$props.bsSize,
            disabled = _this$props.disabled,
            inputRef = _this$props.inputRef,
            isFocused = _this$props.isFocused,
            isInvalid = _this$props.isInvalid,
            isMenuShown = _this$props.isMenuShown,
            isValid = _this$props.isValid,
            labelKey = _this$props.labelKey,
            menuId = _this$props.menuId,
            multiple = _this$props.multiple,
            onBlur = _this$props.onBlur,
            onChange = _this$props.onChange,
            onFocus = _this$props.onFocus,
            onKeyDown = _this$props.onKeyDown,
            onRemove = _this$props.onRemove,
            placeholder = _this$props.placeholder,
            renderToken = _this$props.renderToken,
            selected = _this$props.selected;
        var _this$props$inputProp = this.props.inputProps,
            autoComplete = _this$props$inputProp.autoComplete,
            type = _this$props$inputProp.type; // Add a11y-related props.

        var inputProps = _objectSpread({}, this.props.inputProps, {
          'aria-activedescendant': activeIndex >= 0 ? (0, _utils.getMenuItemId)(activeIndex) : undefined,
          'aria-autocomplete': multiple ? 'list' : 'both',
          'aria-expanded': isMenuShown,
          'aria-haspopup': 'listbox',
          'aria-owns': isMenuShown ? menuId : undefined,
          autoComplete: autoComplete || 'nope',
          disabled: disabled,
          inputRef: inputRef,
          onBlur: onBlur,
          onChange: onChange,
          // Re-open the menu, eg: if it's closed via ESC.
          onClick: onFocus,
          onFocus: onFocus,
          onKeyDown: onKeyDown,
          placeholder: selected.length ? null : placeholder,
          // Comboboxes are single-select by definition:
          // https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
          role: 'combobox',
          type: type || 'text',
          value: (0, _utils.getInputText)(this.props)
        });

        var className = inputProps.className || '';

        if (multiple) {
          inputProps = _objectSpread({}, inputProps, {
            'aria-expanded': undefined,
            inputClassName: className,
            labelKey: labelKey,
            onRemove: onRemove,
            renderToken: renderToken,
            role: undefined,
            selected: selected
          });
        }

        return _react["default"].createElement(Input, _extends({}, inputProps, {
          className: (0, _classnames["default"])('rbt-input', (_cx = {}, _defineProperty(_cx, className, !multiple), _defineProperty(_cx, "focus", isFocused), _defineProperty(_cx, 'input-lg form-control-lg', bsSize === 'large' || bsSize === 'lg'), _defineProperty(_cx, 'input-sm form-control-sm', bsSize === 'small' || bsSize === 'sm'), _defineProperty(_cx, 'is-invalid', isInvalid), _defineProperty(_cx, 'is-valid', isValid), _cx))
        }));
      }
    }]);

    return WrappedInput;
  }(_react["default"].Component);

  WrappedInput.displayName = "InputContainer(".concat((0, _utils.getDisplayName)(Input), ")");
  return WrappedInput;
}

var _default = inputContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _TypeaheadContext = __webpack_require__(/*! ../TypeaheadContext */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

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; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var menuItemContainer = function menuItemContainer(Component) {
  var WrappedMenuItem =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedMenuItem, _React$Component);

    function WrappedMenuItem() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedMenuItem);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedMenuItem)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "_handleClick", function (e) {
        var _this$props = _this.props,
            onMenuItemClick = _this$props.onMenuItemClick,
            option = _this$props.option,
            onClick = _this$props.onClick;
        onMenuItemClick(option, e);
        onClick && onClick(e);
      });

      _defineProperty(_assertThisInitialized(_this), "_maybeUpdateItem", function () {
        var _this$props2 = _this.props,
            activeIndex = _this$props2.activeIndex,
            onActiveItemChange = _this$props2.onActiveItemChange,
            onInitialItemChange = _this$props2.onInitialItemChange,
            option = _this$props2.option,
            position = _this$props2.position;

        if (position === 0) {
          onInitialItemChange(option);
        }

        if (position === activeIndex) {
          // Ensures that if the menu items exceed the bounds of the menu, the
          // menu will scroll up or down as the user hits the arrow keys.

          /* eslint-disable-next-line react/no-find-dom-node */
          (0, _utils.scrollIntoViewIfNeeded)((0, _reactDom.findDOMNode)(_assertThisInitialized(_this)));
          onActiveItemChange(option);
        }
      });

      return _this;
    }

    _createClass(WrappedMenuItem, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this._maybeUpdateItem();
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate(prevProps, prevState) {
        this._maybeUpdateItem();
      }
    }, {
      key: "render",
      value: function render() {
        var _this$props3 = this.props,
            activeIndex = _this$props3.activeIndex,
            isOnlyResult = _this$props3.isOnlyResult,
            label = _this$props3.label,
            onActiveItemChange = _this$props3.onActiveItemChange,
            onInitialItemChange = _this$props3.onInitialItemChange,
            onMenuItemClick = _this$props3.onMenuItemClick,
            option = _this$props3.option,
            position = _this$props3.position,
            props = _objectWithoutProperties(_this$props3, ["activeIndex", "isOnlyResult", "label", "onActiveItemChange", "onInitialItemChange", "onMenuItemClick", "option", "position"]);

        var active = isOnlyResult || activeIndex === position;
        return _react["default"].createElement(Component, _extends({}, props, {
          active: active,
          "aria-label": label,
          "aria-selected": active,
          id: (0, _utils.getMenuItemId)(position),
          onClick: this._handleClick,
          onMouseDown: _utils.preventInputBlur,
          role: "option"
        }));
      }
    }]);

    return WrappedMenuItem;
  }(_react["default"].Component);

  WrappedMenuItem.displayName = "MenuItemContainer(".concat((0, _utils.getDisplayName)(Component), ")");
  WrappedMenuItem.propTypes = {
    option: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].string]).isRequired,
    position: _propTypes["default"].number
  };
  return (0, _TypeaheadContext.withContext)(WrappedMenuItem, ['activeIndex', 'isOnlyResult', 'onActiveItemChange', 'onInitialItemChange', 'onMenuItemClick']);
};

var _default = menuItemContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _RootCloseWrapper = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/RootCloseWrapper.js"));

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

/**
 * Higher-order component that encapsulates Token behaviors, allowing them to
 * be easily re-used.
 */
var tokenContainer = function tokenContainer(Component) {
  var WrappedComponent =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedComponent, _React$Component);

    function WrappedComponent() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedComponent);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedComponent)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "state", {
        active: false
      });

      _defineProperty(_assertThisInitialized(_this), "_handleBlur", function (e) {
        _this.setState({
          active: false
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_handleKeyDown", function (e) {
        switch (e.keyCode) {
          case _constants.BACKSPACE:
            if (_this.state.active) {
              // Prevent backspace keypress from triggering the browser "back"
              // action.
              e.preventDefault();

              _this.props.onRemove();
            }

            break;

          default:
            break;
        }
      });

      _defineProperty(_assertThisInitialized(_this), "_handleActive", function (e) {
        e.stopPropagation();

        _this.setState({
          active: true
        });
      });

      return _this;
    }

    _createClass(WrappedComponent, [{
      key: "render",
      value: function render() {
        return _react["default"].createElement(_RootCloseWrapper["default"], {
          onRootClose: this._handleBlur
        }, _react["default"].createElement(Component, _extends({}, this.props, this.state, {
          onBlur: this._handleBlur,
          onClick: this._handleActive,
          onFocus: this._handleActive,
          onKeyDown: this._handleKeyDown
        })));
      }
    }]);

    return WrappedComponent;
  }(_react["default"].Component);

  WrappedComponent.displayName = "TokenContainer(".concat((0, _utils.getDisplayName)(Component), ")");
  return WrappedComponent;
};

var _default = tokenContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _noop = _interopRequireDefault(__webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js"));

var _uniqueId = _interopRequireDefault(__webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _deprecated = _interopRequireDefault(__webpack_require__(/*! prop-types-extra/lib/deprecated */ "./node_modules/prop-types-extra/lib/deprecated.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _RootCloseWrapper = _interopRequireDefault(__webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/RootCloseWrapper.js"));

var _contextContainer = _interopRequireDefault(__webpack_require__(/*! ./contextContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/contextContainer.js"));

var _propTypes2 = __webpack_require__(/*! ../propTypes */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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 genId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  return prefix + Math.random().toString(36).substr(2, 12);
}

function isBodyMenuClick(e, props) {
  if (!props.bodyContainer && !props.positionFixed) {
    return false;
  }

  var target = e.target;

  while (target && target !== document.body) {
    if (target.className && typeof target.className === 'string' && target.className.indexOf('rbt-menu') > -1) {
      return true;
    }

    target = target.parentNode;
  }

  return false;
}

function getInitialState(props) {
  var defaultInputValue = props.defaultInputValue,
      defaultOpen = props.defaultOpen,
      defaultSelected = props.defaultSelected,
      maxResults = props.maxResults,
      multiple = props.multiple;
  var selected = props.selected ? props.selected.slice() : defaultSelected.slice();
  var text = defaultInputValue;

  if (!multiple && selected.length) {
    // Set the text if an initial selection is passed in.
    text = (0, _utils.getOptionLabel)((0, _head["default"])(selected), props.labelKey);

    if (selected.length > 1) {
      // Limit to 1 selection in single-select mode.
      selected = selected.slice(0, 1);
    }
  }

  return {
    activeIndex: -1,
    activeItem: null,
    initialItem: null,
    isFocused: false,
    selected: selected,
    showMenu: defaultOpen,
    shownResults: maxResults,
    text: text
  };
}

function skipDisabledOptions(results, activeIndex, keyCode) {
  var newActiveIndex = activeIndex;

  while (results[newActiveIndex] && results[newActiveIndex].disabled) {
    newActiveIndex += keyCode === _constants.UP ? -1 : 1;
  }

  return newActiveIndex;
}

function typeaheadContainer(Component) {
  var Typeahead = (0, _contextContainer["default"])(Component);

  var WrappedTypeahead =
  /*#__PURE__*/
  function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _getPrototypeOf2;

      var _this;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WrappedTypeahead)).call.apply(_getPrototypeOf2, [this].concat(args)));

      _defineProperty(_assertThisInitialized(_this), "state", getInitialState(_this.props));

      _defineProperty(_assertThisInitialized(_this), "_menuId", genId('rbt-menu-'));

      _defineProperty(_assertThisInitialized(_this), "blur", function () {
        _this.getInput().blur();

        _this._hideMenu();
      });

      _defineProperty(_assertThisInitialized(_this), "clear", function () {
        _this.setState(function (state, props) {
          return _objectSpread({}, getInitialState(props), {
            isFocused: state.isFocused,
            selected: [],
            text: ''
          });
        });
      });

      _defineProperty(_assertThisInitialized(_this), "focus", function () {
        _this.getInput().focus();
      });

      _defineProperty(_assertThisInitialized(_this), "getInput", function () {
        return _this._input;
      });

      _defineProperty(_assertThisInitialized(_this), "getInstance", function () {
        return _assertThisInitialized(_this);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleActiveIndexChange", function (activeIndex) {
        var newState = {
          activeIndex: activeIndex
        };

        if (activeIndex === -1) {
          // Reset the active item if there is no active index.
          newState.activeItem = null;
        }

        _this.setState(newState);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleActiveItemChange", function (activeItem) {
        // Don't update the active item if it hasn't changed.
        if (!(0, _utils.areEqual)(activeItem, _this.state.activeItem, _this.props.labelKey)) {
          _this.setState({
            activeItem: activeItem
          });
        }
      });

      _defineProperty(_assertThisInitialized(_this), "_handleBlur", function (e) {
        e.persist();

        _this.setState({
          isFocused: false
        }, function () {
          return _this.props.onBlur(e);
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_handleClear", function () {
        _this.clear();

        _this._updateSelected([]);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleFocus", function (e) {
        e.persist();

        _this.setState({
          isFocused: true,
          showMenu: true
        }, function () {
          return _this.props.onFocus(e);
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_handleInitialItemChange", function (initialItem) {
        // Don't update the initial item if it hasn't changed.
        if (!(0, _utils.areEqual)(initialItem, _this.state.initialItem, _this.props.labelKey)) {
          _this.setState({
            initialItem: initialItem
          });
        }
      });

      _defineProperty(_assertThisInitialized(_this), "_handleInputChange", function (e) {
        e.persist();
        var text = e.target.value;

        var _getInitialState = getInitialState(_this.props),
            activeIndex = _getInitialState.activeIndex,
            activeItem = _getInitialState.activeItem,
            shownResults = _getInitialState.shownResults;

        var _this$props = _this.props,
            multiple = _this$props.multiple,
            onInputChange = _this$props.onInputChange;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: true,
          shownResults: shownResults,
          text: text
        }, function () {
          return onInputChange(text, e);
        }); // Clear any selections if text is entered in single-select mode.


        if (_this.state.selected.length && !multiple) {
          _this._updateSelected([]);
        }
      });

      _defineProperty(_assertThisInitialized(_this), "_handleKeyDown", function (e, results, isMenuShown) {
        var activeItem = _this.state.activeItem;
        var activeIndex = _this.state.activeIndex;

        switch (e.keyCode) {
          case _constants.UP:
          case _constants.DOWN:
            if (!isMenuShown) {
              _this._showMenu();

              break;
            } // Prevents input cursor from going to the beginning when pressing up.


            e.preventDefault(); // Increment or decrement index based on user keystroke.

            activeIndex += e.keyCode === _constants.UP ? -1 : 1; // Skip over any disabled options.

            activeIndex = skipDisabledOptions(results, activeIndex, e.keyCode); // If we've reached the end, go back to the beginning or vice-versa.

            if (activeIndex === results.length) {
              activeIndex = -1;
            } else if (activeIndex === -2) {
              activeIndex = results.length - 1; // Skip over any disabled options.

              activeIndex = skipDisabledOptions(results, activeIndex, e.keyCode);
            }

            _this._handleActiveIndexChange(activeIndex);

            break;

          case _constants.ESC:
            isMenuShown && _this._hideMenu();
            break;

          case _constants.RETURN:
            if (!isMenuShown) {
              break;
            } // Prevent form submission while menu is open.


            e.preventDefault();
            activeItem && _this._handleMenuItemSelect(activeItem, e);
            break;

          case _constants.RIGHT:
          case _constants.TAB:
            if (!isMenuShown) {
              break;
            }

            if (activeItem && !activeItem.paginationOption) {
              // Prevent blurring when selecting the active item.
              e.keyCode === _constants.TAB && e.preventDefault();

              _this._handleSelectionAdd(activeItem);

              break;
            }

            if (e.keyCode === _constants.TAB) {
              _this._hideMenu();
            }

            break;

          default:
            break;
        }

        _this.props.onKeyDown(e);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleMenuItemSelect", function (option, e) {
        if (option.paginationOption) {
          _this._handlePaginate(e);
        } else {
          _this._handleSelectionAdd(option);
        }
      });

      _defineProperty(_assertThisInitialized(_this), "_handlePaginate", function (e) {
        e.persist();

        _this.setState(function (_ref, _ref2) {
          var shownResults = _ref.shownResults;
          var maxResults = _ref2.maxResults;
          return {
            shownResults: shownResults + maxResults
          };
        }, function () {
          return _this.props.onPaginate(e, _this.state.shownResults);
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_handleSelectionAdd", function (selection) {
        var _this$props2 = _this.props,
            multiple = _this$props2.multiple,
            labelKey = _this$props2.labelKey;
        var selected;
        var text;

        if (multiple) {
          // If multiple selections are allowed, add the new selection to the
          // existing selections.
          selected = _this.state.selected.concat(selection);
          text = '';
        } else {
          // If only a single selection is allowed, replace the existing selection
          // with the new one.
          selected = [selection];
          text = (0, _utils.getOptionLabel)(selection, labelKey);
        }

        _this._hideMenu();

        _this.setState({
          initialItem: selection,
          text: text
        }); // Text must be updated before the selection to fix #211.
        // TODO: Find a more robust way of solving the issue.


        _this._updateSelected(selected);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleSelectionRemove", function (selection) {
        var selected = _this.state.selected.filter(function (option) {
          return !(0, _isEqual["default"])(option, selection);
        }); // Make sure the input stays focused after the item is removed.


        _this.focus();

        _this._hideMenu();

        _this._updateSelected(selected);
      });

      _defineProperty(_assertThisInitialized(_this), "_handleRootClose", function (e) {
        if (isBodyMenuClick(e, _this.props) || !_this.state.showMenu) {
          return;
        }

        _this._hideMenu();
      });

      _defineProperty(_assertThisInitialized(_this), "_hideMenu", function () {
        var _getInitialState2 = getInitialState(_this.props),
            activeIndex = _getInitialState2.activeIndex,
            activeItem = _getInitialState2.activeItem,
            shownResults = _getInitialState2.shownResults;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: false,
          shownResults: shownResults
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_showMenu", function () {
        _this.setState({
          showMenu: true
        });
      });

      _defineProperty(_assertThisInitialized(_this), "_updateSelected", function (selected) {
        _this.setState({
          selected: selected
        }, function () {
          _this.props.onChange && _this.props.onChange(selected);
        });
      });

      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this.props.autoFocus && this.focus();
      }
    }, {
      key: "componentWillReceiveProps",
      value: function componentWillReceiveProps(nextProps) {
        var labelKey = nextProps.labelKey,
            multiple = nextProps.multiple,
            selected = nextProps.selected; // If new selections are passed via props, treat as a controlled input.

        if (selected && !(0, _isEqual["default"])(selected, this.state.selected)) {
          this.setState({
            selected: selected
          });

          if (multiple) {
            return;
          }

          this.setState({
            text: selected.length ? (0, _utils.getOptionLabel)((0, _head["default"])(selected), labelKey) : ''
          });
        } // Truncate selections when in single-select mode.


        var newSelected = selected || this.state.selected;

        if (!multiple && newSelected.length > 1) {
          newSelected = newSelected.slice(0, 1);
          this.setState({
            selected: newSelected,
            text: (0, _utils.getOptionLabel)((0, _head["default"])(newSelected), labelKey)
          });
          return;
        }

        if (multiple !== this.props.multiple) {
          this.setState({
            text: ''
          });
        }
      }
    }, {
      key: "render",
      value: function render() {
        var _this2 = this;

        var mergedPropsAndState = _objectSpread({}, this.props, {}, this.state);

        var filterBy = mergedPropsAndState.filterBy,
            labelKey = mergedPropsAndState.labelKey,
            minLength = mergedPropsAndState.minLength,
            options = mergedPropsAndState.options,
            paginate = mergedPropsAndState.paginate,
            paginationText = mergedPropsAndState.paginationText,
            shownResults = mergedPropsAndState.shownResults,
            text = mergedPropsAndState.text;
        var results = [];

        if (text.length >= minLength) {
          var cb = Array.isArray(filterBy) ? _utils.defaultFilterBy : filterBy;
          results = options.filter(function (option) {
            return cb(option, mergedPropsAndState);
          });
        } // This must come before results are truncated.


        var shouldPaginate = paginate && results.length > shownResults; // Truncate results if necessary.

        results = (0, _utils.getTruncatedOptions)(results, shownResults); // Add the custom option if necessary.

        if ((0, _utils.addCustomOption)(results, mergedPropsAndState)) {
          results.push(_defineProperty({
            customOption: true,
            id: (0, _uniqueId["default"])('new-id-')
          }, (0, _utils.getStringLabelKey)(labelKey), text));
        } // Add the pagination item if necessary.


        if (shouldPaginate) {
          var _results$push2;

          results.push((_results$push2 = {}, _defineProperty(_results$push2, (0, _utils.getStringLabelKey)(labelKey), paginationText), _defineProperty(_results$push2, "paginationOption", true), _results$push2));
        } // This must come after checks for the custom option and pagination.


        var isMenuShown = (0, _utils.isShown)(results, mergedPropsAndState);
        return _react["default"].createElement(_RootCloseWrapper["default"], {
          disabled: this.props.open,
          onRootClose: this._handleRootClose
        }, _react["default"].createElement(Typeahead, _extends({}, mergedPropsAndState, {
          bodyContainer: this.props.positionFixed || this.props.bodyContainer,
          inputRef: function inputRef(input) {
            return _this2._input = input;
          },
          isMenuShown: isMenuShown,
          menuId: this.props.id || this.props.menuId || this._menuId,
          onActiveItemChange: this._handleActiveItemChange,
          onAdd: this._handleSelectionAdd,
          onBlur: this._handleBlur,
          onChange: this._handleInputChange,
          onClear: this._handleClear,
          onFocus: this._handleFocus,
          onInitialItemChange: this._handleInitialItemChange,
          onKeyDown: function onKeyDown(e) {
            return _this2._handleKeyDown(e, results, isMenuShown);
          },
          onMenuItemClick: this._handleMenuItemSelect,
          onRemove: this._handleSelectionRemove,
          results: results
        })));
      }
    }]);

    return WrappedTypeahead;
  }(_react["default"].Component);

  WrappedTypeahead.displayName = "TypeaheadContainer(".concat((0, _utils.getDisplayName)(Typeahead), ")");
  WrappedTypeahead.propTypes = {
    /**
     * For localized accessibility: Should return a string indicating the number
     * of results for screen readers. Receives the current results.
     */
    a11yNumResults: _propTypes["default"].func,

    /**
     * For localized accessibility: Should return a string indicating the number
     * of selections for screen readers. Receives the current selections.
     */
    a11yNumSelected: _propTypes["default"].func,

    /**
     * Specify menu alignment. The default value is `justify`, which makes the
     * menu as wide as the input and truncates long values. Specifying `left`
     * or `right` will align the menu to that side and the width will be
     * determined by the length of menu item values.
     */
    align: _propTypes["default"].oneOf(['justify', 'left', 'right']),

    /**
     * Allows the creation of new selections on the fly. Note that any new items
     * will be added to the list of selections, but not the list of original
     * options unless handled as such by `Typeahead`'s parent.
     *
     * If a function is specified, it will be used to determine whether a custom
     * option should be included. The return value should be true or false.
     */
    allowNew: _propTypes["default"].oneOfType([_propTypes["default"].bool, _propTypes["default"].func]),

    /**
     * Autofocus the input when the component initially mounts.
     */
    autoFocus: _propTypes["default"].bool,

    /**
     * Whether to render the menu inline or attach to `document.body`.
     */
    bodyContainer: (0, _deprecated["default"])(_propTypes["default"].bool, 'Use `positionFixed` instead'),

    /**
     * Whether or not filtering should be case-sensitive.
     */
    caseSensitive: (0, _propTypes2.checkPropType)(_propTypes["default"].bool, _propTypes2.caseSensitiveType),

    /**
     * Displays a button to clear the input when there are selections.
     */
    clearButton: _propTypes["default"].bool,

    /**
     * The initial value displayed in the text input.
     */
    defaultInputValue: (0, _propTypes2.checkPropType)(_propTypes["default"].string, _propTypes2.defaultInputValueType),

    /**
     * Whether or not the menu is displayed upon initial render.
     */
    defaultOpen: _propTypes["default"].bool,

    /**
     * Specify any pre-selected options. Use only if you want the component to
     * be uncontrolled.
     */
    defaultSelected: _propTypes2.optionType,

    /**
     * Whether to disable the component.
     */
    disabled: _propTypes["default"].bool,

    /**
     * Specify whether the menu should appear above the input.
     */
    dropup: _propTypes["default"].bool,

    /**
     * Message to display in the menu if there are no valid results.
     */
    emptyLabel: (0, _propTypes2.checkPropType)(_propTypes["default"].node, _propTypes2.emptyLabelType),

    /**
     * Either an array of fields in `option` to search, or a custom filtering
     * callback.
     */
    filterBy: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].string.isRequired), _propTypes["default"].func]),

    /**
     * Whether or not to automatically adjust the position of the menu when it
     * reaches the viewport boundaries.
     */
    flip: _propTypes["default"].bool,

    /**
     * Highlights the menu item if there is only one result and allows selecting
     * that item by hitting enter. Does not work with `allowNew`.
     */
    highlightOnlyResult: (0, _propTypes2.checkPropType)(_propTypes["default"].bool, _propTypes2.highlightOnlyResultType),

    /**
     * An html id attribute, required for assistive technologies such as screen
     * readers.
     */
    id: (0, _propTypes2.checkPropType)(_propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]), _propTypes2.idType),

    /**
     * Whether the filter should ignore accents and other diacritical marks.
     */
    ignoreDiacritics: (0, _propTypes2.checkPropType)(_propTypes["default"].bool, _propTypes2.ignoreDiacriticsType),

    /**
     * Props to be applied directly to the input. `onBlur`, `onChange`,
     * `onFocus`, and `onKeyDown` are ignored.
     */
    inputProps: (0, _propTypes2.checkPropType)(_propTypes["default"].object, _propTypes2.inputPropsType),

    /**
     * Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`.
     */
    isInvalid: _propTypes["default"].bool,

    /**
     * Indicate whether an asynchronous data fetch is happening.
     */
    isLoading: _propTypes["default"].bool,

    /**
     * Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`.
     */
    isValid: _propTypes["default"].bool,

    /**
     * Specify the option key to use for display or a function returning the
     * display string. By default, the selector will use the `label` key.
     */
    labelKey: (0, _propTypes2.checkPropType)(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].func]), _propTypes2.labelKeyType),

    /**
     * Maximum number of results to display by default. Mostly done for
     * performance reasons so as not to render too many DOM nodes in the case of
     * large data sets.
     */
    maxResults: _propTypes["default"].number,

    /**
     * Id applied to the top-level menu element. Required for accessibility.
     */
    menuId: (0, _propTypes2.checkPropType)(_propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]), _propTypes2.idType),

    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes["default"].number,

    /**
     * Whether or not multiple selections are allowed.
     */
    multiple: _propTypes["default"].bool,

    /**
     * Invoked when the input is blurred. Receives an event.
     */
    onBlur: _propTypes["default"].func,

    /**
     * Invoked whenever items are added or removed. Receives an array of the
     * selected options.
     */
    onChange: _propTypes["default"].func,

    /**
     * Invoked when the input is focused. Receives an event.
     */
    onFocus: _propTypes["default"].func,

    /**
     * Invoked when the input value changes. Receives the string value of the
     * input.
     */
    onInputChange: _propTypes["default"].func,

    /**
     * Invoked when a key is pressed. Receives an event.
     */
    onKeyDown: _propTypes["default"].func,

    /**
     * Invoked when the menu is hidden.
     */
    onMenuHide: (0, _deprecated["default"])(_propTypes["default"].func, 'Use `onMenuToggle` instead'),

    /**
     * Invoked when the menu is shown.
     */
    onMenuShow: (0, _deprecated["default"])(_propTypes["default"].func, 'Use `onMenuToggle` instead'),

    /**
     * Invoked when menu visibility changes.
     */
    onMenuToggle: _propTypes["default"].func,

    /**
     * Invoked when the pagination menu item is clicked. Receives an event.
     */
    onPaginate: _propTypes["default"].func,

    /**
     * Whether or not the menu should be displayed. `undefined` allows the
     * component to control visibility, while `true` and `false` show and hide
     * the menu, respectively.
     */
    open: _propTypes["default"].bool,

    /**
     * Full set of options, including pre-selected options. Must either be an
     * array of objects (recommended) or strings.
     */
    options: _propTypes2.optionType.isRequired,

    /**
     * Give user the ability to display additional results if the number of
     * results exceeds `maxResults`.
     */
    paginate: _propTypes["default"].bool,

    /**
     * Prompt displayed when large data sets are paginated.
     */
    paginationText: _propTypes["default"].string,

    /**
     * Placeholder text for the input.
     */
    placeholder: _propTypes["default"].string,

    /**
     * Callback for custom menu rendering.
     */
    renderMenu: _propTypes["default"].func,

    /**
     * The selected option(s) displayed in the input. Use this prop if you want
     * to control the component via its parent.
     */
    selected: (0, _propTypes2.checkPropType)(_propTypes2.optionType, _propTypes2.selectedType),

    /**
     * Allows selecting the hinted result by pressing enter.
     */
    selectHintOnEnter: _propTypes["default"].bool
  };
  WrappedTypeahead.defaultProps = {
    a11yNumResults: function a11yNumResults(results) {
      var resultString = (0, _utils.pluralize)('result', results.length);
      return "".concat(resultString, ". Use up and down arrow keys to navigate.");
    },
    a11yNumSelected: function a11yNumSelected(selected) {
      return (0, _utils.pluralize)('selection', selected.length);
    },
    align: 'justify',
    allowNew: false,
    autoFocus: false,
    caseSensitive: false,
    clearButton: false,
    defaultInputValue: '',
    defaultOpen: false,
    defaultSelected: [],
    disabled: false,
    dropup: false,
    emptyLabel: 'No matches found.',
    filterBy: [],
    flip: false,
    highlightOnlyResult: false,
    ignoreDiacritics: true,
    inputProps: {},
    isInvalid: false,
    isLoading: false,
    isValid: false,
    labelKey: _constants.DEFAULT_LABELKEY,
    maxResults: 100,
    minLength: 0,
    multiple: false,
    onBlur: _noop["default"],
    onFocus: _noop["default"],
    onInputChange: _noop["default"],
    onKeyDown: _noop["default"],
    onPaginate: _noop["default"],
    paginate: true,
    paginationText: 'Display additional results...',
    placeholder: '',
    selectHintOnEnter: false
  };
  return WrappedTypeahead;
}

var _default = typeaheadContainer;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/index.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "AsyncTypeahead", {
  enumerable: true,
  get: function get() {
    return _AsyncTypeahead2["default"];
  }
});
Object.defineProperty(exports, "Highlighter", {
  enumerable: true,
  get: function get() {
    return _Highlighter2["default"];
  }
});
Object.defineProperty(exports, "Menu", {
  enumerable: true,
  get: function get() {
    return _Menu2["default"];
  }
});
Object.defineProperty(exports, "MenuItem", {
  enumerable: true,
  get: function get() {
    return _MenuItem2["default"];
  }
});
Object.defineProperty(exports, "Token", {
  enumerable: true,
  get: function get() {
    return _Token2["default"];
  }
});
Object.defineProperty(exports, "Typeahead", {
  enumerable: true,
  get: function get() {
    return _Typeahead2["default"];
  }
});
Object.defineProperty(exports, "TypeaheadMenu", {
  enumerable: true,
  get: function get() {
    return _TypeaheadMenu2["default"];
  }
});
Object.defineProperty(exports, "asyncContainer", {
  enumerable: true,
  get: function get() {
    return _asyncContainer2["default"];
  }
});
Object.defineProperty(exports, "menuItemContainer", {
  enumerable: true,
  get: function get() {
    return _menuItemContainer2["default"];
  }
});
Object.defineProperty(exports, "tokenContainer", {
  enumerable: true,
  get: function get() {
    return _tokenContainer2["default"];
  }
});

var _AsyncTypeahead2 = _interopRequireDefault(__webpack_require__(/*! ./AsyncTypeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js"));

var _Highlighter2 = _interopRequireDefault(__webpack_require__(/*! ./Highlighter.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js"));

var _Menu2 = _interopRequireDefault(__webpack_require__(/*! ./Menu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Menu.react.js"));

var _MenuItem2 = _interopRequireDefault(__webpack_require__(/*! ./MenuItem.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js"));

var _Token2 = _interopRequireDefault(__webpack_require__(/*! ./Token.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Token.react.js"));

var _Typeahead2 = _interopRequireDefault(__webpack_require__(/*! ./Typeahead.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js"));

var _TypeaheadMenu2 = _interopRequireDefault(__webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js"));

var _asyncContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js"));

var _menuItemContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js"));

var _tokenContainer2 = _interopRequireDefault(__webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js ***!
  \*****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = caseSensitiveType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function caseSensitiveType(props, propName, componentName) {
  var caseSensitive = props.caseSensitive,
      filterBy = props.filterBy;
  (0, _warn["default"])(!caseSensitive || typeof filterBy !== 'function', 'Your `filterBy` function will override the `caseSensitive` prop.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = checkPropType;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

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; }

/**
 * Allows additional warnings or messaging related to prop validation.
 */
function checkPropType(validator, callback) {
  return function (props, propName, componentName) {
    _propTypes["default"].checkPropTypes(_defineProperty({}, propName, validator), props, 'prop', componentName);

    typeof callback === 'function' && callback(props, propName, componentName);
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js ***!
  \*********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = defaultInputValueType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function defaultInputValueType(props, propName, componentName) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      multiple = props.multiple,
      selected = props.selected;
  var name = defaultSelected.length ? 'defaultSelected' : 'selected';
  (0, _warn["default"])(!(!multiple && defaultInputValue && (defaultSelected.length || selected && selected.length)), "`defaultInputValue` will be overridden by the value from `".concat(name, "`."));
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = emptyLabelType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function emptyLabelType(props, propName, componentName) {
  var emptyLabel = props.emptyLabel;
  (0, _warn["default"])(!!emptyLabel, 'Passing a falsy `emptyLabel` value to hide the menu when the result set ' + 'is empty is deprecated. Use `renderMenu` to return `null` instead.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js ***!
  \***********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = highlightOnlyResultType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function highlightOnlyResultType(props, propName, componentName) {
  var allowNew = props.allowNew,
      highlightOnlyResult = props.highlightOnlyResult;
  (0, _warn["default"])(!(highlightOnlyResult && allowNew), '`highlightOnlyResult` will not work with `allowNew`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js ***!
  \******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = idType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function idType(props, propName, componentName) {
  var id = props.id,
      menuId = props.menuId;
  (0, _warn["default"])(menuId == null, 'The `menuId` prop is deprecated. Use `id` instead.');
  (0, _warn["default"])(id != null, 'The `id` prop will be required in future versions to make the component ' + 'accessible for users of assistive technologies such as screen readers.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js ***!
  \********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = ignoreDiacriticsType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function ignoreDiacriticsType(props, propName, componentName) {
  var filterBy = props.filterBy,
      ignoreDiacritics = props.ignoreDiacritics;
  (0, _warn["default"])(ignoreDiacritics || typeof filterBy !== 'function', 'Your `filterBy` function will override the `ignoreDiacritics` prop.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/index.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "caseSensitiveType", {
  enumerable: true,
  get: function get() {
    return _caseSensitiveType2["default"];
  }
});
Object.defineProperty(exports, "checkPropType", {
  enumerable: true,
  get: function get() {
    return _checkPropType2["default"];
  }
});
Object.defineProperty(exports, "defaultInputValueType", {
  enumerable: true,
  get: function get() {
    return _defaultInputValueType2["default"];
  }
});
Object.defineProperty(exports, "emptyLabelType", {
  enumerable: true,
  get: function get() {
    return _emptyLabelType2["default"];
  }
});
Object.defineProperty(exports, "highlightOnlyResultType", {
  enumerable: true,
  get: function get() {
    return _highlightOnlyResultType2["default"];
  }
});
Object.defineProperty(exports, "idType", {
  enumerable: true,
  get: function get() {
    return _idType2["default"];
  }
});
Object.defineProperty(exports, "ignoreDiacriticsType", {
  enumerable: true,
  get: function get() {
    return _ignoreDiacriticsType2["default"];
  }
});
Object.defineProperty(exports, "inputPropsType", {
  enumerable: true,
  get: function get() {
    return _inputPropsType2["default"];
  }
});
Object.defineProperty(exports, "labelKeyType", {
  enumerable: true,
  get: function get() {
    return _labelKeyType2["default"];
  }
});
Object.defineProperty(exports, "optionType", {
  enumerable: true,
  get: function get() {
    return _optionType2["default"];
  }
});
Object.defineProperty(exports, "selectedType", {
  enumerable: true,
  get: function get() {
    return _selectedType2["default"];
  }
});

var _caseSensitiveType2 = _interopRequireDefault(__webpack_require__(/*! ./caseSensitiveType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js"));

var _checkPropType2 = _interopRequireDefault(__webpack_require__(/*! ./checkPropType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js"));

var _defaultInputValueType2 = _interopRequireDefault(__webpack_require__(/*! ./defaultInputValueType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js"));

var _emptyLabelType2 = _interopRequireDefault(__webpack_require__(/*! ./emptyLabelType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/emptyLabelType.js"));

var _highlightOnlyResultType2 = _interopRequireDefault(__webpack_require__(/*! ./highlightOnlyResultType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js"));

var _idType2 = _interopRequireDefault(__webpack_require__(/*! ./idType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/idType.js"));

var _ignoreDiacriticsType2 = _interopRequireDefault(__webpack_require__(/*! ./ignoreDiacriticsType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js"));

var _inputPropsType2 = _interopRequireDefault(__webpack_require__(/*! ./inputPropsType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js"));

var _labelKeyType2 = _interopRequireDefault(__webpack_require__(/*! ./labelKeyType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js"));

var _optionType2 = _interopRequireDefault(__webpack_require__(/*! ./optionType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js"));

var _selectedType2 = _interopRequireDefault(__webpack_require__(/*! ./selectedType */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = inputPropsType;

var _isPlainObject = _interopRequireDefault(__webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js"));

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var BLACKLIST = [{
  alt: 'onBlur',
  prop: 'onBlur'
}, {
  alt: 'onInputChange',
  prop: 'onChange'
}, {
  alt: 'onFocus',
  prop: 'onFocus'
}, {
  alt: 'onKeyDown',
  prop: 'onKeyDown'
}];

function inputPropsType(props, propName, componentName) {
  var inputProps = props.inputProps;

  if (!(inputProps && (0, _isPlainObject["default"])(inputProps))) {
    return;
  } // Blacklisted properties.


  BLACKLIST.forEach(function (_ref) {
    var alt = _ref.alt,
        prop = _ref.prop;
    var msg = alt ? " Use the top-level `".concat(alt, "` prop instead.") : null;
    (0, _warn["default"])(!inputProps[prop], "The `".concat(prop, "` property of `inputProps` will be ignored.").concat(msg));
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = labelKeyType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function labelKeyType(props, propName, componentName) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey;
  (0, _warn["default"])(!(typeof labelKey === 'function' && allowNew), '`labelKey` must be a string when `allowNew={true}`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _default = _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].object.isRequired), _propTypes["default"].arrayOf(_propTypes["default"].string.isRequired)]);

exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/propTypes/selectedType.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = selectedType;

var _warn = _interopRequireDefault(__webpack_require__(/*! ../utils/warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function selectedType(props, propName, componentName) {
  var onChange = props.onChange,
      selected = props.selected;
  (0, _warn["default"])(!selected || selected && typeof onChange === 'function', 'You provided a `selected` prop without an `onChange` handler. If you ' + 'want the typeahead to be uncontrolled, use `defaultSelected`. ' + 'Otherwise, set `onChange`.');
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function addCustomOption(results, props) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey,
      text = props.text;

  if (!allowNew || !text.trim()) {
    return false;
  } // If the consumer has provided a callback, use that to determine whether or
  // not to add the custom option.


  if (typeof allowNew === 'function') {
    return allowNew(results, props);
  } // By default, don't add the custom option if there is an exact text match
  // with an existing option.


  return !results.some(function (o) {
    return (0, _getOptionLabel["default"])(o, labelKey) === text;
  });
}

var _default = addCustomOption;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = areEqual;

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _getStringLabelKey = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/**
 * Compare whether items are the same. For custom items, compare the
 * `labelKey` values since a unique id is generated each time, causing the
 * comparison to fail.
 */
function areEqual(newItem, existingItem, labelKey) {
  var stringLabelKey = (0, _getStringLabelKey["default"])(labelKey);

  if (newItem && newItem.customOption && existingItem && existingItem.customOption) {
    return newItem[stringLabelKey] === existingItem[stringLabelKey];
  }

  return (0, _isEqual["default"])(newItem, existingItem);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = defaultFilterBy;

var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));

var _isFunction = _interopRequireDefault(__webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js"));

var _isString = _interopRequireDefault(__webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js"));

var _some = _interopRequireDefault(__webpack_require__(/*! lodash/some */ "./node_modules/lodash/some.js"));

var _stripDiacritics = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

var _warn = _interopRequireDefault(__webpack_require__(/*! ./warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function isMatch(input, string, props) {
  var searchStr = input;
  var str = string;

  if (!props.caseSensitive) {
    searchStr = searchStr.toLowerCase();
    str = str.toLowerCase();
  }

  if (props.ignoreDiacritics) {
    searchStr = (0, _stripDiacritics["default"])(searchStr);
    str = (0, _stripDiacritics["default"])(str);
  }

  return str.indexOf(searchStr) !== -1;
}
/**
 * Default algorithm for filtering results.
 */


function defaultFilterBy(option, props) {
  var filterBy = props.filterBy,
      labelKey = props.labelKey,
      multiple = props.multiple,
      selected = props.selected,
      text = props.text; // Don't show selected options in the menu for the multi-select case.

  if (multiple && selected.some(function (o) {
    return (0, _isEqual["default"])(o, option);
  })) {
    return false;
  }

  var fields = filterBy.slice();

  if ((0, _isFunction["default"])(labelKey) && isMatch(text, labelKey(option), props)) {
    return true;
  }

  if ((0, _isString["default"])(labelKey)) {
    // Add the `labelKey` field to the list of fields if it isn't already there.
    if (fields.indexOf(labelKey) === -1) {
      fields.unshift(labelKey);
    }
  }

  if ((0, _isString["default"])(option)) {
    (0, _warn["default"])(fields.length <= 1, 'You cannot filter by properties when `option` is a string.');
    return isMatch(text, option, props);
  }

  return (0, _some["default"])(fields, function (field) {
    var value = option[field];

    if (!(0, _isString["default"])(value)) {
      (0, _warn["default"])(false, 'Fields passed to `filterBy` should have string values. Value will ' + 'be converted to a string; results may be unexpected.'); // Coerce to string since `toString` isn't null-safe.

      value = "".concat(value);
    }

    return isMatch(text, value, props);
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

function getAccessibilityStatus(props) {
  var a11yNumResults = props.a11yNumResults,
      a11yNumSelected = props.a11yNumSelected,
      emptyLabel = props.emptyLabel,
      isMenuShown = props.isMenuShown,
      results = props.results,
      selected = props.selected; // If the menu is hidden, display info about the number of selections.

  if (!isMenuShown) {
    return a11yNumSelected(selected);
  } // Display info about the number of matches.


  if (results.length === 0) {
    return emptyLabel;
  }

  return a11yNumResults(results);
}

var _default = getAccessibilityStatus;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = getDisplayName;

function getDisplayName(WrappedComponent) {
  return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _getMatchBounds = _interopRequireDefault(__webpack_require__(/*! ./getMatchBounds */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js"));

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function getHintText(_ref) {
  var activeItem = _ref.activeItem,
      initialItem = _ref.initialItem,
      isFocused = _ref.isFocused,
      isMenuShown = _ref.isMenuShown,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  // Don't display a hint under the following conditions:
  if ( // No text entered.
  !text || // The input is not focused.
  !isFocused || // The menu is hidden.
  !isMenuShown || // No item in the menu.
  !initialItem || // The initial item is a custom option.
  initialItem.customOption || // One of the menu items is active.
  activeItem || // There's already a selection in single-select mode.
  !!selected.length && !multiple) {
    return '';
  }

  var initialItemStr = (0, _getOptionLabel["default"])(initialItem, labelKey);
  var bounds = (0, _getMatchBounds["default"])(initialItemStr.toLowerCase(), text.toLowerCase());

  if (!(bounds && bounds.start === 0)) {
    return '';
  } // Text matching is case- and accent-insensitive, so to display the hint
  // correctly, splice the input string with the hint string.


  return text + initialItemStr.slice(bounds.end, initialItemStr.length);
}

var _default = getHintText;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

var _getOptionLabel = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function getInputText(_ref) {
  var activeItem = _ref.activeItem,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  if (activeItem) {
    // Display the input value if the pagination item is active.
    return activeItem.paginationOption ? text : (0, _getOptionLabel["default"])(activeItem, labelKey);
  }

  var selectedItem = !multiple && !!selected.length && (0, _head["default"])(selected);

  if (selectedItem) {
    return (0, _getOptionLabel["default"])(selectedItem, labelKey);
  }

  return text;
}

var _default = getInputText;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _head = _interopRequireDefault(__webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function getIsOnlyResult(_ref) {
  var allowNew = _ref.allowNew,
      highlightOnlyResult = _ref.highlightOnlyResult,
      results = _ref.results;

  if (!highlightOnlyResult || allowNew) {
    return false;
  }

  return results.length === 1 && !(0, _head["default"])(results).disabled;
}

var _default = getIsOnlyResult;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = getMatchBounds;

var _escapeStringRegexp = _interopRequireDefault(__webpack_require__(/*! escape-string-regexp */ "./node_modules/escape-string-regexp/index.js"));

var _stripDiacritics = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var CASE_INSENSITIVE = 'i';
var COMBINING_MARKS = /[\u0300-\u036F]/;

function getMatchBounds(subject, str) {
  var search = new RegExp((0, _escapeStringRegexp["default"])((0, _stripDiacritics["default"])(str)), CASE_INSENSITIVE);
  var matches = search.exec((0, _stripDiacritics["default"])(subject));

  if (!matches) {
    return null;
  }

  var start = matches.index;
  var matchLength = matches[0].length; // Account for combining marks, which changes the indices.

  if (COMBINING_MARKS.test(subject)) {
    // Starting at the beginning of the subject string, check for the number of
    // combining marks and increment the start index whenever one is found.
    for (var ii = 0; ii <= start; ii++) {
      if (COMBINING_MARKS.test(subject[ii])) {
        start += 1;
      }
    } // Similarly, increment the length of the match string if it contains a
    // combining mark.


    for (var _ii = start; _ii <= start + matchLength; _ii++) {
      if (COMBINING_MARKS.test(subject[_ii])) {
        matchLength += 1;
      }
    }
  }

  return {
    end: start + matchLength,
    start: start
  };
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = getMenuItemId;

function getMenuItemId(position) {
  return "rbt-menu-item-".concat(position);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js ***!
  \**********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

var _isPlainObject = _interopRequireDefault(__webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js"));

var _getStringLabelKey = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/**
 * Retrieves the display string from an option. Options can be the string
 * themselves, or an object with a defined display string. Anything else throws
 * an error.
 */
function getOptionLabel(option, labelKey) {
  if (option.paginationOption || option.customOption) {
    return option[(0, _getStringLabelKey["default"])(labelKey)];
  }

  var optionLabel;

  if (typeof option === 'string') {
    optionLabel = option;
  }

  if (typeof labelKey === 'function') {
    // This overwrites string options, but we assume the consumer wants to do
    // something custom if `labelKey` is a function.
    optionLabel = labelKey(option);
  } else if (typeof labelKey === 'string' && (0, _isPlainObject["default"])(option)) {
    optionLabel = option[labelKey];
  }

  !(typeof optionLabel === 'string') ?  true ? (0, _invariant["default"])(false, 'One or more options does not have a valid label string. Check the ' + '`labelKey` prop to ensure that it matches the correct option key and ' + 'provides a string for filtering and display.') : undefined : void 0;
  return optionLabel;
}

var _default = getOptionLabel;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = getStringLabelKey;

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function getStringLabelKey(labelKey) {
  return typeof labelKey === 'string' ? labelKey : _constants.DEFAULT_LABELKEY;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js ***!
  \***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

/**
 * Truncates the result set based on `maxResults` and returns the new set.
 */
function getTruncatedOptions(options, maxResults) {
  if (!maxResults || maxResults >= options.length) {
    return options;
  }

  return options.slice(0, maxResults);
}

var _default = getTruncatedOptions;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/index.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
Object.defineProperty(exports, "addCustomOption", {
  enumerable: true,
  get: function get() {
    return _addCustomOption2["default"];
  }
});
Object.defineProperty(exports, "areEqual", {
  enumerable: true,
  get: function get() {
    return _areEqual2["default"];
  }
});
Object.defineProperty(exports, "defaultFilterBy", {
  enumerable: true,
  get: function get() {
    return _defaultFilterBy2["default"];
  }
});
Object.defineProperty(exports, "getAccessibilityStatus", {
  enumerable: true,
  get: function get() {
    return _getAccessibilityStatus2["default"];
  }
});
Object.defineProperty(exports, "getDisplayName", {
  enumerable: true,
  get: function get() {
    return _getDisplayName2["default"];
  }
});
Object.defineProperty(exports, "getHintText", {
  enumerable: true,
  get: function get() {
    return _getHintText2["default"];
  }
});
Object.defineProperty(exports, "getInputText", {
  enumerable: true,
  get: function get() {
    return _getInputText2["default"];
  }
});
Object.defineProperty(exports, "getIsOnlyResult", {
  enumerable: true,
  get: function get() {
    return _getIsOnlyResult2["default"];
  }
});
Object.defineProperty(exports, "getMatchBounds", {
  enumerable: true,
  get: function get() {
    return _getMatchBounds2["default"];
  }
});
Object.defineProperty(exports, "getMenuItemId", {
  enumerable: true,
  get: function get() {
    return _getMenuItemId2["default"];
  }
});
Object.defineProperty(exports, "getOptionLabel", {
  enumerable: true,
  get: function get() {
    return _getOptionLabel2["default"];
  }
});
Object.defineProperty(exports, "getStringLabelKey", {
  enumerable: true,
  get: function get() {
    return _getStringLabelKey2["default"];
  }
});
Object.defineProperty(exports, "getTruncatedOptions", {
  enumerable: true,
  get: function get() {
    return _getTruncatedOptions2["default"];
  }
});
Object.defineProperty(exports, "isSelectable", {
  enumerable: true,
  get: function get() {
    return _isSelectable2["default"];
  }
});
Object.defineProperty(exports, "isShown", {
  enumerable: true,
  get: function get() {
    return _isShown2["default"];
  }
});
Object.defineProperty(exports, "pluralize", {
  enumerable: true,
  get: function get() {
    return _pluralize2["default"];
  }
});
Object.defineProperty(exports, "preventInputBlur", {
  enumerable: true,
  get: function get() {
    return _preventInputBlur2["default"];
  }
});
Object.defineProperty(exports, "scrollIntoViewIfNeeded", {
  enumerable: true,
  get: function get() {
    return _scrollIntoViewIfNeeded2["default"];
  }
});
Object.defineProperty(exports, "shouldSelectHint", {
  enumerable: true,
  get: function get() {
    return _shouldSelectHint2["default"];
  }
});
Object.defineProperty(exports, "stripDiacritics", {
  enumerable: true,
  get: function get() {
    return _stripDiacritics2["default"];
  }
});
Object.defineProperty(exports, "warn", {
  enumerable: true,
  get: function get() {
    return _warn2["default"];
  }
});

var _addCustomOption2 = _interopRequireDefault(__webpack_require__(/*! ./addCustomOption */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js"));

var _areEqual2 = _interopRequireDefault(__webpack_require__(/*! ./areEqual */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/areEqual.js"));

var _defaultFilterBy2 = _interopRequireDefault(__webpack_require__(/*! ./defaultFilterBy */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js"));

var _getAccessibilityStatus2 = _interopRequireDefault(__webpack_require__(/*! ./getAccessibilityStatus */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js"));

var _getDisplayName2 = _interopRequireDefault(__webpack_require__(/*! ./getDisplayName */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js"));

var _getHintText2 = _interopRequireDefault(__webpack_require__(/*! ./getHintText */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js"));

var _getInputText2 = _interopRequireDefault(__webpack_require__(/*! ./getInputText */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js"));

var _getIsOnlyResult2 = _interopRequireDefault(__webpack_require__(/*! ./getIsOnlyResult */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getIsOnlyResult.js"));

var _getMatchBounds2 = _interopRequireDefault(__webpack_require__(/*! ./getMatchBounds */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js"));

var _getMenuItemId2 = _interopRequireDefault(__webpack_require__(/*! ./getMenuItemId */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js"));

var _getOptionLabel2 = _interopRequireDefault(__webpack_require__(/*! ./getOptionLabel */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js"));

var _getStringLabelKey2 = _interopRequireDefault(__webpack_require__(/*! ./getStringLabelKey */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js"));

var _getTruncatedOptions2 = _interopRequireDefault(__webpack_require__(/*! ./getTruncatedOptions */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js"));

var _isSelectable2 = _interopRequireDefault(__webpack_require__(/*! ./isSelectable */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js"));

var _isShown2 = _interopRequireDefault(__webpack_require__(/*! ./isShown */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js"));

var _pluralize2 = _interopRequireDefault(__webpack_require__(/*! ./pluralize */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js"));

var _preventInputBlur2 = _interopRequireDefault(__webpack_require__(/*! ./preventInputBlur */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js"));

var _scrollIntoViewIfNeeded2 = _interopRequireDefault(__webpack_require__(/*! ./scrollIntoViewIfNeeded */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js"));

var _shouldSelectHint2 = _interopRequireDefault(__webpack_require__(/*! ./shouldSelectHint */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js"));

var _stripDiacritics2 = _interopRequireDefault(__webpack_require__(/*! ./stripDiacritics */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js"));

var _warn2 = _interopRequireDefault(__webpack_require__(/*! ./warn */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = isSelectable;

/**
 * Check if an input type is selectable, based on WHATWG spec.
 *
 * See:
 *  - https://stackoverflow.com/questions/21177489/selectionstart-selectionend-on-input-type-number-no-longer-allowed-in-chrome/24175357
 *  - https://html.spec.whatwg.org/multipage/input.html#do-not-apply
 */
function isSelectable(inputNode) {
  return inputNode.selectionStart != null;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isShown.js ***!
  \***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = isShown;

function isShown(results, props) {
  var emptyLabel = props.emptyLabel,
      open = props.open,
      minLength = props.minLength,
      showMenu = props.showMenu,
      text = props.text; // If menu visibility is controlled via props, that value takes precedence.

  if (open || open === false) {
    return open;
  }

  if (!showMenu) {
    return false;
  }

  if (text.length < minLength) {
    return false;
  }

  return !!(results.length || emptyLabel);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js ***!
  \*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = pluralize;

/**
 * Basic util for pluralizing words. By default, simply adds an 's' to the word.
 * Also allows for a custom plural version.
 */
function pluralize(text, count, plural) {
  var pluralText = plural || "".concat(text, "s");
  return "".concat(count, " ").concat(count === 1 ? text : pluralText);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = preventInputBlur;

/**
 * Prevent the main input from blurring when a menu item or the clear button is
 * clicked. (#226 & #310)
 */
function preventInputBlur(e) {
  e.preventDefault();
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

/**
 * Partial polyfill for webkit `scrollIntoViewIfNeeded()` method. Addresses
 * vertical scrolling only.
 *
 * Inspired by https://gist.github.com/hsablonniere/2581101, but uses
 * `getBoundingClientRect`.
 */
function scrollIntoViewIfNeeded(node) {
  // Webkit browsers
  if (Element.prototype.scrollIntoViewIfNeeded) {
    node.scrollIntoViewIfNeeded();
    return;
  } // FF, IE, etc.


  var rect = node.getBoundingClientRect();
  var parent = node.parentNode;
  var parentRect = parent.getBoundingClientRect();
  var parentComputedStyle = window.getComputedStyle(parent, null);
  var parentBorderTopWidth = parseInt(parentComputedStyle.getPropertyValue('border-top-width'), 10);

  if (rect.top < parentRect.top || rect.bottom > parentRect.bottom) {
    parent.scrollTop = node.offsetTop - parent.offsetTop - parent.clientHeight / 2 - parentBorderTopWidth + node.clientHeight / 2;
  }
}

var _default = scrollIntoViewIfNeeded;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/shouldSelectHint.js ***!
  \************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = shouldSelectHint;

var _isSelectable = _interopRequireDefault(__webpack_require__(/*! ./isSelectable */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/isSelectable.js"));

var _constants = __webpack_require__(/*! ../constants */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/constants.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function shouldSelectHint(e, props) {
  var hintText = props.hintText,
      selectHintOnEnter = props.selectHintOnEnter,
      value = props.value;

  if (!hintText) {
    return false;
  }

  if (e.keyCode === _constants.RIGHT) {
    // For selectable input types ("text", "search"), only select the hint if
    // it's at the end of the input value. For non-selectable types ("email",
    // "number"), always select the hint.
    return (0, _isSelectable["default"])(e.target) ? e.target.selectionStart === value.length : true;
  }

  if (e.keyCode === _constants.TAB) {
    return true;
  }

  if (e.keyCode === _constants.RETURN && selectHintOnEnter) {
    return true;
  }

  return false;
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = stripDiacritics;

/**
 * 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
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Taken from: http://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/18391901#18391901
 */

/* eslint-disable max-len */
var map = [{
  base: 'A',
  letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
}, {
  base: 'AA',
  letters: "\uA732"
}, {
  base: 'AE',
  letters: "\xC6\u01FC\u01E2"
}, {
  base: 'AO',
  letters: "\uA734"
}, {
  base: 'AU',
  letters: "\uA736"
}, {
  base: 'AV',
  letters: "\uA738\uA73A"
}, {
  base: 'AY',
  letters: "\uA73C"
}, {
  base: 'B',
  letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
}, {
  base: 'C',
  letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
}, {
  base: 'D',
  letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"
}, {
  base: 'DZ',
  letters: "\u01F1\u01C4"
}, {
  base: 'Dz',
  letters: "\u01F2\u01C5"
}, {
  base: 'E',
  letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
}, {
  base: 'F',
  letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
}, {
  base: 'G',
  letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
}, {
  base: 'H',
  letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
}, {
  base: 'I',
  letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
}, {
  base: 'J',
  letters: "J\u24BF\uFF2A\u0134\u0248"
}, {
  base: 'K',
  letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
}, {
  base: 'L',
  letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
}, {
  base: 'LJ',
  letters: "\u01C7"
}, {
  base: 'Lj',
  letters: "\u01C8"
}, {
  base: 'M',
  letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
}, {
  base: 'N',
  letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
}, {
  base: 'NJ',
  letters: "\u01CA"
}, {
  base: 'Nj',
  letters: "\u01CB"
}, {
  base: 'O',
  letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
}, {
  base: 'OI',
  letters: "\u01A2"
}, {
  base: 'OO',
  letters: "\uA74E"
}, {
  base: 'OU',
  letters: "\u0222"
}, {
  base: 'OE',
  letters: "\x8C\u0152"
}, {
  base: 'oe',
  letters: "\x9C\u0153"
}, {
  base: 'P',
  letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
}, {
  base: 'Q',
  letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
}, {
  base: 'R',
  letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
}, {
  base: 'S',
  letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
}, {
  base: 'T',
  letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
}, {
  base: 'TZ',
  letters: "\uA728"
}, {
  base: 'U',
  letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
}, {
  base: 'V',
  letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
}, {
  base: 'VY',
  letters: "\uA760"
}, {
  base: 'W',
  letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
}, {
  base: 'X',
  letters: "X\u24CD\uFF38\u1E8A\u1E8C"
}, {
  base: 'Y',
  letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
}, {
  base: 'Z',
  letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
}, {
  base: 'a',
  letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
}, {
  base: 'aa',
  letters: "\uA733"
}, {
  base: 'ae',
  letters: "\xE6\u01FD\u01E3"
}, {
  base: 'ao',
  letters: "\uA735"
}, {
  base: 'au',
  letters: "\uA737"
}, {
  base: 'av',
  letters: "\uA739\uA73B"
}, {
  base: 'ay',
  letters: "\uA73D"
}, {
  base: 'b',
  letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
}, {
  base: 'c',
  letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
}, {
  base: 'd',
  letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
}, {
  base: 'dz',
  letters: "\u01F3\u01C6"
}, {
  base: 'e',
  letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
}, {
  base: 'f',
  letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
}, {
  base: 'g',
  letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
}, {
  base: 'h',
  letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
}, {
  base: 'hv',
  letters: "\u0195"
}, {
  base: 'i',
  letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
}, {
  base: 'j',
  letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
}, {
  base: 'k',
  letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
}, {
  base: 'l',
  letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
}, {
  base: 'lj',
  letters: "\u01C9"
}, {
  base: 'm',
  letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
}, {
  base: 'n',
  letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
}, {
  base: 'nj',
  letters: "\u01CC"
}, {
  base: 'o',
  letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
}, {
  base: 'oi',
  letters: "\u01A3"
}, {
  base: 'ou',
  letters: "\u0223"
}, {
  base: 'oo',
  letters: "\uA74F"
}, {
  base: 'p',
  letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
}, {
  base: 'q',
  letters: "q\u24E0\uFF51\u024B\uA757\uA759"
}, {
  base: 'r',
  letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
}, {
  base: 's',
  letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
}, {
  base: 't',
  letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
}, {
  base: 'tz',
  letters: "\uA729"
}, {
  base: 'u',
  letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
}, {
  base: 'v',
  letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
}, {
  base: 'vy',
  letters: "\uA761"
}, {
  base: 'w',
  letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
}, {
  base: 'x',
  letters: "x\u24E7\uFF58\u1E8B\u1E8D"
}, {
  base: 'y',
  letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
}, {
  base: 'z',
  letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
}];
/* eslint-enable max-len */

var diacriticsMap = {};

for (var ii = 0; ii < map.length; ii++) {
  var letters = map[ii].letters;

  for (var jj = 0; jj < letters.length; jj++) {
    diacriticsMap[letters[jj]] = map[ii].base;
  }
} // "what?" version ... http://jsperf.com/diacritics/12


function stripDiacritics(str) {
  return str.replace(/[\u0300-\u036F]/g, '') // Remove combining diacritics

  /* eslint-disable-next-line no-control-regex */
  .replace(/[^\u0000-\u007E]/g, function (a) {
    return diacriticsMap[a] || a;
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/lib/utils/warn.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = warn;
exports.resetWarned = resetWarned;

var _warning = _interopRequireDefault(__webpack_require__(/*! warning */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/**
 * This code is copied from: https://github.com/ReactTraining/react-router/blob/master/modules/routerWarning.js
 */
var warned = {};

function warn(falseToWarn, message) {
  // Only issue deprecation warnings once.
  if (!falseToWarn && message.indexOf('deprecated') !== -1) {
    if (warned[message]) {
      return;
    }

    warned[message] = true;
  }

  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  _warning["default"].apply(void 0, [falseToWarn, "[react-bootstrap-typeahead] ".concat(message)].concat(args));
}

function resetWarned() {
  warned = {};
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/LegacyPortal.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/LegacyPortal.js ***!
  \******************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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._mountOverlayTarget = function () {
      if (!_this._overlayTarget) {
        _this._overlayTarget = document.createElement('div');
        _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body);
        _this._portalContainerNode.appendChild(_this._overlayTarget);
      }
    }, _this._unmountOverlayTarget = function () {
      if (_this._overlayTarget) {
        _this._portalContainerNode.removeChild(_this._overlayTarget);
        _this._overlayTarget = null;
      }
      _this._portalContainerNode = null;
    }, _this._renderOverlay = function () {
      var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children);

      // Save reference for future access.
      if (overlay !== null) {
        _this._mountOverlayTarget();

        var initialRender = !_this._overlayInstance;

        _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () {
          if (initialRender && _this.props.onRendered) {
            _this.props.onRendered();
          }
        });
      } else {
        // Unrender if the component is null for transitions to null
        _this._unrenderOverlay();
        _this._unmountOverlayTarget();
      }
    }, _this._unrenderOverlay = function () {
      if (_this._overlayTarget) {
        _reactDom2.default.unmountComponentAtNode(_this._overlayTarget);
        _this._overlayInstance = null;
      }
    }, _this.getMountNode = function () {
      return _this._overlayTarget;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    this._renderOverlay();
  };

  Portal.prototype.componentDidUpdate = function componentDidUpdate() {
    this._renderOverlay();
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (this._overlayTarget && nextProps.container !== this.props.container) {
      this._portalContainerNode.removeChild(this._overlayTarget);
      this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body);
      this._portalContainerNode.appendChild(this._overlayTarget);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._isMounted = false;
    this._unrenderOverlay();
    this._unmountOverlayTarget();
  };

  Portal.prototype.render = function render() {
    return null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = Portal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/Portal.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/Portal.js ***!
  \************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

var _LegacyPortal = __webpack_require__(/*! ./LegacyPortal */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/LegacyPortal.js");

var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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.setContainer = function () {
      var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props;

      _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body);
    }, _this.getMountNode = function () {
      return _this._portalContainerNode;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this.setContainer();
    this.forceUpdate(this.props.onRendered);
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (nextProps.container !== this.props.container) {
      this.setContainer(nextProps);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._portalContainerNode = null;
  };

  Portal.prototype.render = function render() {
    return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/RootCloseWrapper.js":
/*!**********************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/RootCloseWrapper.js ***!
  \**********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _contains = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");

var _contains2 = _interopRequireDefault(_contains);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _addEventListener = __webpack_require__(/*! ./utils/addEventListener */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/addEventListener.js");

var _addEventListener2 = _interopRequireDefault(_addEventListener);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 escapeKeyCode = 27;

function isLeftClickEvent(event) {
  return event.button === 0;
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

/**
 * The `<RootCloseWrapper/>` component registers your callback on the document
 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
 * style behavior where your callback is triggered when the user tries to
 * interact with the rest of the document or hits the `esc` key.
 */

var RootCloseWrapper = function (_React$Component) {
  _inherits(RootCloseWrapper, _React$Component);

  function RootCloseWrapper(props, context) {
    _classCallCheck(this, RootCloseWrapper);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.addEventListeners = function () {
      var event = _this.props.event;

      var doc = (0, _ownerDocument2.default)(_this);

      // Use capture for this listener so it fires before React's listener, to
      // avoid false positives in the contains() check below if the target DOM
      // element is removed in the React mouse callback.
      _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true);

      _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse);

      _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp);
    };

    _this.removeEventListeners = function () {
      if (_this.documentMouseCaptureListener) {
        _this.documentMouseCaptureListener.remove();
      }

      if (_this.documentMouseListener) {
        _this.documentMouseListener.remove();
      }

      if (_this.documentKeyupListener) {
        _this.documentKeyupListener.remove();
      }
    };

    _this.handleMouseCapture = function (e) {
      _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target);
    };

    _this.handleMouse = function (e) {
      if (!_this.preventMouseRootClose && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.handleKeyUp = function (e) {
      if (e.keyCode === escapeKeyCode && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.preventMouseRootClose = false;
    return _this;
  }

  RootCloseWrapper.prototype.componentDidMount = function componentDidMount() {
    if (!this.props.disabled) {
      this.addEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (!this.props.disabled && prevProps.disabled) {
      this.addEventListeners();
    } else if (this.props.disabled && !prevProps.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() {
    if (!this.props.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.render = function render() {
    return this.props.children;
  };

  return RootCloseWrapper;
}(_react2.default.Component);

RootCloseWrapper.displayName = 'RootCloseWrapper';

RootCloseWrapper.propTypes = {
  /**
   * Callback fired after click or mousedown. Also triggers when user hits `esc`.
   */
  onRootClose: _propTypes2.default.func,
  /**
   * Children to render.
   */
  children: _propTypes2.default.element,
  /**
   * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`.
   */
  disabled: _propTypes2.default.bool,
  /**
   * Choose which document mouse event to bind to.
   */
  event: _propTypes2.default.oneOf(['click', 'mousedown'])
};

RootCloseWrapper.defaultProps = {
  event: 'click'
};

exports.default = RootCloseWrapper;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/addEventListener.js":
/*!****************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/addEventListener.js ***!
  \****************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (node, event, handler, capture) {
  (0, _on2.default)(node, event, handler, capture);

  return {
    remove: function remove() {
      (0, _off2.default)(node, event, handler, capture);
    }
  };
};

var _on = __webpack_require__(/*! dom-helpers/events/on */ "./node_modules/dom-helpers/events/on.js");

var _on2 = _interopRequireDefault(_on);

var _off = __webpack_require__(/*! dom-helpers/events/off */ "./node_modules/dom-helpers/events/off.js");

var _off2 = _interopRequireDefault(_off);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/getContainer.js":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/getContainer.js ***!
  \************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getContainer;

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainer(container, defaultContainer) {
  container = typeof container === 'function' ? container() : container;
  return _reactDom2.default.findDOMNode(container) || defaultContainer;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/ownerDocument.js":
/*!*************************************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/react-overlays/lib/utils/ownerDocument.js ***!
  \*************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (componentOrElement) {
  return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
};

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js ***!
  \**************************************************************************************************************/
/*! no static exports found */
/***/ (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__ = "development" !== 'production';

var warning = function() {};

if (__DEV__) {
  var printWarning = function printWarning(format, args) {
    var len = arguments.length;
    args = new Array(len > 1 ? len - 1 : 0);
    for (var 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(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;


/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Badge.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Badge.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");






 // TODO: `pullRight` doesn't belong here. There's no special handling here.

var propTypes = {
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  pullRight: false
};

var Badge =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Badge, _React$Component);

  function Badge() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Badge.prototype;

  _proto.hasContent = function hasContent(children) {
    var result = false;
    react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.forEach(children, function (child) {
      if (result) {
        return;
      }

      if (child || child === 0) {
        result = true;
      }
    });
    return result;
  };

  _proto.render = function render() {
    var _this$props = this.props,
        pullRight = _this$props.pullRight,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["pullRight", "className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      'pull-right': pullRight,
      // Hack for collapsing on IE8.
      hidden: !this.hasContent(children)
    });

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), children);
  };

  return Badge;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Badge.propTypes = propTypes;
Badge.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('badge', Badge));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Breadcrumb.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Breadcrumb.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/BreadcrumbItem.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var Breadcrumb =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Breadcrumb, _React$Component);

  function Breadcrumb() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Breadcrumb.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("ol", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "navigation",
      "aria-label": "breadcrumbs",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Breadcrumb;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Breadcrumb.Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('breadcrumb', Breadcrumb));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/BreadcrumbItem.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/BreadcrumbItem.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js");







var propTypes = {
  /**
   * If set to true, renders `span` instead of `a`
   */
  active: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * `href` attribute for the inner `a` element
   */
  href: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * `title` attribute for the inner `a` element
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node,

  /**
   * `target` attribute for the inner `a` element
   */
  target: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
};
var defaultProps = {
  active: false
};

var BreadcrumbItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(BreadcrumbItem, _React$Component);

  function BreadcrumbItem() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = BreadcrumbItem.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        href = _this$props.href,
        title = _this$props.title,
        target = _this$props.target,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "href", "title", "target", "className"]); // Don't try to render these props on non-active <span>.


    var linkProps = {
      href: href,
      title: title,
      target: target
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("li", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, {
        active: active
      })
    }, active ? react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", props) : react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, linkProps)));
  };

  return BreadcrumbItem;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

BreadcrumbItem.propTypes = propTypes;
BreadcrumbItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbItem);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js");











var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  block: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Defines HTML button type attribute
   * @defaultValue 'button'
   */
  type: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf(['button', 'reset', 'submit'])
};
var defaultProps = {
  active: false,
  block: false,
  disabled: false
};

var Button =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Button, _React$Component);

  function Button() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Button.prototype;

  _proto.renderAnchor = function renderAnchor(elementProps, className) {
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, elementProps.disabled && 'disabled')
    }));
  };

  _proto.renderButton = function renderButton(_ref, className) {
    var componentClass = _ref.componentClass,
        elementProps = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["componentClass"]);

    var Component = componentClass || 'button';
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, elementProps, {
      type: elementProps.type || 'button',
      className: className
    }));
  };

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        active = _this$props.active,
        block = _this$props.block,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "block", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["getClassSet"])(bsProps), (_extends2 = {
      active: active
    }, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'block')] = block, _extends2));

    var fullClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes);

    if (elementProps.href) {
      return this.renderAnchor(elementProps, fullClassName);
    }

    return this.renderButton(elementProps, fullClassName);
  };

  return Button;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Button.propTypes = propTypes;
Button.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('btn', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].SMALL, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Size"].XSMALL], Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["State"]).concat([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].PRIMARY, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].LINK]), _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["Style"].DEFAULT, Button))));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ButtonGroup.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ButtonGroup.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Button */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  vertical: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  justified: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Display block buttons; only useful when used with the "vertical" prop.
   * @type {bool}
   */
  block: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, function (_ref) {
    var block = _ref.block,
        vertical = _ref.vertical;
    return block && !vertical ? new Error('`block` requires `vertical` to be set to have any effect') : null;
  })
};
var defaultProps = {
  block: false,
  justified: false,
  vertical: false
};

var ButtonGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ButtonGroup, _React$Component);

  function ButtonGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ButtonGroup.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        block = _this$props.block,
        justified = _this$props.justified,
        vertical = _this$props.vertical,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["block", "justified", "vertical", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps)] = !vertical, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'vertical')] = vertical, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'justified')] = justified, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(_Button__WEBPACK_IMPORTED_MODULE_7__["default"].defaultProps, 'block')] = block, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ButtonGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ButtonGroup.propTypes = propTypes;
ButtonGroup.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('btn-group', ButtonGroup));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Checkbox.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Checkbox.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");




/* eslint-disable jsx-a11y/label-has-for */





var propTypes = {
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Only valid if `inline` is not set.
   */
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null]),

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <Checkbox inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  inline: false,
  disabled: false,
  title: ''
};

var Checkbox =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Checkbox, _React$Component);

  function Checkbox() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Checkbox.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        inline = _this$props.inline,
        disabled = _this$props.disabled,
        validationState = _this$props.validationState,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        style = _this$props.style,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var input = react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      ref: inputRef,
      type: "checkbox",
      disabled: disabled
    }));

    if (inline) {
      var _classes2;

      var _classes = (_classes2 = {}, _classes2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking
      // generated documentation.


       true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(!validationState, '`validationState` is ignored on `<Checkbox inline>`. To display ' + 'validation state on an inline checkbox, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : undefined;
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, _classes),
        style: style,
        title: title
      }, input, children);
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      disabled: disabled
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
      title: title
    }, input, children));
  };

  return Checkbox;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Checkbox.propTypes = propTypes;
Checkbox.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('checkbox', Checkbox));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Clearfix.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Clearfix.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/capitalize */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/capitalize.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");










var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * Apply clearfix
   *
   * on Extra small devices Phones
   *
   * adds class `visible-xs-block`
   */
  visibleXsBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Small devices Tablets
   *
   * adds class `visible-sm-block`
   */
  visibleSmBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Medium devices Desktops
   *
   * adds class `visible-md-block`
   */
  visibleMdBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Apply clearfix
   *
   * on Large devices Desktops
   *
   * adds class `visible-lg-block`
   */
  visibleLgBlock: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  componentClass: 'div'
};

var Clearfix =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Clearfix, _React$Component);

  function Clearfix() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Clearfix.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_9__["DEVICE_SIZES"].forEach(function (size) {
      var propName = "visible" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__["default"])(size) + "Block";

      if (elementProps[propName]) {
        classes["visible-" + size + "-block"] = true;
      }

      delete elementProps[propName];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Clearfix;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Clearfix.propTypes = propTypes;
Clearfix.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('clearfix', Clearfix));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/CloseButton.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/CloseButton.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);



var propTypes = {
  label: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
var defaultProps = {
  label: 'Close'
};

var CloseButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(CloseButton, _React$Component);

  function CloseButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = CloseButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        label = _this$props.label,
        onClick = _this$props.onClick;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("button", {
      type: "button",
      className: "close",
      onClick: onClick
    }, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
      "aria-hidden": "true"
    }, "\xD7"), react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
      className: "sr-only"
    }, label));
  };

  return CloseButton;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

CloseButton.propTypes = propTypes;
CloseButton.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (CloseButton);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Col.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Col.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");









var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * The number of columns you wish to span
   *
   * for Extra small devices Phones (<768px)
   *
   * class-prefix `col-xs-`
   */
  xs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Small devices Tablets (≥768px)
   *
   * class-prefix `col-sm-`
   */
  sm: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Medium devices Desktops (≥992px)
   *
   * class-prefix `col-md-`
   */
  md: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * The number of columns you wish to span
   *
   * for Large devices Desktops (≥1200px)
   *
   * class-prefix `col-lg-`
   */
  lg: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Hide column
   *
   * on Extra small devices Phones
   *
   * adds class `hidden-xs`
   */
  xsHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Small devices Tablets
   *
   * adds class `hidden-sm`
   */
  smHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Medium devices Desktops
   *
   * adds class `hidden-md`
   */
  mdHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Hide column
   *
   * on Large devices Desktops
   *
   * adds class `hidden-lg`
   */
  lgHidden: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Move columns to the right
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-offset-`
   */
  xsOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-offset-`
   */
  smOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-offset-`
   */
  mdOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Move columns to the right
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-offset-`
   */
  lgOffset: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-push-`
   */
  xsPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-push-`
   */
  smPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-push-`
   */
  mdPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the right
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-push-`
   */
  lgPush: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Extra small devices Phones
   *
   * class-prefix `col-xs-pull-`
   */
  xsPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Small devices Tablets
   *
   * class-prefix `col-sm-pull-`
   */
  smPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Medium devices Desktops
   *
   * class-prefix `col-md-pull-`
   */
  mdPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Change the order of grid columns to the left
   *
   * for Large devices Desktops
   *
   * class-prefix `col-lg-pull-`
   */
  lgPull: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number
};
var defaultProps = {
  componentClass: 'div'
};

var Col =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Col, _React$Component);

  function Col() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Col.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = [];
    _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["DEVICE_SIZES"].forEach(function (size) {
      function popProp(propSuffix, modifier) {
        var propName = "" + size + propSuffix;
        var propValue = elementProps[propName];

        if (propValue != null) {
          classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, "" + size + modifier + "-" + propValue));
        }

        delete elementProps[propName];
      }

      popProp('', '');
      popProp('Offset', '-offset');
      popProp('Push', '-push');
      popProp('Pull', '-pull');
      var hiddenPropName = size + "Hidden";

      if (elementProps[hiddenPropName]) {
        classes.push("hidden-" + size);
      }

      delete elementProps[hiddenPropName];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Col;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Col.propTypes = propTypes;
Col.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('col', Col));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Collapse.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Collapse.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/parse-int */ "./node_modules/@babel/runtime-corejs2/core-js/parse-int.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/style */ "./node_modules/dom-helpers/style/index.js");
/* harmony import */ var dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-transition-group/Transition.js");
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/capitalize */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/capitalize.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");





var _collapseStyles;








var MARGINS = {
  height: ['marginTop', 'marginBottom'],
  width: ['marginLeft', 'marginRight']
}; // reading a dimension prop will cause the browser to recalculate,
// which will let our animations work

function triggerBrowserReflow(node) {
  node.offsetHeight; // eslint-disable-line no-unused-expressions
}

function getDimensionValue(dimension, elem) {
  var value = elem["offset" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(dimension)];
  var margins = MARGINS[dimension];
  return value + _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default()(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default()(elem, margins[0]), 10) + _babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_3___default()(dom_helpers_style__WEBPACK_IMPORTED_MODULE_5___default()(elem, margins[1]), 10);
}

var collapseStyles = (_collapseStyles = {}, _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["EXITED"]] = 'collapse', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["EXITING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["ENTERING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8__["ENTERED"]] = 'collapse in', _collapseStyles);
var propTypes = {
  /**
   * Show the component; triggers the expand or collapse animation
   */
  in: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Wait until the first "enter" transition to mount the component (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Unmount the component (remove it from the DOM) when it is collapsed
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Run the expand animation when the component mounts, if it is initially
   * shown
   */
  appear: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * Duration of the collapse animation in milliseconds, to ensure that
   * finishing callbacks are fired even if the original browser transition end
   * events are canceled
   */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * Callback fired before the component expands
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component starts to expand
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component has expanded
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired before the component collapses
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component starts to collapse
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * Callback fired after the component has collapsed
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * The dimension used when collapsing, or a function that returns the
   * dimension
   *
   * _Note: Bootstrap only partially supports 'width'!
   * You will need to supply your own CSS animation for the `.width` CSS class._
   */
  dimension: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf(['height', 'width']), prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func]),

  /**
   * Function that returns the height or width of the animating DOM node
   *
   * Allows for providing some custom logic for how much the Collapse component
   * should animate in its specified dimension. Called with the current
   * dimension prop value and the DOM node.
   */
  getDimensionValue: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * ARIA role of collapsible element
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string
};
var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  dimension: 'height',
  getDimensionValue: getDimensionValue
};

var Collapse =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Collapse, _React$Component);

  function Collapse() {
    var _this;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;

    _this.handleEnter = function (elem) {
      elem.style[_this.getDimension()] = '0';
    };

    _this.handleEntering = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension);
    };

    _this.handleEntered = function (elem) {
      elem.style[_this.getDimension()] = null;
    };

    _this.handleExit = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px";
      triggerBrowserReflow(elem);
    };

    _this.handleExiting = function (elem) {
      elem.style[_this.getDimension()] = '0';
    };

    return _this;
  }

  var _proto = Collapse.prototype;

  _proto.getDimension = function getDimension() {
    return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;
  }; // for testing


  _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
    return elem["scroll" + Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_9__["default"])(dimension)] + "px";
  };
  /* -- Expanding -- */


  _proto.render = function render() {
    var _this2 = this;

    var _this$props = this.props,
        onEnter = _this$props.onEnter,
        onEntering = _this$props.onEntering,
        onEntered = _this$props.onEntered,
        onExit = _this$props.onExit,
        onExiting = _this$props.onExiting,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]);

    delete props.dimension;
    delete props.getDimensionValue;
    var handleEnter = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEnter, onEnter);
    var handleEntering = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEntering, onEntering);
    var handleEntered = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEntered, onEntered);
    var handleExit = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExit, onExit);
    var handleExiting = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExiting, onExiting);
    return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_8___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      "aria-expanded": props.role ? props.in : null,
      onEnter: handleEnter,
      onEntering: handleEntering,
      onEntered: handleEntered,
      onExit: handleExit,
      onExiting: handleExiting
    }), function (state, innerProps) {
      return react__WEBPACK_IMPORTED_MODULE_6___default.a.cloneElement(children, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width')
      }));
    });
  };

  return Collapse;
}(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component);

Collapse.propTypes = propTypes;
Collapse.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Collapse);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ControlLabel.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ControlLabel.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * Uses `controlId` from `<FormGroup>` if not explicitly specified.
   */
  htmlFor: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  srOnly: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool
};
var defaultProps = {
  srOnly: false
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var ControlLabel =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ControlLabel, _React$Component);

  function ControlLabel() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ControlLabel.prototype;

  _proto.render = function render() {
    var formGroup = this.context.$bs_formGroup;
    var controlId = formGroup && formGroup.controlId;

    var _this$props = this.props,
        _this$props$htmlFor = _this$props.htmlFor,
        htmlFor = _this$props$htmlFor === void 0 ? controlId : _this$props$htmlFor,
        srOnly = _this$props.srOnly,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["htmlFor", "srOnly", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

     true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(controlId == null || htmlFor === controlId, '`controlId` is ignored on `<ControlLabel>` when `htmlFor` is specified.') : undefined;

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      'sr-only': srOnly
    });

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      htmlFor: htmlFor,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ControlLabel;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ControlLabel.propTypes = propTypes;
ControlLabel.defaultProps = defaultProps;
ControlLabel.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('control-label', ControlLabel));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/activeElement */ "./node_modules/dom-helpers/activeElement.js");
/* harmony import */ var dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ButtonGroup.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownMenu.js");
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownToggle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils/PropTypes */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/PropTypes.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");























var TOGGLE_ROLE = _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__["default"].defaultProps.bsRole;
var MENU_ROLE = _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__["default"].defaultProps.bsRole;
var propTypes = {
  /**
   * The menu will open above the dropdown button, instead of below it.
   */
  dropup: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * An html id attribute, necessary for assistive technologies, such as screen readers.
   * @type {string|number}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_13___default()(prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.number])),
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_12___default.a,

  /**
   * The children of a Dropdown may be a `<Dropdown.Toggle>` or a `<Dropdown.Menu>`.
   * @type {node}
   */
  children: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_11___default()(Object(_utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__["requiredRoles"])(TOGGLE_ROLE, MENU_ROLE), Object(_utils_PropTypes__WEBPACK_IMPORTED_MODULE_21__["exclusiveRoles"])(MENU_ROLE)),

  /**
   * Whether or not component is disabled.
   */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * Align the menu to the right side of the Dropdown toggle
   */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * Whether or not the Dropdown is visible.
   *
   * @controllable onToggle
   */
  open: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  defaultOpen: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,

  /**
   * A callback fired when the Dropdown wishes to change visibility. Called with the requested
   * `open` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
   *
   * ```js
   * function(Boolean isOpen, Object event, { String source }) {}
   * ```
   * @controllable open
   */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * A callback fired when a menu item is selected.
   *
   * ```js
   * (eventKey: any, event: Object) => any
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * If `'menuitem'`, causes the dropdown to behave like a menu item rather than
   * a menu button.
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,

  /**
   * Which event when fired outside the component will cause it to be closed
   *
   * *Note: For custom dropdown components, you will have to pass the
   * `rootCloseEvent` to `<RootCloseWrapper>` in your custom dropdown menu
   * component ([similarly to how it is implemented in `<Dropdown.Menu>`](https://github.com/react-bootstrap/react-bootstrap/blob/v0.31.5/src/DropdownMenu.js#L115-L119)).*
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.oneOf(['click', 'mousedown']),

  /**
   * @private
   */
  onMouseEnter: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,

  /**
   * @private
   */
  onMouseLeave: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func
};
var defaultProps = {
  componentClass: _ButtonGroup__WEBPACK_IMPORTED_MODULE_16__["default"]
};

var Dropdown =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Dropdown, _React$Component);

  function Dropdown(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleClose = _this.handleClose.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this._focusInDropdown = false;
    _this.lastOpenEventType = null;
    return _this;
  }

  var _proto = Dropdown.prototype;

  _proto.componentDidMount = function componentDidMount() {
    this.focusNextOnOpen();
  };

  _proto.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) {
    // eslint-disable-line
    if (!nextProps.open && this.props.open) {
      this._focusInDropdown = dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_6___default()(react_dom__WEBPACK_IMPORTED_MODULE_10___default.a.findDOMNode(this.menu), dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_5___default()(document));
    }
  };

  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
    var open = this.props.open;
    var prevOpen = prevProps.open;

    if (open && !prevOpen) {
      this.focusNextOnOpen();
    }

    if (!open && prevOpen) {
      // if focus hasn't already moved from the menu let's return it
      // to the toggle
      if (this._focusInDropdown) {
        this._focusInDropdown = false;
        this.focus();
      }
    }
  };

  _proto.focus = function focus() {
    var toggle = react_dom__WEBPACK_IMPORTED_MODULE_10___default.a.findDOMNode(this.toggle);

    if (toggle && toggle.focus) {
      toggle.focus();
    }
  };

  _proto.focusNextOnOpen = function focusNextOnOpen() {
    var menu = this.menu;

    if (!menu || !menu.focusNext) {
      return;
    }

    if (this.lastOpenEventType === 'keydown' || this.props.role === 'menuitem') {
      menu.focusNext();
    }
  };

  _proto.handleClick = function handleClick(event) {
    if (this.props.disabled) {
      return;
    }

    this.toggleOpen(event, {
      source: 'click'
    });
  };

  _proto.handleClose = function handleClose(event, eventDetails) {
    if (!this.props.open) {
      return;
    }

    this.toggleOpen(event, eventDetails);
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    if (this.props.disabled) {
      return;
    }

    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.down:
        if (!this.props.open) {
          this.toggleOpen(event, {
            source: 'keydown'
          });
        } else if (this.menu.focusNext) {
          this.menu.focusNext();
        }

        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.esc:
      case keycode__WEBPACK_IMPORTED_MODULE_7___default.a.codes.tab:
        this.handleClose(event, {
          source: 'keydown'
        });
        break;

      default:
    }
  };

  _proto.toggleOpen = function toggleOpen(event, eventDetails) {
    var open = !this.props.open;

    if (open) {
      this.lastOpenEventType = eventDetails.source;
    }

    if (this.props.onToggle) {
      this.props.onToggle(open, event, eventDetails);
    }
  };

  _proto.renderMenu = function renderMenu(child, _ref) {
    var _this2 = this;

    var id = _ref.id,
        onSelect = _ref.onSelect,
        rootCloseEvent = _ref.rootCloseEvent,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "onSelect", "rootCloseEvent"]);

    var ref = function ref(c) {
      _this2.menu = c;
    };

    if (typeof child.ref === 'string') {
       true ? warning__WEBPACK_IMPORTED_MODULE_15___default()(false, 'String refs are not supported on `<Dropdown.Menu>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
    } else {
      ref = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.ref, ref);
    }

    return Object(react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      ref: ref,
      labelledBy: id,
      bsClass: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["prefix"])(props, 'menu'),
      onClose: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onClose, this.handleClose),
      onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onSelect, onSelect, function (key, event) {
        return _this2.handleClose(event, {
          source: 'select'
        });
      }),
      rootCloseEvent: rootCloseEvent
    }));
  };

  _proto.renderToggle = function renderToggle(child, props) {
    var _this3 = this;

    var ref = function ref(c) {
      _this3.toggle = c;
    };

    if (typeof child.ref === 'string') {
       true ? warning__WEBPACK_IMPORTED_MODULE_15___default()(false, 'String refs are not supported on `<Dropdown.Toggle>` components. ' + 'To apply a ref to the component use the callback signature:\n\n ' + 'https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute') : undefined;
    } else {
      ref = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.ref, ref);
    }

    return Object(react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      ref: ref,
      bsClass: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["prefix"])(props, 'toggle'),
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onClick, this.handleClick),
      onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_20__["default"])(child.props.onKeyDown, this.handleKeyDown)
    }));
  };

  _proto.render = function render() {
    var _classes,
        _this4 = this;

    var _this$props = this.props,
        Component = _this$props.componentClass,
        id = _this$props.id,
        dropup = _this$props.dropup,
        disabled = _this$props.disabled,
        pullRight = _this$props.pullRight,
        open = _this$props.open,
        onSelect = _this$props.onSelect,
        role = _this$props.role,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        rootCloseEvent = _this$props.rootCloseEvent,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "id", "dropup", "disabled", "pullRight", "open", "onSelect", "role", "bsClass", "className", "rootCloseEvent", "children"]);

    delete props.onToggle;
    var classes = (_classes = {}, _classes[bsClass] = true, _classes.open = open, _classes.disabled = disabled, _classes);

    if (dropup) {
      classes[bsClass] = false;
      classes.dropup = true;
    } // This intentionally forwards bsSize and bsStyle (if set) to the
    // underlying component, to allow it to render size and style variants.


    return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_22__["default"].map(children, function (child) {
      switch (child.props.bsRole) {
        case TOGGLE_ROLE:
          return _this4.renderToggle(child, {
            id: id,
            disabled: disabled,
            open: open,
            role: role,
            bsClass: bsClass
          });

        case MENU_ROLE:
          return _this4.renderMenu(child, {
            id: id,
            open: open,
            pullRight: pullRight,
            bsClass: bsClass,
            onSelect: onSelect,
            rootCloseEvent: rootCloseEvent
          });

        default:
          return child;
      }
    }));
  };

  return Dropdown;
}(react__WEBPACK_IMPORTED_MODULE_8___default.a.Component);

Dropdown.propTypes = propTypes;
Dropdown.defaultProps = defaultProps;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_19__["bsClass"])('dropdown', Dropdown);
var UncontrolledDropdown = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_14__["uncontrollable"])(Dropdown, {
  open: 'onToggle'
});
UncontrolledDropdown.Toggle = _DropdownToggle__WEBPACK_IMPORTED_MODULE_18__["default"];
UncontrolledDropdown.Menu = _DropdownMenu__WEBPACK_IMPORTED_MODULE_17__["default"];
/* harmony default export */ __webpack_exports__["default"] = (UncontrolledDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownButton.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownButton.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js");








var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes, {
  // Toggle props.
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node.isRequired,
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node
});

var DropdownButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(DropdownButton, _React$Component);

  function DropdownButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = DropdownButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        bsSize = _this$props.bsSize,
        bsStyle = _this$props.bsStyle,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["bsSize", "bsStyle", "title", "children"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_6__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        toggleProps = _splitComponentProps[1];

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].Toggle, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, toggleProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), title), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].Menu, null, children));
  };

  return DropdownButton;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

DropdownButton.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (DropdownButton);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownMenu.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownMenu.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/from */ "./node_modules/@babel/runtime-corejs2/core-js/array/from.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-overlays/lib/RootCloseWrapper */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/RootCloseWrapper.js");
/* harmony import */ var react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");














var propTypes = {
  open: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.bool,
  onClose: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func,
  labelledBy: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.number]),
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.func,
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.oneOf(['click', 'mousedown'])
};
var defaultProps = {
  bsRole: 'menu',
  pullRight: false
};

var DropdownMenu =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(DropdownMenu, _React$Component);

  function DropdownMenu(props) {
    var _this;

    _this = _React$Component.call(this, props) || this;
    _this.handleRootClose = _this.handleRootClose.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this)));
    return _this;
  }

  var _proto = DropdownMenu.prototype;

  _proto.getFocusableMenuItems = function getFocusableMenuItems() {
    var node = react_dom__WEBPACK_IMPORTED_MODULE_9___default.a.findDOMNode(this);

    if (!node) {
      return [];
    }

    return _babel_runtime_corejs2_core_js_array_from__WEBPACK_IMPORTED_MODULE_2___default()(node.querySelectorAll('[tabIndex="-1"]'));
  };

  _proto.getItemsAndActiveIndex = function getItemsAndActiveIndex() {
    var items = this.getFocusableMenuItems();
    var activeIndex = items.indexOf(document.activeElement);
    return {
      items: items,
      activeIndex: activeIndex
    };
  };

  _proto.focusNext = function focusNext() {
    var _this$getItemsAndActi = this.getItemsAndActiveIndex(),
        items = _this$getItemsAndActi.items,
        activeIndex = _this$getItemsAndActi.activeIndex;

    if (items.length === 0) {
      return;
    }

    var nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1;
    items[nextIndex].focus();
  };

  _proto.focusPrevious = function focusPrevious() {
    var _this$getItemsAndActi2 = this.getItemsAndActiveIndex(),
        items = _this$getItemsAndActi2.items,
        activeIndex = _this$getItemsAndActi2.activeIndex;

    if (items.length === 0) {
      return;
    }

    var prevIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1;
    items[prevIndex].focus();
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.down:
        this.focusNext();
        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.up:
        this.focusPrevious();
        event.preventDefault();
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.esc:
      case keycode__WEBPACK_IMPORTED_MODULE_6___default.a.codes.tab:
        this.props.onClose(event, {
          source: 'keydown'
        });
        break;

      default:
    }
  };

  _proto.handleRootClose = function handleRootClose(event) {
    this.props.onClose(event, {
      source: 'rootClose'
    });
  };

  _proto.render = function render() {
    var _extends2,
        _this2 = this;

    var _this$props = this.props,
        open = _this$props.open,
        pullRight = _this$props.pullRight,
        labelledBy = _this$props.labelledBy,
        onSelect = _this$props.onSelect,
        className = _this$props.className,
        rootCloseEvent = _this$props.rootCloseEvent,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["open", "pullRight", "labelledBy", "onSelect", "className", "rootCloseEvent", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["splitBsPropsAndOmit"])(props, ['onClose']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["prefix"])(bsProps, 'right')] = pullRight, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_overlays_lib_RootCloseWrapper__WEBPACK_IMPORTED_MODULE_10___default.a, {
      disabled: !open,
      onRootClose: this.handleRootClose,
      event: rootCloseEvent
    }, react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("ul", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "menu",
      className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, classes),
      "aria-labelledby": labelledBy
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].map(children, function (child) {
      return react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(child, {
        onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(child.props.onKeyDown, _this2.handleKeyDown),
        onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_12__["default"])(child.props.onSelect, onSelect)
      });
    })));
  };

  return DropdownMenu;
}(react__WEBPACK_IMPORTED_MODULE_7___default.a.Component);

DropdownMenu.propTypes = propTypes;
DropdownMenu.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_11__["bsClass"])('dropdown-menu', DropdownMenu));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownToggle.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownToggle.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Button */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  open: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  useAnchor: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
};
var defaultProps = {
  open: false,
  useAnchor: false,
  bsRole: 'toggle'
};

var DropdownToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(DropdownToggle, _React$Component);

  function DropdownToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = DropdownToggle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        noCaret = _this$props.noCaret,
        open = _this$props.open,
        useAnchor = _this$props.useAnchor,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["noCaret", "open", "useAnchor", "bsClass", "className", "children"]);

    delete props.bsRole;
    var Component = useAnchor ? _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__["default"] : _Button__WEBPACK_IMPORTED_MODULE_6__["default"];
    var useCaret = !noCaret; // This intentionally forwards bsSize and bsStyle (if set) to the
    // underlying component, to allow it to render size and style variants.
    // FIXME: Should this really fall back to `title` as children?

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      role: "button",
      className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, bsClass),
      "aria-haspopup": true,
      "aria-expanded": open
    }), children || props.title, useCaret && ' ', useCaret && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
      className: "caret"
    }));
  };

  return DropdownToggle;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

DropdownToggle.propTypes = propTypes;
DropdownToggle.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('dropdown-toggle', DropdownToggle));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-transition-group/Transition.js");
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__);




var _fadeStyles;





var propTypes = {
  /**
   * Show the component; triggers the fade in or fade out animation
   */
  in: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Wait until the first "enter" transition to mount the component (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Unmount the component (remove it from the DOM) when it is faded out
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Run the fade in animation when the component mounts, if it is initially
   * shown
   */
  appear: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Duration of the fade animation in milliseconds, to ensure that finishing
   * callbacks are fired even if the original browser transition end events are
   * canceled
   */
  timeout: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number,

  /**
   * Callback fired before the component fades in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component starts to fade in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the has component faded in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired before the component fades out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component starts to fade out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the component has faded out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false
};
var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__["ENTERING"]] = 'in', _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6__["ENTERED"]] = 'in', _fadeStyles);

var Fade =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Fade, _React$Component);

  function Fade() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Fade.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className", "children"]);

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_6___default.a, props, function (status, innerProps) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(children, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()('fade', className, children.props.className, fadeStyles[status])
      }));
    });
  };

  return Fade;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Fade.propTypes = propTypes;
Fade.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Fade);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Form.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Form.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  horizontal: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  horizontal: false,
  inline: false,
  componentClass: 'form'
};

var Form =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Form, _React$Component);

  function Form() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Form.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        horizontal = _this$props.horizontal,
        inline = _this$props.inline,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["horizontal", "inline", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = [];

    if (horizontal) {
      classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'horizontal'));
    }

    if (inline) {
      classes.push(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline'));
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Form;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Form.propTypes = propTypes;
Form.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('form', Form));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControl.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControl.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _FormControlFeedback__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FormControlFeedback */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlFeedback.js");
/* harmony import */ var _FormControlStatic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FormControlStatic */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlStatic.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");












var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a,

  /**
   * Only relevant if `componentClass` is `'input'`.
   */
  type: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Uses `controlId` from `<FormGroup>` if not explicitly specified.
   */
  id: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <FormControl inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  componentClass: 'input'
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var FormControl =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControl, _React$Component);

  function FormControl() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControl.prototype;

  _proto.render = function render() {
    var formGroup = this.context.$bs_formGroup;
    var controlId = formGroup && formGroup.controlId;

    var _this$props = this.props,
        Component = _this$props.componentClass,
        type = _this$props.type,
        _this$props$id = _this$props.id,
        id = _this$props$id === void 0 ? controlId : _this$props$id,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        bsSize = _this$props.bsSize,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "type", "id", "inputRef", "className", "bsSize"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

     true ? warning__WEBPACK_IMPORTED_MODULE_7___default()(controlId == null || id === controlId, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : undefined; // input[type="file"] should not have .form-control.

    var classes;

    if (type !== 'file') {
      classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["getClassSet"])(bsProps);
    } // If user provides a size, make sure to append it to classes as input-
    // e.g. if bsSize is small, it will append input-sm


    if (bsSize) {
      var size = _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["SIZE_MAP"][bsSize] || bsSize;
      classes[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])({
        bsClass: 'input'
      }, size)] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      type: type,
      id: id,
      ref: inputRef,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return FormControl;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControl.propTypes = propTypes;
FormControl.defaultProps = defaultProps;
FormControl.contextTypes = contextTypes;
FormControl.Feedback = _FormControlFeedback__WEBPACK_IMPORTED_MODULE_8__["default"];
FormControl.Static = _FormControlStatic__WEBPACK_IMPORTED_MODULE_9__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsClass"])('form-control', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["Size"].SMALL, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_11__["Size"].LARGE], FormControl)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlFeedback.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlFeedback.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Glyphicon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Glyphicon */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Glyphicon.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var defaultProps = {
  bsRole: 'feedback'
};
var contextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};

var FormControlFeedback =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControlFeedback, _React$Component);

  function FormControlFeedback() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControlFeedback.prototype;

  _proto.getGlyph = function getGlyph(validationState) {
    switch (validationState) {
      case 'success':
        return 'ok';

      case 'warning':
        return 'warning-sign';

      case 'error':
        return 'remove';

      default:
        return null;
    }
  };

  _proto.renderDefaultFeedback = function renderDefaultFeedback(formGroup, className, classes, elementProps) {
    var glyph = this.getGlyph(formGroup && formGroup.validationState);

    if (!glyph) {
      return null;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Glyphicon__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      glyph: glyph,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);

    if (!children) {
      return this.renderDefaultFeedback(this.context.$bs_formGroup, className, classes, elementProps);
    }

    var child = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.only(children);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(child.props.className, className, classes)
    }));
  };

  return FormControlFeedback;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControlFeedback.defaultProps = defaultProps;
FormControlFeedback.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('form-control-feedback', FormControlFeedback));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlStatic.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormControlStatic.js ***!
  \********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'p'
};

var FormControlStatic =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormControlStatic, _React$Component);

  function FormControlStatic() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormControlStatic.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return FormControlStatic;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormControlStatic.propTypes = propTypes;
FormControlStatic.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('form-control-static', FormControlStatic));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormGroup.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/FormGroup.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");









var propTypes = {
  /**
   * Sets `id` on `<FormControl>` and `htmlFor` on `<FormGroup.Label>`.
   */
  controlId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null])
};
var childContextTypes = {
  $bs_formGroup: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object.isRequired
};

var FormGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(FormGroup, _React$Component);

  function FormGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = FormGroup.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        controlId = _this$props.controlId,
        validationState = _this$props.validationState;
    return {
      $bs_formGroup: {
        controlId: controlId,
        validationState: validationState
      }
    };
  };

  _proto.hasFeedback = function hasFeedback(children) {
    var _this = this;

    return _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(children, function (child) {
      return child.props.bsRole === 'feedback' || child.props.children && _this.hasFeedback(child.props.children);
    });
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        validationState = _this$props2.validationState,
        className = _this$props2.className,
        children = _this$props2.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["validationState", "className", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsPropsAndOmit"])(props, ['controlId']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      'has-feedback': this.hasFeedback(children)
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), children);
  };

  return FormGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

FormGroup.propTypes = propTypes;
FormGroup.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('form-group', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].SMALL], FormGroup)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Glyphicon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Glyphicon.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  /**
   * An icon name without "glyphicon-" prefix. See e.g. http://getbootstrap.com/components/#glyphicons
   */
  glyph: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string.isRequired
};

var Glyphicon =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Glyphicon, _React$Component);

  function Glyphicon() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Glyphicon.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        glyph = _this$props.glyph,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["glyph", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, glyph)] = true, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Glyphicon;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Glyphicon.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('glyphicon', Glyphicon));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Grid.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Grid.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * Turn any fixed-width grid layout into a full-width layout by this property.
   *
   * Adds `container-fluid` class.
   */
  fluid: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * You can use a custom element for this component
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  componentClass: 'div',
  fluid: false
};

var Grid =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Grid, _React$Component);

  function Grid() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Grid.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        fluid = _this$props.fluid,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["fluid", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, fluid && 'fluid');
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Grid;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Grid.propTypes = propTypes;
Grid.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('container', Grid));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/HelpBlock.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/HelpBlock.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var HelpBlock =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(HelpBlock, _React$Component);

  function HelpBlock() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = HelpBlock.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return HelpBlock;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('help-block', HelpBlock));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroup.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroup.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _InputGroupAddon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InputGroupAddon */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupAddon.js");
/* harmony import */ var _InputGroupButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputGroupButton */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupButton.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");










var InputGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroup, _React$Component);

  function InputGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroup.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

InputGroup.Addon = _InputGroupAddon__WEBPACK_IMPORTED_MODULE_5__["default"];
InputGroup.Button = _InputGroupButton__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('input-group', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["Size"].SMALL], InputGroup)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupAddon.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupAddon.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var InputGroupAddon =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroupAddon, _React$Component);

  function InputGroupAddon() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroupAddon.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroupAddon;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('input-group-addon', InputGroupAddon));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupButton.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/InputGroupButton.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var InputGroupButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(InputGroupButton, _React$Component);

  function InputGroupButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = InputGroupButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return InputGroupButton;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_5__["bsClass"])('input-group-btn', InputGroupButton));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Label.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Label.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");









var Label =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Label, _React$Component);

  function Label() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Label.prototype;

  _proto.hasContent = function hasContent(children) {
    var result = false;
    react__WEBPACK_IMPORTED_MODULE_5___default.a.Children.forEach(children, function (child) {
      if (result) {
        return;
      }

      if (child || child === 0) {
        result = true;
      }
    });
    return result;
  };

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["className", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), {
      // Hack for collapsing on IE8.
      hidden: !this.hasContent(children)
    });

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), children);
  };

  return Label;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('label', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["State"]).concat([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].PRIMARY]), _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Style"].DEFAULT, Label)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroup.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroup.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroupItem.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");









var propTypes = {
  /**
   * You can use a custom element type for this component.
   *
   * If not specified, it will be treated as `'li'` if every child is a
   * non-actionable `<ListGroupItem>`, and `'div'` otherwise.
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};

function getDefaultComponent(children) {
  if (!children) {
    // FIXME: This is the old behavior. Is this right?
    return 'div';
  }

  if (_utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(children, function (child) {
    return child.type !== _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__["default"] || child.props.href || child.props.onClick;
  })) {
    return 'div';
  }

  return 'ul';
}

var ListGroup =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ListGroup, _React$Component);

  function ListGroup() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ListGroup.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        _this$props$component = _this$props.componentClass,
        Component = _this$props$component === void 0 ? getDefaultComponent(children) : _this$props$component,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["children", "componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps);
    var useListItem = Component === 'ul' && _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].every(children, function (child) {
      return child.type === _ListGroupItem__WEBPACK_IMPORTED_MODULE_6__["default"];
    });
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), useListItem ? _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].map(children, function (child) {
      return Object(react__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, {
        listItem: true
      });
    }) : children);
  };

  return ListGroup;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ListGroup.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('list-group', ListGroup));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroupItem.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ListGroupItem.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");









var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
  header: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node,
  listItem: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  type: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
var defaultProps = {
  listItem: false
};

var ListGroupItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ListGroupItem, _React$Component);

  function ListGroupItem() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ListGroupItem.prototype;

  _proto.renderHeader = function renderHeader(header, headingClassName) {
    if (react__WEBPACK_IMPORTED_MODULE_5___default.a.isValidElement(header)) {
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(header, {
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(header.props.className, headingClassName)
      });
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("h4", {
      className: headingClassName
    }, header);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        disabled = _this$props.disabled,
        className = _this$props.className,
        header = _this$props.header,
        listItem = _this$props.listItem,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["active", "disabled", "className", "header", "listItem", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      active: active,
      disabled: disabled
    });

    var Component;

    if (elementProps.href) {
      Component = 'a';
    } else if (elementProps.onClick) {
      Component = 'button';
      elementProps.type = elementProps.type || 'button';
    } else if (listItem) {
      Component = 'li';
    } else {
      Component = 'span';
    }

    elementProps.className = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes); // TODO: Deprecate `header` prop.

    if (header) {
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, elementProps, this.renderHeader(header, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'heading')), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p", {
        className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'text')
      }, children));
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, elementProps, children);
  };

  return ListGroupItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ListGroupItem.propTypes = propTypes;
ListGroupItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('list-group-item', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["State"]), ListGroupItem)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/MenuItem.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/MenuItem.js ***!
  \***********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");











var propTypes = {
  /**
   * Highlight the menu item as active.
   */
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Disable the menu item, making it unselectable.
   */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Styles the menu item as a horizontal rule, providing visual separation between
   * groups of menu items.
   */
  divider: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_7___default()(prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, function (_ref) {
    var divider = _ref.divider,
        children = _ref.children;
    return divider && children ? new Error('Children will not be rendered for dividers') : null;
  }),

  /**
   * Value passed to the `onSelect` handler, useful for identifying the selected menu item.
   */
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Styles the menu item as a header label, useful for describing a group of menu items.
   */
  header: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * HTML `href` attribute corresponding to `a.href`.
   */
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Callback fired when the menu item is clicked.
   */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired when the menu item is selected.
   *
   * ```js
   * (eventKey: any, event: Object) => any
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
var defaultProps = {
  divider: false,
  disabled: false,
  header: false
};

var MenuItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(MenuItem, _React$Component);

  function MenuItem(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = MenuItem.prototype;

  _proto.handleClick = function handleClick(event) {
    var _this$props = this.props,
        href = _this$props.href,
        disabled = _this$props.disabled,
        onSelect = _this$props.onSelect,
        eventKey = _this$props.eventKey;

    if (!href || disabled) {
      event.preventDefault();
    }

    if (disabled) {
      return;
    }

    if (onSelect) {
      onSelect(eventKey, event);
    }
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        active = _this$props2.active,
        disabled = _this$props2.disabled,
        divider = _this$props2.divider,
        header = _this$props2.header,
        onClick = _this$props2.onClick,
        className = _this$props2.className,
        style = _this$props2.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["active", "disabled", "divider", "header", "onClick", "className", "style"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["splitBsPropsAndOmit"])(props, ['eventKey', 'onSelect']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    if (divider) {
      // Forcibly blank out the children; separators shouldn't render any.
      elementProps.children = undefined;
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
        role: "separator",
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, 'divider'),
        style: style
      }));
    }

    if (header) {
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
        role: "heading",
        className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["prefix"])(bsProps, 'header')),
        style: style
      }));
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", {
      role: "presentation",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, {
        active: active,
        disabled: disabled
      }),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "menuitem",
      tabIndex: "-1",
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(onClick, this.handleClick)
    })));
  };

  return MenuItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

MenuItem.propTypes = propTypes;
MenuItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["bsClass"])('dropdown', MenuItem));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Modal.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Modal.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/events */ "./node_modules/dom-helpers/events/index.js");
/* harmony import */ var dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_events__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dom-helpers/util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js");
/* harmony import */ var dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! dom-helpers/util/scrollbarSize */ "./node_modules/dom-helpers/util/scrollbarSize.js");
/* harmony import */ var dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-overlays/lib/Modal */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Modal.js");
/* harmony import */ var react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react-overlays/lib/utils/isOverflowing */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/isOverflowing.js");
/* harmony import */ var react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Fade */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js");
/* harmony import */ var _ModalBody__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ModalBody */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalBody.js");
/* harmony import */ var _ModalDialog__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ModalDialog */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalDialog.js");
/* harmony import */ var _ModalFooter__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ModalFooter */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalFooter.js");
/* harmony import */ var _ModalHeader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ModalHeader */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalHeader.js");
/* harmony import */ var _ModalTitle__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ModalTitle */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalTitle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");


























var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.propTypes, _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"].propTypes, {
  /**
   * Include a backdrop component. Specify 'static' for a backdrop that doesn't
   * trigger an "onHide" when clicked.
   */
  backdrop: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.oneOf(['static', true, false]),

  /**
   * Add an optional extra class name to .modal-backdrop
   * It could end up looking like class="modal-backdrop foo-modal-backdrop in".
   */
  backdropClassName: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string,

  /**
   * Close the modal when escape key is pressed
   */
  keyboard: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * Open and close the Modal with a slide and fade animation.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * A Component type that provides the modal content Markup. This is a useful
   * prop when you want to use your own styles and markup to create a custom
   * modal component.
   */
  dialogComponentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_14___default.a,

  /**
   * When `true` The modal will automatically shift focus to itself when it
   * opens, and replace it to the last focused element when it closes.
   * Generally this should never be set to false as it makes the Modal less
   * accessible to assistive technologies, like screen-readers.
   */
  autoFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will prevent focus from leaving the Modal while
   * open. Consider leaving the default value here, as it is necessary to make
   * the Modal work well with assistive technologies, such as screen readers.
   */
  enforceFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will restore focus to previously focused element once
   * modal is hidden
   */
  restoreFocus: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * When `true` The modal will show itself.
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,

  /**
   * A callback fired when the header closeButton or non-static backdrop is
   * clicked. Required if either are specified.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired before the Modal transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired as the Modal begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired right before the Modal transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired as the Modal begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,

  /**
   * @private
   */
  container: react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.propTypes.container
});

var defaultProps = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a.defaultProps, {
  animation: true,
  dialogComponentClass: _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"]
});

var childContextTypes = {
  $bs_modal: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.shape({
    onHide: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func
  })
};
/* eslint-disable no-use-before-define, react/no-multi-comp */

function DialogTransition(props) {
  return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_15__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
    timeout: Modal.TRANSITION_DURATION
  }));
}

function BackdropTransition(props) {
  return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_15__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
    timeout: Modal.BACKDROP_TRANSITION_DURATION
  }));
}
/* eslint-enable no-use-before-define */


var Modal =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Modal, _React$Component);

  function Modal(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;

    _this.handleDialogBackdropMouseDown = function () {
      _this._waitingForMouseUp = true;
    };

    _this.handleMouseUp = function (ev) {
      var dialogNode = _this._modal.getDialogElement();

      if (_this._waitingForMouseUp && ev.target === dialogNode) {
        _this._ignoreBackdropClick = true;
      }

      _this._waitingForMouseUp = false;
    };

    _this.handleEntering = _this.handleEntering.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleExited = _this.handleExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleWindowResize = _this.handleWindowResize.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDialogClick = _this.handleDialogClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.setModalRef = _this.setModalRef.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.state = {
      style: {}
    };
    return _this;
  }

  var _proto = Modal.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      $bs_modal: {
        onHide: this.props.onHide
      }
    };
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    // Clean up the listener if we need to.
    this.handleExited();
  };

  _proto.setModalRef = function setModalRef(ref) {
    this._modal = ref;
  };

  _proto.handleDialogClick = function handleDialogClick(e) {
    if (this._ignoreBackdropClick || e.target !== e.currentTarget) {
      this._ignoreBackdropClick = false;
      return;
    }

    this.props.onHide();
  };

  _proto.handleEntering = function handleEntering() {
    // FIXME: This should work even when animation is disabled.
    dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default.a.on(window, 'resize', this.handleWindowResize);
    this.updateStyle();
  };

  _proto.handleExited = function handleExited() {
    // FIXME: This should work even when animation is disabled.
    dom_helpers_events__WEBPACK_IMPORTED_MODULE_5___default.a.off(window, 'resize', this.handleWindowResize);
  };

  _proto.handleWindowResize = function handleWindowResize() {
    this.updateStyle();
  };

  _proto.updateStyle = function updateStyle() {
    if (!dom_helpers_util_inDOM__WEBPACK_IMPORTED_MODULE_7___default.a) {
      return;
    }

    var dialogNode = this._modal.getDialogElement();

    var dialogHeight = dialogNode.scrollHeight;
    var document = dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6___default()(dialogNode);
    var bodyIsOverflowing = react_overlays_lib_utils_isOverflowing__WEBPACK_IMPORTED_MODULE_13___default()(react_dom__WEBPACK_IMPORTED_MODULE_11___default.a.findDOMNode(this.props.container || document.body));
    var modalIsOverflowing = dialogHeight > document.documentElement.clientHeight;
    this.setState({
      style: {
        paddingRight: bodyIsOverflowing && !modalIsOverflowing ? dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default()() : undefined,
        paddingLeft: !bodyIsOverflowing && modalIsOverflowing ? dom_helpers_util_scrollbarSize__WEBPACK_IMPORTED_MODULE_8___default()() : undefined
      }
    });
  };

  _proto.render = function render() {
    var _this$props = this.props,
        backdrop = _this$props.backdrop,
        backdropClassName = _this$props.backdropClassName,
        animation = _this$props.animation,
        show = _this$props.show,
        Dialog = _this$props.dialogComponentClass,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        onEntering = _this$props.onEntering,
        onExited = _this$props.onExited,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["backdrop", "backdropClassName", "animation", "show", "dialogComponentClass", "className", "style", "children", "onEntering", "onExited"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_23__["default"])(props, react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a),
        baseModalProps = _splitComponentProps[0],
        dialogProps = _splitComponentProps[1];

    var inClassName = show && !animation && 'in';
    return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_overlays_lib_Modal__WEBPACK_IMPORTED_MODULE_12___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, baseModalProps, {
      ref: this.setModalRef,
      show: show,
      containerClassName: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["prefix"])(props, 'open'),
      transition: animation ? DialogTransition : undefined,
      backdrop: backdrop,
      backdropTransition: animation ? BackdropTransition : undefined,
      backdropClassName: classnames__WEBPACK_IMPORTED_MODULE_4___default()(Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["prefix"])(props, 'backdrop'), backdropClassName, inClassName),
      onEntering: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__["default"])(onEntering, this.handleEntering),
      onExited: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_22__["default"])(onExited, this.handleExited),
      onMouseUp: this.handleMouseUp
    }), react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(Dialog, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, dialogProps, {
      style: Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, this.state.style, style),
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, inClassName),
      onClick: backdrop === true ? this.handleDialogClick : null,
      onMouseDownDialog: this.handleDialogBackdropMouseDown
    }), children));
  };

  return Modal;
}(react__WEBPACK_IMPORTED_MODULE_9___default.a.Component);

Modal.propTypes = propTypes;
Modal.defaultProps = defaultProps;
Modal.childContextTypes = childContextTypes;
Modal.Body = _ModalBody__WEBPACK_IMPORTED_MODULE_16__["default"];
Modal.Header = _ModalHeader__WEBPACK_IMPORTED_MODULE_19__["default"];
Modal.Title = _ModalTitle__WEBPACK_IMPORTED_MODULE_20__["default"];
Modal.Footer = _ModalFooter__WEBPACK_IMPORTED_MODULE_18__["default"];
Modal.Dialog = _ModalDialog__WEBPACK_IMPORTED_MODULE_17__["default"];
Modal.TRANSITION_DURATION = 300;
Modal.BACKDROP_TRANSITION_DURATION = 150;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["bsClass"])('modal', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_21__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_24__["Size"].SMALL], Modal)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalBody.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalBody.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var ModalBody =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalBody, _React$Component);

  function ModalBody() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalBody.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalBody;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalBody.propTypes = propTypes;
ModalBody.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-body', ModalBody));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalDialog.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalDialog.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");








var propTypes = {
  /**
   * A css class to apply to the Modal dialog DOM node.
   */
  dialogClassName: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
};

var ModalDialog =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalDialog, _React$Component);

  function ModalDialog() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalDialog.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        dialogClassName = _this$props.dialogClassName,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        onMouseDownDialog = _this$props.onMouseDownDialog,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["dialogClassName", "className", "style", "children", "onMouseDownDialog"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps);

    var modalStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      display: 'block'
    }, style);

    var dialogClasses = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[bsClassName] = false, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, 'dialog')] = true, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      tabIndex: "-1",
      role: "dialog",
      style: modalStyle,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(dialogClassName, dialogClasses),
      onMouseDown: onMouseDownDialog
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(bsProps, 'content'),
      role: "document"
    }, children)));
  };

  return ModalDialog;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalDialog.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsSizes"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].LARGE, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_7__["Size"].SMALL], ModalDialog)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalFooter.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalFooter.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var ModalFooter =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalFooter, _React$Component);

  function ModalFooter() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalFooter.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalFooter;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalFooter.propTypes = propTypes;
ModalFooter.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-footer', ModalFooter));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalHeader.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalHeader.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/CloseButton.js");








 // TODO: `aria-label` should be `closeLabel`.

var propTypes = {
  /**
   * Provides an accessible label for the close
   * button. It is used for Assistive Technology when the label text is not
   * readable.
   */
  closeLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,

  /**
   * Specify whether the Component should contain a close button
   */
  closeButton: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,

  /**
   * A Callback fired when the close button is clicked. If used directly inside
   * a Modal component, the onHide will automatically be propagated up to the
   * parent Modal `onHide`.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
var defaultProps = {
  closeLabel: 'Close',
  closeButton: false
};
var contextTypes = {
  $bs_modal: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({
    onHide: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
  })
};

var ModalHeader =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalHeader, _React$Component);

  function ModalHeader() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalHeader.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        closeLabel = _this$props.closeLabel,
        closeButton = _this$props.closeButton,
        onHide = _this$props.onHide,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["closeLabel", "closeButton", "onHide", "className", "children"]);

    var modal = this.context.$bs_modal;

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), closeButton && react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_CloseButton__WEBPACK_IMPORTED_MODULE_8__["default"], {
      label: closeLabel,
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(modal && modal.onHide, onHide)
    }), children);
  };

  return ModalHeader;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ModalHeader.propTypes = propTypes;
ModalHeader.defaultProps = defaultProps;
ModalHeader.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-header', ModalHeader));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalTitle.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ModalTitle.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'h4'
};

var ModalTitle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(ModalTitle, _React$Component);

  function ModalTitle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ModalTitle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return ModalTitle;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

ModalTitle.propTypes = propTypes;
ModalTitle.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('modal-title', ModalTitle));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Nav.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Nav.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! keycode */ "./node_modules/keycode/index.js");
/* harmony import */ var keycode__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(keycode__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");












 // TODO: Should we expose `<NavItem>` as `<Nav.Item>`?
// TODO: This `bsStyle` is very unlike the others. Should we rename it?
// TODO: `pullRight` and `pullLeft` don't render right outside of `navbar`.
// Consider renaming or replacing them.

var propTypes = {
  /**
   * Marks the NavItem with a matching `eventKey` as active. Has a
   * higher precedence over `activeHref`.
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Marks the child NavItem with a matching `href` prop as active.
   */
  activeHref: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * NavItems are be positioned vertically.
   */
  stacked: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  justified: prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_8___default()(prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, function (_ref) {
    var justified = _ref.justified,
        navbar = _ref.navbar;
    return justified && navbar ? Error('justified navbar `Nav`s are not supported') : null;
  }),

  /**
   * A callback fired when a NavItem is selected.
   *
   * ```js
   * function (
   *  Any eventKey,
   *  SyntheticEvent event?
   * )
   * ```
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * ARIA role for the Nav, in the context of a TabContainer, the default will
   * be set to "tablist", but can be overridden by the Nav when set explicitly.
   *
   * When the role is set to "tablist" NavItem focus is managed according to
   * the ARIA authoring practices for tabs:
   * https://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#tabpanel
   */
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Apply styling an alignment for use in a Navbar. This prop will be set
   * automatically when the Nav is used inside a Navbar.
   */
  navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Float the Nav to the right. When `navbar` is `true` the appropriate
   * contextual classes are added as well.
   */
  pullRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Float the Nav to the left. When `navbar` is `true` the appropriate
   * contextual classes are added as well.
   */
  pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  justified: false,
  pullRight: false,
  pullLeft: false,
  stacked: false
};
var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  }),
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired
  })
};

var Nav =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Nav, _React$Component);

  function Nav() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Nav.prototype;

  _proto.componentDidUpdate = function componentDidUpdate() {
    var _this = this;

    if (!this._needsRefocus) {
      return;
    }

    this._needsRefocus = false;
    var children = this.props.children;

    var _this$getActiveProps = this.getActiveProps(),
        activeKey = _this$getActiveProps.activeKey,
        activeHref = _this$getActiveProps.activeHref;

    var activeChild = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].find(children, function (child) {
      return _this.isActive(child, activeKey, activeHref);
    });
    var childrenArray = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].toArray(children);
    var activeChildIndex = childrenArray.indexOf(activeChild);
    var childNodes = react_dom__WEBPACK_IMPORTED_MODULE_7___default.a.findDOMNode(this).children;
    var activeNode = childNodes && childNodes[activeChildIndex];

    if (!activeNode || !activeNode.firstChild) {
      return;
    }

    activeNode.firstChild.focus();
  };

  _proto.getActiveProps = function getActiveProps() {
    var tabContainer = this.context.$bs_tabContainer;

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(this.props.activeKey == null && !this.props.activeHref, 'Specifying a `<Nav>` `activeKey` or `activeHref` in the context of ' + 'a `<TabContainer>` is not supported. Instead use `<TabContainer ' + ("activeKey={" + this.props.activeKey + "} />`.")) : undefined;
      return tabContainer;
    }

    return this.props;
  };

  _proto.getNextActiveChild = function getNextActiveChild(offset) {
    var _this2 = this;

    var children = this.props.children;
    var validChildren = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].filter(children, function (child) {
      return child.props.eventKey != null && !child.props.disabled;
    });

    var _this$getActiveProps2 = this.getActiveProps(),
        activeKey = _this$getActiveProps2.activeKey,
        activeHref = _this$getActiveProps2.activeHref;

    var activeChild = _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].find(children, function (child) {
      return _this2.isActive(child, activeKey, activeHref);
    }); // This assumes the active child is not disabled.

    var activeChildIndex = validChildren.indexOf(activeChild);

    if (activeChildIndex === -1) {
      // Something has gone wrong. Select the first valid child we can find.
      return validChildren[0];
    }

    var nextIndex = activeChildIndex + offset;
    var numValidChildren = validChildren.length;

    if (nextIndex >= numValidChildren) {
      nextIndex = 0;
    } else if (nextIndex < 0) {
      nextIndex = numValidChildren - 1;
    }

    return validChildren[nextIndex];
  };

  _proto.getTabProps = function getTabProps(child, tabContainer, navRole, active, onSelect) {
    var _this3 = this;

    if (!tabContainer && navRole !== 'tablist') {
      // No tab props here.
      return null;
    }

    var _child$props = child.props,
        id = _child$props.id,
        controls = _child$props['aria-controls'],
        eventKey = _child$props.eventKey,
        role = _child$props.role,
        onKeyDown = _child$props.onKeyDown,
        tabIndex = _child$props.tabIndex;

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(!id && !controls, 'In the context of a `<TabContainer>`, `<NavItem>`s are given ' + 'generated `id` and `aria-controls` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly, provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : undefined;
      id = tabContainer.getTabId(eventKey);
      controls = tabContainer.getPaneId(eventKey);
    }

    if (navRole === 'tablist') {
      role = role || 'tab';
      onKeyDown = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(function (event) {
        return _this3.handleTabKeyDown(onSelect, event);
      }, onKeyDown);
      tabIndex = active ? tabIndex : -1;
    }

    return {
      id: id,
      role: role,
      onKeyDown: onKeyDown,
      'aria-controls': controls,
      tabIndex: tabIndex
    };
  };

  _proto.handleTabKeyDown = function handleTabKeyDown(onSelect, event) {
    var nextActiveChild;

    switch (event.keyCode) {
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.left:
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.up:
        nextActiveChild = this.getNextActiveChild(-1);
        break;

      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.right:
      case keycode__WEBPACK_IMPORTED_MODULE_4___default.a.codes.down:
        nextActiveChild = this.getNextActiveChild(1);
        break;

      default:
        // It was a different key; don't handle this keypress.
        return;
    }

    event.preventDefault();

    if (onSelect && nextActiveChild && nextActiveChild.props.eventKey != null) {
      onSelect(nextActiveChild.props.eventKey);
    }

    this._needsRefocus = true;
  };

  _proto.isActive = function isActive(_ref2, activeKey, activeHref) {
    var props = _ref2.props;

    if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
      return true;
    }

    return props.active;
  };

  _proto.render = function render() {
    var _extends2,
        _this4 = this;

    var _this$props = this.props,
        stacked = _this$props.stacked,
        justified = _this$props.justified,
        onSelect = _this$props.onSelect,
        propsRole = _this$props.role,
        propsNavbar = _this$props.navbar,
        pullRight = _this$props.pullRight,
        pullLeft = _this$props.pullLeft,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["stacked", "justified", "onSelect", "role", "navbar", "pullRight", "pullLeft", "className", "children"]);

    var tabContainer = this.context.$bs_tabContainer;
    var role = propsRole || (tabContainer ? 'tablist' : null);

    var _this$getActiveProps3 = this.getActiveProps(),
        activeKey = _this$getActiveProps3.activeKey,
        activeHref = _this$getActiveProps3.activeHref;

    delete props.activeKey; // Accessed via this.getActiveProps().

    delete props.activeHref; // Accessed via this.getActiveProps().

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(bsProps, 'stacked')] = stacked, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(bsProps, 'justified')] = justified, _extends2));

    var navbar = propsNavbar != null ? propsNavbar : this.context.$bs_navbar;
    var pullLeftClassName;
    var pullRightClassName;

    if (navbar) {
      var navbarProps = this.context.$bs_navbar || {
        bsClass: 'navbar'
      };
      classes[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'nav')] = true;
      pullRightClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'right');
      pullLeftClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["prefix"])(navbarProps, 'left');
    } else {
      pullRightClassName = 'pull-right';
      pullLeftClassName = 'pull-left';
    }

    classes[pullRightClassName] = pullRight;
    classes[pullLeftClassName] = pullLeft;
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("ul", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: role,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_12__["default"].map(children, function (child) {
      var active = _this4.isActive(child, activeKey, activeHref);

      var childOnSelect = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(child.props.onSelect, onSelect, navbar && navbar.onSelect, tabContainer && tabContainer.onSelect);
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _this4.getTabProps(child, tabContainer, role, active, childOnSelect), {
        active: active,
        activeKey: activeKey,
        activeHref: activeHref,
        onSelect: childOnSelect
      }));
    }));
  };

  return Nav;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Nav.propTypes = propTypes;
Nav.defaultProps = defaultProps;
Nav.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsClass"])('nav', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_10__["bsStyles"])(['tabs', 'pills'], Nav)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavDropdown.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavDropdown.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  // Toggle props.
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node.isRequired,
  noCaret: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  active: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.any,
  activeHref: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
});

var NavDropdown =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(NavDropdown, _React$Component);

  function NavDropdown() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavDropdown.prototype;

  _proto.isActive = function isActive(_ref, activeKey, activeHref) {
    var _this = this;

    var props = _ref.props;

    if (props.active || activeKey != null && props.eventKey === activeKey || activeHref && props.href === activeHref) {
      return true;
    }

    if (_utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].some(props.children, function (child) {
      return _this.isActive(child, activeKey, activeHref);
    })) {
      return true;
    }

    return props.active;
  };

  _proto.render = function render() {
    var _this2 = this;

    var _this$props = this.props,
        title = _this$props.title,
        activeKey = _this$props.activeKey,
        activeHref = _this$props.activeHref,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["title", "activeKey", "activeHref", "className", "style", "children"]);

    var active = this.isActive(this, activeKey, activeHref);
    delete props.active; // Accessed via this.isActive().

    delete props.eventKey; // Accessed via this.isActive().

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_7__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        toggleProps = _splitComponentProps[1]; // Unlike for the other dropdowns, styling needs to go to the `<Dropdown>`
    // rather than the `<Dropdown.Toggle>`.


    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      componentClass: "li",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, {
        active: active
      }),
      style: style
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Toggle, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, toggleProps, {
      useAnchor: true
    }), title), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Menu, null, _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_8__["default"].map(children, function (child) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(child, {
        active: _this2.isActive(child, activeKey, activeHref)
      });
    })));
  };

  return NavDropdown;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavDropdown.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavDropdown);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavItem.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavItem.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");









var propTypes = {
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  href: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any
};
var defaultProps = {
  active: false,
  disabled: false
};

var NavItem =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavItem, _React$Component);

  function NavItem(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = NavItem.prototype;

  _proto.handleClick = function handleClick(e) {
    if (this.props.disabled) {
      e.preventDefault();
      return;
    }

    if (this.props.onSelect) {
      this.props.onSelect(this.props.eventKey, e);
    }
  };

  _proto.render = function render() {
    var _this$props = this.props,
        active = _this$props.active,
        disabled = _this$props.disabled,
        onClick = _this$props.onClick,
        className = _this$props.className,
        style = _this$props.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["active", "disabled", "onClick", "className", "style"]);

    delete props.onSelect;
    delete props.eventKey; // These are injected down by `<Nav>` for building `<SubNav>`s.

    delete props.activeKey;
    delete props.activeHref;

    if (!props.role) {
      if (props.href === '#') {
        props.role = 'button';
      }
    } else if (props.role === 'tab') {
      props['aria-selected'] = active;
    }

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("li", {
      role: "presentation",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, {
        active: active,
        disabled: disabled
      }),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      disabled: disabled,
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(onClick, this.handleClick)
    })));
  };

  return NavItem;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

NavItem.propTypes = propTypes;
NavItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (NavItem);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Navbar.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Navbar.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Grid */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Grid.js");
/* harmony import */ var _NavbarBrand__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NavbarBrand */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarBrand.js");
/* harmony import */ var _NavbarCollapse__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NavbarCollapse */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarCollapse.js");
/* harmony import */ var _NavbarHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NavbarHeader */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarHeader.js");
/* harmony import */ var _NavbarToggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NavbarToggle */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarToggle.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");




// TODO: Remove this pragma once we upgrade eslint-config-airbnb.

/* eslint-disable react/no-multi-comp */













var propTypes = {
  /**
   * Create a fixed navbar along the top of the screen, that scrolls with the
   * page
   */
  fixedTop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Create a fixed navbar along the bottom of the screen, that scrolls with
   * the page
   */
  fixedBottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Create a full-width navbar that scrolls away with the page
   */
  staticTop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * An alternative dark visual style for the Navbar
   */
  inverse: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Allow the Navbar to fluidly adjust to the page or container width, instead
   * of at the predefined screen breakpoints
   */
  fluid: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Set a custom element for this component.
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,

  /**
   * A callback fired when the `<Navbar>` body collapses or expands. Fired when
   * a `<Navbar.Toggle>` is clicked and called with the new `expanded`
   * boolean value.
   *
   * @controllable expanded
   */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A callback fired when a descendant of a child `<Nav>` is selected. Should
   * be used to execute complex closing or other miscellaneous actions desired
   * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
   * descendants exist. The callback is called with an eventKey, which is a
   * prop from the selected `<Nav>` descendant, and an event.
   *
   * ```js
   * function (
   *  Any eventKey,
   *  SyntheticEvent event?
   * )
   * ```
   *
   * For basic closing behavior after all `<Nav>` descendant onSelect events in
   * mobile viewports, try using collapseOnSelect.
   *
   * Note: If you are manually closing the navbar using this `OnSelect` prop,
   * ensure that you are setting `expanded` to false and not *toggling* between
   * true and false.
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Sets `expanded` to `false` after the onSelect event of a descendant of a
   * child `<Nav>`. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
   *
   * The onSelect callback should be used instead for more complex operations
   * that need to be executed after the `select` event of `<Nav>` descendants.
   */
  collapseOnSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Explicitly set the visiblity of the navbar body
   *
   * @controllable onToggle
   */
  expanded: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
var defaultProps = {
  componentClass: 'nav',
  fixedTop: false,
  fixedBottom: false,
  staticTop: false,
  inverse: false,
  fluid: false,
  collapseOnSelect: false
};
var childContextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onToggle: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  })
};

var Navbar =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Navbar, _React$Component);

  function Navbar(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleToggle = _this.handleToggle.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleCollapse = _this.handleCollapse.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = Navbar.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        bsClass = _this$props.bsClass,
        expanded = _this$props.expanded,
        onSelect = _this$props.onSelect,
        collapseOnSelect = _this$props.collapseOnSelect;
    return {
      $bs_navbar: {
        bsClass: bsClass,
        expanded: expanded,
        onToggle: this.handleToggle,
        onSelect: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_16__["default"])(onSelect, collapseOnSelect ? this.handleCollapse : null)
      }
    };
  };

  _proto.handleCollapse = function handleCollapse() {
    var _this$props2 = this.props,
        onToggle = _this$props2.onToggle,
        expanded = _this$props2.expanded;

    if (expanded) {
      onToggle(false);
    }
  };

  _proto.handleToggle = function handleToggle() {
    var _this$props3 = this.props,
        onToggle = _this$props3.onToggle,
        expanded = _this$props3.expanded;
    onToggle(!expanded);
  };

  _proto.render = function render() {
    var _extends2;

    var _this$props4 = this.props,
        Component = _this$props4.componentClass,
        fixedTop = _this$props4.fixedTop,
        fixedBottom = _this$props4.fixedBottom,
        staticTop = _this$props4.staticTop,
        inverse = _this$props4.inverse,
        fluid = _this$props4.fluid,
        className = _this$props4.className,
        children = _this$props4.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props4, ["componentClass", "fixedTop", "fixedBottom", "staticTop", "inverse", "fluid", "className", "children"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["splitBsPropsAndOmit"])(props, ['expanded', 'onToggle', 'onSelect', 'collapseOnSelect']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1]; // will result in some false positives but that seems better
    // than false negatives. strict `undefined` check allows explicit
    // "nulling" of the role if the user really doesn't want one


    if (elementProps.role === undefined && Component !== 'nav') {
      elementProps.role = 'navigation';
    }

    if (inverse) {
      bsProps.bsStyle = _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].INVERSE;
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'fixed-top')] = fixedTop, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'fixed-bottom')] = fixedBottom, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(bsProps, 'static-top')] = staticTop, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }), react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_Grid__WEBPACK_IMPORTED_MODULE_9__["default"], {
      fluid: fluid
    }, children));
  };

  return Navbar;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

Navbar.propTypes = propTypes;
Navbar.defaultProps = defaultProps;
Navbar.childContextTypes = childContextTypes;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["bsClass"])('navbar', Navbar);
var UncontrollableNavbar = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_8__["uncontrollable"])(Navbar, {
  expanded: 'onToggle'
});

function createSimpleWrapper(tag, suffix, displayName) {
  var Wrapper = function Wrapper(_ref, _ref2) {
    var Component = _ref.componentClass,
        className = _ref.className,
        pullRight = _ref.pullRight,
        pullLeft = _ref.pullLeft,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["componentClass", "className", "pullRight", "pullLeft"]);

    var _ref2$$bs_navbar = _ref2.$bs_navbar,
        navbarProps = _ref2$$bs_navbar === void 0 ? {
      bsClass: 'navbar'
    } : _ref2$$bs_navbar;
    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, suffix), pullRight && Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, 'right'), pullLeft && Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["prefix"])(navbarProps, 'left'))
    }));
  };

  Wrapper.displayName = displayName;
  Wrapper.propTypes = {
    componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,
    pullRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    pullLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
  };
  Wrapper.defaultProps = {
    componentClass: tag,
    pullRight: false,
    pullLeft: false
  };
  Wrapper.contextTypes = {
    $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
      bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
    })
  };
  return Wrapper;
}

UncontrollableNavbar.Brand = _NavbarBrand__WEBPACK_IMPORTED_MODULE_10__["default"];
UncontrollableNavbar.Header = _NavbarHeader__WEBPACK_IMPORTED_MODULE_12__["default"];
UncontrollableNavbar.Toggle = _NavbarToggle__WEBPACK_IMPORTED_MODULE_13__["default"];
UncontrollableNavbar.Collapse = _NavbarCollapse__WEBPACK_IMPORTED_MODULE_11__["default"];
UncontrollableNavbar.Form = createSimpleWrapper('div', 'form', 'NavbarForm');
UncontrollableNavbar.Text = createSimpleWrapper('p', 'text', 'NavbarText');
UncontrollableNavbar.Link = createSimpleWrapper('a', 'link', 'NavbarLink'); // Set bsStyles here so they can be overridden.

/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_14__["bsStyles"])([_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].DEFAULT, _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].INVERSE], _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_15__["Style"].DEFAULT)(UncontrollableNavbar));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarBrand.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarBrand.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
  })
};

var NavbarBrand =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarBrand, _React$Component);

  function NavbarBrand() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarBrand.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className", "children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'brand');

    if (react__WEBPACK_IMPORTED_MODULE_4___default.a.isValidElement(children)) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(children, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(children.props.className, className, bsClassName)
      });
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }), children);
  };

  return NavbarBrand;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarBrand.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarBrand);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarCollapse.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarCollapse.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Collapse */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Collapse.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
  })
};

var NavbarCollapse =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarCollapse, _React$Component);

  function NavbarCollapse() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarCollapse.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'collapse');
    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Collapse__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      in: navbarProps.expanded
    }, props), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
      className: bsClassName
    }, children));
  };

  return NavbarCollapse;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

NavbarCollapse.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarCollapse);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarHeader.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarHeader.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string
  })
};

var NavbarHeader =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarHeader, _React$Component);

  function NavbarHeader() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarHeader.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["className"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };
    var bsClassName = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'header');
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsClassName)
    }));
  };

  return NavbarHeader;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarHeader.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarHeader);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarToggle.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavbarToggle.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");








var propTypes = {
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * The toggle content, if left empty it will render the default toggle (seen above).
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
};
var contextTypes = {
  $bs_navbar: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
    expanded: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
    onToggle: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func.isRequired
  })
};

var NavbarToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(NavbarToggle, _React$Component);

  function NavbarToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = NavbarToggle.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        onClick = _this$props.onClick,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["onClick", "className", "children"]);

    var navbarProps = this.context.$bs_navbar || {
      bsClass: 'navbar'
    };

    var buttonProps = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      type: 'button'
    }, props, {
      onClick: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(onClick, navbarProps.onToggle),
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["prefix"])(navbarProps, 'toggle'), !navbarProps.expanded && 'collapsed')
    });

    if (children) {
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("button", buttonProps, children);
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("button", buttonProps, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "sr-only"
    }, "Toggle navigation"), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
      className: "icon-bar"
    }));
  };

  return NavbarToggle;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

NavbarToggle.propTypes = propTypes;
NavbarToggle.contextTypes = contextTypes;
/* harmony default export */ __webpack_exports__["default"] = (NavbarToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Overlay.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Overlay.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-overlays/lib/Overlay */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Overlay.js");
/* harmony import */ var react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Fade */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a.propTypes, {
  /**
   * Set the visibility of the Overlay
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * Specify whether the overlay should trigger onHide when the user clicks outside the overlay
   */
  rootClose: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,

  /**
   * A callback invoked by the overlay when it wishes to be hidden. Required if
   * `rootClose` is specified.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Use animation
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /**
   * Callback fired before the Overlay transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired right before the Overlay transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,

  /**
   * Sets the direction of the Overlay.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left'])
});

var defaultProps = {
  animation: _Fade__WEBPACK_IMPORTED_MODULE_8__["default"],
  rootClose: false,
  show: false,
  placement: 'right'
};

var Overlay =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Overlay, _React$Component);

  function Overlay() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Overlay.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        animation = _this$props.animation,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["animation", "children"]);

    var transition = animation === true ? _Fade__WEBPACK_IMPORTED_MODULE_8__["default"] : animation || null;
    var child;

    if (!transition) {
      child = Object(react__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(children, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(children.props.className, 'in')
      });
    } else {
      child = children;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react_overlays_lib_Overlay__WEBPACK_IMPORTED_MODULE_6___default.a, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props, {
      transition: transition
    }), child);
  };

  return Overlay;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Overlay.propTypes = propTypes;
Overlay.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Overlay);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/OverlayTrigger.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/OverlayTrigger.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");
/* harmony import */ var dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Overlay */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Overlay.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");












/**
 * Check if value one is inside or equal to the of value
 *
 * @param {string} one
 * @param {string|array} of
 * @returns {boolean}
 */

function isOneOf(one, of) {
  if (_babel_runtime_corejs2_core_js_array_is_array__WEBPACK_IMPORTED_MODULE_4___default()(of)) {
    return of.indexOf(one) >= 0;
  }

  return one === of;
}

var triggerType = prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf(['click', 'hover', 'focus']);

var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, _Overlay__WEBPACK_IMPORTED_MODULE_10__["default"].propTypes, {
  /**
   * Specify which action or actions trigger Overlay visibility
   */
  trigger: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOfType([triggerType, prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.arrayOf(triggerType)]),

  /**
   * A millisecond delay amount to show and hide the Overlay once triggered
   */
  delay: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * A millisecond delay amount before showing the Overlay once triggered.
   */
  delayShow: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,

  /**
   * A millisecond delay amount before hiding the Overlay once triggered.
   */
  delayHide: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.number,
  // FIXME: This should be `defaultShow`.

  /**
   * The initial visibility state of the Overlay. For more nuanced visibility
   * control, consider using the Overlay component directly.
   */
  defaultOverlayShown: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,

  /**
   * An element or text to overlay next to the target.
   */
  overlay: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.node.isRequired,

  /**
   * @private
   */
  onBlur: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onFocus: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onMouseOut: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,

  /**
   * @private
   */
  onMouseOver: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  // Overridden props from `<Overlay>`.

  /**
   * @private
   */
  target: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null]),

  /**
   * @private
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null]),

  /**
   * @private
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.oneOf([null])
});

var defaultProps = {
  defaultOverlayShown: false,
  trigger: ['hover', 'focus']
};

var OverlayTrigger =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(OverlayTrigger, _React$Component);

  function OverlayTrigger(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleToggle = _this.handleToggle.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDelayedShow = _this.handleDelayedShow.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleDelayedHide = _this.handleDelayedHide.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));
    _this.handleHide = _this.handleHide.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__["default"])(_this)));

    _this.handleMouseOver = function (e) {
      return _this.handleMouseOverOut(_this.handleDelayedShow, e, 'fromElement');
    };

    _this.handleMouseOut = function (e) {
      return _this.handleMouseOverOut(_this.handleDelayedHide, e, 'toElement');
    };

    _this._mountNode = null;
    _this.state = {
      show: props.defaultOverlayShown
    };
    return _this;
  }

  var _proto = OverlayTrigger.prototype;

  _proto.componentDidMount = function componentDidMount() {
    this._mountNode = document.createElement('div');
    this.renderOverlay();
  };

  _proto.componentDidUpdate = function componentDidUpdate() {
    this.renderOverlay();
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.unmountComponentAtNode(this._mountNode);
    this._mountNode = null;
    clearTimeout(this._hoverShowDelay);
    clearTimeout(this._hoverHideDelay);
  };

  _proto.handleDelayedHide = function handleDelayedHide() {
    var _this2 = this;

    if (this._hoverShowDelay != null) {
      clearTimeout(this._hoverShowDelay);
      this._hoverShowDelay = null;
      return;
    }

    if (!this.state.show || this._hoverHideDelay != null) {
      return;
    }

    var delay = this.props.delayHide != null ? this.props.delayHide : this.props.delay;

    if (!delay) {
      this.hide();
      return;
    }

    this._hoverHideDelay = setTimeout(function () {
      _this2._hoverHideDelay = null;

      _this2.hide();
    }, delay);
  };

  _proto.handleDelayedShow = function handleDelayedShow() {
    var _this3 = this;

    if (this._hoverHideDelay != null) {
      clearTimeout(this._hoverHideDelay);
      this._hoverHideDelay = null;
      return;
    }

    if (this.state.show || this._hoverShowDelay != null) {
      return;
    }

    var delay = this.props.delayShow != null ? this.props.delayShow : this.props.delay;

    if (!delay) {
      this.show();
      return;
    }

    this._hoverShowDelay = setTimeout(function () {
      _this3._hoverShowDelay = null;

      _this3.show();
    }, delay);
  };

  _proto.handleHide = function handleHide() {
    this.hide();
  }; // Simple implementation of mouseEnter and mouseLeave.
  // React's built version is broken: https://github.com/facebook/react/issues/4251
  // for cases when the trigger is disabled and mouseOut/Over can cause flicker
  // moving from one child element to another.


  _proto.handleMouseOverOut = function handleMouseOverOut(handler, e, relatedNative) {
    var target = e.currentTarget;
    var related = e.relatedTarget || e.nativeEvent[relatedNative];

    if ((!related || related !== target) && !dom_helpers_query_contains__WEBPACK_IMPORTED_MODULE_5___default()(target, related)) {
      handler(e);
    }
  };

  _proto.handleToggle = function handleToggle() {
    if (this.state.show) {
      this.hide();
    } else {
      this.show();
    }
  };

  _proto.hide = function hide() {
    this.setState({
      show: false
    });
  };

  _proto.makeOverlay = function makeOverlay(overlay, props) {
    return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(_Overlay__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__["default"])({}, props, {
      show: this.state.show,
      onHide: this.handleHide,
      target: this
    }), overlay);
  };

  _proto.show = function show() {
    this.setState({
      show: true
    });
  };

  _proto.renderOverlay = function renderOverlay() {
    react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.unstable_renderSubtreeIntoContainer(this, this._overlay, this._mountNode);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        trigger = _this$props.trigger,
        overlay = _this$props.overlay,
        children = _this$props.children,
        onBlur = _this$props.onBlur,
        onClick = _this$props.onClick,
        onFocus = _this$props.onFocus,
        onMouseOut = _this$props.onMouseOut,
        onMouseOver = _this$props.onMouseOver,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["trigger", "overlay", "children", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver"]);

    delete props.delay;
    delete props.delayShow;
    delete props.delayHide;
    delete props.defaultOverlayShown;
    var child = react__WEBPACK_IMPORTED_MODULE_6___default.a.Children.only(children);
    var childProps = child.props;
    var triggerProps = {};

    if (this.state.show) {
      triggerProps['aria-describedby'] = overlay.props.id;
    } // FIXME: The logic here for passing through handlers on this component is
    // inconsistent. We shouldn't be passing any of these props through.


    triggerProps.onClick = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onClick, onClick);

    if (isOneOf('click', trigger)) {
      triggerProps.onClick = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(triggerProps.onClick, this.handleToggle);
    }

    if (isOneOf('hover', trigger)) {
       true ? warning__WEBPACK_IMPORTED_MODULE_9___default()(!(trigger === 'hover'), '[react-bootstrap] Specifying only the `"hover"` trigger limits the ' + 'visibility of the overlay to just mouse users. Consider also ' + 'including the `"focus"` trigger so that touch and keyboard only ' + 'users can see the overlay as well.') : undefined;
      triggerProps.onMouseOver = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onMouseOver, onMouseOver, this.handleMouseOver);
      triggerProps.onMouseOut = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onMouseOut, onMouseOut, this.handleMouseOut);
    }

    if (isOneOf('focus', trigger)) {
      triggerProps.onFocus = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onFocus, onFocus, this.handleDelayedShow);
      triggerProps.onBlur = Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(childProps.onBlur, onBlur, this.handleDelayedHide);
    }

    this._overlay = this.makeOverlay(overlay, props);
    return Object(react__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(child, triggerProps);
  };

  return OverlayTrigger;
}(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component);

OverlayTrigger.propTypes = propTypes;
OverlayTrigger.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (OverlayTrigger);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Popover.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Popover.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * An html id attribute, necessary for accessibility
   * @type {string}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number])),

  /**
   * Sets the direction the Popover is positioned towards.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left']),

  /**
   * The "top" position value for the Popover.
   */
  positionTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Popover.
   */
  positionLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "top" position value for the Popover arrow.
   */
  arrowOffsetTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Popover arrow.
   */
  arrowOffsetLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * Title content
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.node
};
var defaultProps = {
  placement: 'right'
};

var Popover =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Popover, _React$Component);

  function Popover() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Popover.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        placement = _this$props.placement,
        positionTop = _this$props.positionTop,
        positionLeft = _this$props.positionLeft,
        arrowOffsetTop = _this$props.arrowOffsetTop,
        arrowOffsetLeft = _this$props.arrowOffsetLeft,
        title = _this$props.title,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "title", "className", "style", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));

    var outerStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      display: 'block',
      top: positionTop,
      left: positionLeft
    }, style);

    var arrowStyle = {
      top: arrowOffsetTop,
      left: arrowOffsetLeft
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tooltip",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: outerStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: "arrow",
      style: arrowStyle
    }), title && react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("h3", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'title')
    }, title), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'content')
    }, children));
  };

  return Popover;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Popover.propTypes = propTypes;
Popover.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('popover', Popover));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/ProgressBar.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/ProgressBar.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "./node_modules/@babel/runtime-corejs2/core-js/object/values.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");










var ROUND_PRECISION = 1000;
/**
 * Validate that children, if any, are instances of `<ProgressBar>`.
 */

function onlyProgressBar(props, propName, componentName) {
  var children = props[propName];

  if (!children) {
    return null;
  }

  var error = null;
  react__WEBPACK_IMPORTED_MODULE_5___default.a.Children.forEach(children, function (child) {
    if (error) {
      return;
    }
    /**
     * Compare types in a way that works with libraries that patch and proxy
     * components like react-hot-loader.
     *
     * see https://github.com/gaearon/react-hot-loader#checking-element-types
     */


    var element = react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(ProgressBar, null);
    if (child.type === element.type) return;
    var childIdentifier = react__WEBPACK_IMPORTED_MODULE_5___default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child;
    error = new Error("Children of " + componentName + " can contain only ProgressBar " + ("components. Found " + childIdentifier + "."));
  });
  return error;
}

var propTypes = {
  min: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  now: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  max: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.number,
  label: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.node,
  srOnly: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  striped: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  active: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  children: onlyProgressBar,

  /**
   * @private
   */
  isChild: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  min: 0,
  max: 100,
  active: false,
  isChild: false,
  srOnly: false,
  striped: false
};

function getPercentage(now, min, max) {
  var percentage = (now - min) / (max - min) * 100;
  return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
}

var ProgressBar =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ProgressBar, _React$Component);

  function ProgressBar() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = ProgressBar.prototype;

  _proto.renderProgressBar = function renderProgressBar(_ref) {
    var _extends2;

    var min = _ref.min,
        now = _ref.now,
        max = _ref.max,
        label = _ref.label,
        srOnly = _ref.srOnly,
        striped = _ref.striped,
        active = _ref.active,
        className = _ref.className,
        style = _ref.style,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, ["min", "now", "max", "label", "srOnly", "striped", "active", "className", "style"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {
      active: active
    }, _extends2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'striped')] = active || striped, _extends2));

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, elementProps, {
      role: "progressbar",
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes),
      style: Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
        width: getPercentage(now, min, max) + "%"
      }, style),
      "aria-valuenow": now,
      "aria-valuemin": min,
      "aria-valuemax": max
    }), srOnly ? react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
      className: "sr-only"
    }, label) : label);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        isChild = _this$props.isChild,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["isChild"]);

    if (isChild) {
      return this.renderProgressBar(props);
    }

    var min = props.min,
        now = props.now,
        max = props.max,
        label = props.label,
        srOnly = props.srOnly,
        striped = props.striped,
        active = props.active,
        bsClass = props.bsClass,
        bsStyle = props.bsStyle,
        className = props.className,
        children = props.children,
        wrapperProps = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["min", "now", "max", "label", "srOnly", "striped", "active", "bsClass", "bsStyle", "className", "children"]);

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, wrapperProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, 'progress')
    }), children ? _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_9__["default"].map(children, function (child) {
      return Object(react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(child, {
        isChild: true
      });
    }) : this.renderProgressBar({
      min: min,
      now: now,
      max: max,
      label: label,
      srOnly: srOnly,
      striped: striped,
      active: active,
      bsClass: bsClass,
      bsStyle: bsStyle
    }));
  };

  return ProgressBar;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

ProgressBar.propTypes = propTypes;
ProgressBar.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('progress-bar', Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsStyles"])(_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_0___default()(_utils_StyleConfig__WEBPACK_IMPORTED_MODULE_8__["State"]), ProgressBar)));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Radio.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Radio.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");




/* eslint-disable jsx-a11y/label-has-for */





var propTypes = {
  inline: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,

  /**
   * Only valid if `inline` is not set.
   */
  validationState: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['success', 'warning', 'error', null]),

  /**
   * Attaches a ref to the `<input>` element. Only functions can be used here.
   *
   * ```js
   * <Radio inputRef={ref => { this.input = ref; }} />
   * ```
   */
  inputRef: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
var defaultProps = {
  inline: false,
  disabled: false,
  title: ''
};

var Radio =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Radio, _React$Component);

  function Radio() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Radio.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        inline = _this$props.inline,
        disabled = _this$props.disabled,
        validationState = _this$props.validationState,
        inputRef = _this$props.inputRef,
        className = _this$props.className,
        style = _this$props.style,
        title = _this$props.title,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["inline", "disabled", "validationState", "inputRef", "className", "style", "title", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var input = react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      ref: inputRef,
      type: "radio",
      disabled: disabled
    }));

    if (inline) {
      var _classes2;

      var _classes = (_classes2 = {}, _classes2[Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inline')] = true, _classes2.disabled = disabled, _classes2); // Use a warning here instead of in propTypes to get better-looking
      // generated documentation.


       true ? warning__WEBPACK_IMPORTED_MODULE_6___default()(!validationState, '`validationState` is ignored on `<Radio inline>`. To display ' + 'validation state on an inline radio, set `validationState` on a ' + 'parent `<FormGroup>` or other element instead.') : undefined;
      return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, _classes),
        style: style,
        title: title
      }, input, children);
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), {
      disabled: disabled
    });

    if (validationState) {
      classes["has-" + validationState] = true;
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("label", {
      title: title
    }, input, children));
  };

  return Radio;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Radio.propTypes = propTypes;
Radio.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('radio', Radio));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Row.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Row.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");







var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_5___default.a
};
var defaultProps = {
  componentClass: 'div'
};

var Row =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Row, _React$Component);

  function Row() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Row.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        Component = _this$props.componentClass,
        className = _this$props.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["componentClass", "className"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["getClassSet"])(bsProps);
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
    }));
  };

  return Row;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Row.propTypes = propTypes;
Row.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_6__["bsClass"])('row', Row));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/SafeAnchor.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");








var propTypes = {
  href: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  onKeyDown: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * this is sort of silly but needed for Button
   */
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_6___default.a
};
var defaultProps = {
  componentClass: 'a'
};

function isTrivialHref(href) {
  return !href || href.trim() === '#';
}
/**
 * There are situations due to browser quirks or Bootstrap CSS where
 * an anchor tag is needed, when semantically a button tag is the
 * better choice. SafeAnchor ensures that when an anchor is used like a
 * button its accessible. It also emulates input `disabled` behavior for
 * links, which is usually desirable for Buttons, NavItems, MenuItems, etc.
 */


var SafeAnchor =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(SafeAnchor, _React$Component);

  function SafeAnchor(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleClick = _this.handleClick.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleKeyDown = _this.handleKeyDown.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    return _this;
  }

  var _proto = SafeAnchor.prototype;

  _proto.handleClick = function handleClick(event) {
    var _this$props = this.props,
        disabled = _this$props.disabled,
        href = _this$props.href,
        onClick = _this$props.onClick;

    if (disabled || isTrivialHref(href)) {
      event.preventDefault();
    }

    if (disabled) {
      event.stopPropagation();
      return;
    }

    if (onClick) {
      onClick(event);
    }
  };

  _proto.handleKeyDown = function handleKeyDown(event) {
    if (event.key === ' ') {
      event.preventDefault();
      this.handleClick(event);
    }
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        Component = _this$props2.componentClass,
        disabled = _this$props2.disabled,
        onKeyDown = _this$props2.onKeyDown,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["componentClass", "disabled", "onKeyDown"]);

    if (isTrivialHref(props.href)) {
      props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node
      // otherwise, the cursor incorrectly styled (except with role='button')

      props.href = props.href || '#';
    }

    if (disabled) {
      props.tabIndex = -1;
      props.style = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
        pointerEvents: 'none'
      }, props.style);
    }

    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      onClick: this.handleClick,
      onKeyDown: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_7__["default"])(this.handleKeyDown, onKeyDown)
    }));
  };

  return SafeAnchor;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

SafeAnchor.propTypes = propTypes;
SafeAnchor.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (SafeAnchor);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitButton.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitButton.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Button */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Button.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Dropdown.js");
/* harmony import */ var _SplitToggle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SplitToggle */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitToggle.js");
/* harmony import */ var _utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/splitComponentProps */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js");










var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  // Toggle props.
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  bsSize: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  href: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,

  /**
   * The content of the split button.
   */
  title: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node.isRequired,

  /**
   * Accessible label for the toggle; the value of `title` if not specified.
   */
  toggleLabel: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  // Override generated docs from <Dropdown>.

  /**
   * @private
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.node
});

var SplitButton =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(SplitButton, _React$Component);

  function SplitButton() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = SplitButton.prototype;

  _proto.render = function render() {
    var _this$props = this.props,
        bsSize = _this$props.bsSize,
        bsStyle = _this$props.bsStyle,
        title = _this$props.title,
        toggleLabel = _this$props.toggleLabel,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["bsSize", "bsStyle", "title", "toggleLabel", "children"]);

    var _splitComponentProps = Object(_utils_splitComponentProps__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].ControlledComponent),
        dropdownProps = _splitComponentProps[0],
        buttonProps = _splitComponentProps[1];

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, dropdownProps, {
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, buttonProps, {
      disabled: props.disabled,
      bsSize: bsSize,
      bsStyle: bsStyle
    }), title), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SplitToggle__WEBPACK_IMPORTED_MODULE_7__["default"], {
      "aria-label": toggleLabel || title,
      bsSize: bsSize,
      bsStyle: bsStyle
    }), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Menu, null, children));
  };

  return SplitButton;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

SplitButton.propTypes = propTypes;
SplitButton.Toggle = _SplitToggle__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (SplitButton);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitToggle.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/SplitToggle.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/DropdownToggle.js");





var SplitToggle =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(SplitToggle, _React$Component);

  function SplitToggle() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = SplitToggle.prototype;

  _proto.render = function render() {
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_DropdownToggle__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props, {
      useAnchor: false,
      noCaret: false
    }));
  };

  return SplitToggle;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

SplitToggle.defaultProps = _DropdownToggle__WEBPACK_IMPORTED_MODULE_3__["default"].defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (SplitToggle);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tab.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tab.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TabPane */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabPane.js");








var propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _TabPane__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, {
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  title: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node,

  /**
   * tabClassName is used as className for the associated NavItem
   */
  tabClassName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
});

var Tab =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Tab, _React$Component);

  function Tab() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tab.prototype;

  _proto.render = function render() {
    var props = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props); // These props are for the parent `<Tabs>` rather than the `<TabPane>`.


    delete props.title;
    delete props.disabled;
    delete props.tabClassName;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TabPane__WEBPACK_IMPORTED_MODULE_6__["default"], props);
  };

  return Tab;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

Tab.propTypes = propTypes;
Tab.Container = _TabContainer__WEBPACK_IMPORTED_MODULE_4__["default"];
Tab.Content = _TabContent__WEBPACK_IMPORTED_MODULE_5__["default"];
Tab.Pane = _TabPane__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Tab);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContainer.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContainer.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");





var TAB = 'tab';
var PANE = 'pane';
var idPropType = 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.number]);
var propTypes = {
  /**
   * HTML id attribute, required if no `generateChildId` prop
   * is specified.
   */
  id: function id(props) {
    var error = null;

    if (!props.generateChildId) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      error = idPropType.apply(void 0, [props].concat(args));

      if (!error && !props.id) {
        error = new Error('In order to properly initialize Tabs in a way that is accessible ' + 'to assistive technologies (such as screen readers) an `id` or a ' + '`generateChildId` prop to TabContainer is required');
      }
    }

    return error;
  },

  /**
   * A function that takes an `eventKey` and `type` and returns a unique id for
   * child tab `<NavItem>`s and `<TabPane>`s. The function _must_ be a pure
   * function, meaning it should always return the _same_ id for the same set
   * of inputs. The default value requires that an `id` to be set for the
   * `<TabContainer>`.
   *
   * The `type` argument will either be `"tab"` or `"pane"`.
   *
   * @defaultValue (eventKey, type) => `${this.props.id}-${type}-${key}`
   */
  generateChildId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /**
   * A callback fired when a tab is selected.
   *
   * @controllable activeKey
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /**
   * The `eventKey` of the currently active tab.
   *
   * @controllable onSelect
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any
};
var childContextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any,
    onSelect: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired,
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired
  })
};

var TabContainer =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(TabContainer, _React$Component);

  function TabContainer() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = TabContainer.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        activeKey = _this$props.activeKey,
        onSelect = _this$props.onSelect,
        generateChildId = _this$props.generateChildId,
        id = _this$props.id;

    var getId = generateChildId || function (key, type) {
      return id ? id + "-" + type + "-" + key : null;
    };

    return {
      $bs_tabContainer: {
        activeKey: activeKey,
        onSelect: onSelect,
        getTabId: function getTabId(key) {
          return getId(key, TAB);
        },
        getPaneId: function getPaneId(key) {
          return getId(key, PANE);
        }
      }
    };
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        children = _this$props2.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props2, ["children"]);

    delete props.generateChildId;
    delete props.onSelect;
    delete props.activeKey;
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children), props);
  };

  return TabContainer;
}(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);

TabContainer.propTypes = propTypes;
TabContainer.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["uncontrollable"])(TabContainer, {
  activeKey: 'onSelect'
}));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContent.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContent.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");









var propTypes = {
  componentClass: prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a,

  /**
   * Sets a default animation strategy for all children `<TabPane>`s. Use
   * `false` to disable, `true` to enable the default `<Fade>` animation or
   * a react-transition-group v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /**
   * Wait until the first "enter" transition to mount tabs (add them to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Unmount tabs (remove it from the DOM) when they are no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var defaultProps = {
  componentClass: 'div',
  animation: true,
  mountOnEnter: false,
  unmountOnExit: false
};
var contextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any
  })
};
var childContextTypes = {
  $bs_tabContent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onPaneEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onPaneExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    exiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool.isRequired
  })
};

var TabContent =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(TabContent, _React$Component);

  function TabContent(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handlePaneEnter = _this.handlePaneEnter.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handlePaneExited = _this.handlePaneExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this))); // Active entries in state will be `null` unless `animation` is set. Need
    // to track active child in case keys swap and the active child changes
    // but the active key does not.

    _this.state = {
      activeKey: null,
      activeChild: null
    };
    return _this;
  }

  var _proto = TabContent.prototype;

  _proto.getChildContext = function getChildContext() {
    var _this$props = this.props,
        bsClass = _this$props.bsClass,
        animation = _this$props.animation,
        mountOnEnter = _this$props.mountOnEnter,
        unmountOnExit = _this$props.unmountOnExit;
    var stateActiveKey = this.state.activeKey;
    var containerActiveKey = this.getContainerActiveKey();
    var activeKey = stateActiveKey != null ? stateActiveKey : containerActiveKey;
    var exiting = stateActiveKey != null && stateActiveKey !== containerActiveKey;
    return {
      $bs_tabContent: {
        bsClass: bsClass,
        animation: animation,
        activeKey: activeKey,
        mountOnEnter: mountOnEnter,
        unmountOnExit: unmountOnExit,
        onPaneEnter: this.handlePaneEnter,
        onPaneExited: this.handlePaneExited,
        exiting: exiting
      }
    };
  };

  _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
    // eslint-disable-line
    if (!nextProps.animation && this.state.activeChild) {
      this.setState({
        activeKey: null,
        activeChild: null
      });
    }
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    this.isUnmounted = true;
  };

  _proto.getContainerActiveKey = function getContainerActiveKey() {
    var tabContainer = this.context.$bs_tabContainer;
    return tabContainer && tabContainer.activeKey;
  };

  _proto.handlePaneEnter = function handlePaneEnter(child, childKey) {
    if (!this.props.animation) {
      return false;
    } // It's possible that this child should be transitioning out.


    if (childKey !== this.getContainerActiveKey()) {
      return false;
    }

    this.setState({
      activeKey: childKey,
      activeChild: child
    });
    return true;
  };

  _proto.handlePaneExited = function handlePaneExited(child) {
    // This might happen as everything is unmounting.
    if (this.isUnmounted) {
      return;
    }

    this.setState(function (_ref) {
      var activeChild = _ref.activeChild;

      if (activeChild !== child) {
        return null;
      }

      return {
        activeKey: null,
        activeChild: null
      };
    });
  };

  _proto.render = function render() {
    var _this$props2 = this.props,
        Component = _this$props2.componentClass,
        className = _this$props2.className,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props2, ["componentClass", "className"]);

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["splitBsPropsAndOmit"])(props, ['animation', 'mountOnEnter', 'unmountOnExit']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Component, Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["prefix"])(bsProps, 'content'))
    }));
  };

  return TabContent;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

TabContent.propTypes = propTypes;
TabContent.defaultProps = defaultProps;
TabContent.contextTypes = contextTypes;
TabContent.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_8__["bsClass"])('tab', TabContent));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabPane.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabPane.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime-corejs2/helpers/esm/assertThisInitialized.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Fade */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Fade.js");












var propTypes = {
  /**
   * Uniquely identify the `<TabPane>` among its siblings.
   */
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * Use animation when showing or hiding `<TabPane>`s. Use `false` to disable,
   * `true` to enable the default `<Fade>` animation or
   * a react-transition-group v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),

  /** @private * */
  id: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /** @private * */
  'aria-labelledby': prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * If not explicitly specified and rendered in the context of a
   * `<TabContent>`, the `bsClass` of the `<TabContent>` suffixed by `-pane`.
   * If otherwise not explicitly specified, `tab-pane`.
   */
  bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Transition onEnter callback when animation is not `false`
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onEntering callback when animation is not `false`
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onEntered callback when animation is not `false`
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExit callback when animation is not `false`
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExiting callback when animation is not `false`
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Transition onExited callback when animation is not `false`
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Wait until the first "enter" transition to mount the tab (add it to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Unmount the tab (remove it from the DOM) when it is no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
};
var contextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    getTabId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
    getPaneId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
  }),
  $bs_tabContent: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    bsClass: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
    animation: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
    activeKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,
    mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
    onPaneEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    onPaneExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func.isRequired,
    exiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool.isRequired
  })
};
/**
 * We override the `<TabContainer>` context so `<Nav>`s in `<TabPane>`s don't
 * conflict with the top level one.
 */

var childContextTypes = {
  $bs_tabContainer: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf([null])
};

var TabPane =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(TabPane, _React$Component);

  function TabPane(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    _this.handleEnter = _this.handleEnter.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.handleExited = _this.handleExited.bind(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_corejs2_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this)));
    _this.in = false;
    return _this;
  }

  var _proto = TabPane.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      $bs_tabContainer: null
    };
  };

  _proto.componentDidMount = function componentDidMount() {
    if (this.shouldBeIn()) {
      // In lieu of the action event firing.
      this.handleEnter();
    }
  };

  _proto.componentDidUpdate = function componentDidUpdate() {
    if (this.in) {
      if (!this.shouldBeIn()) {
        // We shouldn't be active any more. Notify the parent.
        this.handleExited();
      }
    } else if (this.shouldBeIn()) {
      // We are the active child. Notify the parent.
      this.handleEnter();
    }
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    if (this.in) {
      // In lieu of the action event firing.
      this.handleExited();
    }
  };

  _proto.getAnimation = function getAnimation() {
    if (this.props.animation != null) {
      return this.props.animation;
    }

    var tabContent = this.context.$bs_tabContent;
    return tabContent && tabContent.animation;
  };

  _proto.handleEnter = function handleEnter() {
    var tabContent = this.context.$bs_tabContent;

    if (!tabContent) {
      return;
    }

    this.in = tabContent.onPaneEnter(this, this.props.eventKey);
  };

  _proto.handleExited = function handleExited() {
    var tabContent = this.context.$bs_tabContent;

    if (!tabContent) {
      return;
    }

    tabContent.onPaneExited(this);
    this.in = false;
  };

  _proto.isActive = function isActive() {
    var tabContent = this.context.$bs_tabContent;
    var activeKey = tabContent && tabContent.activeKey;
    return this.props.eventKey === activeKey;
  };

  _proto.shouldBeIn = function shouldBeIn() {
    return this.getAnimation() && this.isActive();
  };

  _proto.render = function render() {
    var _this$props = this.props,
        eventKey = _this$props.eventKey,
        className = _this$props.className,
        onEnter = _this$props.onEnter,
        onEntering = _this$props.onEntering,
        onEntered = _this$props.onEntered,
        onExit = _this$props.onExit,
        onExiting = _this$props.onExiting,
        onExited = _this$props.onExited,
        propsMountOnEnter = _this$props.mountOnEnter,
        propsUnmountOnExit = _this$props.unmountOnExit,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["eventKey", "className", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit"]);

    var _this$context = this.context,
        tabContent = _this$context.$bs_tabContent,
        tabContainer = _this$context.$bs_tabContainer;

    var _splitBsPropsAndOmit = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["splitBsPropsAndOmit"])(props, ['animation']),
        bsProps = _splitBsPropsAndOmit[0],
        elementProps = _splitBsPropsAndOmit[1];

    var active = this.isActive();
    var animation = this.getAnimation();
    var mountOnEnter = propsMountOnEnter != null ? propsMountOnEnter : tabContent && tabContent.mountOnEnter;
    var unmountOnExit = propsUnmountOnExit != null ? propsUnmountOnExit : tabContent && tabContent.unmountOnExit;

    if (!active && !animation && unmountOnExit) {
      return null;
    }

    var Transition = animation === true ? _Fade__WEBPACK_IMPORTED_MODULE_11__["default"] : animation || null;

    if (tabContent) {
      bsProps.bsClass = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["prefix"])(tabContent, 'pane');
    }

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["getClassSet"])(bsProps), {
      active: active
    });

    if (tabContainer) {
       true ? warning__WEBPACK_IMPORTED_MODULE_8___default()(!elementProps.id && !elementProps['aria-labelledby'], 'In the context of a `<TabContainer>`, `<TabPanes>` are given ' + 'generated `id` and `aria-labelledby` attributes for the sake of ' + 'proper component accessibility. Any provided ones will be ignored. ' + 'To control these attributes directly provide a `generateChildId` ' + 'prop to the parent `<TabContainer>`.') : undefined;
      elementProps.id = tabContainer.getPaneId(eventKey);
      elementProps['aria-labelledby'] = tabContainer.getTabId(eventKey);
    }

    var pane = react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tabpanel",
      "aria-hidden": !active,
      className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, classes)
    }));

    if (Transition) {
      var exiting = tabContent && tabContent.exiting;
      return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(Transition, {
        in: active && !exiting,
        onEnter: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleEnter, onEnter),
        onEntering: onEntering,
        onEntered: onEntered,
        onExit: onExit,
        onExiting: onExiting,
        onExited: Object(_utils_createChainedFunction__WEBPACK_IMPORTED_MODULE_10__["default"])(this.handleExited, onExited),
        mountOnEnter: mountOnEnter,
        unmountOnExit: unmountOnExit
      }, pane);
    }

    return pane;
  };

  return TabPane;
}(react__WEBPACK_IMPORTED_MODULE_5___default.a.Component);

TabPane.propTypes = propTypes;
TabPane.contextTypes = contextTypes;
TabPane.childContextTypes = childContextTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_9__["bsClass"])('tab-pane', TabPane));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tabs.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tabs.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");
/* harmony import */ var prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Nav */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Nav.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./NavItem */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/NavItem.js");
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TabContent */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/TabContent.js");
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");
/* harmony import */ var _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils/ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");














var TabContainer = _TabContainer__WEBPACK_IMPORTED_MODULE_10__["default"].ControlledComponent;
var propTypes = {
  /**
   * Mark the Tab with a matching `eventKey` as active.
   *
   * @controllable onSelect
   */
  activeKey: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.any,

  /**
   * Navigation style
   */
  bsStyle: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOf(['tabs', 'pills']),

  /**
   * Sets a default animation strategy. Use `false` to disable, `true`
   * to enable the default `<Fade>` animation, or a react-transition-group
   * v2 `<Transition/>` component.
   */
  animation: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool, prop_types_extra_lib_elementType__WEBPACK_IMPORTED_MODULE_7___default.a]),
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_5___default()(prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.number])),

  /**
   * Callback fired when a Tab is selected.
   *
   * ```js
   * function (
   *   Any eventKey,
   *   SyntheticEvent event?
   * )
   * ```
   *
   * @controllable activeKey
   */
  onSelect: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,

  /**
   * Wait until the first "enter" transition to mount tabs (add them to the DOM)
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool,

  /**
   * Unmount tabs (remove it from the DOM) when it is no longer visible
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.bool
};
var defaultProps = {
  bsStyle: 'tabs',
  animation: true,
  mountOnEnter: false,
  unmountOnExit: false
};

function getDefaultActiveKey(children) {
  var defaultActiveKey;
  _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].forEach(children, function (child) {
    if (defaultActiveKey == null) {
      defaultActiveKey = child.props.eventKey;
    }
  });
  return defaultActiveKey;
}

var Tabs =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Tabs, _React$Component);

  function Tabs() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tabs.prototype;

  _proto.renderTab = function renderTab(child) {
    var _child$props = child.props,
        title = _child$props.title,
        eventKey = _child$props.eventKey,
        disabled = _child$props.disabled,
        tabClassName = _child$props.tabClassName;

    if (title == null) {
      return null;
    }

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_NavItem__WEBPACK_IMPORTED_MODULE_9__["default"], {
      eventKey: eventKey,
      disabled: disabled,
      className: tabClassName
    }, title);
  };

  _proto.render = function render() {
    var _this$props = this.props,
        id = _this$props.id,
        onSelect = _this$props.onSelect,
        animation = _this$props.animation,
        mountOnEnter = _this$props.mountOnEnter,
        unmountOnExit = _this$props.unmountOnExit,
        bsClass = _this$props.bsClass,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        _this$props$activeKey = _this$props.activeKey,
        activeKey = _this$props$activeKey === void 0 ? getDefaultActiveKey(children) : _this$props$activeKey,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["id", "onSelect", "animation", "mountOnEnter", "unmountOnExit", "bsClass", "className", "style", "children", "activeKey"]);

    return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(TabContainer, {
      id: id,
      activeKey: activeKey,
      onSelect: onSelect,
      className: className,
      style: style
    }, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Nav__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      role: "tablist"
    }), _utils_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_13__["default"].map(children, this.renderTab)), react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TabContent__WEBPACK_IMPORTED_MODULE_11__["default"], {
      bsClass: bsClass,
      animation: animation,
      mountOnEnter: mountOnEnter,
      unmountOnExit: unmountOnExit
    }, children)));
  };

  return Tabs;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

Tabs.propTypes = propTypes;
Tabs.defaultProps = defaultProps;
Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_12__["bsClass"])('tab', Tabs);
/* harmony default export */ __webpack_exports__["default"] = (Object(uncontrollable__WEBPACK_IMPORTED_MODULE_6__["uncontrollable"])(Tabs, {
  activeKey: 'onSelect'
}));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tooltip.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/Tooltip.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js");








var propTypes = {
  /**
   * An html id attribute, necessary for accessibility
   * @type {string|number}
   * @required
   */
  id: prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_6___default()(prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number])),

  /**
   * Sets the direction the Tooltip is positioned towards.
   */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOf(['top', 'right', 'bottom', 'left']),

  /**
   * The "top" position value for the Tooltip.
   */
  positionTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Tooltip.
   */
  positionLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "top" position value for the Tooltip arrow.
   */
  arrowOffsetTop: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string]),

  /**
   * The "left" position value for the Tooltip arrow.
   */
  arrowOffsetLeft: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string])
};
var defaultProps = {
  placement: 'right'
};

var Tooltip =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_corejs2_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Tooltip, _React$Component);

  function Tooltip() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tooltip.prototype;

  _proto.render = function render() {
    var _extends2;

    var _this$props = this.props,
        placement = _this$props.placement,
        positionTop = _this$props.positionTop,
        positionLeft = _this$props.positionLeft,
        arrowOffsetTop = _this$props.arrowOffsetTop,
        arrowOffsetLeft = _this$props.arrowOffsetLeft,
        className = _this$props.className,
        style = _this$props.style,
        children = _this$props.children,
        props = Object(_babel_runtime_corejs2_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["placement", "positionTop", "positionLeft", "arrowOffsetTop", "arrowOffsetLeft", "className", "style", "children"]);

    var _splitBsProps = Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["splitBsProps"])(props),
        bsProps = _splitBsProps[0],
        elementProps = _splitBsProps[1];

    var classes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["getClassSet"])(bsProps), (_extends2 = {}, _extends2[placement] = true, _extends2));

    var outerStyle = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      top: positionTop,
      left: positionLeft
    }, style);

    var arrowStyle = {
      top: arrowOffsetTop,
      left: arrowOffsetLeft
    };
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, elementProps, {
      role: "tooltip",
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes),
      style: outerStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'arrow'),
      style: arrowStyle
    }), react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
      className: Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["prefix"])(bsProps, 'inner')
    }, children));
  };

  return Tooltip;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

Tooltip.propTypes = propTypes;
Tooltip.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Object(_utils_bootstrapUtils__WEBPACK_IMPORTED_MODULE_7__["bsClass"])('tooltip', Tooltip));

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/PropTypes.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/PropTypes.js ***!
  \******************************************************************************************/
/*! exports provided: generatedId, requiredRoles, exclusiveRoles */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generatedId", function() { return generatedId; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requiredRoles", function() { return requiredRoles; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exclusiveRoles", function() { return exclusiveRoles; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types-extra/lib/utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");
/* harmony import */ var prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js");



var idPropType = prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number]);
function generatedId(name) {
  return function (props) {
    var error = null;

    if (!props.generateChildId) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      error = idPropType.apply(void 0, [props].concat(args));

      if (!error && !props.id) {
        error = new Error("In order to properly initialize the " + name + " in a way that is accessible to assistive technologies " + ("(such as screen readers) an `id` or a `generateChildId` prop to " + name + " is required"));
      }
    }

    return error;
  };
}
function requiredRoles() {
  for (var _len2 = arguments.length, roles = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
    roles[_key2] = arguments[_key2];
  }

  return prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default()(function (props, propName, component) {
    var missing;
    roles.every(function (role) {
      if (!_ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__["default"].some(props.children, function (child) {
        return child.props.bsRole === role;
      })) {
        missing = role;
        return false;
      }

      return true;
    });

    if (missing) {
      return new Error("(children) " + component + " - Missing a required child with bsRole: " + (missing + ". " + component + " must have at least one child of each of ") + ("the following bsRoles: " + roles.join(', ')));
    }

    return null;
  });
}
function exclusiveRoles() {
  for (var _len3 = arguments.length, roles = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
    roles[_key3] = arguments[_key3];
  }

  return prop_types_extra_lib_utils_createChainableTypeChecker__WEBPACK_IMPORTED_MODULE_1___default()(function (props, propName, component) {
    var duplicate;
    roles.every(function (role) {
      var childrenWithRole = _ValidComponentChildren__WEBPACK_IMPORTED_MODULE_2__["default"].filter(props.children, function (child) {
        return child.props.bsRole === role;
      });

      if (childrenWithRole.length > 1) {
        duplicate = role;
        return false;
      }

      return true;
    });

    if (duplicate) {
      return new Error("(children) " + component + " - Duplicate children detected of bsRole: " + (duplicate + ". Only one child each allowed with the following ") + ("bsRoles: " + roles.join(', ')));
    }

    return null;
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js ***!
  \********************************************************************************************/
/*! exports provided: Size, SIZE_MAP, DEVICE_SIZES, State, Style */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Size", function() { return Size; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SIZE_MAP", function() { return SIZE_MAP; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEVICE_SIZES", function() { return DEVICE_SIZES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "State", function() { return State; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Style", function() { return Style; });
var Size = {
  LARGE: 'large',
  SMALL: 'small',
  XSMALL: 'xsmall'
};
var SIZE_MAP = {
  large: 'lg',
  medium: 'md',
  small: 'sm',
  xsmall: 'xs',
  lg: 'lg',
  md: 'md',
  sm: 'sm',
  xs: 'xs'
};
var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
var State = {
  SUCCESS: 'success',
  WARNING: 'warning',
  DANGER: 'danger',
  INFO: 'info'
};
var Style = {
  DEFAULT: 'default',
  PRIMARY: 'primary',
  LINK: 'link',
  INVERSE: 'inverse'
};

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/ValidComponentChildren.js ***!
  \*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
// TODO: This module should be ElementChildren, and should use named exports.

/**
 * Iterates through children that are typically specified as `props.children`,
 * but only maps over children that are "valid components".
 *
 * The mapFunction provided index will be normalised to the components mapped,
 * so an invalid component would not increase the index.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @return {object} Object containing the ordered map of results.
 */

function map(children, func, context) {
  var index = 0;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return child;
    }

    return func.call(context, child, index++);
  });
}
/**
 * Iterates through children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for context.
 */


function forEach(children, func, context) {
  var index = 0;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    func.call(context, child, index++);
  });
}
/**
 * Count the number of "valid components" in the Children container.
 *
 * @param {?*} children Children tree container.
 * @returns {number}
 */


function count(children) {
  var result = 0;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    ++result;
  });
  return result;
}
/**
 * Finds children that are typically specified as `props.children`,
 * but only iterates over children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @returns {array} of children that meet the func return statement
 */


function filter(children, func, context) {
  var index = 0;
  var result = [];
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result.push(child);
    }
  });
  return result;
}

function find(children, func, context) {
  var index = 0;
  var result;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = child;
    }
  });
  return result;
}

function every(children, func, context) {
  var index = 0;
  var result = true;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (!func.call(context, child, index++)) {
      result = false;
    }
  });
  return result;
}

function some(children, func, context) {
  var index = 0;
  var result = false;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = true;
    }
  });
  return result;
}

function toArray(children) {
  var result = [];
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (!react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) {
      return;
    }

    result.push(child);
  });
  return result;
}

/* harmony default export */ __webpack_exports__["default"] = ({
  map: map,
  forEach: forEach,
  count: count,
  find: find,
  filter: filter,
  every: every,
  some: some,
  toArray: toArray
});

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/bootstrapUtils.js ***!
  \***********************************************************************************************/
/*! exports provided: prefix, bsClass, bsStyles, bsSizes, getClassSet, splitBsProps, splitBsPropsAndOmit, addStyle, _curry */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsClass", function() { return bsClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsStyles", function() { return bsStyles; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bsSizes", function() { return bsSizes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassSet", function() { return getClassSet; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBsProps", function() { return splitBsProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBsPropsAndOmit", function() { return splitBsPropsAndOmit; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addStyle", function() { return addStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_curry", function() { return _curry; });
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs2/helpers/esm/extends */ "./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _StyleConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/StyleConfig.js");


// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.




function curry(fn) {
  return function () {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var last = args[args.length - 1];

    if (typeof last === 'function') {
      return fn.apply(void 0, args);
    }

    return function (Component) {
      return fn.apply(void 0, args.concat([Component]));
    };
  };
}

function prefix(props, variant) {
  var bsClass = (props.bsClass || '').trim();
  !(bsClass != null) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_2___default()(false, 'A `bsClass` prop is required for this component') : undefined : void 0;
  return bsClass + (variant ? "-" + variant : '');
}
var bsClass = curry(function (defaultClass, Component) {
  var propTypes = Component.propTypes || (Component.propTypes = {});
  var defaultProps = Component.defaultProps || (Component.defaultProps = {});
  propTypes.bsClass = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string;
  defaultProps.bsClass = defaultClass;
  return Component;
});
var bsStyles = curry(function (styles, defaultStyle, Component) {
  if (typeof defaultStyle !== 'string') {
    Component = defaultStyle;
    defaultStyle = undefined;
  }

  var existing = Component.STYLES || [];
  var propTypes = Component.propTypes || {};
  styles.forEach(function (style) {
    if (existing.indexOf(style) === -1) {
      existing.push(style);
    }
  });
  var propType = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(existing); // expose the values on the propType function for documentation

  Component.STYLES = existing;
  propType._values = existing;
  Component.propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, propTypes, {
    bsStyle: propType
  });

  if (defaultStyle !== undefined) {
    var defaultProps = Component.defaultProps || (Component.defaultProps = {});
    defaultProps.bsStyle = defaultStyle;
  }

  return Component;
});
var bsSizes = curry(function (sizes, defaultSize, Component) {
  if (typeof defaultSize !== 'string') {
    Component = defaultSize;
    defaultSize = undefined;
  }

  var existing = Component.SIZES || [];
  var propTypes = Component.propTypes || {};
  sizes.forEach(function (size) {
    if (existing.indexOf(size) === -1) {
      existing.push(size);
    }
  });
  var values = [];
  existing.forEach(function (size) {
    var mappedSize = _StyleConfig__WEBPACK_IMPORTED_MODULE_4__["SIZE_MAP"][size];

    if (mappedSize && mappedSize !== size) {
      values.push(mappedSize);
    }

    values.push(size);
  });
  var propType = prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(values);
  propType._values = values; // expose the values on the propType function for documentation

  Component.SIZES = existing;
  Component.propTypes = Object(_babel_runtime_corejs2_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, propTypes, {
    bsSize: propType
  });

  if (defaultSize !== undefined) {
    if (!Component.defaultProps) {
      Component.defaultProps = {};
    }

    Component.defaultProps.bsSize = defaultSize;
  }

  return Component;
});
function getClassSet(props) {
  var _classes;

  var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);

  if (props.bsSize) {
    var bsSize = _StyleConfig__WEBPACK_IMPORTED_MODULE_4__["SIZE_MAP"][props.bsSize] || props.bsSize;
    classes[prefix(props, bsSize)] = true;
  }

  if (props.bsStyle) {
    classes[prefix(props, props.bsStyle)] = true;
  }

  return classes;
}

function getBsProps(props) {
  return {
    bsClass: props.bsClass,
    bsSize: props.bsSize,
    bsStyle: props.bsStyle,
    bsRole: props.bsRole
  };
}

function isBsProp(propName) {
  return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
}

function splitBsProps(props) {
  var elementProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (!isBsProp(propName)) {
      elementProps[propName] = propValue;
    }
  });

  return [getBsProps(props), elementProps];
}
function splitBsPropsAndOmit(props, omittedPropNames) {
  var isOmittedProp = {};
  omittedPropNames.forEach(function (propName) {
    isOmittedProp[propName] = true;
  });
  var elementProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref2) {
    var propName = _ref2[0],
        propValue = _ref2[1];

    if (!isBsProp(propName) && !isOmittedProp[propName]) {
      elementProps[propName] = propValue;
    }
  });

  return [getBsProps(props), elementProps];
}
/**
 * Add a style variant to a Component. Mutates the propTypes of the component
 * in order to validate the new variant.
 */

function addStyle(Component) {
  for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    styleVariant[_key2 - 1] = arguments[_key2];
  }

  bsStyles(styleVariant)(Component);
}
var _curry = curry;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/capitalize.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/capitalize.js ***!
  \*******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return capitalize; });
function capitalize(string) {
  return "" + string.charAt(0).toUpperCase() + string.slice(1);
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/createChainedFunction.js ***!
  \******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @param {function} functions to chain
 * @returns {function|null}
 */
function createChainedFunction() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.filter(function (f) {
    return f != null;
  }).reduce(function (acc, f) {
    if (typeof f !== 'function') {
      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
    }

    if (acc === null) {
      return f;
    }

    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      acc.apply(this, args);
      f.apply(this, args);
    };
  }, null);
}

/* harmony default export */ __webpack_exports__["default"] = (createChainedFunction);

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/es/utils/splitComponentProps.js ***!
  \****************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return splitComponentProps; });
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js");
/* harmony import */ var _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0__);

function splitComponentProps(props, Component) {
  var componentPropTypes = Component.propTypes;
  var parentProps = {};
  var childProps = {};

  _babel_runtime_corejs2_core_js_object_entries__WEBPACK_IMPORTED_MODULE_0___default()(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (componentPropTypes[propName]) {
      parentProps[propName] = propValue;
    } else {
      childProps[propName] = propValue;
    }
  });

  return [parentProps, childProps];
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/StyleConfig.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/StyleConfig.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.Style = exports.State = exports.DEVICE_SIZES = exports.SIZE_MAP = exports.Size = void 0;
var Size = {
  LARGE: 'large',
  SMALL: 'small',
  XSMALL: 'xsmall'
};
exports.Size = Size;
var SIZE_MAP = {
  large: 'lg',
  medium: 'md',
  small: 'sm',
  xsmall: 'xs',
  lg: 'lg',
  md: 'md',
  sm: 'sm',
  xs: 'xs'
};
exports.SIZE_MAP = SIZE_MAP;
var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
exports.DEVICE_SIZES = DEVICE_SIZES;
var State = {
  SUCCESS: 'success',
  WARNING: 'warning',
  DANGER: 'danger',
  INFO: 'info'
};
exports.State = State;
var Style = {
  DEFAULT: 'default',
  PRIMARY: 'primary',
  LINK: 'link',
  INVERSE: 'inverse'
};
exports.Style = Style;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.default = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

// TODO: This module should be ElementChildren, and should use named exports.

/**
 * Iterates through children that are typically specified as `props.children`,
 * but only maps over children that are "valid components".
 *
 * The mapFunction provided index will be normalised to the components mapped,
 * so an invalid component would not increase the index.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @return {object} Object containing the ordered map of results.
 */
function map(children, func, context) {
  var index = 0;
  return _react.default.Children.map(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return child;
    }

    return func.call(context, child, index++);
  });
}
/**
 * Iterates through children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for context.
 */


function forEach(children, func, context) {
  var index = 0;

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    func.call(context, child, index++);
  });
}
/**
 * Count the number of "valid components" in the Children container.
 *
 * @param {?*} children Children tree container.
 * @returns {number}
 */


function count(children) {
  var result = 0;

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    ++result;
  });

  return result;
}
/**
 * Finds children that are typically specified as `props.children`,
 * but only iterates over children that are "valid components".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func.
 * @param {*} context Context for func.
 * @returns {array} of children that meet the func return statement
 */


function filter(children, func, context) {
  var index = 0;
  var result = [];

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result.push(child);
    }
  });

  return result;
}

function find(children, func, context) {
  var index = 0;
  var result;

  _react.default.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = child;
    }
  });

  return result;
}

function every(children, func, context) {
  var index = 0;
  var result = true;

  _react.default.Children.forEach(children, function (child) {
    if (!result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (!func.call(context, child, index++)) {
      result = false;
    }
  });

  return result;
}

function some(children, func, context) {
  var index = 0;
  var result = false;

  _react.default.Children.forEach(children, function (child) {
    if (result) {
      return;
    }

    if (!_react.default.isValidElement(child)) {
      return;
    }

    if (func.call(context, child, index++)) {
      result = true;
    }
  });

  return result;
}

function toArray(children) {
  var result = [];

  _react.default.Children.forEach(children, function (child) {
    if (!_react.default.isValidElement(child)) {
      return;
    }

    result.push(child);
  });

  return result;
}

var _default = {
  map: map,
  forEach: forEach,
  count: count,
  find: find,
  filter: filter,
  every: every,
  some: some,
  toArray: toArray
};
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/bootstrapUtils.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/bootstrapUtils.js ***!
  \************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

exports.__esModule = true;
exports.prefix = prefix;
exports.getClassSet = getClassSet;
exports.splitBsProps = splitBsProps;
exports.splitBsPropsAndOmit = splitBsPropsAndOmit;
exports.addStyle = addStyle;
exports._curry = exports.bsSizes = exports.bsStyles = exports.bsClass = void 0;

var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "./node_modules/@babel/runtime-corejs2/core-js/object/entries.js"));

var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/extends */ "./node_modules/@babel/runtime-corejs2/helpers/extends.js"));

var _invariant = _interopRequireDefault(__webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js"));

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _StyleConfig = __webpack_require__(/*! ./StyleConfig */ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/StyleConfig.js");

// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
function curry(fn) {
  return function () {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var last = args[args.length - 1];

    if (typeof last === 'function') {
      return fn.apply(void 0, args);
    }

    return function (Component) {
      return fn.apply(void 0, args.concat([Component]));
    };
  };
}

function prefix(props, variant) {
  var bsClass = (props.bsClass || '').trim();
  !(bsClass != null) ?  true ? (0, _invariant.default)(false, 'A `bsClass` prop is required for this component') : undefined : void 0;
  return bsClass + (variant ? "-" + variant : '');
}

var bsClass = curry(function (defaultClass, Component) {
  var propTypes = Component.propTypes || (Component.propTypes = {});
  var defaultProps = Component.defaultProps || (Component.defaultProps = {});
  propTypes.bsClass = _propTypes.default.string;
  defaultProps.bsClass = defaultClass;
  return Component;
});
exports.bsClass = bsClass;
var bsStyles = curry(function (styles, defaultStyle, Component) {
  if (typeof defaultStyle !== 'string') {
    Component = defaultStyle;
    defaultStyle = undefined;
  }

  var existing = Component.STYLES || [];
  var propTypes = Component.propTypes || {};
  styles.forEach(function (style) {
    if (existing.indexOf(style) === -1) {
      existing.push(style);
    }
  });

  var propType = _propTypes.default.oneOf(existing); // expose the values on the propType function for documentation


  Component.STYLES = existing;
  propType._values = existing;
  Component.propTypes = (0, _extends2.default)({}, propTypes, {
    bsStyle: propType
  });

  if (defaultStyle !== undefined) {
    var defaultProps = Component.defaultProps || (Component.defaultProps = {});
    defaultProps.bsStyle = defaultStyle;
  }

  return Component;
});
exports.bsStyles = bsStyles;
var bsSizes = curry(function (sizes, defaultSize, Component) {
  if (typeof defaultSize !== 'string') {
    Component = defaultSize;
    defaultSize = undefined;
  }

  var existing = Component.SIZES || [];
  var propTypes = Component.propTypes || {};
  sizes.forEach(function (size) {
    if (existing.indexOf(size) === -1) {
      existing.push(size);
    }
  });
  var values = [];
  existing.forEach(function (size) {
    var mappedSize = _StyleConfig.SIZE_MAP[size];

    if (mappedSize && mappedSize !== size) {
      values.push(mappedSize);
    }

    values.push(size);
  });

  var propType = _propTypes.default.oneOf(values);

  propType._values = values; // expose the values on the propType function for documentation

  Component.SIZES = existing;
  Component.propTypes = (0, _extends2.default)({}, propTypes, {
    bsSize: propType
  });

  if (defaultSize !== undefined) {
    if (!Component.defaultProps) {
      Component.defaultProps = {};
    }

    Component.defaultProps.bsSize = defaultSize;
  }

  return Component;
});
exports.bsSizes = bsSizes;

function getClassSet(props) {
  var _classes;

  var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);

  if (props.bsSize) {
    var bsSize = _StyleConfig.SIZE_MAP[props.bsSize] || props.bsSize;
    classes[prefix(props, bsSize)] = true;
  }

  if (props.bsStyle) {
    classes[prefix(props, props.bsStyle)] = true;
  }

  return classes;
}

function getBsProps(props) {
  return {
    bsClass: props.bsClass,
    bsSize: props.bsSize,
    bsStyle: props.bsStyle,
    bsRole: props.bsRole
  };
}

function isBsProp(propName) {
  return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
}

function splitBsProps(props) {
  var elementProps = {};
  (0, _entries.default)(props).forEach(function (_ref) {
    var propName = _ref[0],
        propValue = _ref[1];

    if (!isBsProp(propName)) {
      elementProps[propName] = propValue;
    }
  });
  return [getBsProps(props), elementProps];
}

function splitBsPropsAndOmit(props, omittedPropNames) {
  var isOmittedProp = {};
  omittedPropNames.forEach(function (propName) {
    isOmittedProp[propName] = true;
  });
  var elementProps = {};
  (0, _entries.default)(props).forEach(function (_ref2) {
    var propName = _ref2[0],
        propValue = _ref2[1];

    if (!isBsProp(propName) && !isOmittedProp[propName]) {
      elementProps[propName] = propValue;
    }
  });
  return [getBsProps(props), elementProps];
}
/**
 * Add a style variant to a Component. Mutates the propTypes of the component
 * in order to validate the new variant.
 */


function addStyle(Component) {
  for (var _len2 = arguments.length, styleVariant = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    styleVariant[_key2 - 1] = arguments[_key2];
  }

  bsStyles(styleVariant)(Component);
}

var _curry = curry;
exports._curry = _curry;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/createChainedFunction.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/createChainedFunction.js ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = void 0;

/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @param {function} functions to chain
 * @returns {function|null}
 */
function createChainedFunction() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.filter(function (f) {
    return f != null;
  }).reduce(function (acc, f) {
    if (typeof f !== 'function') {
      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
    }

    if (acc === null) {
      return f;
    }

    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      acc.apply(this, args);
      f.apply(this, args);
    };
  }, null);
}

var _default = createChainedFunction;
exports.default = _default;
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/index.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/index.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js");

var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js");

exports.__esModule = true;
exports.bootstrapUtils = void 0;

var _bootstrapUtils = _interopRequireWildcard(__webpack_require__(/*! ./bootstrapUtils */ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/bootstrapUtils.js"));

exports.bootstrapUtils = _bootstrapUtils;

var _createChainedFunction2 = _interopRequireDefault(__webpack_require__(/*! ./createChainedFunction */ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/createChainedFunction.js"));

exports.createChainedFunction = _createChainedFunction2.default;

var _ValidComponentChildren2 = _interopRequireDefault(__webpack_require__(/*! ./ValidComponentChildren */ "./node_modules/patternfly-react/node_modules/react-bootstrap/lib/utils/ValidComponentChildren.js"));

exports.ValidComponentChildren = _ValidComponentChildren2.default;

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/LegacyPortal.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/LegacyPortal.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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._mountOverlayTarget = function () {
      if (!_this._overlayTarget) {
        _this._overlayTarget = document.createElement('div');
        _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body);
        _this._portalContainerNode.appendChild(_this._overlayTarget);
      }
    }, _this._unmountOverlayTarget = function () {
      if (_this._overlayTarget) {
        _this._portalContainerNode.removeChild(_this._overlayTarget);
        _this._overlayTarget = null;
      }
      _this._portalContainerNode = null;
    }, _this._renderOverlay = function () {
      var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children);

      // Save reference for future access.
      if (overlay !== null) {
        _this._mountOverlayTarget();

        var initialRender = !_this._overlayInstance;

        _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () {
          if (initialRender && _this.props.onRendered) {
            _this.props.onRendered();
          }
        });
      } else {
        // Unrender if the component is null for transitions to null
        _this._unrenderOverlay();
        _this._unmountOverlayTarget();
      }
    }, _this._unrenderOverlay = function () {
      if (_this._overlayTarget) {
        _reactDom2.default.unmountComponentAtNode(_this._overlayTarget);
        _this._overlayInstance = null;
      }
    }, _this.getMountNode = function () {
      return _this._overlayTarget;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    this._renderOverlay();
  };

  Portal.prototype.componentDidUpdate = function componentDidUpdate() {
    this._renderOverlay();
  };

  Portal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
    if (this._overlayTarget && nextProps.container !== this.props.container) {
      this._portalContainerNode.removeChild(this._overlayTarget);
      this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body);
      this._portalContainerNode.appendChild(this._overlayTarget);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._isMounted = false;
    this._unrenderOverlay();
    this._unmountOverlayTarget();
  };

  Portal.prototype.render = function render() {
    return null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = Portal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Modal.js":
/*!********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/Modal.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _activeElement = __webpack_require__(/*! dom-helpers/activeElement */ "./node_modules/dom-helpers/activeElement.js");

var _activeElement2 = _interopRequireDefault(_activeElement);

var _contains = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");

var _contains2 = _interopRequireDefault(_contains);

var _inDOM = __webpack_require__(/*! dom-helpers/util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js");

var _inDOM2 = _interopRequireDefault(_inDOM);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _deprecated = __webpack_require__(/*! prop-types-extra/lib/deprecated */ "./node_modules/prop-types-extra/lib/deprecated.js");

var _deprecated2 = _interopRequireDefault(_deprecated);

var _elementType = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");

var _elementType2 = _interopRequireDefault(_elementType);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");

var _warning2 = _interopRequireDefault(_warning);

var _ModalManager = __webpack_require__(/*! ./ModalManager */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/ModalManager.js");

var _ModalManager2 = _interopRequireDefault(_ModalManager);

var _Portal = __webpack_require__(/*! ./Portal */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _RefHolder = __webpack_require__(/*! ./RefHolder */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/RefHolder.js");

var _RefHolder2 = _interopRequireDefault(_RefHolder);

var _addEventListener = __webpack_require__(/*! ./utils/addEventListener */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addEventListener.js");

var _addEventListener2 = _interopRequireDefault(_addEventListener);

var _addFocusListener = __webpack_require__(/*! ./utils/addFocusListener */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addFocusListener.js");

var _addFocusListener2 = _interopRequireDefault(_addFocusListener);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; } /* eslint-disable react/prop-types */

var modalManager = new _ModalManager2.default();

/**
 * Love them or hate them, `<Modal/>` provides a solid foundation for creating dialogs, lightboxes, or whatever else.
 * The Modal component renders its `children` node in front of a backdrop component.
 *
 * The Modal offers a few helpful features over using just a `<Portal/>` component and some styles:
 *
 * - Manages dialog stacking when one-at-a-time just isn't enough.
 * - Creates a backdrop, for disabling interaction below the modal.
 * - It properly manages focus; moving to the modal content, and keeping it there until the modal is closed.
 * - It disables scrolling of the page content while open.
 * - Adds the appropriate ARIA roles are automatically.
 * - Easily pluggable animations via a `<Transition/>` component.
 *
 * Note that, in the same way the backdrop element prevents users from clicking or interacting
 * with the page content underneath the Modal, Screen readers also need to be signaled to not to
 * interact with page content while the Modal is open. To do this, we use a common technique of applying
 * the `aria-hidden='true'` attribute to the non-Modal elements in the Modal `container`. This means that for
 * a Modal to be truly modal, it should have a `container` that is _outside_ your app's
 * React hierarchy (such as the default: document.body).
 */

var Modal = function (_React$Component) {
  _inherits(Modal, _React$Component);

  function Modal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Modal);

    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), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret);
  }

  Modal.prototype.omitProps = function omitProps(props, propTypes) {

    var keys = Object.keys(props);
    var newProps = {};
    keys.map(function (prop) {
      if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) {
        newProps[prop] = props[prop];
      }
    });

    return newProps;
  };

  Modal.prototype.render = function render() {
    var _props = this.props,
        show = _props.show,
        container = _props.container,
        children = _props.children,
        Transition = _props.transition,
        backdrop = _props.backdrop,
        className = _props.className,
        style = _props.style,
        onExit = _props.onExit,
        onExiting = _props.onExiting,
        onEnter = _props.onEnter,
        onEntering = _props.onEntering,
        onEntered = _props.onEntered;


    var dialog = _react2.default.Children.only(children);
    var filteredProps = this.omitProps(this.props, Modal.propTypes);

    var mountModal = show || Transition && !this.state.exited;
    if (!mountModal) {
      return null;
    }

    var _dialog$props = dialog.props,
        role = _dialog$props.role,
        tabIndex = _dialog$props.tabIndex;


    if (role === undefined || tabIndex === undefined) {
      dialog = (0, _react.cloneElement)(dialog, {
        role: role === undefined ? 'document' : role,
        tabIndex: tabIndex == null ? '-1' : tabIndex
      });
    }

    if (Transition) {
      dialog = _react2.default.createElement(
        Transition,
        {
          appear: true,
          unmountOnExit: true,
          'in': show,
          onExit: onExit,
          onExiting: onExiting,
          onExited: this.handleHidden,
          onEnter: onEnter,
          onEntering: onEntering,
          onEntered: onEntered
        },
        dialog
      );
    }

    return _react2.default.createElement(
      _Portal2.default,
      {
        ref: this.setMountNode,
        container: container,
        onRendered: this.onPortalRendered
      },
      _react2.default.createElement(
        'div',
        _extends({
          ref: this.setModalNodeRef,
          role: role || 'dialog'
        }, filteredProps, {
          style: style,
          className: className
        }),
        backdrop && this.renderBackdrop(),
        _react2.default.createElement(
          _RefHolder2.default,
          { ref: this.setDialogRef },
          dialog
        )
      )
    );
  };

  Modal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
    if (nextProps.show) {
      this.setState({ exited: false });
    } else if (!nextProps.transition) {
      // Otherwise let handleHidden take care of marking exited.
      this.setState({ exited: true });
    }
  };

  Modal.prototype.UNSAFE_componentWillUpdate = function UNSAFE_componentWillUpdate(nextProps) {
    if (!this.props.show && nextProps.show) {
      this.checkForFocus();
    }
  };

  Modal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    if (this.props.show) {
      this.onShow();
    }
  };

  Modal.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    var transition = this.props.transition;


    if (prevProps.show && !this.props.show && !transition) {
      // Otherwise handleHidden will call this.
      this.onHide();
    } else if (!prevProps.show && this.props.show) {
      this.onShow();
    }
  };

  Modal.prototype.componentWillUnmount = function componentWillUnmount() {
    var _props2 = this.props,
        show = _props2.show,
        transition = _props2.transition;


    this._isMounted = false;

    if (show || transition && !this.state.exited) {
      this.onHide();
    }
  };

  Modal.prototype.autoFocus = function autoFocus() {
    if (!this.props.autoFocus) {
      return;
    }

    var dialogElement = this.getDialogElement();
    var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(this));

    if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
      this.lastFocus = currentActiveElement;

      if (!dialogElement.hasAttribute('tabIndex')) {
        (0, _warning2.default)(false, 'The modal content node does not accept focus. For the benefit of ' + 'assistive technologies, the tabIndex of the node is being set ' + 'to "-1".');

        dialogElement.setAttribute('tabIndex', -1);
      }

      dialogElement.focus();
    }
  };

  Modal.prototype.restoreLastFocus = function restoreLastFocus() {
    // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
    if (this.lastFocus && this.lastFocus.focus) {
      this.lastFocus.focus();
      this.lastFocus = null;
    }
  };

  Modal.prototype.getDialogElement = function getDialogElement() {
    return _reactDom2.default.findDOMNode(this.dialog);
  };

  Modal.prototype.isTopModal = function isTopModal() {
    return this.props.manager.isTopModal(this);
  };

  return Modal;
}(_react2.default.Component);

Modal.propTypes = _extends({}, _Portal2.default.propTypes, {

  /**
   * Set the visibility of the Modal
   */
  show: _propTypes2.default.bool,

  /**
   * A Node, Component instance, or function that returns either. The Modal is appended to it's container element.
   *
   * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
   * page content can be placed behind a virtual backdrop as well as a visual one.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  /**
   * A callback fired when the Modal is opening.
   */
  onShow: _propTypes2.default.func,

  /**
   * A callback fired when either the backdrop is clicked, or the escape key is pressed.
   *
   * The `onHide` callback only signals intent from the Modal,
   * you must actually set the `show` prop to `false` for the Modal to close.
   */
  onHide: _propTypes2.default.func,

  /**
   * Include a backdrop component.
   */
  backdrop: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.oneOf(['static'])]),

  /**
   * A function that returns a backdrop component. Useful for custom
   * backdrop rendering.
   *
   * ```js
   *  renderBackdrop={props => <MyBackdrop {...props} />}
   * ```
   */
  renderBackdrop: _propTypes2.default.func,

  /**
   * A callback fired when the escape key, if specified in `keyboard`, is pressed.
   */
  onEscapeKeyDown: _propTypes2.default.func,

  /**
   * Support for this function will be deprecated. Please use `onEscapeKeyDown` instead
   * A callback fired when the escape key, if specified in `keyboard`, is pressed.
   * @deprecated
   */
  onEscapeKeyUp: (0, _deprecated2.default)(_propTypes2.default.func, 'Please use onEscapeKeyDown instead for consistency'),

  /**
   * A callback fired when the backdrop, if specified, is clicked.
   */
  onBackdropClick: _propTypes2.default.func,

  /**
   * A style object for the backdrop component.
   */
  backdropStyle: _propTypes2.default.object,

  /**
   * A css class or classes for the backdrop component.
   */
  backdropClassName: _propTypes2.default.string,

  /**
   * A css class or set of classes applied to the modal container when the modal is open,
   * and removed when it is closed.
   */
  containerClassName: _propTypes2.default.string,

  /**
   * Close the modal when escape key is pressed
   */
  keyboard: _propTypes2.default.bool,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the dialog component.
   */
  transition: _elementType2.default,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the backdrop components.
   */
  backdropTransition: _elementType2.default,

  /**
   * When `true` The modal will automatically shift focus to itself when it opens, and
   * replace it to the last focused element when it closes. This also
   * works correctly with any Modal children that have the `autoFocus` prop.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  autoFocus: _propTypes2.default.bool,

  /**
   * When `true` The modal will prevent focus from leaving the Modal while open.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  enforceFocus: _propTypes2.default.bool,

  /**
   * When `true` The modal will restore focus to previously focused element once
   * modal is hidden
   */
  restoreFocus: _propTypes2.default.bool,

  /**
   * Callback fired before the Modal transitions in
   */
  onEnter: _propTypes2.default.func,

  /**
   * Callback fired as the Modal begins to transition in
   */
  onEntering: _propTypes2.default.func,

  /**
   * Callback fired after the Modal finishes transitioning in
   */
  onEntered: _propTypes2.default.func,

  /**
   * Callback fired right before the Modal transitions out
   */
  onExit: _propTypes2.default.func,

  /**
   * Callback fired as the Modal begins to transition out
   */
  onExiting: _propTypes2.default.func,

  /**
   * Callback fired after the Modal finishes transitioning out
   */
  onExited: _propTypes2.default.func,

  /**
   * A ModalManager instance used to track and manage the state of open
   * Modals. Useful when customizing how modals interact within a container
   */
  manager: _propTypes2.default.object.isRequired
});
Modal.defaultProps = {
  show: false,
  backdrop: true,
  keyboard: true,
  autoFocus: true,
  enforceFocus: true,
  restoreFocus: true,
  onHide: function onHide() {},
  manager: modalManager,
  renderBackdrop: function renderBackdrop(props) {
    return _react2.default.createElement('div', props);
  }
};

var _initialiseProps = function _initialiseProps() {
  var _this2 = this;

  this.state = { exited: !this.props.show };

  this.renderBackdrop = function () {
    var _props3 = _this2.props,
        backdropStyle = _props3.backdropStyle,
        backdropClassName = _props3.backdropClassName,
        renderBackdrop = _props3.renderBackdrop,
        Transition = _props3.backdropTransition;


    var backdropRef = function backdropRef(ref) {
      return _this2.backdrop = ref;
    };

    var backdrop = renderBackdrop({
      ref: backdropRef,
      style: backdropStyle,
      className: backdropClassName,
      onClick: _this2.handleBackdropClick
    });

    if (Transition) {
      backdrop = _react2.default.createElement(
        Transition,
        {
          appear: true,
          'in': _this2.props.show
        },
        backdrop
      );
    }

    return backdrop;
  };

  this.onPortalRendered = function () {
    _this2.autoFocus();

    if (_this2.props.onShow) {
      _this2.props.onShow();
    }
  };

  this.onShow = function () {
    var doc = (0, _ownerDocument2.default)(_this2);
    var container = (0, _getContainer2.default)(_this2.props.container, doc.body);

    _this2.props.manager.add(_this2, container, _this2.props.containerClassName);

    _this2._onDocumentKeydownListener = (0, _addEventListener2.default)(doc, 'keydown', _this2.handleDocumentKeyDown);

    _this2._onDocumentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this2.handleDocumentKeyUp);

    _this2._onFocusinListener = (0, _addFocusListener2.default)(_this2.enforceFocus);
  };

  this.onHide = function () {
    _this2.props.manager.remove(_this2);

    _this2._onDocumentKeydownListener.remove();

    _this2._onDocumentKeyupListener.remove();

    _this2._onFocusinListener.remove();

    if (_this2.props.restoreFocus) {
      _this2.restoreLastFocus();
    }
  };

  this.setMountNode = function (ref) {
    _this2.mountNode = ref ? ref.getMountNode() : ref;
  };

  this.setModalNodeRef = function (ref) {
    _this2.modalNode = ref;
  };

  this.setDialogRef = function (ref) {
    _this2.dialog = ref;
  };

  this.handleHidden = function () {
    _this2.setState({ exited: true });
    _this2.onHide();

    if (_this2.props.onExited) {
      var _props4;

      (_props4 = _this2.props).onExited.apply(_props4, arguments);
    }
  };

  this.handleBackdropClick = function (e) {
    if (e.target !== e.currentTarget) {
      return;
    }

    if (_this2.props.onBackdropClick) {
      _this2.props.onBackdropClick(e);
    }

    if (_this2.props.backdrop === true) {
      _this2.props.onHide();
    }
  };

  this.handleDocumentKeyDown = function (e) {
    if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
      if (_this2.props.onEscapeKeyDown) {
        _this2.props.onEscapeKeyDown(e);
      }

      _this2.props.onHide();
    }
  };

  this.handleDocumentKeyUp = function (e) {
    if (_this2.props.keyboard && e.keyCode === 27 && _this2.isTopModal()) {
      if (_this2.props.onEscapeKeyUp) {
        _this2.props.onEscapeKeyUp(e);
      }
    }
  };

  this.checkForFocus = function () {
    if (_inDOM2.default) {
      _this2.lastFocus = (0, _activeElement2.default)();
    }
  };

  this.enforceFocus = function () {
    if (!_this2.props.enforceFocus || !_this2._isMounted || !_this2.isTopModal()) {
      return;
    }

    var dialogElement = _this2.getDialogElement();
    var currentActiveElement = (0, _activeElement2.default)((0, _ownerDocument2.default)(_this2));

    if (dialogElement && !(0, _contains2.default)(dialogElement, currentActiveElement)) {
      dialogElement.focus();
    }
  };
};

Modal.Manager = _ModalManager2.default;

exports.default = Modal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/ModalManager.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/ModalManager.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _class = __webpack_require__(/*! dom-helpers/class */ "./node_modules/dom-helpers/class/index.js");

var _class2 = _interopRequireDefault(_class);

var _style = __webpack_require__(/*! dom-helpers/style */ "./node_modules/dom-helpers/style/index.js");

var _style2 = _interopRequireDefault(_style);

var _scrollbarSize = __webpack_require__(/*! dom-helpers/util/scrollbarSize */ "./node_modules/dom-helpers/util/scrollbarSize.js");

var _scrollbarSize2 = _interopRequireDefault(_scrollbarSize);

var _isOverflowing = __webpack_require__(/*! ./utils/isOverflowing */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/isOverflowing.js");

var _isOverflowing2 = _interopRequireDefault(_isOverflowing);

var _manageAriaHidden = __webpack_require__(/*! ./utils/manageAriaHidden */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/manageAriaHidden.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function findIndexOf(arr, cb) {
  var idx = -1;
  arr.some(function (d, i) {
    if (cb(d, i)) {
      idx = i;
      return true;
    }
  });
  return idx;
}

function findContainer(data, modal) {
  return findIndexOf(data, function (d) {
    return d.modals.indexOf(modal) !== -1;
  });
}

function setContainerStyle(state, container) {
  var style = { overflow: 'hidden' };

  // we are only interested in the actual `style` here
  // becasue we will override it
  state.style = {
    overflow: container.style.overflow,
    paddingRight: container.style.paddingRight
  };

  if (state.overflowing) {
    // use computed style, here to get the real padding
    // to add our scrollbar width
    style.paddingRight = parseInt((0, _style2.default)(container, 'paddingRight') || 0, 10) + (0, _scrollbarSize2.default)() + 'px';
  }

  (0, _style2.default)(container, style);
}

function removeContainerStyle(_ref, container) {
  var style = _ref.style;


  Object.keys(style).forEach(function (key) {
    return container.style[key] = style[key];
  });
}
/**
 * Proper state managment for containers and the modals in those containers.
 *
 * @internal Used by the Modal to ensure proper styling of containers.
 */

var ModalManager = function ModalManager() {
  var _this = this;

  var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref2$hideSiblingNode = _ref2.hideSiblingNodes,
      hideSiblingNodes = _ref2$hideSiblingNode === undefined ? true : _ref2$hideSiblingNode,
      _ref2$handleContainer = _ref2.handleContainerOverflow,
      handleContainerOverflow = _ref2$handleContainer === undefined ? true : _ref2$handleContainer;

  _classCallCheck(this, ModalManager);

  this.add = function (modal, container, className) {
    var modalIdx = _this.modals.indexOf(modal);
    var containerIdx = _this.containers.indexOf(container);

    if (modalIdx !== -1) {
      return modalIdx;
    }

    modalIdx = _this.modals.length;
    _this.modals.push(modal);

    if (_this.hideSiblingNodes) {
      (0, _manageAriaHidden.hideSiblings)(container, modal.mountNode);
    }

    if (containerIdx !== -1) {
      _this.data[containerIdx].modals.push(modal);
      return modalIdx;
    }

    var data = {
      modals: [modal],
      //right now only the first modal of a container will have its classes applied
      classes: className ? className.split(/\s+/) : [],

      overflowing: (0, _isOverflowing2.default)(container)
    };

    if (_this.handleContainerOverflow) {
      setContainerStyle(data, container);
    }

    data.classes.forEach(_class2.default.addClass.bind(null, container));

    _this.containers.push(container);
    _this.data.push(data);

    return modalIdx;
  };

  this.remove = function (modal) {
    var modalIdx = _this.modals.indexOf(modal);

    if (modalIdx === -1) {
      return;
    }

    var containerIdx = findContainer(_this.data, modal);
    var data = _this.data[containerIdx];
    var container = _this.containers[containerIdx];

    data.modals.splice(data.modals.indexOf(modal), 1);

    _this.modals.splice(modalIdx, 1);

    // if that was the last modal in a container,
    // clean up the container
    if (data.modals.length === 0) {
      data.classes.forEach(_class2.default.removeClass.bind(null, container));

      if (_this.handleContainerOverflow) {
        removeContainerStyle(data, container);
      }

      if (_this.hideSiblingNodes) {
        (0, _manageAriaHidden.showSiblings)(container, modal.mountNode);
      }
      _this.containers.splice(containerIdx, 1);
      _this.data.splice(containerIdx, 1);
    } else if (_this.hideSiblingNodes) {
      //otherwise make sure the next top modal is visible to a SR
      (0, _manageAriaHidden.ariaHidden)(false, data.modals[data.modals.length - 1].mountNode);
    }
  };

  this.isTopModal = function (modal) {
    return !!_this.modals.length && _this.modals[_this.modals.length - 1] === modal;
  };

  this.hideSiblingNodes = hideSiblingNodes;
  this.handleContainerOverflow = handleContainerOverflow;
  this.modals = [];
  this.containers = [];
  this.data = [];
};

exports.default = ModalManager;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Overlay.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/Overlay.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _elementType = __webpack_require__(/*! prop-types-extra/lib/elementType */ "./node_modules/prop-types-extra/lib/elementType.js");

var _elementType2 = _interopRequireDefault(_elementType);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _Portal = __webpack_require__(/*! ./Portal */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _Position = __webpack_require__(/*! ./Position */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Position.js");

var _Position2 = _interopRequireDefault(_Position);

var _RootCloseWrapper = __webpack_require__(/*! ./RootCloseWrapper */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/RootCloseWrapper.js");

var _RootCloseWrapper2 = _interopRequireDefault(_RootCloseWrapper);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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; }

/**
 * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
 */
var Overlay = function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay(props, context) {
    _classCallCheck(this, Overlay);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.handleHidden = function () {
      _this.setState({ exited: true });

      if (_this.props.onExited) {
        var _this$props;

        (_this$props = _this.props).onExited.apply(_this$props, arguments);
      }
    };

    _this.state = { exited: !props.show };
    _this.onHiddenListener = _this.handleHidden.bind(_this);
    return _this;
  }

  Overlay.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
    if (nextProps.show) {
      this.setState({ exited: false });
    } else if (!nextProps.transition) {
      // Otherwise let handleHidden take care of marking exited.
      this.setState({ exited: true });
    }
  };

  Overlay.prototype.render = function render() {
    var _props = this.props,
        container = _props.container,
        containerPadding = _props.containerPadding,
        target = _props.target,
        placement = _props.placement,
        shouldUpdatePosition = _props.shouldUpdatePosition,
        rootClose = _props.rootClose,
        children = _props.children,
        Transition = _props.transition,
        props = _objectWithoutProperties(_props, ['container', 'containerPadding', 'target', 'placement', 'shouldUpdatePosition', 'rootClose', 'children', 'transition']);

    // Don't un-render the overlay while it's transitioning out.


    var mountOverlay = props.show || Transition && !this.state.exited;
    if (!mountOverlay) {
      // Don't bother showing anything if we don't have to.
      return null;
    }

    var child = children;

    // Position is be inner-most because it adds inline styles into the child,
    // which the other wrappers don't forward correctly.
    child = _react2.default.createElement(
      _Position2.default,
      { container: container, containerPadding: containerPadding, target: target, placement: placement, shouldUpdatePosition: shouldUpdatePosition },
      child
    );

    if (Transition) {
      var onExit = props.onExit,
          onExiting = props.onExiting,
          onEnter = props.onEnter,
          onEntering = props.onEntering,
          onEntered = props.onEntered;

      // This animates the child node by injecting props, so it must precede
      // anything that adds a wrapping div.

      child = _react2.default.createElement(
        Transition,
        {
          'in': props.show,
          appear: true,
          onExit: onExit,
          onExiting: onExiting,
          onExited: this.onHiddenListener,
          onEnter: onEnter,
          onEntering: onEntering,
          onEntered: onEntered
        },
        child
      );
    }

    // This goes after everything else because it adds a wrapping div.
    if (rootClose) {
      child = _react2.default.createElement(
        _RootCloseWrapper2.default,
        {
          onRootClose: props.onHide,
          event: props.rootCloseEvent
        },
        child
      );
    }

    return _react2.default.createElement(
      _Portal2.default,
      { container: container },
      child
    );
  };

  return Overlay;
}(_react2.default.Component);

Overlay.propTypes = _extends({}, _Portal2.default.propTypes, _Position2.default.propTypes, {

  /**
   * Set the visibility of the Overlay
   */
  show: _propTypes2.default.bool,

  /**
   * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
   */
  rootClose: _propTypes2.default.bool,

  /**
   * Specify event for toggling overlay
   */
  rootCloseEvent: _RootCloseWrapper2.default.propTypes.event,

  /**
   * A Callback fired by the Overlay when it wishes to be hidden.
   *
   * __required__ when `rootClose` is `true`.
   *
   * @type func
   */
  onHide: function onHide(props) {
    var propType = _propTypes2.default.func;
    if (props.rootClose) {
      propType = propType.isRequired;
    }

    for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return propType.apply(undefined, [props].concat(args));
  },


  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component
   * used to animate the overlay as it changes visibility.
   */
  transition: _elementType2.default,

  /**
   * Callback fired before the Overlay transitions in
   */
  onEnter: _propTypes2.default.func,

  /**
   * Callback fired as the Overlay begins to transition in
   */
  onEntering: _propTypes2.default.func,

  /**
   * Callback fired after the Overlay finishes transitioning in
   */
  onEntered: _propTypes2.default.func,

  /**
   * Callback fired right before the Overlay transitions out
   */
  onExit: _propTypes2.default.func,

  /**
   * Callback fired as the Overlay begins to transition out
   */
  onExiting: _propTypes2.default.func,

  /**
   * Callback fired after the Overlay finishes transitioning out
   */
  onExited: _propTypes2.default.func
});

exports.default = Overlay;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Portal.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/Portal.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _inDOM = __webpack_require__(/*! dom-helpers/util/inDOM */ "./node_modules/dom-helpers/util/inDOM.js");

var _inDOM2 = _interopRequireDefault(_inDOM);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

var _LegacyPortal = __webpack_require__(/*! ./LegacyPortal */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/LegacyPortal.js");

var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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.getMountNode = function () {
      return _this._portalContainerNode;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {
    if (!_inDOM2.default) {
      return;
    }

    var container = this.props.container;

    if (typeof container === 'function') {
      container = container();
    }

    if (container && !_reactDom2.default.findDOMNode(container)) {
      // The container is a React component that has not yet been rendered.
      // Don't set the container node yet.
      return;
    }

    this.setContainer(container);
  };

  Portal.prototype.componentDidMount = function componentDidMount() {
    if (!this._portalContainerNode) {
      this.setContainer(this.props.container);
      this.forceUpdate(this.props.onRendered);
    } else if (this.props.onRendered) {
      this.props.onRendered();
    }
  };

  Portal.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
    if (nextProps.container !== this.props.container) {
      this.setContainer(nextProps.container);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._portalContainerNode = null;
  };

  Portal.prototype.setContainer = function setContainer(container) {
    this._portalContainerNode = (0, _getContainer2.default)(container, (0, _ownerDocument2.default)(this).body);
  };

  Portal.prototype.render = function render() {
    return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/Position.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/Position.js ***!
  \***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _calculatePosition = __webpack_require__(/*! ./utils/calculatePosition */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/calculatePosition.js");

var _calculatePosition2 = _interopRequireDefault(_calculatePosition);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 Position component calculates the coordinates for its child, to position
 * it relative to a `target` component or node. Useful for creating callouts
 * and tooltips, the Position component injects a `style` props with `left` and
 * `top` values for positioning your component.
 *
 * It also injects "arrow" `left`, and `top` values for styling callout arrows
 * for giving your components a sense of directionality.
 */
var Position = function (_React$Component) {
  _inherits(Position, _React$Component);

  function Position(props, context) {
    _classCallCheck(this, Position);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.getTarget = function () {
      var target = _this.props.target;

      var targetElement = typeof target === 'function' ? target() : target;
      return targetElement && _reactDom2.default.findDOMNode(targetElement) || null;
    };

    _this.maybeUpdatePosition = function (placementChanged) {
      var target = _this.getTarget();

      if (!_this.props.shouldUpdatePosition && target === _this._lastTarget && !placementChanged) {
        return;
      }

      _this.updatePosition(target);
    };

    _this.state = {
      positionLeft: 0,
      positionTop: 0,
      arrowOffsetLeft: null,
      arrowOffsetTop: null
    };

    _this._needsFlush = false;
    _this._lastTarget = null;
    return _this;
  }

  Position.prototype.componentDidMount = function componentDidMount() {
    this.updatePosition(this.getTarget());
  };

  Position.prototype.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps() {
    this._needsFlush = true;
  };

  Position.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (this._needsFlush) {
      this._needsFlush = false;
      this.maybeUpdatePosition(this.props.placement !== prevProps.placement);
    }
  };

  Position.prototype.render = function render() {
    var _props = this.props,
        children = _props.children,
        className = _props.className,
        props = _objectWithoutProperties(_props, ['children', 'className']);

    var _state = this.state,
        positionLeft = _state.positionLeft,
        positionTop = _state.positionTop,
        arrowPosition = _objectWithoutProperties(_state, ['positionLeft', 'positionTop']);

    // These should not be forwarded to the child.


    delete props.target;
    delete props.container;
    delete props.containerPadding;
    delete props.shouldUpdatePosition;

    var child = _react2.default.Children.only(children);
    return (0, _react.cloneElement)(child, _extends({}, props, arrowPosition, {
      // FIXME: Don't forward `positionLeft` and `positionTop` via both props
      // and `props.style`.
      positionLeft: positionLeft,
      positionTop: positionTop,
      className: (0, _classnames2.default)(className, child.props.className),
      style: _extends({}, child.props.style, {
        left: positionLeft,
        top: positionTop
      })
    }));
  };

  Position.prototype.updatePosition = function updatePosition(target) {
    this._lastTarget = target;

    if (!target) {
      this.setState({
        positionLeft: 0,
        positionTop: 0,
        arrowOffsetLeft: null,
        arrowOffsetTop: null
      });

      return;
    }

    var overlay = _reactDom2.default.findDOMNode(this);
    var container = (0, _getContainer2.default)(this.props.container, (0, _ownerDocument2.default)(this).body);

    this.setState((0, _calculatePosition2.default)(this.props.placement, overlay, target, container, this.props.containerPadding));
  };

  return Position;
}(_react2.default.Component);

Position.propTypes = {
  /**
   * A node, element, or function that returns either. The child will be
   * be positioned next to the `target` specified.
   */
  target: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  /**
   * "offsetParent" of the component
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),
  /**
   * Minimum spacing in pixels between container border and component border
   */
  containerPadding: _propTypes2.default.number,
  /**
   * How to position the component relative to the target
   */
  placement: _propTypes2.default.oneOf(['top', 'right', 'bottom', 'left']),
  /**
   * Whether the position should be changed on each update
   */
  shouldUpdatePosition: _propTypes2.default.bool
};

Position.displayName = 'Position';

Position.defaultProps = {
  containerPadding: 0,
  placement: 'right',
  shouldUpdatePosition: false
};

exports.default = Position;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/RefHolder.js":
/*!************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/RefHolder.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 propTypes = {
  children: _propTypes2.default.node
};

/**
 * Internal helper component to allow attaching a non-conflicting ref to a
 * child element that may not accept refs.
 */

var RefHolder = function (_React$Component) {
  _inherits(RefHolder, _React$Component);

  function RefHolder() {
    _classCallCheck(this, RefHolder);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }

  RefHolder.prototype.render = function render() {
    return this.props.children;
  };

  return RefHolder;
}(_react2.default.Component);

RefHolder.propTypes = propTypes;

exports.default = RefHolder;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/RootCloseWrapper.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/RootCloseWrapper.js ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _contains = __webpack_require__(/*! dom-helpers/query/contains */ "./node_modules/dom-helpers/query/contains.js");

var _contains2 = _interopRequireDefault(_contains);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _addEventListener = __webpack_require__(/*! ./utils/addEventListener */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addEventListener.js");

var _addEventListener2 = _interopRequireDefault(_addEventListener);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 escapeKeyCode = 27;

function isLeftClickEvent(event) {
  return event.button === 0;
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

/**
 * The `<RootCloseWrapper/>` component registers your callback on the document
 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
 * style behavior where your callback is triggered when the user tries to
 * interact with the rest of the document or hits the `esc` key.
 */

var RootCloseWrapper = function (_React$Component) {
  _inherits(RootCloseWrapper, _React$Component);

  function RootCloseWrapper(props, context) {
    _classCallCheck(this, RootCloseWrapper);

    var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));

    _this.addEventListeners = function () {
      var event = _this.props.event;

      var doc = (0, _ownerDocument2.default)(_this);

      // Use capture for this listener so it fires before React's listener, to
      // avoid false positives in the contains() check below if the target DOM
      // element is removed in the React mouse callback.
      _this.documentMouseCaptureListener = (0, _addEventListener2.default)(doc, event, _this.handleMouseCapture, true);

      _this.documentMouseListener = (0, _addEventListener2.default)(doc, event, _this.handleMouse);

      _this.documentKeyupListener = (0, _addEventListener2.default)(doc, 'keyup', _this.handleKeyUp);
    };

    _this.removeEventListeners = function () {
      if (_this.documentMouseCaptureListener) {
        _this.documentMouseCaptureListener.remove();
      }

      if (_this.documentMouseListener) {
        _this.documentMouseListener.remove();
      }

      if (_this.documentKeyupListener) {
        _this.documentKeyupListener.remove();
      }
    };

    _this.handleMouseCapture = function (e) {
      _this.preventMouseRootClose = isModifiedEvent(e) || !isLeftClickEvent(e) || (0, _contains2.default)(_reactDom2.default.findDOMNode(_this), e.target);
    };

    _this.handleMouse = function (e) {
      if (!_this.preventMouseRootClose && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.handleKeyUp = function (e) {
      if (e.keyCode === escapeKeyCode && _this.props.onRootClose) {
        _this.props.onRootClose(e);
      }
    };

    _this.preventMouseRootClose = false;
    return _this;
  }

  RootCloseWrapper.prototype.componentDidMount = function componentDidMount() {
    if (!this.props.disabled) {
      this.addEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (!this.props.disabled && prevProps.disabled) {
      this.addEventListeners();
    } else if (this.props.disabled && !prevProps.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.componentWillUnmount = function componentWillUnmount() {
    if (!this.props.disabled) {
      this.removeEventListeners();
    }
  };

  RootCloseWrapper.prototype.render = function render() {
    return this.props.children;
  };

  return RootCloseWrapper;
}(_react2.default.Component);

RootCloseWrapper.displayName = 'RootCloseWrapper';

RootCloseWrapper.propTypes = {
  /**
   * Callback fired after click or mousedown. Also triggers when user hits `esc`.
   */
  onRootClose: _propTypes2.default.func,
  /**
   * Children to render.
   */
  children: _propTypes2.default.element,
  /**
   * Disable the the RootCloseWrapper, preventing it from triggering `onRootClose`.
   */
  disabled: _propTypes2.default.bool,
  /**
   * Choose which document mouse event to bind to.
   */
  event: _propTypes2.default.oneOf(['click', 'mousedown'])
};

RootCloseWrapper.defaultProps = {
  event: 'click'
};

exports.default = RootCloseWrapper;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addEventListener.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addEventListener.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (node, event, handler, capture) {
  (0, _on2.default)(node, event, handler, capture);

  return {
    remove: function remove() {
      (0, _off2.default)(node, event, handler, capture);
    }
  };
};

var _on = __webpack_require__(/*! dom-helpers/events/on */ "./node_modules/dom-helpers/events/on.js");

var _on2 = _interopRequireDefault(_on);

var _off = __webpack_require__(/*! dom-helpers/events/off */ "./node_modules/dom-helpers/events/off.js");

var _off2 = _interopRequireDefault(_off);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addFocusListener.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/addFocusListener.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = addFocusListener;
/**
 * Firefox doesn't have a focusin event so using capture is easiest way to get bubbling
 * IE8 can't do addEventListener, but does have onfocusin, so we use that in ie8
 *
 * We only allow one Listener at a time to avoid stack overflows
 */
function addFocusListener(handler) {
  var useFocusin = !document.addEventListener;
  var remove = void 0;

  if (useFocusin) {
    document.attachEvent('onfocusin', handler);
    remove = function remove() {
      return document.detachEvent('onfocusin', handler);
    };
  } else {
    document.addEventListener('focus', handler, true);
    remove = function remove() {
      return document.removeEventListener('focus', handler, true);
    };
  }

  return { remove: remove };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/calculatePosition.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/calculatePosition.js ***!
  \**************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = calculatePosition;

var _offset = __webpack_require__(/*! dom-helpers/query/offset */ "./node_modules/dom-helpers/query/offset.js");

var _offset2 = _interopRequireDefault(_offset);

var _position = __webpack_require__(/*! dom-helpers/query/position */ "./node_modules/dom-helpers/query/position.js");

var _position2 = _interopRequireDefault(_position);

var _scrollTop = __webpack_require__(/*! dom-helpers/query/scrollTop */ "./node_modules/dom-helpers/query/scrollTop.js");

var _scrollTop2 = _interopRequireDefault(_scrollTop);

var _ownerDocument = __webpack_require__(/*! ./ownerDocument */ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainerDimensions(containerNode) {
  var width = void 0,
      height = void 0,
      scroll = void 0;

  if (containerNode.tagName === 'BODY') {
    width = window.innerWidth;
    height = window.innerHeight;

    scroll = (0, _scrollTop2.default)((0, _ownerDocument2.default)(containerNode).documentElement) || (0, _scrollTop2.default)(containerNode);
  } else {
    var _getOffset = (0, _offset2.default)(containerNode);

    width = _getOffset.width;
    height = _getOffset.height;

    scroll = (0, _scrollTop2.default)(containerNode);
  }

  return { width: width, height: height, scroll: scroll };
}

function getTopDelta(top, overlayHeight, container, padding) {
  var containerDimensions = getContainerDimensions(container);
  var containerScroll = containerDimensions.scroll;
  var containerHeight = containerDimensions.height;

  var topEdgeOffset = top - padding - containerScroll;
  var bottomEdgeOffset = top + padding - containerScroll + overlayHeight;

  if (topEdgeOffset < 0) {
    return -topEdgeOffset;
  } else if (bottomEdgeOffset > containerHeight) {
    return containerHeight - bottomEdgeOffset;
  } else {
    return 0;
  }
}

function getLeftDelta(left, overlayWidth, container, padding) {
  var containerDimensions = getContainerDimensions(container);
  var containerWidth = containerDimensions.width;

  var leftEdgeOffset = left - padding;
  var rightEdgeOffset = left + padding + overlayWidth;

  if (leftEdgeOffset < 0) {
    return -leftEdgeOffset;
  } else if (rightEdgeOffset > containerWidth) {
    return containerWidth - rightEdgeOffset;
  }

  return 0;
}

function calculatePosition(placement, overlayNode, target, container, padding) {
  var childOffset = container.tagName === 'BODY' ? (0, _offset2.default)(target) : (0, _position2.default)(target, container);

  var _getOffset2 = (0, _offset2.default)(overlayNode),
      overlayHeight = _getOffset2.height,
      overlayWidth = _getOffset2.width;

  var positionLeft = void 0,
      positionTop = void 0,
      arrowOffsetLeft = void 0,
      arrowOffsetTop = void 0;

  if (placement === 'left' || placement === 'right') {
    positionTop = childOffset.top + (childOffset.height - overlayHeight) / 2;

    if (placement === 'left') {
      positionLeft = childOffset.left - overlayWidth;
    } else {
      positionLeft = childOffset.left + childOffset.width;
    }

    var topDelta = getTopDelta(positionTop, overlayHeight, container, padding);

    positionTop += topDelta;
    arrowOffsetTop = 50 * (1 - 2 * topDelta / overlayHeight) + '%';
    arrowOffsetLeft = void 0;
  } else if (placement === 'top' || placement === 'bottom') {
    positionLeft = childOffset.left + (childOffset.width - overlayWidth) / 2;

    if (placement === 'top') {
      positionTop = childOffset.top - overlayHeight;
    } else {
      positionTop = childOffset.top + childOffset.height;
    }

    var leftDelta = getLeftDelta(positionLeft, overlayWidth, container, padding);

    positionLeft += leftDelta;
    arrowOffsetLeft = 50 * (1 - 2 * leftDelta / overlayWidth) + '%';
    arrowOffsetTop = void 0;
  } else {
    throw new Error('calcOverlayPosition(): No such placement of "' + placement + '" found.');
  }

  return { positionLeft: positionLeft, positionTop: positionTop, arrowOffsetLeft: arrowOffsetLeft, arrowOffsetTop: arrowOffsetTop };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/getContainer.js ***!
  \*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getContainer;

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainer(container, defaultContainer) {
  container = typeof container === 'function' ? container() : container;
  return _reactDom2.default.findDOMNode(container) || defaultContainer;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/isOverflowing.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/isOverflowing.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = isOverflowing;

var _isWindow = __webpack_require__(/*! dom-helpers/query/isWindow */ "./node_modules/dom-helpers/query/isWindow.js");

var _isWindow2 = _interopRequireDefault(_isWindow);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function isBody(node) {
  return node && node.tagName.toLowerCase() === 'body';
}

function bodyIsOverflowing(node) {
  var doc = (0, _ownerDocument2.default)(node);
  var win = (0, _isWindow2.default)(doc);
  var fullWidth = win.innerWidth;

  // Support: ie8, no innerWidth
  if (!fullWidth) {
    var documentElementRect = doc.documentElement.getBoundingClientRect();
    fullWidth = documentElementRect.right - Math.abs(documentElementRect.left);
  }

  return doc.body.clientWidth < fullWidth;
}

function isOverflowing(container) {
  var win = (0, _isWindow2.default)(container);

  return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/manageAriaHidden.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/manageAriaHidden.js ***!
  \*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.ariaHidden = ariaHidden;
exports.hideSiblings = hideSiblings;
exports.showSiblings = showSiblings;

var BLACKLIST = ['template', 'script', 'style'];

var isHidable = function isHidable(_ref) {
  var nodeType = _ref.nodeType,
      tagName = _ref.tagName;
  return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;
};

var siblings = function siblings(container, mount, cb) {
  mount = [].concat(mount);

  [].forEach.call(container.children, function (node) {
    if (mount.indexOf(node) === -1 && isHidable(node)) {
      cb(node);
    }
  });
};

function ariaHidden(show, node) {
  if (!node) {
    return;
  }
  if (show) {
    node.setAttribute('aria-hidden', 'true');
  } else {
    node.removeAttribute('aria-hidden');
  }
}

function hideSiblings(container, mountNode) {
  siblings(container, mountNode, function (node) {
    return ariaHidden(true, node);
  });
}

function showSiblings(container, mountNode) {
  siblings(container, mountNode, function (node) {
    return ariaHidden(false, node);
  });
}

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/react-overlays/lib/utils/ownerDocument.js ***!
  \**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (componentOrElement) {
  return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
};

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js":
/*!******************************************************************************!*\
  !*** ./node_modules/patternfly-react/node_modules/recompose/es/Recompose.js ***!
  \******************************************************************************/
/*! exports provided: mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, setObservableConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapProps", function() { return mapProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withProps", function() { return withProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withPropsOnChange", function() { return withPropsOnChange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withHandlers", function() { return withHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProp", function() { return renameProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProps", function() { return renameProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenProp", function() { return flattenProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return withState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withStateHandlers", function() { return withStateHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withReducer", function() { return withReducer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderComponent", function() { return renderComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderNothing", function() { return renderNothing; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldUpdate", function() { return shouldUpdate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return pure; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForKeys", function() { return onlyUpdateForKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForPropTypes", function() { return onlyUpdateForPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return withContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContext", function() { return getContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lifecycle", function() { return lifecycle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toClass", function() { return toClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatic", function() { return setStatic; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPropTypes", function() { return setPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDisplayName", function() { return setDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDisplayName", function() { return getDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapDisplayName", function() { return wrapDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClassComponent", function() { return isClassComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSink", function() { return createSink; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromProp", function() { return componentFromProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return nest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoistStatics", function() { return hoistStatics; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStream", function() { return componentFromStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStreamWithConfig", function() { return componentFromStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStream", function() { return mapPropsStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStreamWithConfig", function() { return mapPropsStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandler", function() { return createEventHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandlerWithConfig", function() { return createEventHandlerWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setObservableConfig", function() { return configureObservable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fbjs/lib/shallowEqual */ "./node_modules/fbjs/lib/shallowEqual.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "shallowEqual", function() { return fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default.a; });
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* 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 change_emitter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! change-emitter */ "./node_modules/change-emitter/lib/index.js");
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(change_emitter__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js");






var setStatic = function setStatic(key, value) {
  return function (BaseComponent) {
    /* eslint-disable no-param-reassign */
    BaseComponent[key] = value;
    /* eslint-enable no-param-reassign */
    return BaseComponent;
  };
};

var setDisplayName = function setDisplayName(displayName) {
  return setStatic('displayName', displayName);
};

var getDisplayName = function getDisplayName(Component$$1) {
  if (typeof Component$$1 === 'string') {
    return Component$$1;
  }

  if (!Component$$1) {
    return undefined;
  }

  return Component$$1.displayName || Component$$1.name || 'Component';
};

var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
  return hocName + '(' + getDisplayName(BaseComponent) + ')';
};

var mapProps = function mapProps(propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var MapProps = function MapProps(props) {
      return factory(propsMapper(props));
    };
    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);
    }
    return MapProps;
  };
};

var classCallCheck = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};









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 inherits = function (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 objectWithoutProperties = function (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;
};

var possibleConstructorReturn = function (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;
};

var withProps = function withProps(input) {
  var hoc = mapProps(function (props) {
    return _extends({}, props, typeof input === 'function' ? input(props) : input);
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var pick = function pick(obj, keys) {
  var result = {};
  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (obj.hasOwnProperty(key)) {
      result[key] = obj[key];
    }
  }
  return result;
};

var withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {
      return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));
    };

    var WithPropsOnChange = function (_Component) {
      inherits(WithPropsOnChange, _Component);

      function WithPropsOnChange() {
        var _temp, _this, _ret;

        classCallCheck(this, WithPropsOnChange);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.computedProps = propsMapper(_this.props), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithPropsOnChange.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
        if (shouldMap(this.props, nextProps)) {
          this.computedProps = propsMapper(nextProps);
        }
      };

      WithPropsOnChange.prototype.render = function render() {
        return factory(_extends({}, this.props, this.computedProps));
      };

      return WithPropsOnChange;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);
    }
    return WithPropsOnChange;
  };
};

var mapValues = function mapValues(obj, func) {
  var result = {};
  /* eslint-disable no-restricted-syntax */
  for (var key in obj) {
    if (obj.hasOwnProperty(key)) {
      result[key] = func(obj[key], key);
    }
  }
  /* eslint-enable no-restricted-syntax */
  return result;
};

/* eslint-disable no-console */
var withHandlers = function withHandlers(handlers) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithHandlers = function (_Component) {
      inherits(WithHandlers, _Component);

      function WithHandlers() {
        var _temp, _this, _ret;

        classCallCheck(this, WithHandlers);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithHandlers.prototype.componentWillReceiveProps = function componentWillReceiveProps() {
        this.cachedHandlers = {};
      };

      WithHandlers.prototype.render = function render() {
        return factory(_extends({}, this.props, this.handlers));
      };

      return WithHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    var _initialiseProps = function _initialiseProps() {
      var _this2 = this;

      this.cachedHandlers = {};
      this.handlers = mapValues(typeof handlers === 'function' ? handlers(this.props) : handlers, function (createHandler, handlerName) {
        return function () {
          var cachedHandler = _this2.cachedHandlers[handlerName];
          if (cachedHandler) {
            return cachedHandler.apply(undefined, arguments);
          }

          var handler = createHandler(_this2.props);
          _this2.cachedHandlers[handlerName] = handler;

          if ( true && typeof handler !== 'function') {
            console.error(
            // eslint-disable-line no-console
            'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');
          }

          return handler.apply(undefined, arguments);
        };
      });
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);
    }
    return WithHandlers;
  };
};

var defaultProps = function defaultProps(props) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var DefaultProps = function DefaultProps(ownerProps) {
      return factory(ownerProps);
    };
    DefaultProps.defaultProps = props;
    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);
    }
    return DefaultProps;
  };
};

var omit = function omit(obj, keys) {
  var rest = objectWithoutProperties(obj, []);

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];
    if (rest.hasOwnProperty(key)) {
      delete rest[key];
    }
  }
  return rest;
};

var renameProp = function renameProp(oldName, newName) {
  var hoc = mapProps(function (props) {
    var _babelHelpers$extends;

    return _extends({}, omit(props, [oldName]), (_babelHelpers$extends = {}, _babelHelpers$extends[newName] = props[oldName], _babelHelpers$extends));
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var keys = Object.keys;


var mapKeys = function mapKeys(obj, func) {
  return keys(obj).reduce(function (result, key) {
    var val = obj[key];
    /* eslint-disable no-param-reassign */
    result[func(val, key)] = val;
    /* eslint-enable no-param-reassign */
    return result;
  }, {});
};

var renameProps = function renameProps(nameMap) {
  var hoc = mapProps(function (props) {
    return _extends({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {
      return nameMap[oldName];
    }));
  });
  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var flattenProp = function flattenProp(propName) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var FlattenProp = function FlattenProp(props) {
      return factory(_extends({}, props, props[propName]));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);
    }
    return FlattenProp;
  };
};

var withState = function withState(stateName, stateUpdaterName, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithState = function (_Component) {
      inherits(WithState, _Component);

      function WithState() {
        var _temp, _this, _ret;

        classCallCheck(this, WithState);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
          stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState
        }, _this.updateStateValue = function (updateFn, callback) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn
            };
          }, callback);
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithState.prototype.render = function render() {
        var _babelHelpers$extends;

        return factory(_extends({}, this.props, (_babelHelpers$extends = {}, _babelHelpers$extends[stateName] = this.state.stateValue, _babelHelpers$extends[stateUpdaterName] = this.updateStateValue, _babelHelpers$extends)));
      };

      return WithState;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);
    }
    return WithState;
  };
};

var withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithStateHandlers = function (_Component) {
      inherits(WithStateHandlers, _Component);

      function WithStateHandlers() {
        var _temp, _this, _ret;

        classCallCheck(this, WithStateHandlers);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), possibleConstructorReturn(_this, _ret);
      }

      WithStateHandlers.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
        var propsChanged = nextProps !== this.props;
        // the idea is to skip render if stateUpdater handler return undefined
        // this allows to create no state update handlers with access to state and props
        var stateChanged = !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(nextState, this.state);
        return propsChanged || stateChanged;
      };

      WithStateHandlers.prototype.render = function render() {
        return factory(_extends({}, this.props, this.state, this.stateUpdaters));
      };

      return WithStateHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    var _initialiseProps = function _initialiseProps() {
      var _this2 = this;

      this.state = typeof initialState === 'function' ? initialState(this.props) : initialState;
      this.stateUpdaters = mapValues(stateUpdaters, function (handler) {
        return function (mayBeEvent) {
          for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
            args[_key2 - 1] = arguments[_key2];
          }

          // Having that functional form of setState can be called async
          // we need to persist SyntheticEvent
          if (mayBeEvent && typeof mayBeEvent.persist === 'function') {
            mayBeEvent.persist();
          }

          _this2.setState(function (state, props) {
            return handler(state, props).apply(undefined, [mayBeEvent].concat(args));
          });
        };
      });
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);
    }
    return WithStateHandlers;
  };
};

var withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithReducer = function (_Component) {
      inherits(WithReducer, _Component);

      function WithReducer() {
        var _temp, _this, _ret;

        classCallCheck(this, WithReducer);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = {
          stateValue: _this.initializeStateValue()
        }, _this.dispatch = function (action) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: reducer(stateValue, action)
            };
          });
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithReducer.prototype.initializeStateValue = function initializeStateValue() {
        if (initialState !== undefined) {
          return typeof initialState === 'function' ? initialState(this.props) : initialState;
        }
        return reducer(undefined, { type: '@@recompose/INIT' });
      };

      WithReducer.prototype.render = function render() {
        var _babelHelpers$extends;

        return factory(_extends({}, this.props, (_babelHelpers$extends = {}, _babelHelpers$extends[stateName] = this.state.stateValue, _babelHelpers$extends[dispatchName] = this.dispatch, _babelHelpers$extends)));
      };

      return WithReducer;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);
    }
    return WithReducer;
  };
};

var identity = function identity(Component$$1) {
  return Component$$1;
};

var branch = function branch(test, left) {
  var right = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity;
  return function (BaseComponent) {
    var leftFactory = void 0;
    var rightFactory = void 0;
    var Branch = function Branch(props) {
      if (test(props)) {
        leftFactory = leftFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(left(BaseComponent));
        return leftFactory(props);
      }
      rightFactory = rightFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(right(BaseComponent));
      return rightFactory(props);
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);
    }
    return Branch;
  };
};

var renderComponent = function renderComponent(Component$$1) {
  return function (_) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(Component$$1);
    var RenderComponent = function RenderComponent(props) {
      return factory(props);
    };
    if (true) {
      RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');
    }
    return RenderComponent;
  };
};

var Nothing = function (_Component) {
  inherits(Nothing, _Component);

  function Nothing() {
    classCallCheck(this, Nothing);
    return possibleConstructorReturn(this, _Component.apply(this, arguments));
  }

  Nothing.prototype.render = function render() {
    return null;
  };

  return Nothing;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

var renderNothing = function renderNothing(_) {
  return Nothing;
};

var shouldUpdate = function shouldUpdate(test) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var ShouldUpdate = function (_Component) {
      inherits(ShouldUpdate, _Component);

      function ShouldUpdate() {
        classCallCheck(this, ShouldUpdate);
        return possibleConstructorReturn(this, _Component.apply(this, arguments));
      }

      ShouldUpdate.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
        return test(this.props, nextProps);
      };

      ShouldUpdate.prototype.render = function render() {
        return factory(this.props);
      };

      return ShouldUpdate;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
    }
    return ShouldUpdate;
  };
};

var pure = function pure(BaseComponent) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(props, nextProps);
  });

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));
  }

  return hoc(BaseComponent);
};

var onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_1___default()(pick(nextProps, propKeys), pick(props, propKeys));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {
  var propTypes = BaseComponent.propTypes;

  if (true) {
    if (!propTypes) {
      /* eslint-disable */
      console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + ('component with display name "' + getDisplayName(BaseComponent) + '".'));
      /* eslint-enable */
    }
  }

  var propKeys = Object.keys(propTypes || {});
  var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);
  }
  return OnlyUpdateForPropTypes;
};

var withContext = function withContext(childContextTypes, getChildContext) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithContext = function (_Component) {
      inherits(WithContext, _Component);

      function WithContext() {
        var _temp, _this, _ret;

        classCallCheck(this, WithContext);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.getChildContext = function () {
          return getChildContext(_this.props);
        }, _temp), possibleConstructorReturn(_this, _ret);
      }

      WithContext.prototype.render = function render() {
        return factory(this.props);
      };

      return WithContext;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    WithContext.childContextTypes = childContextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);
    }
    return WithContext;
  };
};

var getContext = function getContext(contextTypes) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var GetContext = function GetContext(ownerProps, context) {
      return factory(_extends({}, ownerProps, context));
    };

    GetContext.contextTypes = contextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);
    }
    return GetContext;
  };
};

/* eslint-disable no-console */
var lifecycle = function lifecycle(spec) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    if ( true && spec.hasOwnProperty('render')) {
      console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');
    }

    var Lifecycle = function (_Component) {
      inherits(Lifecycle, _Component);

      function Lifecycle() {
        classCallCheck(this, Lifecycle);
        return possibleConstructorReturn(this, _Component.apply(this, arguments));
      }

      Lifecycle.prototype.render = function render() {
        return factory(_extends({}, this.props, this.state));
      };

      return Lifecycle;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object.keys(spec).forEach(function (hook) {
      return Lifecycle.prototype[hook] = spec[hook];
    });

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);
    }
    return Lifecycle;
  };
};

var isClassComponent = function isClassComponent(Component$$1) {
  return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');
};

var toClass = function toClass(baseComponent) {
  if (isClassComponent(baseComponent)) {
    return baseComponent;
  }

  var ToClass = function (_Component) {
    inherits(ToClass, _Component);

    function ToClass() {
      classCallCheck(this, ToClass);
      return possibleConstructorReturn(this, _Component.apply(this, arguments));
    }

    ToClass.prototype.render = function render() {
      if (typeof baseComponent === 'string') {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(baseComponent, this.props);
      }
      return baseComponent(this.props, this.context);
    };

    return ToClass;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

  ToClass.displayName = getDisplayName(baseComponent);
  ToClass.propTypes = baseComponent.propTypes;
  ToClass.contextTypes = baseComponent.contextTypes;
  ToClass.defaultProps = baseComponent.defaultProps;

  return ToClass;
};

var setPropTypes = function setPropTypes(propTypes) {
  return setStatic('propTypes', propTypes);
};

function compose() {
  for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  if (funcs.length === 0) {
    return function (arg) {
      return arg;
    };
  }

  if (funcs.length === 1) {
    return funcs[0];
  }

  return funcs.reduce(function (a, b) {
    return function () {
      return a(b.apply(undefined, arguments));
    };
  });
}

var createSink = function createSink(callback) {
  return function (_Component) {
    inherits(Sink, _Component);

    function Sink() {
      classCallCheck(this, Sink);
      return possibleConstructorReturn(this, _Component.apply(this, arguments));
    }

    Sink.prototype.componentWillMount = function componentWillMount() {
      callback(this.props);
    };

    Sink.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
      callback(nextProps);
    };

    Sink.prototype.render = function render() {
      return null;
    };

    return Sink;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
};

var componentFromProp = function componentFromProp(propName) {
  var Component$$1 = function Component$$1(props) {
    return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(props[propName], omit(props, [propName]));
  };
  Component$$1.displayName = 'componentFromProp(' + propName + ')';
  return Component$$1;
};

var nest = function nest() {
  for (var _len = arguments.length, Components = Array(_len), _key = 0; _key < _len; _key++) {
    Components[_key] = arguments[_key];
  }

  var factories = Components.map(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"]);
  var Nest = function Nest(_ref) {
    var props = objectWithoutProperties(_ref, []),
        children = _ref.children;
    return factories.reduceRight(function (child, factory) {
      return factory(props, child);
    }, children);
  };

  if (true) {
    var displayNames = Components.map(getDisplayName);
    Nest.displayName = 'nest(' + displayNames.join(', ') + ')';
  }

  return Nest;
};

var hoistStatics = function hoistStatics(higherOrderComponent) {
  return function (BaseComponent) {
    var NewComponent = higherOrderComponent(BaseComponent);
    hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(NewComponent, BaseComponent);
    return NewComponent;
  };
};

var _config = {
  fromESObservable: null,
  toESObservable: null
};

var configureObservable = function configureObservable(c) {
  _config = c;
};

var config = {
  fromESObservable: function fromESObservable(observable) {
    return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;
  },
  toESObservable: function toESObservable(stream) {
    return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;
  }
};

var componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {
  return function (propsToVdom) {
    return function (_Component) {
      inherits(ComponentFromStream, _Component);

      function ComponentFromStream() {
        var _config$fromESObserva;

        var _temp, _this, _ret;

        classCallCheck(this, ComponentFromStream);

        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.state = { vdom: null }, _this.propsEmitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_3__["createChangeEmitter"])(), _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {
          subscribe: function subscribe(observer) {
            var unsubscribe = _this.propsEmitter.listen(function (props) {
              if (props) {
                observer.next(props);
              } else {
                observer.complete();
              }
            });
            return { unsubscribe: unsubscribe };
          }
        }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
          return this;
        }, _config$fromESObserva)), _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$)), _temp), possibleConstructorReturn(_this, _ret);
      }

      // Stream of props


      // Stream of vdom


      ComponentFromStream.prototype.componentWillMount = function componentWillMount() {
        var _this2 = this;

        // Subscribe to child prop changes so we know when to re-render
        this.subscription = this.vdom$.subscribe({
          next: function next(vdom) {
            _this2.setState({ vdom: vdom });
          }
        });
        this.propsEmitter.emit(this.props);
      };

      ComponentFromStream.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
        // Receive new props from the owner
        this.propsEmitter.emit(nextProps);
      };

      ComponentFromStream.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
        return nextState.vdom !== this.state.vdom;
      };

      ComponentFromStream.prototype.componentWillUnmount = function componentWillUnmount() {
        // Call without arguments to complete stream
        this.propsEmitter.emit();

        // Clean-up subscription before un-mounting
        this.subscription.unsubscribe();
      };

      ComponentFromStream.prototype.render = function render() {
        return this.state.vdom;
      };

      return ComponentFromStream;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
  };
};

var componentFromStream = function componentFromStream(propsToVdom) {
  return componentFromStreamWithConfig(config)(propsToVdom);
};

var identity$1 = function identity(t) {
  return t;
};

var mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {
  var componentFromStream = componentFromStreamWithConfig({
    fromESObservable: identity$1,
    toESObservable: identity$1
  });
  return function (transform) {
    return function (BaseComponent) {
      var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
      var fromESObservable = config$$1.fromESObservable,
          toESObservable = config$$1.toESObservable;

      return componentFromStream(function (props$) {
        var _ref;

        return _ref = {
          subscribe: function subscribe(observer) {
            var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({
              next: function next(childProps) {
                return observer.next(factory(childProps));
              }
            });
            return {
              unsubscribe: function unsubscribe() {
                return subscription.unsubscribe();
              }
            };
          }
        }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
          return this;
        }, _ref;
      });
    };
  };
};

var mapPropsStream = function mapPropsStream(transform) {
  var hoc = mapPropsStreamWithConfig(config)(transform);

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));
    };
  }
  return hoc;
};

var createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {
  return function () {
    var _config$fromESObserva;

    var emitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_3__["createChangeEmitter"])();
    var stream = config$$1.fromESObservable((_config$fromESObserva = {
      subscribe: function subscribe(observer) {
        var unsubscribe = emitter.listen(function (value) {
          return observer.next(value);
        });
        return { unsubscribe: unsubscribe };
      }
    }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_4__["default"]] = function () {
      return this;
    }, _config$fromESObserva));
    return {
      handler: emitter.emit,
      stream: stream
    };
  };
};

var createEventHandler = createEventHandlerWithConfig(config);

// Higher-order component helpers




/***/ }),

/***/ "./node_modules/patternfly/dist/js/patternfly-settings-charts.js":
/*!***********************************************************************!*\
  !*** ./node_modules/patternfly/dist/js/patternfly-settings-charts.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly C3 Chart Defaults
  patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
    var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
    donutChartRightTitle.text("");
    donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('y', 0).attr('x', 0);
    donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('y', 20).attr('x', 0);
  };

  patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return '<table class="c3-tooltip">' +
      '  <tr>' +
      '    <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
      '    <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
      '  </tr>' +
      '</table>';
  };

  patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
    return function (d) {
      return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
        (Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
        '</span>';
    };
  };

  patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
  };

  patternfly.c3ChartDefaults = function () {
    var
      getDefaultColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.blue300,
            patternfly.pfPaletteColors.green,
            patternfly.pfPaletteColors.orange,
            patternfly.pfPaletteColors.red
          ]
        };
      },
      getDefaultBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultBarTooltip = function (categories) {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
        };
      },
      getDefaultBarLegend = function () {
        return {
          show: false
        };
      },
      getDefaultBarConfig = function (categories) {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultBarGrid(),
          tooltip: this.getDefaultBarTooltip(categories),
          legend: this.getDefaultBarLegend()
        };
      },
      getDefaultGroupedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultGroupedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultGroupedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultGroupedBarGrid(),
          legend: this.getDefaultGroupedBarLegend()
        };
      },
      getDefaultStackedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultStackedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultStackedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultStackedBarGrid(),
          legend: this.getDefaultStackedBarLegend()
        };
      },
      getDefaultDonut = function (title) {
        return {
          title: title,
          label: {
            show: false
          },
          width: 11
        };
      },
      getDefaultDonutSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, the default is to center horizontally in the parent container
        };
      },
      getDefaultDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultRelationshipDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.red100,
            patternfly.pfPaletteColors.orange400,
            patternfly.pfPaletteColors.green400,
            patternfly.pfPaletteColors.cyan500,
            patternfly.pfPaletteColors.gold200,
          ]
        };
      },
      getDefaultDonutTooltip = function () {
        return {
          show: false
        };
      },
      getDefaultDonutLegend = function () {
        return {
          show: false
        };
      },
      getDefaultDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultRelationshipDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultRelationshipDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultPie = function () {
        return {
          expand: true,
          label: {
            show: false
          }
        };
      },
      getDefaultPieSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, default is to center horizontally in the parent container
        };
      },
      getDefaultPieColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultPieTooltip = function () {
        return {
          contents: patternfly.pfPieTooltipContents
        };
      },
      getDefaultPieLegend = function () {
        return {
          show: false
        };
      },
      getDefaultPieConfig = function () {
        return {
          pie: this.getDefaultPie(),
          size: this.getDefaultPieSize(),
          legend: this.getDefaultPieLegend(),
          color: this.getDefaultPieColors(),
          tooltip: this.getDefaultPieTooltip()
        };
      },
      getDefaultSparklineArea = function () {
        return {
          zerobased: true
        };
      },
      getDefaultSparklineSize = function () {
        return {
          height: 60
        };
      },
      getDefaultSparklineAxis = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: false
          }
        };
      },
      getDefaultSparklineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSparklinePoint = function () {
        return {
          r: 1,
          focus: {
            expand: {
              r: 4
            }
          }
        };
      },
      getDefaultSparklineTooltip = function () {
        return {
          // because a sparkline should only contain a single data column,
          // the tooltip will only work for a single data column
          contents: function (d) {
            return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
          }
        };
      },
      getDefaultSparklineConfig = function () {
        return {
          area: getDefaultSparklineArea(),
          size: getDefaultSparklineSize(),
          axis: getDefaultSparklineAxis(),
          color: getDefaultColors(),
          legend: getDefaultSparklineLegend(),
          point: getDefaultSparklinePoint(),
          tooltip: getDefaultSparklineTooltip()
        };
      },
      getDefaultLineAxis = function () {
        return {
          x: {
            show: true
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineGrid = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineLegend = function () {
        return {
          show: true
        };
      },
      getDefaultLinePoint = function () {
        return {
          r: 3,
          focus: {
            expand: {
              r: 5
            }
          }
        };
      },
      getDefaultLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultLineLegend(),
          point: getDefaultLinePoint()
        };
      },
      getDefaultSingleLineTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleLineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSingleLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleLineLegend(),
          point: getDefaultLinePoint(),
          tooltip: getDefaultSingleLineTooltip()
        };
      },
      getDefaultAreaAxis = function () {
        return getDefaultLineAxis();
      },
      getDefaultAreaGrid = function () {
        return getDefaultLineGrid();
      },
      getDefaultAreaLegend = function () {
        return getDefaultLineLegend();
      },
      getDefaultAreaPoint = function () {
        return getDefaultLinePoint();
      },
      getDefaultAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultAreaLegend(),
          point: getDefaultAreaPoint()
        };
      },
      getDefaultSingleAreaTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleAreaLegend = function () {
        return getDefaultSingleLineLegend();
      },
      getDefaultSingleAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleAreaLegend(),
          point: getDefaultAreaPoint(),
          tooltip: getDefaultSingleAreaTooltip()
        };
      };
    return {
      getDefaultColors: getDefaultColors,
      getDefaultBarGrid: getDefaultBarGrid,
      getDefaultBarTooltip: getDefaultBarTooltip,
      getDefaultBarLegend: getDefaultBarLegend,
      getDefaultBarConfig: getDefaultBarConfig,
      getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
      getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
      getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
      getDefaultStackedBarGrid: getDefaultStackedBarGrid,
      getDefaultStackedBarLegend: getDefaultStackedBarLegend,
      getDefaultStackedBarConfig: getDefaultStackedBarConfig,
      getDefaultDonut: getDefaultDonut,
      getDefaultDonutSize: getDefaultDonutSize,
      getDefaultDonutColors: getDefaultDonutColors,
      getDefaultDonutTooltip: getDefaultDonutTooltip,
      getDefaultDonutLegend: getDefaultDonutLegend,
      getDefaultDonutConfig: getDefaultDonutConfig,
      getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
      getDefaultPie: getDefaultPie,
      getDefaultPieSize: getDefaultPieSize,
      getDefaultPieColors: getDefaultPieColors,
      getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
      getDefaultPieTooltip: getDefaultPieTooltip,
      getDefaultPieLegend: getDefaultPieLegend,
      getDefaultPieConfig: getDefaultPieConfig,
      getDefaultSparklineArea: getDefaultSparklineArea,
      getDefaultSparklineSize: getDefaultSparklineSize,
      getDefaultSparklineAxis: getDefaultSparklineAxis,
      getDefaultSparklineLegend: getDefaultSparklineLegend,
      getDefaultSparklinePoint: getDefaultSparklinePoint,
      getDefaultSparklineTooltip: getDefaultSparklineTooltip,
      getDefaultSparklineConfig: getDefaultSparklineConfig,
      getDefaultLineAxis: getDefaultLineAxis,
      getDefaultLineGrid: getDefaultLineGrid,
      getDefaultLineLegend: getDefaultLineLegend,
      getDefaultLinePoint: getDefaultLinePoint,
      getDefaultLineConfig: getDefaultLineConfig,
      getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
      getDefaultSingleLineConfig: getDefaultSingleLineConfig,
      getDefaultAreaAxis: getDefaultAreaAxis,
      getDefaultAreaGrid: getDefaultAreaGrid,
      getDefaultAreaLegend: getDefaultAreaLegend,
      getDefaultAreaPoint: getDefaultAreaPoint,
      getDefaultAreaConfig: getDefaultAreaConfig,
      getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
      getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
    };
  };
})(typeof window !== 'undefined' ? window : global);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/patternfly/dist/js/patternfly-settings.js":
/*!****************************************************************!*\
  !*** ./node_modules/patternfly/dist/js/patternfly-settings.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (window) {
  'use strict';

  var patternfly = {
    version: "3.59.3"
  };

  // definition of breakpoint sizes for tablet and desktop modes
  patternfly.pfBreakpoints = {
    'tablet': 768,
    'desktop': 1200
  };

  window.patternfly = patternfly;

})(typeof window !== 'undefined' ? window : global);

(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly Palette colors
  patternfly.pfPaletteColors = {
    black:         '#030303',
    black100:      '#fafafa',
    black200:      '#ededed',
    black300:      '#d1d1d1',
    black400:      '#bbbbbb',
    black500:      '#8b8d8f',
    black600:      '#72767b',
    black700:      '#4d5258',
    black800:      '#393f44',
    black900:      '#292e34',
    blue:          '#0088ce',
    blue100:       '#bee1f4',
    blue200:       '#7dc3e8',
    blue300:       '#39a5dc',
    blue400:       '#0088ce',
    blue500:       '#00659c',
    blue600:       '#004368',
    blue700:       '#002235',
    gold:          '#f0ab00',
    gold100:       '#fbeabc',
    gold200:       '#f9d67a',
    gold300:       '#f5c12e',
    gold400:       '#f0ab00',
    gold500:       '#b58100',
    gold600:       '#795600',
    gold700:       '#3d2c00',
    orange:        '#ec7a08',
    orange100:     '#fbdebf',
    orange200:     '#f7bd7f',
    orange300:     '#f39d3c',
    orange400:     '#ec7a08',
    orange500:     '#b35c00',
    orange600:     '#773d00',
    orange700:     '#3b1f00',
    lightBlue:     '#00b9e4',
    lightBlue100:  '#beedf9',
    lightBlue200:  '#7cdbf3',
    lightBlue300:  '#35caed',
    lightBlue400:  '#00b9e4',
    lightBlue500:  '#008bad',
    lightBlue600:  '#005c73',
    lightBlue700:  '#002d39',
    green:         '#3f9c35',
    green100:      '#cfe7cd',
    green200:      '#9ecf99',
    green300:      '#6ec664',
    green400:      '#3f9c35',
    green500:      '#2d7623',
    green600:      '#1e4f18',
    green700:      '#0f280d',
    lightGreen:    '#92d400',
    lightGreen100: '#e4f5bc',
    lightGreen200: '#c8eb79',
    lightGreen300: '#ace12e',
    lightGreen400: '#92d400',
    lightGreen500: '#6ca100',
    lightGreen600: '#486b00',
    lightGreen700: '#253600',
    cyan:          '#007a87',
    cyan100:       '#bedee1',
    cyan200:       '#7dbdc3',
    cyan300:       '#3a9ca6',
    cyan400:       '#007a87',
    cyan500:       '#005c66',
    cyan600:       '#003d44',
    cyan700:       '#001f22',
    purple:        '#703fec',
    purple100:     '#c7bfff',
    purple200:     '#a18fff',
    purple300:     '#8461f7',
    purple400:     '#703fec',
    purple500:     '#582fc0',
    purple600:     '#40199a',
    purple700:     '#1f0066',
    red:           '#cc0000',
    red100:        '#cc0000',
    red200:        '#a30000',
    red300:        '#8b0000',
    red400:        '#470000',
    red500:        '#2c0000'
  };
})(typeof window !== 'undefined' ? window : global);


(function (window) {
  'use strict';

  // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
  var patternfly = window.patternfly;

  // Util: PatternFly C3 Chart Defaults
  patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
    var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
    donutChartRightTitle.text("");
    donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('y', 0).attr('x', 0);
    donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('y', 20).attr('x', 0);
  };

  patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return '<table class="c3-tooltip">' +
      '  <tr>' +
      '    <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
      '    <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
      '  </tr>' +
      '</table>';
  };

  patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
    return function (d) {
      return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
        (Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
        '</span>';
    };
  };

  patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
    return function (d) {
      var name = categories ? categories[d[0].index] : d[0].index;
      return '<table class="c3-tooltip">' +
        '  <tr>' +
        '    <td><strong>' + name + ':</td>' +
        '    <td>' + d[0].value + '</td>' +
        '  </tr>' +
        '</table>';
    };
  };

  patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
    return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
  };

  patternfly.c3ChartDefaults = function () {
    var
      getDefaultColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.blue300,
            patternfly.pfPaletteColors.green,
            patternfly.pfPaletteColors.orange,
            patternfly.pfPaletteColors.red
          ]
        };
      },
      getDefaultBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultBarTooltip = function (categories) {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
        };
      },
      getDefaultBarLegend = function () {
        return {
          show: false
        };
      },
      getDefaultBarConfig = function (categories) {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultBarGrid(),
          tooltip: this.getDefaultBarTooltip(categories),
          legend: this.getDefaultBarLegend()
        };
      },
      getDefaultGroupedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultGroupedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultGroupedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultGroupedBarGrid(),
          legend: this.getDefaultGroupedBarLegend()
        };
      },
      getDefaultStackedBarGrid = function () {
        return {
          y: {
            show: true
          }
        };
      },
      getDefaultStackedBarLegend = function () {
        return {
          show: true,
          position: 'bottom'
        };
      },
      getDefaultStackedBarConfig = function () {
        return {
          color: this.getDefaultColors(),
          grid: this.getDefaultStackedBarGrid(),
          legend: this.getDefaultStackedBarLegend()
        };
      },
      getDefaultDonut = function (title) {
        return {
          title: title,
          label: {
            show: false
          },
          width: 11
        };
      },
      getDefaultDonutSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, the default is to center horizontally in the parent container
        };
      },
      getDefaultDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultRelationshipDonutColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.red100,
            patternfly.pfPaletteColors.orange400,
            patternfly.pfPaletteColors.green400,
            patternfly.pfPaletteColors.cyan500,
            patternfly.pfPaletteColors.gold200,
          ]
        };
      },
      getDefaultDonutTooltip = function () {
        return {
          show: false
        };
      },
      getDefaultDonutLegend = function () {
        return {
          show: false
        };
      },
      getDefaultDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultRelationshipDonutConfig = function (title) {
        return {
          donut: this.getDefaultDonut(title),
          size: this.getDefaultDonutSize(),
          legend: this.getDefaultDonutLegend(),
          color: this.getDefaultRelationshipDonutColors(),
          tooltip: this.getDefaultDonutTooltip()
        };
      },
      getDefaultPie = function () {
        return {
          expand: true,
          label: {
            show: false
          }
        };
      },
      getDefaultPieSize = function () {
        return {
          height: 171 // produces a diameter of 150 and a centered chart when there is no legend
          // Don't set a width here, default is to center horizontally in the parent container
        };
      },
      getDefaultPieColors = function () {
        return {
          pattern: [
            patternfly.pfPaletteColors.blue,
            patternfly.pfPaletteColors.black300
          ]
        };
      },
      getDefaultPieTooltip = function () {
        return {
          contents: patternfly.pfPieTooltipContents
        };
      },
      getDefaultPieLegend = function () {
        return {
          show: false
        };
      },
      getDefaultPieConfig = function () {
        return {
          pie: this.getDefaultPie(),
          size: this.getDefaultPieSize(),
          legend: this.getDefaultPieLegend(),
          color: this.getDefaultPieColors(),
          tooltip: this.getDefaultPieTooltip()
        };
      },
      getDefaultSparklineArea = function () {
        return {
          zerobased: true
        };
      },
      getDefaultSparklineSize = function () {
        return {
          height: 60
        };
      },
      getDefaultSparklineAxis = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: false
          }
        };
      },
      getDefaultSparklineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSparklinePoint = function () {
        return {
          r: 1,
          focus: {
            expand: {
              r: 4
            }
          }
        };
      },
      getDefaultSparklineTooltip = function () {
        return {
          // because a sparkline should only contain a single data column,
          // the tooltip will only work for a single data column
          contents: function (d) {
            return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
          }
        };
      },
      getDefaultSparklineConfig = function () {
        return {
          area: getDefaultSparklineArea(),
          size: getDefaultSparklineSize(),
          axis: getDefaultSparklineAxis(),
          color: getDefaultColors(),
          legend: getDefaultSparklineLegend(),
          point: getDefaultSparklinePoint(),
          tooltip: getDefaultSparklineTooltip()
        };
      },
      getDefaultLineAxis = function () {
        return {
          x: {
            show: true
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineGrid = function () {
        return {
          x: {
            show: false
          },
          y: {
            show: true
          }
        };
      },
      getDefaultLineLegend = function () {
        return {
          show: true
        };
      },
      getDefaultLinePoint = function () {
        return {
          r: 3,
          focus: {
            expand: {
              r: 5
            }
          }
        };
      },
      getDefaultLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultLineLegend(),
          point: getDefaultLinePoint()
        };
      },
      getDefaultSingleLineTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleLineLegend = function () {
        return {
          show: false
        };
      },
      getDefaultSingleLineConfig = function () {
        return {
          axis: getDefaultLineAxis(),
          grid: getDefaultLineGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleLineLegend(),
          point: getDefaultLinePoint(),
          tooltip: getDefaultSingleLineTooltip()
        };
      },
      getDefaultAreaAxis = function () {
        return getDefaultLineAxis();
      },
      getDefaultAreaGrid = function () {
        return getDefaultLineGrid();
      },
      getDefaultAreaLegend = function () {
        return getDefaultLineLegend();
      },
      getDefaultAreaPoint = function () {
        return getDefaultLinePoint();
      },
      getDefaultAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultAreaLegend(),
          point: getDefaultAreaPoint()
        };
      },
      getDefaultSingleAreaTooltip = function () {
        return {
          contents: patternfly.pfGetBarChartTooltipContentsFn()
        };
      },
      getDefaultSingleAreaLegend = function () {
        return getDefaultSingleLineLegend();
      },
      getDefaultSingleAreaConfig = function () {
        return {
          axis: getDefaultAreaAxis(),
          grid: getDefaultAreaGrid(),
          color: getDefaultColors(),
          legend: getDefaultSingleAreaLegend(),
          point: getDefaultAreaPoint(),
          tooltip: getDefaultSingleAreaTooltip()
        };
      };
    return {
      getDefaultColors: getDefaultColors,
      getDefaultBarGrid: getDefaultBarGrid,
      getDefaultBarTooltip: getDefaultBarTooltip,
      getDefaultBarLegend: getDefaultBarLegend,
      getDefaultBarConfig: getDefaultBarConfig,
      getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
      getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
      getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
      getDefaultStackedBarGrid: getDefaultStackedBarGrid,
      getDefaultStackedBarLegend: getDefaultStackedBarLegend,
      getDefaultStackedBarConfig: getDefaultStackedBarConfig,
      getDefaultDonut: getDefaultDonut,
      getDefaultDonutSize: getDefaultDonutSize,
      getDefaultDonutColors: getDefaultDonutColors,
      getDefaultDonutTooltip: getDefaultDonutTooltip,
      getDefaultDonutLegend: getDefaultDonutLegend,
      getDefaultDonutConfig: getDefaultDonutConfig,
      getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
      getDefaultPie: getDefaultPie,
      getDefaultPieSize: getDefaultPieSize,
      getDefaultPieColors: getDefaultPieColors,
      getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
      getDefaultPieTooltip: getDefaultPieTooltip,
      getDefaultPieLegend: getDefaultPieLegend,
      getDefaultPieConfig: getDefaultPieConfig,
      getDefaultSparklineArea: getDefaultSparklineArea,
      getDefaultSparklineSize: getDefaultSparklineSize,
      getDefaultSparklineAxis: getDefaultSparklineAxis,
      getDefaultSparklineLegend: getDefaultSparklineLegend,
      getDefaultSparklinePoint: getDefaultSparklinePoint,
      getDefaultSparklineTooltip: getDefaultSparklineTooltip,
      getDefaultSparklineConfig: getDefaultSparklineConfig,
      getDefaultLineAxis: getDefaultLineAxis,
      getDefaultLineGrid: getDefaultLineGrid,
      getDefaultLineLegend: getDefaultLineLegend,
      getDefaultLinePoint: getDefaultLinePoint,
      getDefaultLineConfig: getDefaultLineConfig,
      getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
      getDefaultSingleLineConfig: getDefaultSingleLineConfig,
      getDefaultAreaAxis: getDefaultAreaAxis,
      getDefaultAreaGrid: getDefaultAreaGrid,
      getDefaultAreaLegend: getDefaultAreaLegend,
      getDefaultAreaPoint: getDefaultAreaPoint,
      getDefaultAreaConfig: getDefaultAreaConfig,
      getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
      getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
    };
  };
})(typeof window !== 'undefined' ? window : global);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/performance-now/lib/performance-now.js":
/*!*************************************************************!*\
  !*** ./node_modules/performance-now/lib/performance-now.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.7.1
(function() {
  var getNanoSeconds, hrtime, loadTime;

  if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
    module.exports = function() {
      return performance.now();
    };
  } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
    module.exports = function() {
      return (getNanoSeconds() - loadTime) / 1e6;
    };
    hrtime = process.hrtime;
    getNanoSeconds = function() {
      var hr;
      hr = hrtime();
      return hr[0] * 1e9 + hr[1];
    };
    loadTime = getNanoSeconds();
  } else if (Date.now) {
    module.exports = function() {
      return Date.now() - loadTime;
    };
    loadTime = Date.now();
  } else {
    module.exports = function() {
      return new Date().getTime() - loadTime;
    };
    loadTime = new Date().getTime();
  }

}).call(this);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./node_modules/popper.js/dist/esm/popper.js":
/*!***************************************************!*\
  !*** ./node_modules/popper.js/dist/esm/popper.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global) {/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';

var timeoutDuration = function () {
  var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
  for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
    if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
      return 1;
    }
  }
  return 0;
}();

function microtaskDebounce(fn) {
  var called = false;
  return function () {
    if (called) {
      return;
    }
    called = true;
    window.Promise.resolve().then(function () {
      called = false;
      fn();
    });
  };
}

function taskDebounce(fn) {
  var scheduled = false;
  return function () {
    if (!scheduled) {
      scheduled = true;
      setTimeout(function () {
        scheduled = false;
        fn();
      }, timeoutDuration);
    }
  };
}

var supportsMicroTasks = isBrowser && window.Promise;

/**
* Create a debounced version of a method, that's asynchronously deferred
* but called in the minimum time possible.
*
* @method
* @memberof Popper.Utils
* @argument {Function} fn
* @returns {Function}
*/
var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;

/**
 * Check if the given variable is a function
 * @method
 * @memberof Popper.Utils
 * @argument {Any} functionToCheck - variable to check
 * @returns {Boolean} answer to: is a function?
 */
function isFunction(functionToCheck) {
  var getType = {};
  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
}

/**
 * Get CSS computed property of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Eement} element
 * @argument {String} property
 */
function getStyleComputedProperty(element, property) {
  if (element.nodeType !== 1) {
    return [];
  }
  // NOTE: 1 DOM access here
  var window = element.ownerDocument.defaultView;
  var css = window.getComputedStyle(element, null);
  return property ? css[property] : css;
}

/**
 * Returns the parentNode or the host of the element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} parent
 */
function getParentNode(element) {
  if (element.nodeName === 'HTML') {
    return element;
  }
  return element.parentNode || element.host;
}

/**
 * Returns the scrolling parent of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} scroll parent
 */
function getScrollParent(element) {
  // Return body, `getScroll` will take care to get the correct `scrollTop` from it
  if (!element) {
    return document.body;
  }

  switch (element.nodeName) {
    case 'HTML':
    case 'BODY':
      return element.ownerDocument.body;
    case '#document':
      return element.body;
  }

  // Firefox want us to check `-x` and `-y` variations as well

  var _getStyleComputedProp = getStyleComputedProperty(element),
      overflow = _getStyleComputedProp.overflow,
      overflowX = _getStyleComputedProp.overflowX,
      overflowY = _getStyleComputedProp.overflowY;

  if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
    return element;
  }

  return getScrollParent(getParentNode(element));
}

/**
 * Returns the reference node of the reference object, or the reference object itself.
 * @method
 * @memberof Popper.Utils
 * @param {Element|Object} reference - the reference element (the popper will be relative to this)
 * @returns {Element} parent
 */
function getReferenceNode(reference) {
  return reference && reference.referenceNode ? reference.referenceNode : reference;
}

var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);

/**
 * Determines if the browser is Internet Explorer
 * @method
 * @memberof Popper.Utils
 * @param {Number} version to check
 * @returns {Boolean} isIE
 */
function isIE(version) {
  if (version === 11) {
    return isIE11;
  }
  if (version === 10) {
    return isIE10;
  }
  return isIE11 || isIE10;
}

/**
 * Returns the offset parent of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} offset parent
 */
function getOffsetParent(element) {
  if (!element) {
    return document.documentElement;
  }

  var noOffsetParent = isIE(10) ? document.body : null;

  // NOTE: 1 DOM access here
  var offsetParent = element.offsetParent || null;
  // Skip hidden elements which don't have an offsetParent
  while (offsetParent === noOffsetParent && element.nextElementSibling) {
    offsetParent = (element = element.nextElementSibling).offsetParent;
  }

  var nodeName = offsetParent && offsetParent.nodeName;

  if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {
    return element ? element.ownerDocument.documentElement : document.documentElement;
  }

  // .offsetParent will return the closest TH, TD or TABLE in case
  // no offsetParent is present, I hate this job...
  if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {
    return getOffsetParent(offsetParent);
  }

  return offsetParent;
}

function isOffsetContainer(element) {
  var nodeName = element.nodeName;

  if (nodeName === 'BODY') {
    return false;
  }
  return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;
}

/**
 * Finds the root node (document, shadowDOM root) of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} node
 * @returns {Element} root node
 */
function getRoot(node) {
  if (node.parentNode !== null) {
    return getRoot(node.parentNode);
  }

  return node;
}

/**
 * Finds the offset parent common to the two provided nodes
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element1
 * @argument {Element} element2
 * @returns {Element} common offset parent
 */
function findCommonOffsetParent(element1, element2) {
  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
  if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {
    return document.documentElement;
  }

  // Here we make sure to give as "start" the element that comes first in the DOM
  var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;
  var start = order ? element1 : element2;
  var end = order ? element2 : element1;

  // Get common ancestor container
  var range = document.createRange();
  range.setStart(start, 0);
  range.setEnd(end, 0);
  var commonAncestorContainer = range.commonAncestorContainer;

  // Both nodes are inside #document

  if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {
    if (isOffsetContainer(commonAncestorContainer)) {
      return commonAncestorContainer;
    }

    return getOffsetParent(commonAncestorContainer);
  }

  // one of the nodes is inside shadowDOM, find which one
  var element1root = getRoot(element1);
  if (element1root.host) {
    return findCommonOffsetParent(element1root.host, element2);
  } else {
    return findCommonOffsetParent(element1, getRoot(element2).host);
  }
}

/**
 * Gets the scroll value of the given element in the given side (top and left)
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @argument {String} side `top` or `left`
 * @returns {number} amount of scrolled pixels
 */
function getScroll(element) {
  var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';

  var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';
  var nodeName = element.nodeName;

  if (nodeName === 'BODY' || nodeName === 'HTML') {
    var html = element.ownerDocument.documentElement;
    var scrollingElement = element.ownerDocument.scrollingElement || html;
    return scrollingElement[upperSide];
  }

  return element[upperSide];
}

/*
 * Sum or subtract the element scroll values (left and top) from a given rect object
 * @method
 * @memberof Popper.Utils
 * @param {Object} rect - Rect object you want to change
 * @param {HTMLElement} element - The element from the function reads the scroll values
 * @param {Boolean} subtract - set to true if you want to subtract the scroll values
 * @return {Object} rect - The modifier rect object
 */
function includeScroll(rect, element) {
  var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  var scrollTop = getScroll(element, 'top');
  var scrollLeft = getScroll(element, 'left');
  var modifier = subtract ? -1 : 1;
  rect.top += scrollTop * modifier;
  rect.bottom += scrollTop * modifier;
  rect.left += scrollLeft * modifier;
  rect.right += scrollLeft * modifier;
  return rect;
}

/*
 * Helper to detect borders of a given element
 * @method
 * @memberof Popper.Utils
 * @param {CSSStyleDeclaration} styles
 * Result of `getStyleComputedProperty` on the given element
 * @param {String} axis - `x` or `y`
 * @return {number} borders - The borders size of the given axis
 */

function getBordersSize(styles, axis) {
  var sideA = axis === 'x' ? 'Left' : 'Top';
  var sideB = sideA === 'Left' ? 'Right' : 'Bottom';

  return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
}

function getSize(axis, body, html, computedStyle) {
  return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);
}

function getWindowSizes(document) {
  var body = document.body;
  var html = document.documentElement;
  var computedStyle = isIE(10) && getComputedStyle(html);

  return {
    height: getSize('Height', body, html, computedStyle),
    width: getSize('Width', body, html, computedStyle)
  };
}

var classCallCheck = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
};

var createClass = function () {
  function defineProperties(target, props) {
    for (var i = 0; i < props.length; i++) {
      var descriptor = props[i];
      descriptor.enumerable = descriptor.enumerable || false;
      descriptor.configurable = true;
      if ("value" in descriptor) descriptor.writable = true;
      Object.defineProperty(target, descriptor.key, descriptor);
    }
  }

  return function (Constructor, protoProps, staticProps) {
    if (protoProps) defineProperties(Constructor.prototype, protoProps);
    if (staticProps) defineProperties(Constructor, staticProps);
    return Constructor;
  };
}();





var defineProperty = function (obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
};

var _extends = Object.assign || function (target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i];

    for (var key in source) {
      if (Object.prototype.hasOwnProperty.call(source, key)) {
        target[key] = source[key];
      }
    }
  }

  return target;
};

/**
 * Given element offsets, generate an output similar to getBoundingClientRect
 * @method
 * @memberof Popper.Utils
 * @argument {Object} offsets
 * @returns {Object} ClientRect like output
 */
function getClientRect(offsets) {
  return _extends({}, offsets, {
    right: offsets.left + offsets.width,
    bottom: offsets.top + offsets.height
  });
}

/**
 * Get bounding client rect of given element
 * @method
 * @memberof Popper.Utils
 * @param {HTMLElement} element
 * @return {Object} client rect
 */
function getBoundingClientRect(element) {
  var rect = {};

  // IE10 10 FIX: Please, don't ask, the element isn't
  // considered in DOM in some circumstances...
  // This isn't reproducible in IE10 compatibility mode of IE11
  try {
    if (isIE(10)) {
      rect = element.getBoundingClientRect();
      var scrollTop = getScroll(element, 'top');
      var scrollLeft = getScroll(element, 'left');
      rect.top += scrollTop;
      rect.left += scrollLeft;
      rect.bottom += scrollTop;
      rect.right += scrollLeft;
    } else {
      rect = element.getBoundingClientRect();
    }
  } catch (e) {}

  var result = {
    left: rect.left,
    top: rect.top,
    width: rect.right - rect.left,
    height: rect.bottom - rect.top
  };

  // subtract scrollbar size from sizes
  var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
  var width = sizes.width || element.clientWidth || result.width;
  var height = sizes.height || element.clientHeight || result.height;

  var horizScrollbar = element.offsetWidth - width;
  var vertScrollbar = element.offsetHeight - height;

  // if an hypothetical scrollbar is detected, we must be sure it's not a `border`
  // we make this check conditional for performance reasons
  if (horizScrollbar || vertScrollbar) {
    var styles = getStyleComputedProperty(element);
    horizScrollbar -= getBordersSize(styles, 'x');
    vertScrollbar -= getBordersSize(styles, 'y');

    result.width -= horizScrollbar;
    result.height -= vertScrollbar;
  }

  return getClientRect(result);
}

function getOffsetRectRelativeToArbitraryNode(children, parent) {
  var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

  var isIE10 = isIE(10);
  var isHTML = parent.nodeName === 'HTML';
  var childrenRect = getBoundingClientRect(children);
  var parentRect = getBoundingClientRect(parent);
  var scrollParent = getScrollParent(children);

  var styles = getStyleComputedProperty(parent);
  var borderTopWidth = parseFloat(styles.borderTopWidth);
  var borderLeftWidth = parseFloat(styles.borderLeftWidth);

  // In cases where the parent is fixed, we must ignore negative scroll in offset calc
  if (fixedPosition && isHTML) {
    parentRect.top = Math.max(parentRect.top, 0);
    parentRect.left = Math.max(parentRect.left, 0);
  }
  var offsets = getClientRect({
    top: childrenRect.top - parentRect.top - borderTopWidth,
    left: childrenRect.left - parentRect.left - borderLeftWidth,
    width: childrenRect.width,
    height: childrenRect.height
  });
  offsets.marginTop = 0;
  offsets.marginLeft = 0;

  // Subtract margins of documentElement in case it's being used as parent
  // we do this only on HTML because it's the only element that behaves
  // differently when margins are applied to it. The margins are included in
  // the box of the documentElement, in the other cases not.
  if (!isIE10 && isHTML) {
    var marginTop = parseFloat(styles.marginTop);
    var marginLeft = parseFloat(styles.marginLeft);

    offsets.top -= borderTopWidth - marginTop;
    offsets.bottom -= borderTopWidth - marginTop;
    offsets.left -= borderLeftWidth - marginLeft;
    offsets.right -= borderLeftWidth - marginLeft;

    // Attach marginTop and marginLeft because in some circumstances we may need them
    offsets.marginTop = marginTop;
    offsets.marginLeft = marginLeft;
  }

  if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {
    offsets = includeScroll(offsets, parent);
  }

  return offsets;
}

function getViewportOffsetRectRelativeToArtbitraryNode(element) {
  var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var html = element.ownerDocument.documentElement;
  var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);
  var width = Math.max(html.clientWidth, window.innerWidth || 0);
  var height = Math.max(html.clientHeight, window.innerHeight || 0);

  var scrollTop = !excludeScroll ? getScroll(html) : 0;
  var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;

  var offset = {
    top: scrollTop - relativeOffset.top + relativeOffset.marginTop,
    left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,
    width: width,
    height: height
  };

  return getClientRect(offset);
}

/**
 * Check if the given element is fixed or is inside a fixed parent
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @argument {Element} customContainer
 * @returns {Boolean} answer to "isFixed?"
 */
function isFixed(element) {
  var nodeName = element.nodeName;
  if (nodeName === 'BODY' || nodeName === 'HTML') {
    return false;
  }
  if (getStyleComputedProperty(element, 'position') === 'fixed') {
    return true;
  }
  var parentNode = getParentNode(element);
  if (!parentNode) {
    return false;
  }
  return isFixed(parentNode);
}

/**
 * Finds the first parent of an element that has a transformed property defined
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Element} first transformed parent or documentElement
 */

function getFixedPositionOffsetParent(element) {
  // This check is needed to avoid errors in case one of the elements isn't defined for any reason
  if (!element || !element.parentElement || isIE()) {
    return document.documentElement;
  }
  var el = element.parentElement;
  while (el && getStyleComputedProperty(el, 'transform') === 'none') {
    el = el.parentElement;
  }
  return el || document.documentElement;
}

/**
 * Computed the boundaries limits and return them
 * @method
 * @memberof Popper.Utils
 * @param {HTMLElement} popper
 * @param {HTMLElement} reference
 * @param {number} padding
 * @param {HTMLElement} boundariesElement - Element used to define the boundaries
 * @param {Boolean} fixedPosition - Is in fixed position mode
 * @returns {Object} Coordinates of the boundaries
 */
function getBoundaries(popper, reference, padding, boundariesElement) {
  var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

  // NOTE: 1 DOM access here

  var boundaries = { top: 0, left: 0 };
  var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));

  // Handle viewport case
  if (boundariesElement === 'viewport') {
    boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);
  } else {
    // Handle other cases based on DOM element used as boundaries
    var boundariesNode = void 0;
    if (boundariesElement === 'scrollParent') {
      boundariesNode = getScrollParent(getParentNode(reference));
      if (boundariesNode.nodeName === 'BODY') {
        boundariesNode = popper.ownerDocument.documentElement;
      }
    } else if (boundariesElement === 'window') {
      boundariesNode = popper.ownerDocument.documentElement;
    } else {
      boundariesNode = boundariesElement;
    }

    var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);

    // In case of HTML, we need a different computation
    if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {
      var _getWindowSizes = getWindowSizes(popper.ownerDocument),
          height = _getWindowSizes.height,
          width = _getWindowSizes.width;

      boundaries.top += offsets.top - offsets.marginTop;
      boundaries.bottom = height + offsets.top;
      boundaries.left += offsets.left - offsets.marginLeft;
      boundaries.right = width + offsets.left;
    } else {
      // for all the other DOM elements, this one is good
      boundaries = offsets;
    }
  }

  // Add paddings
  padding = padding || 0;
  var isPaddingNumber = typeof padding === 'number';
  boundaries.left += isPaddingNumber ? padding : padding.left || 0;
  boundaries.top += isPaddingNumber ? padding : padding.top || 0;
  boundaries.right -= isPaddingNumber ? padding : padding.right || 0;
  boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;

  return boundaries;
}

function getArea(_ref) {
  var width = _ref.width,
      height = _ref.height;

  return width * height;
}

/**
 * Utility used to transform the `auto` placement to the placement with more
 * available space.
 * @method
 * @memberof Popper.Utils
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {
  var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;

  if (placement.indexOf('auto') === -1) {
    return placement;
  }

  var boundaries = getBoundaries(popper, reference, padding, boundariesElement);

  var rects = {
    top: {
      width: boundaries.width,
      height: refRect.top - boundaries.top
    },
    right: {
      width: boundaries.right - refRect.right,
      height: boundaries.height
    },
    bottom: {
      width: boundaries.width,
      height: boundaries.bottom - refRect.bottom
    },
    left: {
      width: refRect.left - boundaries.left,
      height: boundaries.height
    }
  };

  var sortedAreas = Object.keys(rects).map(function (key) {
    return _extends({
      key: key
    }, rects[key], {
      area: getArea(rects[key])
    });
  }).sort(function (a, b) {
    return b.area - a.area;
  });

  var filteredAreas = sortedAreas.filter(function (_ref2) {
    var width = _ref2.width,
        height = _ref2.height;
    return width >= popper.clientWidth && height >= popper.clientHeight;
  });

  var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;

  var variation = placement.split('-')[1];

  return computedPlacement + (variation ? '-' + variation : '');
}

/**
 * Get offsets to the reference element
 * @method
 * @memberof Popper.Utils
 * @param {Object} state
 * @param {Element} popper - the popper element
 * @param {Element} reference - the reference element (the popper will be relative to this)
 * @param {Element} fixedPosition - is in fixed position mode
 * @returns {Object} An object containing the offsets which will be applied to the popper
 */
function getReferenceOffsets(state, popper, reference) {
  var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

  var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
  return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
}

/**
 * Get the outer sizes of the given element (offset size + margins)
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element
 * @returns {Object} object containing width and height properties
 */
function getOuterSizes(element) {
  var window = element.ownerDocument.defaultView;
  var styles = window.getComputedStyle(element);
  var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);
  var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);
  var result = {
    width: element.offsetWidth + y,
    height: element.offsetHeight + x
  };
  return result;
}

/**
 * Get the opposite placement of the given one
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement
 * @returns {String} flipped placement
 */
function getOppositePlacement(placement) {
  var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
  return placement.replace(/left|right|bottom|top/g, function (matched) {
    return hash[matched];
  });
}

/**
 * Get offsets to the popper
 * @method
 * @memberof Popper.Utils
 * @param {Object} position - CSS position the Popper will get applied
 * @param {HTMLElement} popper - the popper element
 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)
 * @param {String} placement - one of the valid placement options
 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper
 */
function getPopperOffsets(popper, referenceOffsets, placement) {
  placement = placement.split('-')[0];

  // Get popper node sizes
  var popperRect = getOuterSizes(popper);

  // Add position, width and height to our offsets object
  var popperOffsets = {
    width: popperRect.width,
    height: popperRect.height
  };

  // depending by the popper placement we have to compute its offsets slightly differently
  var isHoriz = ['right', 'left'].indexOf(placement) !== -1;
  var mainSide = isHoriz ? 'top' : 'left';
  var secondarySide = isHoriz ? 'left' : 'top';
  var measurement = isHoriz ? 'height' : 'width';
  var secondaryMeasurement = !isHoriz ? 'height' : 'width';

  popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;
  if (placement === secondarySide) {
    popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];
  } else {
    popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];
  }

  return popperOffsets;
}

/**
 * Mimics the `find` method of Array
 * @method
 * @memberof Popper.Utils
 * @argument {Array} arr
 * @argument prop
 * @argument value
 * @returns index or -1
 */
function find(arr, check) {
  // use native find if supported
  if (Array.prototype.find) {
    return arr.find(check);
  }

  // use `filter` to obtain the same behavior of `find`
  return arr.filter(check)[0];
}

/**
 * Return the index of the matching object
 * @method
 * @memberof Popper.Utils
 * @argument {Array} arr
 * @argument prop
 * @argument value
 * @returns index or -1
 */
function findIndex(arr, prop, value) {
  // use native findIndex if supported
  if (Array.prototype.findIndex) {
    return arr.findIndex(function (cur) {
      return cur[prop] === value;
    });
  }

  // use `find` + `indexOf` if `findIndex` isn't supported
  var match = find(arr, function (obj) {
    return obj[prop] === value;
  });
  return arr.indexOf(match);
}

/**
 * Loop trough the list of modifiers and run them in order,
 * each of them will then edit the data object.
 * @method
 * @memberof Popper.Utils
 * @param {dataObject} data
 * @param {Array} modifiers
 * @param {String} ends - Optional modifier name used as stopper
 * @returns {dataObject}
 */
function runModifiers(modifiers, data, ends) {
  var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));

  modifiersToRun.forEach(function (modifier) {
    if (modifier['function']) {
      // eslint-disable-line dot-notation
      console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
    }
    var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation
    if (modifier.enabled && isFunction(fn)) {
      // Add properties to offsets to make them a complete clientRect object
      // we do this before each modifier to make sure the previous one doesn't
      // mess with these values
      data.offsets.popper = getClientRect(data.offsets.popper);
      data.offsets.reference = getClientRect(data.offsets.reference);

      data = fn(data, modifier);
    }
  });

  return data;
}

/**
 * Updates the position of the popper, computing the new offsets and applying
 * the new style.<br />
 * Prefer `scheduleUpdate` over `update` because of performance reasons.
 * @method
 * @memberof Popper
 */
function update() {
  // if popper is destroyed, don't perform any further update
  if (this.state.isDestroyed) {
    return;
  }

  var data = {
    instance: this,
    styles: {},
    arrowStyles: {},
    attributes: {},
    flipped: false,
    offsets: {}
  };

  // compute reference element offsets
  data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);

  // compute auto placement, store placement inside the data object,
  // modifiers will be able to edit `placement` if needed
  // and refer to originalPlacement to know the original value
  data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);

  // store the computed placement inside `originalPlacement`
  data.originalPlacement = data.placement;

  data.positionFixed = this.options.positionFixed;

  // compute the popper offsets
  data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);

  data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';

  // run the modifiers
  data = runModifiers(this.modifiers, data);

  // the first `update` will call `onCreate` callback
  // the other ones will call `onUpdate` callback
  if (!this.state.isCreated) {
    this.state.isCreated = true;
    this.options.onCreate(data);
  } else {
    this.options.onUpdate(data);
  }
}

/**
 * Helper used to know if the given modifier is enabled.
 * @method
 * @memberof Popper.Utils
 * @returns {Boolean}
 */
function isModifierEnabled(modifiers, modifierName) {
  return modifiers.some(function (_ref) {
    var name = _ref.name,
        enabled = _ref.enabled;
    return enabled && name === modifierName;
  });
}

/**
 * Get the prefixed supported property name
 * @method
 * @memberof Popper.Utils
 * @argument {String} property (camelCase)
 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)
 */
function getSupportedPropertyName(property) {
  var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];
  var upperProp = property.charAt(0).toUpperCase() + property.slice(1);

  for (var i = 0; i < prefixes.length; i++) {
    var prefix = prefixes[i];
    var toCheck = prefix ? '' + prefix + upperProp : property;
    if (typeof document.body.style[toCheck] !== 'undefined') {
      return toCheck;
    }
  }
  return null;
}

/**
 * Destroys the popper.
 * @method
 * @memberof Popper
 */
function destroy() {
  this.state.isDestroyed = true;

  // touch DOM only if `applyStyle` modifier is enabled
  if (isModifierEnabled(this.modifiers, 'applyStyle')) {
    this.popper.removeAttribute('x-placement');
    this.popper.style.position = '';
    this.popper.style.top = '';
    this.popper.style.left = '';
    this.popper.style.right = '';
    this.popper.style.bottom = '';
    this.popper.style.willChange = '';
    this.popper.style[getSupportedPropertyName('transform')] = '';
  }

  this.disableEventListeners();

  // remove the popper if user explicitly asked for the deletion on destroy
  // do not use `remove` because IE11 doesn't support it
  if (this.options.removeOnDestroy) {
    this.popper.parentNode.removeChild(this.popper);
  }
  return this;
}

/**
 * Get the window associated with the element
 * @argument {Element} element
 * @returns {Window}
 */
function getWindow(element) {
  var ownerDocument = element.ownerDocument;
  return ownerDocument ? ownerDocument.defaultView : window;
}

function attachToScrollParents(scrollParent, event, callback, scrollParents) {
  var isBody = scrollParent.nodeName === 'BODY';
  var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;
  target.addEventListener(event, callback, { passive: true });

  if (!isBody) {
    attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);
  }
  scrollParents.push(target);
}

/**
 * Setup needed event listeners used to update the popper position
 * @method
 * @memberof Popper.Utils
 * @private
 */
function setupEventListeners(reference, options, state, updateBound) {
  // Resize event listener on window
  state.updateBound = updateBound;
  getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });

  // Scroll event listener on scroll parents
  var scrollElement = getScrollParent(reference);
  attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);
  state.scrollElement = scrollElement;
  state.eventsEnabled = true;

  return state;
}

/**
 * It will add resize/scroll events and start recalculating
 * position of the popper element when they are triggered.
 * @method
 * @memberof Popper
 */
function enableEventListeners() {
  if (!this.state.eventsEnabled) {
    this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);
  }
}

/**
 * Remove event listeners used to update the popper position
 * @method
 * @memberof Popper.Utils
 * @private
 */
function removeEventListeners(reference, state) {
  // Remove resize event listener on window
  getWindow(reference).removeEventListener('resize', state.updateBound);

  // Remove scroll event listener on scroll parents
  state.scrollParents.forEach(function (target) {
    target.removeEventListener('scroll', state.updateBound);
  });

  // Reset state
  state.updateBound = null;
  state.scrollParents = [];
  state.scrollElement = null;
  state.eventsEnabled = false;
  return state;
}

/**
 * It will remove resize/scroll events and won't recalculate popper position
 * when they are triggered. It also won't trigger `onUpdate` callback anymore,
 * unless you call `update` method manually.
 * @method
 * @memberof Popper
 */
function disableEventListeners() {
  if (this.state.eventsEnabled) {
    cancelAnimationFrame(this.scheduleUpdate);
    this.state = removeEventListeners(this.reference, this.state);
  }
}

/**
 * Tells if a given input is a number
 * @method
 * @memberof Popper.Utils
 * @param {*} input to check
 * @return {Boolean}
 */
function isNumeric(n) {
  return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
}

/**
 * Set the style to the given popper
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element - Element to apply the style to
 * @argument {Object} styles
 * Object with a list of properties and values which will be applied to the element
 */
function setStyles(element, styles) {
  Object.keys(styles).forEach(function (prop) {
    var unit = '';
    // add unit if the value is numeric and is one of the following
    if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {
      unit = 'px';
    }
    element.style[prop] = styles[prop] + unit;
  });
}

/**
 * Set the attributes to the given popper
 * @method
 * @memberof Popper.Utils
 * @argument {Element} element - Element to apply the attributes to
 * @argument {Object} styles
 * Object with a list of properties and values which will be applied to the element
 */
function setAttributes(element, attributes) {
  Object.keys(attributes).forEach(function (prop) {
    var value = attributes[prop];
    if (value !== false) {
      element.setAttribute(prop, attributes[prop]);
    } else {
      element.removeAttribute(prop);
    }
  });
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} data.styles - List of style properties - values to apply to popper element
 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The same data object
 */
function applyStyle(data) {
  // any property present in `data.styles` will be applied to the popper,
  // in this way we can make the 3rd party modifiers add custom styles to it
  // Be aware, modifiers could override the properties defined in the previous
  // lines of this modifier!
  setStyles(data.instance.popper, data.styles);

  // any property present in `data.attributes` will be applied to the popper,
  // they will be set as HTML attributes of the element
  setAttributes(data.instance.popper, data.attributes);

  // if arrowElement is defined and arrowStyles has some properties
  if (data.arrowElement && Object.keys(data.arrowStyles).length) {
    setStyles(data.arrowElement, data.arrowStyles);
  }

  return data;
}

/**
 * Set the x-placement attribute before everything else because it could be used
 * to add margins to the popper margins needs to be calculated to get the
 * correct popper offsets.
 * @method
 * @memberof Popper.modifiers
 * @param {HTMLElement} reference - The reference element used to position the popper
 * @param {HTMLElement} popper - The HTML element used as popper
 * @param {Object} options - Popper.js options
 */
function applyStyleOnLoad(reference, popper, options, modifierOptions, state) {
  // compute reference element offsets
  var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);

  // compute auto placement, store placement inside the data object,
  // modifiers will be able to edit `placement` if needed
  // and refer to originalPlacement to know the original value
  var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);

  popper.setAttribute('x-placement', placement);

  // Apply `position` to popper before anything else because
  // without the position applied we can't guarantee correct computations
  setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });

  return options;
}

/**
 * @function
 * @memberof Popper.Utils
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Boolean} shouldRound - If the offsets should be rounded at all
 * @returns {Object} The popper's position offsets rounded
 *
 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as
 * good as it can be within reason.
 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715
 *
 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari
 * as well on High DPI screens).
 *
 * Firefox prefers no rounding for positioning and does not have blurriness on
 * high DPI screens.
 *
 * Only horizontal placement and left/right values need to be considered.
 */
function getRoundedOffsets(data, shouldRound) {
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;
  var round = Math.round,
      floor = Math.floor;

  var noRound = function noRound(v) {
    return v;
  };

  var referenceWidth = round(reference.width);
  var popperWidth = round(popper.width);

  var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;
  var isVariation = data.placement.indexOf('-') !== -1;
  var sameWidthParity = referenceWidth % 2 === popperWidth % 2;
  var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;

  var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;
  var verticalToInteger = !shouldRound ? noRound : round;

  return {
    left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),
    top: verticalToInteger(popper.top),
    bottom: verticalToInteger(popper.bottom),
    right: horizontalToInteger(popper.right)
  };
}

var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function computeStyle(data, options) {
  var x = options.x,
      y = options.y;
  var popper = data.offsets.popper;

  // Remove this legacy support in Popper.js v2

  var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {
    return modifier.name === 'applyStyle';
  }).gpuAcceleration;
  if (legacyGpuAccelerationOption !== undefined) {
    console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
  }
  var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;

  var offsetParent = getOffsetParent(data.instance.popper);
  var offsetParentRect = getBoundingClientRect(offsetParent);

  // Styles
  var styles = {
    position: popper.position
  };

  var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);

  var sideA = x === 'bottom' ? 'top' : 'bottom';
  var sideB = y === 'right' ? 'left' : 'right';

  // if gpuAcceleration is set to `true` and transform is supported,
  //  we use `translate3d` to apply the position to the popper we
  // automatically use the supported prefixed version if needed
  var prefixedProperty = getSupportedPropertyName('transform');

  // now, let's make a step back and look at this code closely (wtf?)
  // If the content of the popper grows once it's been positioned, it
  // may happen that the popper gets misplaced because of the new content
  // overflowing its reference element
  // To avoid this problem, we provide two options (x and y), which allow
  // the consumer to define the offset origin.
  // If we position a popper on top of a reference element, we can set
  // `x` to `top` to make the popper grow towards its top instead of
  // its bottom.
  var left = void 0,
      top = void 0;
  if (sideA === 'bottom') {
    // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar)
    // and not the bottom of the html element
    if (offsetParent.nodeName === 'HTML') {
      top = -offsetParent.clientHeight + offsets.bottom;
    } else {
      top = -offsetParentRect.height + offsets.bottom;
    }
  } else {
    top = offsets.top;
  }
  if (sideB === 'right') {
    if (offsetParent.nodeName === 'HTML') {
      left = -offsetParent.clientWidth + offsets.right;
    } else {
      left = -offsetParentRect.width + offsets.right;
    }
  } else {
    left = offsets.left;
  }
  if (gpuAcceleration && prefixedProperty) {
    styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
    styles[sideA] = 0;
    styles[sideB] = 0;
    styles.willChange = 'transform';
  } else {
    // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties
    var invertTop = sideA === 'bottom' ? -1 : 1;
    var invertLeft = sideB === 'right' ? -1 : 1;
    styles[sideA] = top * invertTop;
    styles[sideB] = left * invertLeft;
    styles.willChange = sideA + ', ' + sideB;
  }

  // Attributes
  var attributes = {
    'x-placement': data.placement
  };

  // Update `data` attributes, styles and arrowStyles
  data.attributes = _extends({}, attributes, data.attributes);
  data.styles = _extends({}, styles, data.styles);
  data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);

  return data;
}

/**
 * Helper used to know if the given modifier depends from another one.<br />
 * It checks if the needed modifier is listed and enabled.
 * @method
 * @memberof Popper.Utils
 * @param {Array} modifiers - list of modifiers
 * @param {String} requestingName - name of requesting modifier
 * @param {String} requestedName - name of requested modifier
 * @returns {Boolean}
 */
function isModifierRequired(modifiers, requestingName, requestedName) {
  var requesting = find(modifiers, function (_ref) {
    var name = _ref.name;
    return name === requestingName;
  });

  var isRequired = !!requesting && modifiers.some(function (modifier) {
    return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;
  });

  if (!isRequired) {
    var _requesting = '`' + requestingName + '`';
    var requested = '`' + requestedName + '`';
    console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');
  }
  return isRequired;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function arrow(data, options) {
  var _data$offsets$arrow;

  // arrow depends on keepTogether in order to work
  if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {
    return data;
  }

  var arrowElement = options.element;

  // if arrowElement is a string, suppose it's a CSS selector
  if (typeof arrowElement === 'string') {
    arrowElement = data.instance.popper.querySelector(arrowElement);

    // if arrowElement is not found, don't run the modifier
    if (!arrowElement) {
      return data;
    }
  } else {
    // if the arrowElement isn't a query selector we must check that the
    // provided DOM node is child of its popper node
    if (!data.instance.popper.contains(arrowElement)) {
      console.warn('WARNING: `arrow.element` must be child of its popper element!');
      return data;
    }
  }

  var placement = data.placement.split('-')[0];
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var isVertical = ['left', 'right'].indexOf(placement) !== -1;

  var len = isVertical ? 'height' : 'width';
  var sideCapitalized = isVertical ? 'Top' : 'Left';
  var side = sideCapitalized.toLowerCase();
  var altSide = isVertical ? 'left' : 'top';
  var opSide = isVertical ? 'bottom' : 'right';
  var arrowElementSize = getOuterSizes(arrowElement)[len];

  //
  // extends keepTogether behavior making sure the popper and its
  // reference have enough pixels in conjunction
  //

  // top/left side
  if (reference[opSide] - arrowElementSize < popper[side]) {
    data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);
  }
  // bottom/right side
  if (reference[side] + arrowElementSize > popper[opSide]) {
    data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];
  }
  data.offsets.popper = getClientRect(data.offsets.popper);

  // compute center of the popper
  var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;

  // Compute the sideValue using the updated popper offsets
  // take popper margin in account because we don't have this info available
  var css = getStyleComputedProperty(data.instance.popper);
  var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
  var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;

  // prevent arrowElement from being placed not contiguously to its popper
  sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);

  data.arrowElement = arrowElement;
  data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);

  return data;
}

/**
 * Get the opposite placement variation of the given one
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement variation
 * @returns {String} flipped placement variation
 */
function getOppositeVariation(variation) {
  if (variation === 'end') {
    return 'start';
  } else if (variation === 'start') {
    return 'end';
  }
  return variation;
}

/**
 * List of accepted placements to use as values of the `placement` option.<br />
 * Valid placements are:
 * - `auto`
 * - `top`
 * - `right`
 * - `bottom`
 * - `left`
 *
 * Each placement can have a variation from this list:
 * - `-start`
 * - `-end`
 *
 * Variations are interpreted easily if you think of them as the left to right
 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`
 * is right.<br />
 * Vertically (`left` and `right`), `start` is top and `end` is bottom.
 *
 * Some valid examples are:
 * - `top-end` (on top of reference, right aligned)
 * - `right-start` (on right of reference, top aligned)
 * - `bottom` (on bottom, centered)
 * - `auto-end` (on the side with more space available, alignment depends by placement)
 *
 * @static
 * @type {Array}
 * @enum {String}
 * @readonly
 * @method placements
 * @memberof Popper
 */
var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];

// Get rid of `auto` `auto-start` and `auto-end`
var validPlacements = placements.slice(3);

/**
 * Given an initial placement, returns all the subsequent placements
 * clockwise (or counter-clockwise).
 *
 * @method
 * @memberof Popper.Utils
 * @argument {String} placement - A valid placement (it accepts variations)
 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise
 * @returns {Array} placements including their variations
 */
function clockwise(placement) {
  var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var index = validPlacements.indexOf(placement);
  var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));
  return counter ? arr.reverse() : arr;
}

var BEHAVIORS = {
  FLIP: 'flip',
  CLOCKWISE: 'clockwise',
  COUNTERCLOCKWISE: 'counterclockwise'
};

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function flip(data, options) {
  // if `inner` modifier is enabled, we can't use the `flip` modifier
  if (isModifierEnabled(data.instance.modifiers, 'inner')) {
    return data;
  }

  if (data.flipped && data.placement === data.originalPlacement) {
    // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
    return data;
  }

  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);

  var placement = data.placement.split('-')[0];
  var placementOpposite = getOppositePlacement(placement);
  var variation = data.placement.split('-')[1] || '';

  var flipOrder = [];

  switch (options.behavior) {
    case BEHAVIORS.FLIP:
      flipOrder = [placement, placementOpposite];
      break;
    case BEHAVIORS.CLOCKWISE:
      flipOrder = clockwise(placement);
      break;
    case BEHAVIORS.COUNTERCLOCKWISE:
      flipOrder = clockwise(placement, true);
      break;
    default:
      flipOrder = options.behavior;
  }

  flipOrder.forEach(function (step, index) {
    if (placement !== step || flipOrder.length === index + 1) {
      return data;
    }

    placement = data.placement.split('-')[0];
    placementOpposite = getOppositePlacement(placement);

    var popperOffsets = data.offsets.popper;
    var refOffsets = data.offsets.reference;

    // using floor because the reference offsets may contain decimals we are not going to consider here
    var floor = Math.floor;
    var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);

    var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);
    var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);
    var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);
    var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);

    var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;

    // flip the variation if required
    var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;

    // flips variation if reference element overflows boundaries
    var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);

    // flips variation if popper content overflows boundaries
    var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);

    var flippedVariation = flippedVariationByRef || flippedVariationByContent;

    if (overlapsRef || overflowsBoundaries || flippedVariation) {
      // this boolean to detect any flip loop
      data.flipped = true;

      if (overlapsRef || overflowsBoundaries) {
        placement = flipOrder[index + 1];
      }

      if (flippedVariation) {
        variation = getOppositeVariation(variation);
      }

      data.placement = placement + (variation ? '-' + variation : '');

      // this object contains `position`, we want to preserve it along with
      // any additional property we may add in the future
      data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));

      data = runModifiers(data.instance.modifiers, data, 'flip');
    }
  });
  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function keepTogether(data) {
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var placement = data.placement.split('-')[0];
  var floor = Math.floor;
  var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;
  var side = isVertical ? 'right' : 'bottom';
  var opSide = isVertical ? 'left' : 'top';
  var measurement = isVertical ? 'width' : 'height';

  if (popper[side] < floor(reference[opSide])) {
    data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];
  }
  if (popper[opSide] > floor(reference[side])) {
    data.offsets.popper[opSide] = floor(reference[side]);
  }

  return data;
}

/**
 * Converts a string containing value + unit into a px value number
 * @function
 * @memberof {modifiers~offset}
 * @private
 * @argument {String} str - Value + unit string
 * @argument {String} measurement - `height` or `width`
 * @argument {Object} popperOffsets
 * @argument {Object} referenceOffsets
 * @returns {Number|String}
 * Value in pixels, or original string if no values were extracted
 */
function toValue(str, measurement, popperOffsets, referenceOffsets) {
  // separate value from unit
  var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);
  var value = +split[1];
  var unit = split[2];

  // If it's not a number it's an operator, I guess
  if (!value) {
    return str;
  }

  if (unit.indexOf('%') === 0) {
    var element = void 0;
    switch (unit) {
      case '%p':
        element = popperOffsets;
        break;
      case '%':
      case '%r':
      default:
        element = referenceOffsets;
    }

    var rect = getClientRect(element);
    return rect[measurement] / 100 * value;
  } else if (unit === 'vh' || unit === 'vw') {
    // if is a vh or vw, we calculate the size based on the viewport
    var size = void 0;
    if (unit === 'vh') {
      size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
    } else {
      size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
    }
    return size / 100 * value;
  } else {
    // if is an explicit pixel unit, we get rid of the unit and keep the value
    // if is an implicit unit, it's px, and we return just the value
    return value;
  }
}

/**
 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.
 * @function
 * @memberof {modifiers~offset}
 * @private
 * @argument {String} offset
 * @argument {Object} popperOffsets
 * @argument {Object} referenceOffsets
 * @argument {String} basePlacement
 * @returns {Array} a two cells array with x and y offsets in numbers
 */
function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {
  var offsets = [0, 0];

  // Use height if placement is left or right and index is 0 otherwise use width
  // in this way the first offset will use an axis and the second one
  // will use the other one
  var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;

  // Split the offset string to obtain a list of values and operands
  // The regex addresses values with the plus or minus sign in front (+10, -20, etc)
  var fragments = offset.split(/(\+|\-)/).map(function (frag) {
    return frag.trim();
  });

  // Detect if the offset string contains a pair of values or a single one
  // they could be separated by comma or space
  var divider = fragments.indexOf(find(fragments, function (frag) {
    return frag.search(/,|\s/) !== -1;
  }));

  if (fragments[divider] && fragments[divider].indexOf(',') === -1) {
    console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
  }

  // If divider is found, we divide the list of values and operands to divide
  // them by ofset X and Y.
  var splitRegex = /\s*,\s*|\s+/;
  var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];

  // Convert the values with units to absolute pixels to allow our computations
  ops = ops.map(function (op, index) {
    // Most of the units rely on the orientation of the popper
    var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';
    var mergeWithPrevious = false;
    return op
    // This aggregates any `+` or `-` sign that aren't considered operators
    // e.g.: 10 + +5 => [10, +, +5]
    .reduce(function (a, b) {
      if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {
        a[a.length - 1] = b;
        mergeWithPrevious = true;
        return a;
      } else if (mergeWithPrevious) {
        a[a.length - 1] += b;
        mergeWithPrevious = false;
        return a;
      } else {
        return a.concat(b);
      }
    }, [])
    // Here we convert the string values into number values (in px)
    .map(function (str) {
      return toValue(str, measurement, popperOffsets, referenceOffsets);
    });
  });

  // Loop trough the offsets arrays and execute the operations
  ops.forEach(function (op, index) {
    op.forEach(function (frag, index2) {
      if (isNumeric(frag)) {
        offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);
      }
    });
  });
  return offsets;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @argument {Number|String} options.offset=0
 * The offset value as described in the modifier description
 * @returns {Object} The data object, properly modified
 */
function offset(data, _ref) {
  var offset = _ref.offset;
  var placement = data.placement,
      _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var basePlacement = placement.split('-')[0];

  var offsets = void 0;
  if (isNumeric(+offset)) {
    offsets = [+offset, 0];
  } else {
    offsets = parseOffset(offset, popper, reference, basePlacement);
  }

  if (basePlacement === 'left') {
    popper.top += offsets[0];
    popper.left -= offsets[1];
  } else if (basePlacement === 'right') {
    popper.top += offsets[0];
    popper.left += offsets[1];
  } else if (basePlacement === 'top') {
    popper.left += offsets[0];
    popper.top -= offsets[1];
  } else if (basePlacement === 'bottom') {
    popper.left += offsets[0];
    popper.top += offsets[1];
  }

  data.popper = popper;
  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function preventOverflow(data, options) {
  var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);

  // If offsetParent is the reference element, we really want to
  // go one step up and use the next offsetParent as reference to
  // avoid to make this modifier completely useless and look like broken
  if (data.instance.reference === boundariesElement) {
    boundariesElement = getOffsetParent(boundariesElement);
  }

  // NOTE: DOM access here
  // resets the popper's position so that the document size can be calculated excluding
  // the size of the popper element itself
  var transformProp = getSupportedPropertyName('transform');
  var popperStyles = data.instance.popper.style; // assignment to help minification
  var top = popperStyles.top,
      left = popperStyles.left,
      transform = popperStyles[transformProp];

  popperStyles.top = '';
  popperStyles.left = '';
  popperStyles[transformProp] = '';

  var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);

  // NOTE: DOM access here
  // restores the original style properties after the offsets have been computed
  popperStyles.top = top;
  popperStyles.left = left;
  popperStyles[transformProp] = transform;

  options.boundaries = boundaries;

  var order = options.priority;
  var popper = data.offsets.popper;

  var check = {
    primary: function primary(placement) {
      var value = popper[placement];
      if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {
        value = Math.max(popper[placement], boundaries[placement]);
      }
      return defineProperty({}, placement, value);
    },
    secondary: function secondary(placement) {
      var mainSide = placement === 'right' ? 'left' : 'top';
      var value = popper[mainSide];
      if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {
        value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));
      }
      return defineProperty({}, mainSide, value);
    }
  };

  order.forEach(function (placement) {
    var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
    popper = _extends({}, popper, check[side](placement));
  });

  data.offsets.popper = popper;

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function shift(data) {
  var placement = data.placement;
  var basePlacement = placement.split('-')[0];
  var shiftvariation = placement.split('-')[1];

  // if shift shiftvariation is specified, run the modifier
  if (shiftvariation) {
    var _data$offsets = data.offsets,
        reference = _data$offsets.reference,
        popper = _data$offsets.popper;

    var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;
    var side = isVertical ? 'left' : 'top';
    var measurement = isVertical ? 'width' : 'height';

    var shiftOffsets = {
      start: defineProperty({}, side, reference[side]),
      end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
    };

    data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
  }

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by update method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function hide(data) {
  if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {
    return data;
  }

  var refRect = data.offsets.reference;
  var bound = find(data.instance.modifiers, function (modifier) {
    return modifier.name === 'preventOverflow';
  }).boundaries;

  if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {
    // Avoid unnecessary DOM access if visibility hasn't changed
    if (data.hide === true) {
      return data;
    }

    data.hide = true;
    data.attributes['x-out-of-boundaries'] = '';
  } else {
    // Avoid unnecessary DOM access if visibility hasn't changed
    if (data.hide === false) {
      return data;
    }

    data.hide = false;
    data.attributes['x-out-of-boundaries'] = false;
  }

  return data;
}

/**
 * @function
 * @memberof Modifiers
 * @argument {Object} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {Object} The data object, properly modified
 */
function inner(data) {
  var placement = data.placement;
  var basePlacement = placement.split('-')[0];
  var _data$offsets = data.offsets,
      popper = _data$offsets.popper,
      reference = _data$offsets.reference;

  var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;

  var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;

  popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);

  data.placement = getOppositePlacement(placement);
  data.offsets.popper = getClientRect(popper);

  return data;
}

/**
 * Modifier function, each modifier can have a function of this type assigned
 * to its `fn` property.<br />
 * These functions will be called on each update, this means that you must
 * make sure they are performant enough to avoid performance bottlenecks.
 *
 * @function ModifierFn
 * @argument {dataObject} data - The data object generated by `update` method
 * @argument {Object} options - Modifiers configuration and options
 * @returns {dataObject} The data object, properly modified
 */

/**
 * Modifiers are plugins used to alter the behavior of your poppers.<br />
 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities
 * needed by the library.
 *
 * Usually you don't want to override the `order`, `fn` and `onLoad` props.
 * All the other properties are configurations that could be tweaked.
 * @namespace modifiers
 */
var modifiers = {
  /**
   * Modifier used to shift the popper on the start or end of its reference
   * element.<br />
   * It will read the variation of the `placement` property.<br />
   * It can be one either `-end` or `-start`.
   * @memberof modifiers
   * @inner
   */
  shift: {
    /** @prop {number} order=100 - Index used to define the order of execution */
    order: 100,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: shift
  },

  /**
   * The `offset` modifier can shift your popper on both its axis.
   *
   * It accepts the following units:
   * - `px` or unit-less, interpreted as pixels
   * - `%` or `%r`, percentage relative to the length of the reference element
   * - `%p`, percentage relative to the length of the popper element
   * - `vw`, CSS viewport width unit
   * - `vh`, CSS viewport height unit
   *
   * For length is intended the main axis relative to the placement of the popper.<br />
   * This means that if the placement is `top` or `bottom`, the length will be the
   * `width`. In case of `left` or `right`, it will be the `height`.
   *
   * You can provide a single value (as `Number` or `String`), or a pair of values
   * as `String` divided by a comma or one (or more) white spaces.<br />
   * The latter is a deprecated method because it leads to confusion and will be
   * removed in v2.<br />
   * Additionally, it accepts additions and subtractions between different units.
   * Note that multiplications and divisions aren't supported.
   *
   * Valid examples are:
   * ```
   * 10
   * '10%'
   * '10, 10'
   * '10%, 10'
   * '10 + 10%'
   * '10 - 5vh + 3%'
   * '-10px + 5vh, 5px - 6%'
   * ```
   * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
   * > with their reference element, unfortunately, you will have to disable the `flip` modifier.
   * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
   *
   * @memberof modifiers
   * @inner
   */
  offset: {
    /** @prop {number} order=200 - Index used to define the order of execution */
    order: 200,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: offset,
    /** @prop {Number|String} offset=0
     * The offset value as described in the modifier description
     */
    offset: 0
  },

  /**
   * Modifier used to prevent the popper from being positioned outside the boundary.
   *
   * A scenario exists where the reference itself is not within the boundaries.<br />
   * We can say it has "escaped the boundaries" — or just "escaped".<br />
   * In this case we need to decide whether the popper should either:
   *
   * - detach from the reference and remain "trapped" in the boundaries, or
   * - if it should ignore the boundary and "escape with its reference"
   *
   * When `escapeWithReference` is set to`true` and reference is completely
   * outside its boundaries, the popper will overflow (or completely leave)
   * the boundaries in order to remain attached to the edge of the reference.
   *
   * @memberof modifiers
   * @inner
   */
  preventOverflow: {
    /** @prop {number} order=300 - Index used to define the order of execution */
    order: 300,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: preventOverflow,
    /**
     * @prop {Array} [priority=['left','right','top','bottom']]
     * Popper will try to prevent overflow following these priorities by default,
     * then, it could overflow on the left and on top of the `boundariesElement`
     */
    priority: ['left', 'right', 'top', 'bottom'],
    /**
     * @prop {number} padding=5
     * Amount of pixel used to define a minimum distance between the boundaries
     * and the popper. This makes sure the popper always has a little padding
     * between the edges of its container
     */
    padding: 5,
    /**
     * @prop {String|HTMLElement} boundariesElement='scrollParent'
     * Boundaries used by the modifier. Can be `scrollParent`, `window`,
     * `viewport` or any DOM element.
     */
    boundariesElement: 'scrollParent'
  },

  /**
   * Modifier used to make sure the reference and its popper stay near each other
   * without leaving any gap between the two. Especially useful when the arrow is
   * enabled and you want to ensure that it points to its reference element.
   * It cares only about the first axis. You can still have poppers with margin
   * between the popper and its reference element.
   * @memberof modifiers
   * @inner
   */
  keepTogether: {
    /** @prop {number} order=400 - Index used to define the order of execution */
    order: 400,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: keepTogether
  },

  /**
   * This modifier is used to move the `arrowElement` of the popper to make
   * sure it is positioned between the reference element and its popper element.
   * It will read the outer size of the `arrowElement` node to detect how many
   * pixels of conjunction are needed.
   *
   * It has no effect if no `arrowElement` is provided.
   * @memberof modifiers
   * @inner
   */
  arrow: {
    /** @prop {number} order=500 - Index used to define the order of execution */
    order: 500,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: arrow,
    /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
    element: '[x-arrow]'
  },

  /**
   * Modifier used to flip the popper's placement when it starts to overlap its
   * reference element.
   *
   * Requires the `preventOverflow` modifier before it in order to work.
   *
   * **NOTE:** this modifier will interrupt the current update cycle and will
   * restart it if it detects the need to flip the placement.
   * @memberof modifiers
   * @inner
   */
  flip: {
    /** @prop {number} order=600 - Index used to define the order of execution */
    order: 600,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: flip,
    /**
     * @prop {String|Array} behavior='flip'
     * The behavior used to change the popper's placement. It can be one of
     * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
     * placements (with optional variations)
     */
    behavior: 'flip',
    /**
     * @prop {number} padding=5
     * The popper will flip if it hits the edges of the `boundariesElement`
     */
    padding: 5,
    /**
     * @prop {String|HTMLElement} boundariesElement='viewport'
     * The element which will define the boundaries of the popper position.
     * The popper will never be placed outside of the defined boundaries
     * (except if `keepTogether` is enabled)
     */
    boundariesElement: 'viewport',
    /**
     * @prop {Boolean} flipVariations=false
     * The popper will switch placement variation between `-start` and `-end` when
     * the reference element overlaps its boundaries.
     *
     * The original placement should have a set variation.
     */
    flipVariations: false,
    /**
     * @prop {Boolean} flipVariationsByContent=false
     * The popper will switch placement variation between `-start` and `-end` when
     * the popper element overlaps its reference boundaries.
     *
     * The original placement should have a set variation.
     */
    flipVariationsByContent: false
  },

  /**
   * Modifier used to make the popper flow toward the inner of the reference element.
   * By default, when this modifier is disabled, the popper will be placed outside
   * the reference element.
   * @memberof modifiers
   * @inner
   */
  inner: {
    /** @prop {number} order=700 - Index used to define the order of execution */
    order: 700,
    /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
    enabled: false,
    /** @prop {ModifierFn} */
    fn: inner
  },

  /**
   * Modifier used to hide the popper when its reference element is outside of the
   * popper boundaries. It will set a `x-out-of-boundaries` attribute which can
   * be used to hide with a CSS selector the popper when its reference is
   * out of boundaries.
   *
   * Requires the `preventOverflow` modifier before it in order to work.
   * @memberof modifiers
   * @inner
   */
  hide: {
    /** @prop {number} order=800 - Index used to define the order of execution */
    order: 800,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: hide
  },

  /**
   * Computes the style that will be applied to the popper element to gets
   * properly positioned.
   *
   * Note that this modifier will not touch the DOM, it just prepares the styles
   * so that `applyStyle` modifier can apply it. This separation is useful
   * in case you need to replace `applyStyle` with a custom implementation.
   *
   * This modifier has `850` as `order` value to maintain backward compatibility
   * with previous versions of Popper.js. Expect the modifiers ordering method
   * to change in future major versions of the library.
   *
   * @memberof modifiers
   * @inner
   */
  computeStyle: {
    /** @prop {number} order=850 - Index used to define the order of execution */
    order: 850,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: computeStyle,
    /**
     * @prop {Boolean} gpuAcceleration=true
     * If true, it uses the CSS 3D transformation to position the popper.
     * Otherwise, it will use the `top` and `left` properties
     */
    gpuAcceleration: true,
    /**
     * @prop {string} [x='bottom']
     * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
     * Change this if your popper should grow in a direction different from `bottom`
     */
    x: 'bottom',
    /**
     * @prop {string} [x='left']
     * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
     * Change this if your popper should grow in a direction different from `right`
     */
    y: 'right'
  },

  /**
   * Applies the computed styles to the popper element.
   *
   * All the DOM manipulations are limited to this modifier. This is useful in case
   * you want to integrate Popper.js inside a framework or view library and you
   * want to delegate all the DOM manipulations to it.
   *
   * Note that if you disable this modifier, you must make sure the popper element
   * has its position set to `absolute` before Popper.js can do its work!
   *
   * Just disable this modifier and define your own to achieve the desired effect.
   *
   * @memberof modifiers
   * @inner
   */
  applyStyle: {
    /** @prop {number} order=900 - Index used to define the order of execution */
    order: 900,
    /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
    enabled: true,
    /** @prop {ModifierFn} */
    fn: applyStyle,
    /** @prop {Function} */
    onLoad: applyStyleOnLoad,
    /**
     * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
     * @prop {Boolean} gpuAcceleration=true
     * If true, it uses the CSS 3D transformation to position the popper.
     * Otherwise, it will use the `top` and `left` properties
     */
    gpuAcceleration: undefined
  }
};

/**
 * The `dataObject` is an object containing all the information used by Popper.js.
 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.
 * @name dataObject
 * @property {Object} data.instance The Popper.js instance
 * @property {String} data.placement Placement applied to popper
 * @property {String} data.originalPlacement Placement originally defined on init
 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier
 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper
 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier
 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)
 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)
 * @property {Object} data.boundaries Offsets of the popper boundaries
 * @property {Object} data.offsets The measurements of popper, reference and arrow elements
 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values
 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values
 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0
 */

/**
 * Default options provided to Popper.js constructor.<br />
 * These can be overridden using the `options` argument of Popper.js.<br />
 * To override an option, simply pass an object with the same
 * structure of the `options` object, as the 3rd argument. For example:
 * ```
 * new Popper(ref, pop, {
 *   modifiers: {
 *     preventOverflow: { enabled: false }
 *   }
 * })
 * ```
 * @type {Object}
 * @static
 * @memberof Popper
 */
var Defaults = {
  /**
   * Popper's placement.
   * @prop {Popper.placements} placement='bottom'
   */
  placement: 'bottom',

  /**
   * Set this to true if you want popper to position it self in 'fixed' mode
   * @prop {Boolean} positionFixed=false
   */
  positionFixed: false,

  /**
   * Whether events (resize, scroll) are initially enabled.
   * @prop {Boolean} eventsEnabled=true
   */
  eventsEnabled: true,

  /**
   * Set to true if you want to automatically remove the popper when
   * you call the `destroy` method.
   * @prop {Boolean} removeOnDestroy=false
   */
  removeOnDestroy: false,

  /**
   * Callback called when the popper is created.<br />
   * By default, it is set to no-op.<br />
   * Access Popper.js instance with `data.instance`.
   * @prop {onCreate}
   */
  onCreate: function onCreate() {},

  /**
   * Callback called when the popper is updated. This callback is not called
   * on the initialization/creation of the popper, but only on subsequent
   * updates.<br />
   * By default, it is set to no-op.<br />
   * Access Popper.js instance with `data.instance`.
   * @prop {onUpdate}
   */
  onUpdate: function onUpdate() {},

  /**
   * List of modifiers used to modify the offsets before they are applied to the popper.
   * They provide most of the functionalities of Popper.js.
   * @prop {modifiers}
   */
  modifiers: modifiers
};

/**
 * @callback onCreate
 * @param {dataObject} data
 */

/**
 * @callback onUpdate
 * @param {dataObject} data
 */

// Utils
// Methods
var Popper = function () {
  /**
   * Creates a new Popper.js instance.
   * @class Popper
   * @param {Element|referenceObject} reference - The reference element used to position the popper
   * @param {Element} popper - The HTML / XML element used as the popper
   * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)
   * @return {Object} instance - The generated Popper.js instance
   */
  function Popper(reference, popper) {
    var _this = this;

    var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
    classCallCheck(this, Popper);

    this.scheduleUpdate = function () {
      return requestAnimationFrame(_this.update);
    };

    // make update() debounced, so that it only runs at most once-per-tick
    this.update = debounce(this.update.bind(this));

    // with {} we create a new object with the options inside it
    this.options = _extends({}, Popper.Defaults, options);

    // init state
    this.state = {
      isDestroyed: false,
      isCreated: false,
      scrollParents: []
    };

    // get reference and popper elements (allow jQuery wrappers)
    this.reference = reference && reference.jquery ? reference[0] : reference;
    this.popper = popper && popper.jquery ? popper[0] : popper;

    // Deep merge modifiers options
    this.options.modifiers = {};
    Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
      _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
    });

    // Refactoring modifiers' list (Object => Array)
    this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
      return _extends({
        name: name
      }, _this.options.modifiers[name]);
    })
    // sort the modifiers by order
    .sort(function (a, b) {
      return a.order - b.order;
    });

    // modifiers have the ability to execute arbitrary code when Popper.js get inited
    // such code is executed in the same order of its modifier
    // they could add new properties to their options configuration
    // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!
    this.modifiers.forEach(function (modifierOptions) {
      if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {
        modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
      }
    });

    // fire the first update to position the popper in the right place
    this.update();

    var eventsEnabled = this.options.eventsEnabled;
    if (eventsEnabled) {
      // setup event listeners, they will take care of update the position in specific situations
      this.enableEventListeners();
    }

    this.state.eventsEnabled = eventsEnabled;
  }

  // We can't use class properties because they don't get listed in the
  // class prototype and break stuff like Sinon stubs


  createClass(Popper, [{
    key: 'update',
    value: function update$$1() {
      return update.call(this);
    }
  }, {
    key: 'destroy',
    value: function destroy$$1() {
      return destroy.call(this);
    }
  }, {
    key: 'enableEventListeners',
    value: function enableEventListeners$$1() {
      return enableEventListeners.call(this);
    }
  }, {
    key: 'disableEventListeners',
    value: function disableEventListeners$$1() {
      return disableEventListeners.call(this);
    }

    /**
     * Schedules an update. It will run on the next UI update available.
     * @method scheduleUpdate
     * @memberof Popper
     */


    /**
     * Collection of utilities useful when writing custom modifiers.
     * Starting from version 1.7, this method is available only if you
     * include `popper-utils.js` before `popper.js`.
     *
     * **DEPRECATION**: This way to access PopperUtils is deprecated
     * and will be removed in v2! Use the PopperUtils module directly instead.
     * Due to the high instability of the methods contained in Utils, we can't
     * guarantee them to follow semver. Use them at your own risk!
     * @static
     * @private
     * @type {Object}
     * @deprecated since version 1.8
     * @member Utils
     * @memberof Popper
     */

  }]);
  return Popper;
}();

/**
 * The `referenceObject` is an object that provides an interface compatible with Popper.js
 * and lets you use it as replacement of a real DOM node.<br />
 * You can use this method to position a popper relatively to a set of coordinates
 * in case you don't have a DOM node to use as reference.
 *
 * ```
 * new Popper(referenceObject, popperNode);
 * ```
 *
 * NB: This feature isn't supported in Internet Explorer 10.
 * @name referenceObject
 * @property {Function} data.getBoundingClientRect
 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.
 * @property {number} data.clientWidth
 * An ES6 getter that will return the width of the virtual reference element.
 * @property {number} data.clientHeight
 * An ES6 getter that will return the height of the virtual reference element.
 */


Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;
Popper.placements = placements;
Popper.Defaults = Defaults;

/* harmony default export */ __webpack_exports__["default"] = (Popper);
//# sourceMappingURL=popper.js.map

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/process/browser.js":
/*!*****************************************!*\
  !*** ./node_modules/process/browser.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (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; };


/***/ }),

/***/ "./node_modules/prop-types-extra/lib/all.js":
/*!**************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/all.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = all;

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function all() {
  for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
    validators[_key] = arguments[_key];
  }

  function allPropTypes() {
    for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      args[_key2] = arguments[_key2];
    }

    var error = null;

    validators.forEach(function (validator) {
      if (error != null) {
        return;
      }

      var result = validator.apply(undefined, args);
      if (result != null) {
        error = result;
      }
    });

    return error;
  }

  return (0, _createChainableTypeChecker2.default)(allPropTypes);
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/componentOrElement.js":
/*!*****************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/componentOrElement.js ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function validate(props, propName, componentName, location, propFullName) {
  var propValue = props[propName];
  var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);

  if (_react2.default.isValidElement(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement. You can usually obtain a ReactComponent or DOMElement ' + 'from a ReactElement by attaching a ref to it.');
  }

  if ((propType !== 'object' || typeof propValue.render !== 'function') && propValue.nodeType !== 1) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected a ReactComponent or a ') + 'DOMElement.');
  }

  return null;
}

exports.default = (0, _createChainableTypeChecker2.default)(validate);
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/deprecated.js":
/*!*********************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/deprecated.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = deprecated;

var _warning = __webpack_require__(/*! warning */ "./node_modules/warning/browser.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var warned = {};

function deprecated(validator, reason) {
  return function validate(props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] != null) {
      var messageKey = componentName + '.' + propName;

      (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));

      warned[messageKey] = true;
    }

    for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
      args[_key - 5] = arguments[_key];
    }

    return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
  };
}

/* eslint-disable no-underscore-dangle */
function _resetWarned() {
  warned = {};
}

deprecated._resetWarned = _resetWarned;
/* eslint-enable no-underscore-dangle */

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/elementType.js":
/*!**********************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/elementType.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");

var _createChainableTypeChecker = __webpack_require__(/*! ./utils/createChainableTypeChecker */ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js");

var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function elementType(props, propName, componentName, location, propFullName) {
  var propValue = props[propName];

  if (_react2.default.isValidElement(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`,expected an element type (a string ') + ', component class, or function component).');
  }

  if (!(0, _reactIs.isValidElementType)(propValue)) {
    return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + ', component class, or function component).');
  }

  return null;
}

exports.default = (0, _createChainableTypeChecker2.default)(elementType);
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js":
/*!****************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/isRequiredForA11y.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isRequiredForA11y;
function isRequiredForA11y(validator) {
  return function validate(props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] == null) {
      return new Error('The ' + location + ' `' + propFullNameSafe + '` is required to make ' + ('`' + componentNameSafe + '` accessible for users of assistive ') + 'technologies such as screen readers.');
    }

    for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
      args[_key - 5] = arguments[_key];
    }

    return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
  };
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/prop-types-extra/lib/utils/createChainableTypeChecker.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = createChainableTypeChecker;
/**
 * Copyright 2013-present, 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.
 */

// Mostly taken from ReactPropTypes.

function createChainableTypeChecker(validate) {
  function checkType(isRequired, props, propName, componentName, location, propFullName) {
    var componentNameSafe = componentName || '<<anonymous>>';
    var propFullNameSafe = propFullName || propName;

    if (props[propName] == null) {
      if (isRequired) {
        return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
      }

      return null;
    }

    for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
      args[_key - 6] = arguments[_key];
    }

    return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
  }

  var chainedCheckType = checkType.bind(null, false);
  chainedCheckType.isRequired = checkType.bind(null, true);

  return chainedCheckType;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/prop-types/checkPropTypes.js":
/*!***************************************************!*\
  !*** ./node_modules/prop-types/checkPropTypes.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (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__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
  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;


/***/ }),

/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
/*!************************************************************!*\
  !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (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__(/*! object-assign */ "./node_modules/object-assign/index.js");

var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");

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 ( true && 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;
};


/***/ }),

/***/ "./node_modules/prop-types/index.js":
/*!******************************************!*\
  !*** ./node_modules/prop-types/index.js ***!
  \******************************************/
/*! no static exports found */
/***/ (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__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
} else {}


/***/ }),

/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!*************************************************************!*\
  !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/raf/index.js":
/*!***********************************!*\
  !*** ./node_modules/raf/index.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(/*! performance-now */ "./node_modules/raf/node_modules/performance-now/lib/performance-now.js")
  , root = typeof window === 'undefined' ? global : window
  , vendors = ['moz', 'webkit']
  , suffix = 'AnimationFrame'
  , raf = root['request' + suffix]
  , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]

for(var i = 0; !raf && i < vendors.length; i++) {
  raf = root[vendors[i] + 'Request' + suffix]
  caf = root[vendors[i] + 'Cancel' + suffix]
      || root[vendors[i] + 'CancelRequest' + suffix]
}

// Some versions of FF have rAF but not cAF
if(!raf || !caf) {
  var last = 0
    , id = 0
    , queue = []
    , frameDuration = 1000 / 60

  raf = function(callback) {
    if(queue.length === 0) {
      var _now = now()
        , next = Math.max(0, frameDuration - (_now - last))
      last = next + _now
      setTimeout(function() {
        var cp = queue.slice(0)
        // Clear queue here to prevent
        // callbacks from appending listeners
        // to the current frame's queue
        queue.length = 0
        for(var i = 0; i < cp.length; i++) {
          if(!cp[i].cancelled) {
            try{
              cp[i].callback(last)
            } catch(e) {
              setTimeout(function() { throw e }, 0)
            }
          }
        }
      }, Math.round(next))
    }
    queue.push({
      handle: ++id,
      callback: callback,
      cancelled: false
    })
    return id
  }

  caf = function(handle) {
    for(var i = 0; i < queue.length; i++) {
      if(queue[i].handle === handle) {
        queue[i].cancelled = true
      }
    }
  }
}

module.exports = function(fn) {
  // Wrap in a new function to prevent
  // `cancel` potentially being assigned
  // to the native rAF function
  return raf.call(root, fn)
}
module.exports.cancel = function() {
  caf.apply(root, arguments)
}
module.exports.polyfill = function(object) {
  if (!object) {
    object = root;
  }
  object.requestAnimationFrame = raf
  object.cancelAnimationFrame = caf
}

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))

/***/ }),

/***/ "./node_modules/raf/node_modules/performance-now/lib/performance-now.js":
/*!******************************************************************************!*\
  !*** ./node_modules/raf/node_modules/performance-now/lib/performance-now.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
(function() {
  var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;

  if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
    module.exports = function() {
      return performance.now();
    };
  } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
    module.exports = function() {
      return (getNanoSeconds() - nodeLoadTime) / 1e6;
    };
    hrtime = process.hrtime;
    getNanoSeconds = function() {
      var hr;
      hr = hrtime();
      return hr[0] * 1e9 + hr[1];
    };
    moduleLoadTime = getNanoSeconds();
    upTime = process.uptime() * 1e9;
    nodeLoadTime = moduleLoadTime - upTime;
  } else if (Date.now) {
    module.exports = function() {
      return Date.now() - loadTime;
    };
    loadTime = Date.now();
  } else {
    module.exports = function() {
      return new Date().getTime() - loadTime;
    };
    loadTime = new Date().getTime();
  }

}).call(this);

//# sourceMappingURL=performance-now.js.map

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../process/browser.js */ "./node_modules/process/browser.js")))

/***/ }),

/***/ "./node_modules/react-bootstrap-switch/dist/js/index.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap-switch/dist/js/index.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 Switch = function (_React$Component) {
  _inherits(Switch, _React$Component);

  function Switch(props) {
    _classCallCheck(this, Switch);

    var _this = _possibleConstructorReturn(this, (Switch.__proto__ || Object.getPrototypeOf(Switch)).call(this, props));

    _this.state = {
      offset: 0,
      skipAnimation: true,
      dragStart: false,
      focus: false,
      value: props.value != undefined ? props.value : props.defaultValue,
      labelWidth: props.labelWidth,
      handleWidth: props.handleWidth
    };
    return _this;
  }

  _createClass(Switch, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._recalculateWidth();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var _this2 = this;

      var newValue = nextProps.value !== undefined ? nextProps.value : this.state.value;
      var oldValue = this.state.value;

      // ensure width is updated
      this.setState({
        labelWidth: nextProps.labelWidth,
        handleWidth: nextProps.handleWidth,
        value: newValue
      }, function () {
        _this2._recalculateWidth(newValue == oldValue);
      });
    }
  }, {
    key: '_getValue',
    value: function _getValue() {
      if (this.props.value !== undefined) return this.props.value;

      return this.state.value;
    }
  }, {
    key: 'value',
    value: function value(val) {
      if (val === undefined) return this.state.value;

      var newVal = val === null ? null : !!val;
      this._setValue(newVal);
      return newVal;
    }
  }, {
    key: '_wrapperClasses',
    value: function _wrapperClasses() {
      var _props = this.props,
          baseClass = _props.baseClass,
          wrapperClass = _props.wrapperClass,
          bsSize = _props.bsSize,
          disabled = _props.disabled,
          readonly = _props.readonly,
          inverse = _props.inverse,
          tristate = _props.tristate,
          animate = _props.animate,
          id = _props.id;
      var _state = this.state,
          skipAnimation = _state.skipAnimation,
          focus = _state.focus,
          dragStart = _state.dragStart;


      var value = this._getValue();

      var classes = [baseClass, wrapperClass];
      classes.push(baseClass + (value ? "-on" : "-off"));

      if (bsSize) classes.push(baseClass + "-" + bsSize);

      if (disabled) classes.push(baseClass + "-disabled");

      if (readonly) classes.push(baseClass + "-readonly");

      if (value === null) classes.push(baseClass + "-indeterminate");

      if (inverse) classes.push(baseClass + "-inverse");

      if (tristate) classes.push(baseClass + "-tristate");

      if (id) classes.push(baseClass + "-" + id);

      if (animate && !dragStart && !skipAnimation) classes.push(baseClass + "-animate");

      if (focus) classes.push(baseClass + "-focused");

      return classes.join(" ");
    }
  }, {
    key: '_recalculateWidth',
    value: function _recalculateWidth(animate) {
      var _this3 = this;

      var onHandle = _reactDom2.default.findDOMNode(this.elmOnHandle);
      var offHandle = _reactDom2.default.findDOMNode(this.elmOffHandle);
      var label = _reactDom2.default.findDOMNode(this.elmLabel);

      // assuming that if the elms need to be resized, the size will be cleared elsewhere first
      var _props2 = this.props,
          handleWidth = _props2.handleWidth,
          labelWidth = _props2.labelWidth;

      var newHandleWidth = handleWidth == "auto" ? Math.max(onHandle.offsetWidth, offHandle.offsetWidth) : handleWidth;

      var newLabelWidth = labelWidth == "auto" ? Math.max(newHandleWidth, label.offsetWidth) : labelWidth;

      return this.setState({
        handleWidth: newHandleWidth,
        labelWidth: newLabelWidth
      }, function () {
        _this3._updateContainerPosition(!animate);
      });
    }
  }, {
    key: '_updateContainerPosition',
    value: function _updateContainerPosition(noAnimate) {
      var _state2 = this.state,
          handleWidth = _state2.handleWidth,
          offset = _state2.offset;
      var inverse = this.props.inverse;

      var value = this._getValue();

      // skip animating if no offset yet
      var skipAnimation = noAnimate || offset == null;

      var newOffset = offset;

      if (handleWidth === 'auto') {
        newOffset = 0;
      } else if (value === null) {
        newOffset = -(handleWidth / 2);
      } else if (value) {
        newOffset = inverse ? -handleWidth : 0;
      } else {
        newOffset = inverse ? 0 : -handleWidth;
      }

      return this.setState({
        skipAnimation: skipAnimation,
        offset: newOffset
      });
    }
  }, {
    key: '_disableUserInput',
    value: function _disableUserInput() {
      var _props3 = this.props,
          disabled = _props3.disabled,
          readonly = _props3.readonly;


      return disabled || readonly;
    }
  }, {
    key: '_handleOnClick',
    value: function _handleOnClick() {
      if (this._disableUserInput()) return;

      this._setValue(this.props.tristate ? this._getValue() == null : false);
      this._setFocus();
    }
  }, {
    key: '_handleOffClick',
    value: function _handleOffClick() {
      if (this._disableUserInput()) return;

      this._setValue(this.props.tristate ? this._getValue() != null : true);
      this._setFocus();
    }
  }, {
    key: '_handleKeyPress',
    value: function _handleKeyPress(e) {
      if (!e.which || this._disableUserInput()) return;

      var inverse = this.props.inverse;


      switch (e.which) {
        case 37:
          return this._setValue(inverse);

        case 39:
          return this._setValue(!inverse);
      }
    }
  }, {
    key: '_handleLabelMouseDown',
    value: function _handleLabelMouseDown(e) {
      if (this.state.dragStart || this._disableUserInput()) return;

      this.setState({
        dragStart: (e.pageX || e.touches[0].pageX) - this.state.offset
      });
      this._setFocus();
    }
  }, {
    key: '_handleLabelMouseMove',
    value: function _handleLabelMouseMove(e) {
      var _state3 = this.state,
          dragStart = _state3.dragStart,
          handleWidth = _state3.handleWidth;


      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      var difference = (e.pageX || e.touches[0].pageX) - dragStart;
      if (difference < -handleWidth || difference > 0) return;

      this.setState({
        skipAnimation: false,
        offset: difference,
        dragged: true
      });
    }
  }, {
    key: '_handleLabelTouchEnd',
    value: function _handleLabelTouchEnd() {
      var _this4 = this;

      var _state4 = this.state,
          dragStart = _state4.dragStart,
          dragged = _state4.dragged,
          offset = _state4.offset,
          handleWidth = _state4.handleWidth;


      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      // If the touch ended without motion, then either a mousedown event should fire, or it was a long press and should do nothing
      if (!dragged || dragged === undefined || dragged === null) {
        this.setState({
          dragStart: false,
          dragged: false
        });
        return;
      }

      var inverse = this.props.inverse;


      var val = offset > -(handleWidth / 2);
      val = inverse ? !val : val;

      this.setState({
        dragStart: false,
        dragged: false,
        value: val
      }, function () {
        _this4._updateContainerPosition();
        _this4._fireStateChange(val);
      });
    }
  }, {
    key: '_handleLabelMouseUp',
    value: function _handleLabelMouseUp() {
      var _this5 = this;

      var _state5 = this.state,
          dragStart = _state5.dragStart,
          dragged = _state5.dragged,
          offset = _state5.offset,
          handleWidth = _state5.handleWidth;

      var value = this._getValue();

      if (dragStart === undefined || dragStart === null || dragStart === false) return;

      var _props4 = this.props,
          inverse = _props4.inverse,
          tristate = _props4.tristate;


      var val = void 0;

      if (dragged) {
        val = offset > -(handleWidth / 2);
        val = inverse ? !val : val;
      } else if (tristate) {
        val = value === null ? true : null;
      } else {
        val = !value;
      }

      this.setState({
        dragStart: false,
        dragged: false,
        value: val
      }, function () {
        _this5._updateContainerPosition();
        _this5._fireStateChange(val);
      });
    }
  }, {
    key: '_setFocus',
    value: function _setFocus() {
      this.setState({
        focus: true
      });
    }
  }, {
    key: '_setBlur',
    value: function _setBlur() {
      this.setState({
        focus: false
      });
    }
  }, {
    key: '_setValue',
    value: function _setValue(val) {
      var _this6 = this;

      var value = this._getValue();
      if (val === value) return;

      var newValue = val === undefined ? !value : val;

      this.setState({
        value: newValue
      }, function () {
        _this6._updateContainerPosition();
        _this6._fireStateChange(newValue);
      });
    }
  }, {
    key: '_fireStateChange',
    value: function _fireStateChange(newValue) {
      var _this7 = this;

      var onChange = this.props.onChange;

      if (typeof onChange != "function") return;

      setTimeout(function () {
        return onChange(_this7, newValue);
      }, 0);
    }
  }, {
    key: 'render',
    value: function render() {
      var _props5 = this.props,
          baseClass = _props5.baseClass,
          inverse = _props5.inverse;
      var _state6 = this.state,
          handleWidth = _state6.handleWidth,
          labelWidth = _state6.labelWidth,
          offset = _state6.offset;


      var onHandle = this._renderOnHandle();
      var offHandle = this._renderOffHandle();

      var containerWidth = labelWidth + handleWidth * 2;
      var wrapperWidth = labelWidth + handleWidth;
      if (containerWidth == wrapperWidth || handleWidth == "auto" || labelWidth == "auto") containerWidth = wrapperWidth = "auto";

      var wrapperParams = {
        className: this._wrapperClasses(),
        style: { width: wrapperWidth },
        tabIndex: "0",
        onKeyDown: this._handleKeyPress.bind(this),
        onFocus: this._setFocus.bind(this),
        onBlur: this._setBlur.bind(this)
      };

      var containerParams = {
        className: baseClass + '-container',
        style: { width: containerWidth, marginLeft: offset }
      };

      return _react2.default.createElement(
        'div',
        wrapperParams,
        _react2.default.createElement(
          'div',
          containerParams,
          inverse ? offHandle : onHandle,
          this._renderLabel(),
          inverse ? onHandle : offHandle
        )
      );
    }
  }, {
    key: '_renderOnHandle',
    value: function _renderOnHandle() {
      var _this8 = this;

      var _props6 = this.props,
          baseClass = _props6.baseClass,
          onColor = _props6.onColor,
          onText = _props6.onText;
      var handleWidth = this.state.handleWidth;


      var params = {
        ref: function ref(e) {
          return _this8.elmOnHandle = e;
        },
        style: { width: handleWidth },
        className: baseClass + '-handle-on ' + baseClass + '-' + onColor,
        onClick: this._handleOnClick.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        onText
      );
    }
  }, {
    key: '_renderOffHandle',
    value: function _renderOffHandle() {
      var _this9 = this;

      var _props7 = this.props,
          baseClass = _props7.baseClass,
          offColor = _props7.offColor,
          offText = _props7.offText;
      var handleWidth = this.state.handleWidth;


      var params = {
        ref: function ref(e) {
          return _this9.elmOffHandle = e;
        },
        style: { width: handleWidth },
        className: baseClass + '-handle-off ' + baseClass + '-' + offColor,
        onClick: this._handleOffClick.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        offText
      );
    }
  }, {
    key: '_renderLabel',
    value: function _renderLabel() {
      var _this10 = this;

      var _props8 = this.props,
          baseClass = _props8.baseClass,
          labelText = _props8.labelText;
      var labelWidth = this.state.labelWidth;


      var params = {
        ref: function ref(e) {
          return _this10.elmLabel = e;
        },
        style: { width: labelWidth },
        className: baseClass + '-label',

        onTouchStart: this._handleLabelMouseDown.bind(this),
        onTouchMove: this._handleLabelMouseMove.bind(this),
        onTouchEnd: this._handleLabelTouchEnd.bind(this),

        onMouseDown: this._handleLabelMouseDown.bind(this),
        onMouseMove: this._handleLabelMouseMove.bind(this),
        onMouseUp: this._handleLabelMouseUp.bind(this),
        onMouseLeave: this._handleLabelMouseUp.bind(this)
      };

      return _react2.default.createElement(
        'span',
        params,
        labelText
      );
    }
  }]);

  return Switch;
}(_react2.default.Component);

exports.default = Switch;


Switch.defaultProps = {
  baseClass: 'bootstrap-switch',
  wrapperClass: 'wrapper',
  bsSize: null,

  handleWidth: 'auto',
  labelWidth: 'auto',

  onColor: 'primary',
  offColor: 'default',

  onText: 'ON',
  offText: 'OFF',
  labelText: ' ',

  inverse: false,
  animate: true,

  disabled: false,
  readonly: false,

  tristate: false,
  defaultValue: true,
  value: undefined
};

Switch.propTypes = {
  baseClass: _propTypes2.default.string,
  wrapperClass: _propTypes2.default.string,
  bsSize: _propTypes2.default.string,

  handleWidth: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
  labelWidth: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),

  onColor: _propTypes2.default.string,
  offColor: _propTypes2.default.string,

  onText: _propTypes2.default.node,
  offText: _propTypes2.default.node,
  labelText: _propTypes2.default.node,

  inverse: _propTypes2.default.bool,
  animate: _propTypes2.default.bool,

  disabled: _propTypes2.default.bool,
  readonly: _propTypes2.default.bool,

  tristate: _propTypes2.default.bool,
  defaultValue: _propTypes2.default.bool,
  value: _propTypes2.default.bool,
  onChange: _propTypes2.default.func
};

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _asyncContainer = __webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js");

var _asyncContainer2 = _interopRequireDefault(_asyncContainer);

var _Typeahead = __webpack_require__(/*! ./Typeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js");

var _Typeahead2 = _interopRequireDefault(_Typeahead);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = (0, _asyncContainer2.default)(_Typeahead2.default);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 SIZER_STYLE = {
  height: 0,
  left: 0,
  overflow: 'scroll',
  position: 'absolute',
  top: 0,
  visibility: 'hidden',
  whiteSpace: 'pre'
};

var INPUT_PROPS_BLACKLIST = ['inputClassName', 'inputRef', 'inputStyle'];

var MIN_WIDTH = 1;

var cleanInputProps = function cleanInputProps(inputProps) {
  INPUT_PROPS_BLACKLIST.forEach(function (field) {
    return delete inputProps[field];
  });
  return inputProps;
};

var copyStyles = function copyStyles(styles, node) {
  node.style.fontSize = styles.fontSize;
  node.style.fontFamily = styles.fontFamily;
  node.style.fontWeight = styles.fontWeight;
  node.style.fontStyle = styles.fontStyle;
  node.style.letterSpacing = styles.letterSpacing;
  node.style.textTransform = styles.textTransform;
};

var AutosizeInput = function (_React$Component) {
  _inherits(AutosizeInput, _React$Component);

  function AutosizeInput() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, AutosizeInput);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      inputWidth: MIN_WIDTH
    }, _this._copyInputStyles = function () {
      var inputStyles = _this._input && window.getComputedStyle && window.getComputedStyle(_this._input);

      if (!inputStyles) {
        return;
      }

      copyStyles(inputStyles, _this._sizer);

      if (_this._placeHolderSizer) {
        copyStyles(inputStyles, _this._placeHolderSizer);
      }
    }, _this._updateInputWidth = function () {
      if (!_this._sizer || _this._sizer.scrollWidth === undefined) {
        return;
      }

      _this._copyInputStyles();

      var placeholderWidth = _this._placeHolderSizer && _this._placeHolderSizer.scrollWidth || MIN_WIDTH;

      var inputWidth = Math.max(_this._sizer.scrollWidth, placeholderWidth) + 2;

      if (inputWidth !== _this.state.inputWidth) {
        _this.setState({ inputWidth: inputWidth });
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(AutosizeInput, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._updateInputWidth();
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate(prevProps, prevState) {
      this._updateInputWidth();
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          className = _props.className,
          defaultValue = _props.defaultValue,
          placeholder = _props.placeholder,
          value = _props.value;


      var wrapperStyle = _extends({}, this.props.style);
      if (!wrapperStyle.display) {
        wrapperStyle.display = 'inline-block';
      }

      var inputProps = cleanInputProps(_extends({}, this.props, {
        className: this.props.inputClassName,
        style: _extends({}, this.props.inputStyle, {
          boxSizing: 'content-box',
          width: this.state.inputWidth + 'px'
        })
      }));

      return _react2.default.createElement(
        'div',
        { className: className, style: wrapperStyle },
        _react2.default.createElement('input', _extends({}, inputProps, {
          ref: function ref(el) {
            _this2._input = el;
            if (typeof _this2.props.inputRef === 'function') {
              _this2.props.inputRef(el);
            }
          }
        })),
        _react2.default.createElement(
          'div',
          {
            ref: function ref(el) {
              return _this2._sizer = el;
            },
            style: SIZER_STYLE },
          defaultValue || value || ''
        ),
        placeholder ? _react2.default.createElement(
          'div',
          {
            ref: function ref(el) {
              return _this2._placeHolderSizer = el;
            },
            style: SIZER_STYLE },
          placeholder
        ) : null
      );
    }
  }]);

  return AutosizeInput;
}(_react2.default.Component);

AutosizeInput.propTypes = {
  /**
   * ClassName for the input element.
   */
  inputClassName: _propTypes2.default.string,
  /**
   * Ref callback for the input element.
   */
  inputRef: _propTypes2.default.func,
  /**
   * CSS styles for the input element.
   */
  inputStyle: _propTypes2.default.object
};

exports.default = AutosizeInput;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

/**
 * ClearButton
 *
 * http://getbootstrap.com/css/#helper-classes-close
 */
var ClearButton = function ClearButton(_ref) {
  var bsSize = _ref.bsSize,
      className = _ref.className,
      label = _ref.label,
      _onClick = _ref.onClick,
      props = _objectWithoutProperties(_ref, ['bsSize', 'className', 'label', 'onClick']);

  return _react2.default.createElement(
    'button',
    _extends({}, props, {
      'aria-label': label,
      className: (0, _classnames2.default)('close', 'rbt-close', {
        'rbt-close-lg': bsSize === 'large' || bsSize === 'lg'
      }, className),
      onClick: function onClick(e) {
        e.stopPropagation();
        _onClick(e);
      },
      type: 'button' }),
    _react2.default.createElement(
      'span',
      { 'aria-hidden': 'true' },
      '\xD7'
    ),
    _react2.default.createElement(
      'span',
      { className: 'sr-only' },
      label
    )
  );
};

ClearButton.propTypes = {
  bsSize: _propTypes2.default.oneOf(['large', 'lg', 'small', 'sm']),
  label: _propTypes2.default.string,
  onClick: _propTypes2.default.func.isRequired
};

ClearButton.defaultProps = {
  label: 'Clear'
};

exports.default = ClearButton;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; }();

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

/**
 * Stripped-down version of https://github.com/helior/react-highlighter
 *
 * Results are already filtered by the time the component is used internally so
 * we can safely ignore case and diacritical marks for the purposes of matching.
 */
var Highlighter = function (_React$PureComponent) {
  _inherits(Highlighter, _React$PureComponent);

  function Highlighter() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Highlighter);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Highlighter.__proto__ || Object.getPrototypeOf(Highlighter)).call.apply(_ref, [this].concat(args))), _this), _this._count = 0, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Highlighter, [{
    key: 'render',
    value: function render() {
      var children = this.props.search ? this._renderHighlightedChildren() : this.props.children;

      return _react2.default.createElement(
        'span',
        null,
        children
      );
    }
  }, {
    key: '_renderHighlightedChildren',
    value: function _renderHighlightedChildren() {
      var children = [];
      var remaining = this.props.children;

      while (remaining) {
        var bounds = (0, _utils.getMatchBounds)(remaining, this.props.search);

        if (!bounds) {
          this._count++;
          children.push(_react2.default.createElement(
            'span',
            { key: this._count },
            remaining
          ));
          return children;
        }

        // Capture the string that leads up to a match...
        var nonMatch = remaining.slice(0, bounds.start);
        if (nonMatch) {
          this._count++;
          children.push(_react2.default.createElement(
            'span',
            { key: this._count },
            nonMatch
          ));
        }

        // Now, capture the matching string...
        var match = remaining.slice(bounds.start, bounds.end);
        if (match) {
          this._count++;
          children.push(_react2.default.createElement(
            'mark',
            { className: 'rbt-highlight-text', key: this._count },
            match
          ));
        }

        // And if there's anything left over, continue the loop.
        remaining = remaining.slice(bounds.end);
      }

      return children;
    }
  }]);

  return Highlighter;
}(_react2.default.PureComponent);

Highlighter.propTypes = {
  children: _propTypes2.default.string.isRequired,
  search: _propTypes2.default.string.isRequired
};

exports.default = Highlighter;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Loader.react.js":
/*!********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Loader.react.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Loader = function Loader(_ref) {
  var bsSize = _ref.bsSize;
  return _react2.default.createElement('div', {
    className: (0, _classnames2.default)('rbt-loader', {
      'rbt-loader-lg': bsSize === 'large' || bsSize === 'lg',
      'rbt-loader-sm': bsSize === 'small' || bsSize === 'sm'
    })
  });
};

Loader.propTypes = {
  bsSize: _propTypes2.default.oneOf(['large', 'lg', 'small', 'sm'])
};

exports.default = Loader;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Menu.react.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _isRequiredForA11y = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");

var _isRequiredForA11y2 = _interopRequireDefault(_isRequiredForA11y);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

/**
 * Menu component that handles empty state when passed a set of results.
 */
var Menu = function (_React$Component) {
  _inherits(Menu, _React$Component);

  function Menu() {
    _classCallCheck(this, Menu);

    return _possibleConstructorReturn(this, (Menu.__proto__ || Object.getPrototypeOf(Menu)).apply(this, arguments));
  }

  _createClass(Menu, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          className = _props.className,
          emptyLabel = _props.emptyLabel,
          id = _props.id,
          innerRef = _props.innerRef,
          maxHeight = _props.maxHeight,
          style = _props.style;


      var contents = _react.Children.count(children) === 0 ? _react2.default.createElement(
        _MenuItem.BaseMenuItem,
        { disabled: true },
        emptyLabel
      ) : children;

      return _react2.default.createElement(
        'ul',
        {
          className: (0, _classnames2.default)('rbt-menu', 'dropdown-menu', 'show', className),
          id: id,
          ref: innerRef,
          role: 'listbox',
          style: _extends({}, style, {
            display: 'block',
            maxHeight: maxHeight,
            overflow: 'auto'
          }) },
        contents
      );
    }
  }]);

  return Menu;
}(_react2.default.Component);

Menu.propTypes = {
  /**
   * Needed for accessibility.
   */
  id: (0, _isRequiredForA11y2.default)(_propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string])),
  /**
   * Maximum height of the dropdown menu.
   */
  maxHeight: _propTypes2.default.string
};

Menu.defaultProps = {
  maxHeight: '300px'
};

Menu.Divider = function (props) {
  return _react2.default.createElement('li', { className: 'divider dropdown-divider', role: 'separator' });
};

Menu.Header = function (props) {
  return _react2.default.createElement('li', _extends({}, props, { className: 'dropdown-header' }));
};

exports.default = Menu;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BaseMenuItem = undefined;

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _noop = __webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js");

var _noop2 = _interopRequireDefault(_noop);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _menuItemContainer = __webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js");

var _menuItemContainer2 = _interopRequireDefault(_menuItemContainer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 BaseMenuItem = function (_React$Component) {
  _inherits(BaseMenuItem, _React$Component);

  function BaseMenuItem() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, BaseMenuItem);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseMenuItem.__proto__ || Object.getPrototypeOf(BaseMenuItem)).call.apply(_ref, [this].concat(args))), _this), _this._handleClick = function (e) {
      var _this$props = _this.props,
          disabled = _this$props.disabled,
          onClick = _this$props.onClick;


      e.preventDefault();
      !disabled && onClick(e);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(BaseMenuItem, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          active = _props.active,
          children = _props.children,
          className = _props.className,
          disabled = _props.disabled,
          onClick = _props.onClick,
          onMouseDown = _props.onMouseDown,
          props = _objectWithoutProperties(_props, ['active', 'children', 'className', 'disabled', 'onClick', 'onMouseDown']);

      var conditionalClassNames = {
        'active': active,
        'disabled': disabled
      };

      return (
        /* eslint-disable jsx-a11y/anchor-is-valid */
        _react2.default.createElement(
          'li',
          _extends({}, props, {
            className: (0, _classnames2.default)(conditionalClassNames, className) }),
          _react2.default.createElement(
            'a',
            {
              className: (0, _classnames2.default)('dropdown-item', conditionalClassNames),
              href: '#',
              onClick: this._handleClick,
              onMouseDown: onMouseDown },
            children
          )
        )
        /* eslint-enable jsx-a11y/anchor-is-valid */

      );
    }
  }]);

  return BaseMenuItem;
}(_react2.default.Component);

BaseMenuItem.defaultProps = {
  onClick: _noop2.default
};

exports.BaseMenuItem = BaseMenuItem;
exports.default = (0, _menuItemContainer2.default)(BaseMenuItem);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js":
/*!*********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _Portal = __webpack_require__(/*! react-overlays/lib/Portal */ "./node_modules/react-overlays/lib/Portal.js");

var _Portal2 = _interopRequireDefault(_Portal);

var _Popper = __webpack_require__(/*! react-popper/lib/cjs/Popper */ "./node_modules/react-popper/lib/cjs/Popper.js");

var _Popper2 = _interopRequireDefault(_Popper);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 _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 _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

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 BODY_CLASS = 'rbt-body-container';

// When appending the overlay to `document.body`, clicking on it will register
// as an "outside" click and immediately close the overlay. This classname tells
// `react-onclickoutside` to ignore the click.
var IGNORE_CLICK_OUTSIDE = 'ignore-react-onclickoutside';

function getModifiers(_ref) {
  var align = _ref.align,
      flip = _ref.flip;

  return {
    computeStyles: {
      enabled: true,
      fn: function fn(data) {
        // Use the following condition instead of `align === 'justify'` since
        // it allows the component to fall back to justifying the menu width
        // even when `align` is undefined.
        if (align !== 'right' && align !== 'left') {
          // Set the popper width to match the target width.
          data.styles.width = data.offsets.reference.width;
        }
        return data;
      }
    },
    flip: {
      enabled: flip
    },
    preventOverflow: {
      escapeWithReference: true
    }
  };
}

function isBody(container) {
  return container === document.body;
}

/**
 * Custom `Overlay` component, since the version in `react-overlays` doesn't
 * work for our needs. Specifically, the `Position` component doesn't provide
 * the customized placement we need.
 */

var Overlay = function (_React$Component) {
  _inherits(Overlay, _React$Component);

  function Overlay() {
    var _ref2;

    var _temp, _this, _ret;

    _classCallCheck(this, Overlay);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Overlay.__proto__ || Object.getPrototypeOf(Overlay)).call.apply(_ref2, [this].concat(args))), _this), _this._update = function () {
      var _container$classList;

      var _this$props = _this.props,
          className = _this$props.className,
          container = _this$props.container,
          show = _this$props.show;

      // Positioning is only used when body is the container.

      if (!(show && isBody(container))) {
        return;
      }

      // Set a classname on the body for scoping purposes.
      container.classList.add(BODY_CLASS);
      !!className && (_container$classList = container.classList).add.apply(_container$classList, _toConsumableArray(className.split(' ')));
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Overlay, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      this._update();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var onMenuHide = nextProps.onMenuHide,
          onMenuShow = nextProps.onMenuShow,
          show = nextProps.show;


      if (this.props.show && !show) {
        onMenuHide();
      }

      if (!this.props.show && show) {
        onMenuShow();
      }

      // Remove scoping classes if menu isn't being appended to document body.
      var _props = this.props,
          className = _props.className,
          container = _props.container;

      if (isBody(container) && !isBody(nextProps.container)) {
        var _container$classList2;

        container.classList.remove(BODY_CLASS);
        !!className && (_container$classList2 = container.classList).remove.apply(_container$classList2, _toConsumableArray(className.split(' ')));
      }

      this._update();
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          align = _props2.align,
          children = _props2.children,
          container = _props2.container,
          dropup = _props2.dropup,
          referenceElement = _props2.referenceElement,
          show = _props2.show;


      if (!(show && _react.Children.count(children) && referenceElement)) {
        return null;
      }

      var child = _react.Children.only(children);

      var xPlacement = align === 'right' ? 'end' : 'start';
      var yPlacement = dropup ? 'top' : 'bottom';

      return _react2.default.createElement(
        _Portal2.default,
        { container: container },
        _react2.default.createElement(
          _Popper2.default,
          {
            modifiers: getModifiers(this.props),
            placement: yPlacement + '-' + xPlacement,
            referenceElement: referenceElement },
          function (_ref3) {
            var ref = _ref3.ref,
                props = _objectWithoutProperties(_ref3, ['ref']);

            return (0, _react.cloneElement)(child, _extends({}, child.props, props, {
              className: (0, _classnames2.default)(child.props.className, _defineProperty({}, IGNORE_CLICK_OUTSIDE, isBody(container))),
              innerRef: ref
            }));
          }
        )
      );
    }
  }]);

  return Overlay;
}(_react2.default.Component);

Overlay.propTypes = {
  children: _propTypes2.default.element,
  container: _componentOrElement2.default.isRequired,
  onMenuHide: _propTypes2.default.func.isRequired,
  onMenuShow: _propTypes2.default.func.isRequired,
  referenceElement: _componentOrElement2.default,
  show: _propTypes2.default.bool
};

Overlay.defaultProps = {
  show: false
};

exports.default = Overlay;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Token.react.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _ClearButton = __webpack_require__(/*! ./ClearButton.react */ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js");

var _ClearButton2 = _interopRequireDefault(_ClearButton);

var _tokenContainer = __webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js");

var _tokenContainer2 = _interopRequireDefault(_tokenContainer);

var _keyCode = __webpack_require__(/*! ./constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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; }

/**
 * Token
 *
 * Individual token component, generally displayed within the TokenizerInput
 * component, but can also be rendered on its own.
 */
var Token = function (_React$Component) {
  _inherits(Token, _React$Component);

  function Token() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Token);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Token.__proto__ || Object.getPrototypeOf(Token)).call.apply(_ref, [this].concat(args))), _this), _this._renderRemoveableToken = function () {
      var _this$props = _this.props,
          active = _this$props.active,
          children = _this$props.children,
          className = _this$props.className,
          onRemove = _this$props.onRemove,
          props = _objectWithoutProperties(_this$props, ['active', 'children', 'className', 'onRemove']);

      return _react2.default.createElement(
        'div',
        _extends({}, props, {
          className: (0, _classnames2.default)('rbt-token', 'rbt-token-removeable', {
            'rbt-token-active': active
          }, className) }),
        children,
        _react2.default.createElement(_ClearButton2.default, {
          className: 'rbt-token-remove-button',
          label: 'Remove',
          onClick: onRemove,
          onKeyDown: _this._handleRemoveButtonKeydown,
          tabIndex: -1
        })
      );
    }, _this._renderToken = function () {
      var _this$props2 = _this.props,
          children = _this$props2.children,
          className = _this$props2.className,
          disabled = _this$props2.disabled,
          href = _this$props2.href;

      var classnames = (0, _classnames2.default)('rbt-token', {
        'rbt-token-disabled': disabled
      }, className);

      if (href) {
        return _react2.default.createElement(
          'a',
          { className: classnames, href: href },
          children
        );
      }

      return _react2.default.createElement(
        'div',
        { className: classnames },
        children
      );
    }, _this._handleRemoveButtonKeydown = function (e) {
      switch (e.keyCode) {
        case _keyCode.RETURN:
          _this.props.onRemove();
          break;
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Token, [{
    key: 'render',
    value: function render() {
      return this.props.onRemove && !this.props.disabled ? this._renderRemoveableToken() : this._renderToken();
    }
  }]);

  return Token;
}(_react2.default.Component);

Token.propTypes = {
  active: _propTypes2.default.bool,
  /**
   * Handler for removing/deleting the token. If not defined, the token will
   * be rendered in a read-only state.
   */
  onRemove: _propTypes2.default.func,
  tabIndex: _propTypes2.default.number
};

Token.defaultProps = {
  active: false,
  tabIndex: 0
};

exports.default = (0, _tokenContainer2.default)(Token);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _pick = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");

var _pick2 = _interopRequireDefault(_pick);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _ClearButton = __webpack_require__(/*! ./ClearButton.react */ "./node_modules/react-bootstrap-typeahead/lib/ClearButton.react.js");

var _ClearButton2 = _interopRequireDefault(_ClearButton);

var _Loader = __webpack_require__(/*! ./Loader.react */ "./node_modules/react-bootstrap-typeahead/lib/Loader.react.js");

var _Loader2 = _interopRequireDefault(_Loader);

var _Overlay = __webpack_require__(/*! ./Overlay.react */ "./node_modules/react-bootstrap-typeahead/lib/Overlay.react.js");

var _Overlay2 = _interopRequireDefault(_Overlay);

var _TypeaheadInputMulti = __webpack_require__(/*! ./TypeaheadInputMulti.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js");

var _TypeaheadInputMulti2 = _interopRequireDefault(_TypeaheadInputMulti);

var _TypeaheadInputSingle = __webpack_require__(/*! ./TypeaheadInputSingle.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js");

var _TypeaheadInputSingle2 = _interopRequireDefault(_TypeaheadInputSingle);

var _TypeaheadMenu = __webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js");

var _TypeaheadMenu2 = _interopRequireDefault(_TypeaheadMenu);

var _typeaheadContainer = __webpack_require__(/*! ./containers/typeaheadContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js");

var _typeaheadContainer2 = _interopRequireDefault(_typeaheadContainer);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 Typeahead = function (_React$Component) {
  _inherits(Typeahead, _React$Component);

  function Typeahead() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Typeahead);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Typeahead.__proto__ || Object.getPrototypeOf(Typeahead)).call.apply(_ref, [this].concat(args))), _this), _this._renderInput = function (inputProps) {
      var Input = inputProps.multiple ? _TypeaheadInputMulti2.default : _TypeaheadInputSingle2.default;

      return _react2.default.createElement(Input, inputProps);
    }, _this._renderAux = function () {
      var _this$props = _this.props,
          bsSize = _this$props.bsSize,
          clearButton = _this$props.clearButton,
          disabled = _this$props.disabled,
          isLoading = _this$props.isLoading,
          onClear = _this$props.onClear,
          selected = _this$props.selected;


      var content = void 0;

      if (isLoading) {
        content = _react2.default.createElement(_Loader2.default, { bsSize: bsSize });
      } else if (clearButton && !disabled && selected.length) {
        content = _react2.default.createElement(_ClearButton2.default, {
          bsSize: bsSize,
          onClick: onClear,
          onFocus: function onFocus(e) {
            // Prevent the main input from auto-focusing again.
            e.stopPropagation();
          },
          onMouseDown: _utils.preventInputBlur
        });
      }

      return content ? _react2.default.createElement(
        'div',
        {
          className: (0, _classnames2.default)('rbt-aux', {
            'rbt-aux-lg': bsSize === 'large' || bsSize === 'lg'
          }) },
        content
      ) : null;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Typeahead, [{
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      var allowNew = nextProps.allowNew,
          onInitialItemChange = nextProps.onInitialItemChange,
          results = nextProps.results;

      // Clear the initial item when there are no results.

      if (!(allowNew || results.length)) {
        onInitialItemChange(null);
      }
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          bodyContainer = _props.bodyContainer,
          children = _props.children,
          className = _props.className,
          isMenuShown = _props.isMenuShown,
          menuId = _props.menuId,
          renderMenu = _props.renderMenu,
          results = _props.results;


      var inputProps = (0, _pick2.default)(this.props, ['activeIndex', 'activeItem', 'bsSize', 'disabled', 'initialItem', 'inputProps', 'inputRef', 'isInvalid', 'isMenuShown', 'isValid', 'labelKey', 'menuId', 'multiple', 'onAdd', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onRemove', 'placeholder', 'renderToken', 'selected', 'selectHintOnEnter', 'text']);

      var overlayProps = (0, _pick2.default)(this.props, ['align', 'className', 'dropup', 'flip', 'onMenuHide', 'onMenuShow']);

      var menuProps = (0, _pick2.default)(this.props, ['emptyLabel', 'labelKey', 'maxHeight', 'newSelectionPrefix', 'renderMenuItemChildren', 'text']);

      var auxContent = this._renderAux();

      return _react2.default.createElement(
        'div',
        {
          className: (0, _classnames2.default)('rbt', 'clearfix', 'open', {
            'has-aux': !!auxContent
          }, className),
          style: { position: 'relative' },
          tabIndex: -1 },
        this._renderInput(_extends({}, inputProps, {
          // Use `findDOMNode` here since it's easier and less fragile than
          // forwarding refs down to the input's container.
          // TODO: Consider using `forwardRef` when React 16.3 usage is higher.
          ref: function ref(node) {
            return _this2._inputContainer = (0, _reactDom.findDOMNode)(node);
          }
        })),
        typeof children === 'function' ? children(this.props) : children,
        auxContent,
        _react2.default.createElement(
          _Overlay2.default,
          _extends({}, overlayProps, {
            container: bodyContainer ? document.body : this,
            referenceElement: this._inputContainer,
            show: isMenuShown }),
          renderMenu(results, _extends({}, menuProps, { id: menuId }))
        ),
        _react2.default.createElement(
          'div',
          {
            'aria-atomic': true,
            'aria-live': 'polite',
            className: 'sr-only rbt-sr-status',
            role: 'status' },
          (0, _utils.getAccessibilityStatus)(this.props)
        )
      );
    }
  }]);

  return Typeahead;
}(_react2.default.Component);

Typeahead.propTypes = {
  renderMenu: _propTypes2.default.func
};

Typeahead.defaultProps = {
  renderMenu: function renderMenu(results, menuProps) {
    return _react2.default.createElement(_TypeaheadMenu2.default, _extends({}, menuProps, { options: results }));
  }
};

exports.default = (0, _typeaheadContainer2.default)(Typeahead);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputMulti.react.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _AutosizeInput = __webpack_require__(/*! ./AutosizeInput.react */ "./node_modules/react-bootstrap-typeahead/lib/AutosizeInput.react.js");

var _AutosizeInput2 = _interopRequireDefault(_AutosizeInput);

var _Token = __webpack_require__(/*! ./Token.react */ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js");

var _Token2 = _interopRequireDefault(_Token);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _hintContainer = __webpack_require__(/*! ./containers/hintContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js");

var _hintContainer2 = _interopRequireDefault(_hintContainer);

var _inputContainer = __webpack_require__(/*! ./containers/inputContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js");

var _inputContainer2 = _interopRequireDefault(_inputContainer);

var _keyCode = __webpack_require__(/*! ./constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 HintedAutosizeInput = (0, _hintContainer2.default)(_AutosizeInput2.default);

var TypeaheadInputMulti = function (_React$Component) {
  _inherits(TypeaheadInputMulti, _React$Component);

  function TypeaheadInputMulti() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TypeaheadInputMulti);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TypeaheadInputMulti.__proto__ || Object.getPrototypeOf(TypeaheadInputMulti)).call.apply(_ref, [this].concat(args))), _this), _this._renderToken = function (option, idx) {
      var _this$props = _this.props,
          _onRemove = _this$props.onRemove,
          renderToken = _this$props.renderToken;

      var props = _extends({}, _this.props, {
        onRemove: function onRemove() {
          return _onRemove(option);
        }
      });

      return renderToken(option, props, idx);
    }, _this._handleContainerClickOrFocus = function (e) {
      // Don't focus the input if it's disabled.
      if (_this.props.disabled) {
        e.target.blur();
        return;
      }

      // Move cursor to the end if the user clicks outside the actual input.
      var inputNode = _this._input;
      if (e.target !== inputNode) {
        inputNode.selectionStart = inputNode.value.length;
      }

      inputNode.focus();
    }, _this._handleKeyDown = function (e) {
      var _this$props2 = _this.props,
          onKeyDown = _this$props2.onKeyDown,
          selected = _this$props2.selected,
          value = _this$props2.value;


      switch (e.keyCode) {
        case _keyCode.BACKSPACE:
          if (e.target === _this._input && selected.length && !value) {
            // If the input is selected and there is no text, focus the last
            // token when the user hits backspace.
            var children = _this._wrapper.children;
            var lastToken = children[children.length - 2];
            lastToken && lastToken.focus();
          }
          break;
      }

      onKeyDown(e);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TypeaheadInputMulti, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          className = _props.className,
          inputClassName = _props.inputClassName,
          labelKey = _props.labelKey,
          onRemove = _props.onRemove,
          renderToken = _props.renderToken,
          selected = _props.selected,
          props = _objectWithoutProperties(_props, ['className', 'inputClassName', 'labelKey', 'onRemove', 'renderToken', 'selected']);

      return (
        /* eslint-disable jsx-a11y/no-static-element-interactions */
        /* eslint-disable jsx-a11y/click-events-have-key-events */
        _react2.default.createElement(
          'div',
          {
            className: (0, _classnames2.default)('form-control', 'rbt-input-multi', className),
            disabled: props.disabled,
            onClick: this._handleContainerClickOrFocus,
            onFocus: this._handleContainerClickOrFocus,
            tabIndex: -1 },
          _react2.default.createElement(
            'div',
            { className: 'rbt-input-wrapper', ref: function ref(el) {
                return _this2._wrapper = el;
              } },
            selected.map(this._renderToken),
            _react2.default.createElement(HintedAutosizeInput, _extends({}, props, {
              inputClassName: (0, _classnames2.default)('rbt-input-main', inputClassName),
              inputRef: function inputRef(input) {
                _this2._input = input;
                _this2.props.inputRef(input);
              },
              inputStyle: {
                backgroundColor: 'transparent',
                border: 0,
                boxShadow: 'none',
                cursor: 'inherit',
                outline: 'none',
                padding: 0
              },
              onKeyDown: this._handleKeyDown,
              style: {
                position: 'relative',
                zIndex: 1
              }
            }))
          )
        )
        /* eslint-enable jsx-a11y/no-static-element-interactions */
        /* eslint-enable jsx-a11y/click-events-have-key-events */

      );
    }

    /**
     * Forward click or focus events on the container element to the input.
     */

  }]);

  return TypeaheadInputMulti;
}(_react2.default.Component);

TypeaheadInputMulti.propTypes = {
  /**
   * Provides a hook for customized rendering of tokens when multiple
   * selections are enabled.
   */
  renderToken: _propTypes2.default.func
};

TypeaheadInputMulti.defaultProps = {
  renderToken: function renderToken(option, props, idx) {
    return _react2.default.createElement(
      _Token2.default,
      {
        disabled: props.disabled,
        key: idx,
        onRemove: props.onRemove,
        tabIndex: props.tabIndex },
      (0, _utils.getOptionLabel)(option, props.labelKey)
    );
  }
};

exports.default = (0, _inputContainer2.default)(TypeaheadInputMulti);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadInputSingle.react.js ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _hintContainer = __webpack_require__(/*! ./containers/hintContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js");

var _hintContainer2 = _interopRequireDefault(_hintContainer);

var _inputContainer = __webpack_require__(/*! ./containers/inputContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js");

var _inputContainer2 = _interopRequireDefault(_inputContainer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 TypeaheadInputSingle = function (_React$Component) {
  _inherits(TypeaheadInputSingle, _React$Component);

  function TypeaheadInputSingle() {
    _classCallCheck(this, TypeaheadInputSingle);

    return _possibleConstructorReturn(this, (TypeaheadInputSingle.__proto__ || Object.getPrototypeOf(TypeaheadInputSingle)).apply(this, arguments));
  }

  _createClass(TypeaheadInputSingle, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          className = _props.className,
          inputRef = _props.inputRef,
          props = _objectWithoutProperties(_props, ['className', 'inputRef']);

      return _react2.default.createElement('input', _extends({}, props, {
        className: (0, _classnames2.default)('rbt-input-main', 'form-control', className),
        ref: inputRef,
        type: 'text'
      }));
    }
  }]);

  return TypeaheadInputSingle;
}(_react2.default.Component);

exports.default = (0, _inputContainer2.default)((0, _hintContainer2.default)(TypeaheadInputSingle));

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _Highlighter = __webpack_require__(/*! ./Highlighter.react */ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js");

var _Highlighter2 = _interopRequireDefault(_Highlighter);

var _Menu = __webpack_require__(/*! ./Menu.react */ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js");

var _Menu2 = _interopRequireDefault(_Menu);

var _MenuItem = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

var _MenuItem2 = _interopRequireDefault(_MenuItem);

var _utils = __webpack_require__(/*! ./utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 TypeaheadMenu = function (_React$Component) {
  _inherits(TypeaheadMenu, _React$Component);

  function TypeaheadMenu() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, TypeaheadMenu);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TypeaheadMenu.__proto__ || Object.getPrototypeOf(TypeaheadMenu)).call.apply(_ref, [this].concat(args))), _this), _this._renderMenuItem = function (option, idx) {
      var _this$props = _this.props,
          labelKey = _this$props.labelKey,
          newSelectionPrefix = _this$props.newSelectionPrefix,
          renderMenuItemChildren = _this$props.renderMenuItemChildren,
          text = _this$props.text;


      var label = (0, _utils.getOptionLabel)(option, labelKey);

      var menuItemProps = {
        disabled: option.disabled,
        key: idx,
        label: label,
        option: option,
        position: idx
      };

      if (option.customOption) {
        return _react2.default.createElement(
          _MenuItem2.default,
          _extends({}, menuItemProps, {
            className: 'rbt-menu-custom-option',
            label: newSelectionPrefix + label }),
          newSelectionPrefix,
          _react2.default.createElement(
            _Highlighter2.default,
            { search: text },
            label
          )
        );
      }

      if (option.paginationOption) {
        return [_react2.default.createElement(_Menu2.default.Divider, { key: 'pagination-item-divider' }), _react2.default.createElement(
          _MenuItem2.default,
          _extends({}, menuItemProps, {
            className: 'rbt-menu-pagination-option',
            key: 'pagination-item' }),
          label
        )];
      }

      return _react2.default.createElement(
        _MenuItem2.default,
        menuItemProps,
        renderMenuItemChildren(option, _this.props, idx)
      );
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(TypeaheadMenu, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          labelKey = _props.labelKey,
          newSelectionPrefix = _props.newSelectionPrefix,
          options = _props.options,
          renderMenuItemChildren = _props.renderMenuItemChildren,
          text = _props.text,
          menuProps = _objectWithoutProperties(_props, ['labelKey', 'newSelectionPrefix', 'options', 'renderMenuItemChildren', 'text']);

      return _react2.default.createElement(
        _Menu2.default,
        menuProps,
        options.map(this._renderMenuItem)
      );
    }
  }]);

  return TypeaheadMenu;
}(_react2.default.Component);

TypeaheadMenu.propTypes = {
  /**
   * Provides the ability to specify a prefix before the user-entered text to
   * indicate that the selection will be new. No-op unless `allowNew={true}`.
   */
  newSelectionPrefix: _propTypes2.default.string,
  /**
   * Provides a hook for customized rendering of menu item contents.
   */
  renderMenuItemChildren: _propTypes2.default.func
};

TypeaheadMenu.defaultProps = {
  newSelectionPrefix: 'New selection: ',
  renderMenuItemChildren: function renderMenuItemChildren(option, props, idx) {
    return _react2.default.createElement(
      _Highlighter2.default,
      { search: props.text },
      (0, _utils.getOptionLabel)(option, props.labelKey)
    );
  }
};

exports.default = TypeaheadMenu;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var DEFAULT_LABELKEY = exports.DEFAULT_LABELKEY = 'label';

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/* eslint-disable sort-keys */

/**
 * KeyCode
 *
 * Map of common (non-printable) keycodes for the `keydown` and `keyup` events.
 * Note that `keypress` handles things differently and may not return the same
 * values.
 */
module.exports = {
  BACKSPACE: 8,
  TAB: 9,
  RETURN: 13,
  ESC: 27,
  SPACE: 32,
  LEFT: 37,
  UP: 38,
  RIGHT: 39,
  DOWN: 40
};

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _debounce = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");

var _debounce2 = _interopRequireDefault(_debounce);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 DEFAULT_DELAY_MS = 200;

/**
 * HoC that encapsulates common behavior and functionality for doing
 * asynchronous searches, including:
 *
 *  - Debouncing user input
 *  - Query caching (optional)
 *  - Search prompt and empty results behaviors
 */
var asyncContainer = function asyncContainer(Typeahead) {
  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        query: ''
      }, _this._getEmptyLabel = function () {
        var _this$props = _this.props,
            emptyLabel = _this$props.emptyLabel,
            isLoading = _this$props.isLoading,
            promptText = _this$props.promptText,
            searchText = _this$props.searchText,
            useCache = _this$props.useCache;
        var query = _this.state.query;


        if (!query.length) {
          return promptText;
        }

        if (isLoading || useCache && !_this._cache[query]) {
          return searchText;
        }

        return emptyLabel;
      }, _this._handleInputChange = function (query, e) {
        _this.props.onInputChange && _this.props.onInputChange(query, e);
        _this._handleSearchDebounced(query);
      }, _this._handleSearch = function (query) {
        var _this$props2 = _this.props,
            minLength = _this$props2.minLength,
            onSearch = _this$props2.onSearch,
            useCache = _this$props2.useCache;


        _this.setState({ query: query });

        if (!query || minLength && query.length < minLength) {
          return;
        }

        // Use cached results, if available.
        if (useCache && _this._cache[query]) {
          return;
        }

        // Perform the search.
        onSearch(query);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedTypeahead, [{
      key: 'componentWillMount',
      value: function componentWillMount() {
        this._cache = {};
        this._handleSearchDebounced = (0, _debounce2.default)(this._handleSearch, this.props.delay);
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var options = nextProps.options,
            useCache = nextProps.useCache;


        if (!this.props.isLoading) {
          return;
        }

        if (useCache) {
          this._cache[this.state.query] = options;
        }
      }
    }, {
      key: 'componentWillUnmount',
      value: function componentWillUnmount() {
        this._cache = {};
        this._handleSearchDebounced.cancel();
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        var _props = this.props,
            options = _props.options,
            useCache = _props.useCache,
            props = _objectWithoutProperties(_props, ['options', 'useCache']);

        var cachedQuery = this._cache[this.state.query];
        var emptyLabel = this._getEmptyLabel();

        // Short-circuit the creation of custom selections while the user is in
        // the process of searching. The logic for whether or not to display the
        // custom menu option is basically the same as whether we display the
        // empty label, so use that as a proxy.
        var allowNew = props.allowNew && emptyLabel === props.emptyLabel;
        // Unless allowNew is a function,
        // in which case it is up to the function to decide
        if (typeof props.allowNew === 'function') {
          allowNew = props.allowNew;
        }

        return _react2.default.createElement(Typeahead, _extends({}, props, {
          allowNew: allowNew,
          emptyLabel: emptyLabel,
          onInputChange: this._handleInputChange,
          options: useCache && cachedQuery ? cachedQuery : options,
          ref: function ref(instance) {
            return _this2._instance = instance;
          }
        }));
      }

      /**
       * Make the component instance available.
       */

    }, {
      key: 'getInstance',
      value: function getInstance() {
        return this._instance.getInstance();
      }
    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.displayName = 'AsyncContainer(' + (0, _utils.getDisplayName)(Typeahead) + ')';

  WrappedTypeahead.propTypes = {
    /**
     * Delay, in milliseconds, before performing search.
     */
    delay: _propTypes2.default.number,
    /**
     * Whether or not a request is currently pending. Necessary for the
     * container to know when new results are available.
     */
    isLoading: _propTypes2.default.bool.isRequired,
    /**
     * Callback to perform when the search is executed.
     */
    onSearch: _propTypes2.default.func.isRequired,
    /**
     * Options to be passed to the typeahead. Will typically be the query
     * results, but can also be initial default options.
     */
    options: _propTypes2.default.array,
    /**
     * Message displayed in the menu when there is no user input.
     */
    promptText: _propTypes2.default.node,
    /**
     * Message displayed in the menu while the request is pending.
     */
    searchText: _propTypes2.default.node,
    /**
     * Whether or not the component should cache query results.
     */
    useCache: _propTypes2.default.bool
  };

  WrappedTypeahead.defaultProps = {
    delay: DEFAULT_DELAY_MS,
    minLength: 2,
    options: [],
    promptText: 'Type to search...',
    searchText: 'Searching...',
    useCache: true
  };

  return WrappedTypeahead;
};

exports.default = asyncContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

function highlightOnlyResultContainer(Typeahead) {
  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedTypeahead);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        isOnlyResult: false
      }, _this._handleKeyDown = function (e) {
        var _this$props = _this.props,
            initialItem = _this$props.initialItem,
            onKeyDown = _this$props.onKeyDown,
            onAdd = _this$props.onAdd;


        switch (e.keyCode) {
          case _keyCode.RETURN:
            if (_this.state.isOnlyResult) {
              onAdd(initialItem);
            }
            break;
        }

        onKeyDown(e);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedTypeahead, [{
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var allowNew = nextProps.allowNew,
            highlightOnlyResult = nextProps.highlightOnlyResult,
            results = nextProps.results;


        if (!highlightOnlyResult || allowNew) {
          return;
        }

        if (results.length !== this.props.results.length) {
          this.setState({
            isOnlyResult: results.length === 1 && !(0, _head2.default)(results).disabled
          });
        }
      }
    }, {
      key: 'getChildContext',
      value: function getChildContext() {
        return {
          isOnlyResult: this.state.isOnlyResult
        };
      }
    }, {
      key: 'render',
      value: function render() {
        return _react2.default.createElement(Typeahead, _extends({}, this.props, {
          onKeyDown: this._handleKeyDown
        }));
      }
    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.childContextTypes = {
    isOnlyResult: _propTypes2.default.bool.isRequired
  };

  return WrappedTypeahead;
}

exports.default = highlightOnlyResultContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/hintContainer.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

// IE doesn't seem to get the composite computed value (eg: 'padding',
// 'borderStyle', etc.), so generate these from the individual values.
function interpolateStyle(styles, attr) {
  var subattr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

  // Title-case the sub-attribute.
  if (subattr) {
    subattr = subattr.replace(subattr[0], subattr[0].toUpperCase());
  }

  return ['Top', 'Right', 'Bottom', 'Left'].map(function (dir) {
    return styles[attr + dir + subattr];
  }).join(' ');
}

function copyStyles(inputNode, hintNode) {
  var inputStyle = window.getComputedStyle(inputNode);

  hintNode.style.borderStyle = interpolateStyle(inputStyle, 'border', 'style');
  hintNode.style.borderWidth = interpolateStyle(inputStyle, 'border', 'width');
  hintNode.style.fontSize = inputStyle.fontSize;
  hintNode.style.lineHeight = inputStyle.lineHeight;
  hintNode.style.margin = interpolateStyle(inputStyle, 'margin');
  hintNode.style.padding = interpolateStyle(inputStyle, 'padding');
}

function hintContainer(Input) {
  var HintedInput = function (_React$Component) {
    _inherits(HintedInput, _React$Component);

    function HintedInput() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, HintedInput);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = HintedInput.__proto__ || Object.getPrototypeOf(HintedInput)).call.apply(_ref, [this].concat(args))), _this), _this._handleKeyDown = function (e) {
        var _this$context = _this.context,
            hintText = _this$context.hintText,
            initialItem = _this$context.initialItem,
            onAdd = _this$context.onAdd,
            selectHintOnEnter = _this$context.selectHintOnEnter;
        var _this$props = _this.props,
            onKeyDown = _this$props.onKeyDown,
            value = _this$props.value;


        if (hintText && (e.keyCode === _keyCode.RETURN && selectHintOnEnter || e.keyCode === _keyCode.RIGHT && e.target.selectionStart === value.length || e.keyCode === _keyCode.TAB)) {
          e.preventDefault(); // Prevent input from blurring on TAB.
          onAdd(initialItem);
        }

        onKeyDown(e);
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(HintedInput, [{
      key: 'componentDidMount',
      value: function componentDidMount() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: 'componentDidUpdate',
      value: function componentDidUpdate() {
        copyStyles(this._input, this._hint);
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        return _react2.default.createElement(
          'div',
          {
            className: 'rbt-input-hint-container',
            style: { position: 'relative' } },
          _react2.default.createElement(Input, _extends({}, this.props, {
            inputRef: function inputRef(input) {
              _this2._input = input;
              _this2.props.inputRef(input);
            },
            onKeyDown: this._handleKeyDown
          })),
          _react2.default.createElement('input', {
            'aria-hidden': true,
            className: 'rbt-input-hint',
            readOnly: true,
            ref: function ref(hint) {
              return _this2._hint = hint;
            },
            style: {
              backgroundColor: 'transparent',
              borderColor: 'transparent',
              boxShadow: 'none',
              color: 'rgba(0, 0, 0, 0.35)',
              left: 0,
              pointerEvents: 'none',
              position: 'absolute',
              top: 0
            },
            tabIndex: -1,
            value: this.context.hintText
          })
        );
      }
    }]);

    return HintedInput;
  }(_react2.default.Component);

  HintedInput.displayName = 'HintContainer(' + (0, _utils.getDisplayName)(Input) + ')';

  HintedInput.contextTypes = {
    hintText: _propTypes2.default.string.isRequired,
    initialItem: _propTypes2.default.oneOfType([_propTypes2.default.object.isRequired, _propTypes2.default.string.isRequired]),
    onAdd: _propTypes2.default.func.isRequired,
    selectHintOnEnter: _propTypes2.default.bool.isRequired
  };

  return HintedInput;
}

exports.default = hintContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/inputContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 _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; }

function inputContainer(Input) {
  var WrappedInput = function (_React$Component) {
    _inherits(WrappedInput, _React$Component);

    function WrappedInput() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedInput);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedInput.__proto__ || Object.getPrototypeOf(WrappedInput)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        isFocused: false
      }, _this._handleBlur = function (e) {
        e.persist();
        _this.setState({ isFocused: false }, function () {
          return _this.props.onBlur(e);
        });
      }, _this._handleFocus = function (e) {
        e.persist();
        _this.setState({ isFocused: true }, function () {
          return _this.props.onFocus(e);
        });
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedInput, [{
      key: 'getChildContext',
      value: function getChildContext() {
        var _props = this.props,
            initialItem = _props.initialItem,
            onAdd = _props.onAdd,
            selectHintOnEnter = _props.selectHintOnEnter;


        return {
          hintText: (0, _utils.getHintText)(this.props),
          initialItem: initialItem,
          onAdd: onAdd,
          selectHintOnEnter: selectHintOnEnter
        };
      }
    }, {
      key: 'render',
      value: function render() {
        var _cx;

        var _props2 = this.props,
            activeIndex = _props2.activeIndex,
            bsSize = _props2.bsSize,
            disabled = _props2.disabled,
            inputRef = _props2.inputRef,
            isInvalid = _props2.isInvalid,
            isMenuShown = _props2.isMenuShown,
            isValid = _props2.isValid,
            labelKey = _props2.labelKey,
            menuId = _props2.menuId,
            multiple = _props2.multiple,
            onChange = _props2.onChange,
            onKeyDown = _props2.onKeyDown,
            onRemove = _props2.onRemove,
            placeholder = _props2.placeholder,
            renderToken = _props2.renderToken,
            selected = _props2.selected;

        // Add a11y-related props.

        var inputProps = _extends({}, this.props.inputProps, {
          'aria-activedescendant': activeIndex >= 0 ? (0, _utils.getMenuItemId)(activeIndex) : '',
          'aria-autocomplete': multiple ? 'list' : 'both',
          'aria-expanded': isMenuShown,
          'aria-haspopup': 'listbox',
          'aria-owns': menuId,
          autoComplete: this.props.inputProps.autoComplete || 'nope',
          disabled: disabled,
          inputRef: inputRef,
          onBlur: this._handleBlur,
          onChange: onChange,
          // Re-open the menu, eg: if it's closed via ESC.
          onClick: this._handleFocus,
          onFocus: this._handleFocus,
          onKeyDown: onKeyDown,
          placeholder: selected.length ? null : placeholder,
          // Comboboxes are single-select by definition:
          // https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
          role: 'combobox',
          value: (0, _utils.getInputText)(this.props)
        });

        var className = inputProps.className || '';

        if (multiple) {
          inputProps = _extends({}, inputProps, {
            inputClassName: className,
            labelKey: labelKey,
            onRemove: onRemove,
            renderToken: renderToken,
            role: '',
            selected: selected
          });
        }

        return _react2.default.createElement(Input, _extends({}, inputProps, {
          className: (0, _classnames2.default)('rbt-input', (_cx = {}, _defineProperty(_cx, className, !multiple), _defineProperty(_cx, 'focus', this.state.isFocused), _defineProperty(_cx, 'input-lg form-control-lg', bsSize === 'large' || bsSize === 'lg'), _defineProperty(_cx, 'input-sm form-control-sm', bsSize === 'small' || bsSize === 'sm'), _defineProperty(_cx, 'is-invalid', isInvalid), _defineProperty(_cx, 'is-valid', isValid), _cx))
        }));
      }
    }]);

    return WrappedInput;
  }(_react2.default.Component);

  WrappedInput.displayName = 'InputContainer(' + (0, _utils.getDisplayName)(Input) + ')';

  WrappedInput.childContextTypes = {
    hintText: _propTypes2.default.string.isRequired,
    initialItem: _propTypes2.default.oneOfType([_propTypes2.default.object.isRequired, _propTypes2.default.string.isRequired]),
    onAdd: _propTypes2.default.func.isRequired,
    selectHintOnEnter: _propTypes2.default.bool.isRequired
  };

  return WrappedInput;
}

exports.default = inputContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 menuItemContainer = function menuItemContainer(Component) {
  var WrappedMenuItem = function (_React$Component) {
    _inherits(WrappedMenuItem, _React$Component);

    function WrappedMenuItem() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedMenuItem);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedMenuItem.__proto__ || Object.getPrototypeOf(WrappedMenuItem)).call.apply(_ref, [this].concat(args))), _this), _this._handleClick = function (e) {
        var _this$props = _this.props,
            option = _this$props.option,
            onClick = _this$props.onClick;


        _this.context.onMenuItemClick(option, e);
        onClick && onClick(e);
      }, _this._updateInitialItem = function (props) {
        var option = props.option,
            position = props.position;

        if (position === 0) {
          _this.context.onInitialItemChange(option);
        }
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedMenuItem, [{
      key: 'componentWillMount',
      value: function componentWillMount() {
        this._updateInitialItem(this.props);
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps, nextContext) {
        var currentlyActive = this.context.activeIndex === this.props.position;
        var option = nextProps.option,
            position = nextProps.position;
        var activeIndex = nextContext.activeIndex,
            onActiveItemChange = nextContext.onActiveItemChange;


        if (position == null) {
          return;
        }

        // The item will become active.
        if (activeIndex === position) {
          // Ensures that if the menu items exceed the bounds of the menu, the
          // menu will scroll up or down as the user hits the arrow keys.
          (0, _utils.scrollIntoViewIfNeeded)((0, _reactDom.findDOMNode)(this));

          // Fire the change handler when the menu item becomes active.
          !currentlyActive && onActiveItemChange(option);
        }

        this._updateInitialItem(nextProps);
      }
    }, {
      key: 'render',
      value: function render() {
        var _context = this.context,
            activeIndex = _context.activeIndex,
            isOnlyResult = _context.isOnlyResult;

        var _props = this.props,
            label = _props.label,
            option = _props.option,
            position = _props.position,
            props = _objectWithoutProperties(_props, ['label', 'option', 'position']);

        var active = isOnlyResult || activeIndex === position;

        return _react2.default.createElement(Component, _extends({}, props, {
          active: active,
          'aria-label': label,
          'aria-selected': active,
          id: (0, _utils.getMenuItemId)(position),
          onClick: this._handleClick,
          onMouseDown: _utils.preventInputBlur,
          role: 'option'
        }));
      }
    }]);

    return WrappedMenuItem;
  }(_react2.default.Component);

  WrappedMenuItem.displayName = 'MenuItemContainer(' + (0, _utils.getDisplayName)(Component) + ')';

  WrappedMenuItem.propTypes = {
    option: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.string]).isRequired,
    position: _propTypes2.default.number
  };

  WrappedMenuItem.contextTypes = {
    activeIndex: _propTypes2.default.number.isRequired,
    isOnlyResult: _propTypes2.default.bool.isRequired,
    onActiveItemChange: _propTypes2.default.func.isRequired,
    onInitialItemChange: _propTypes2.default.func.isRequired,
    onMenuItemClick: _propTypes2.default.func.isRequired
  };

  return WrappedMenuItem;
};

exports.default = menuItemContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactOnclickoutside = __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js");

var _reactOnclickoutside2 = _interopRequireDefault(_reactOnclickoutside);

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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; }

/**
 * Higher-order component that encapsulates Token behaviors, allowing them to
 * be easily re-used.
 */
var tokenContainer = function tokenContainer(Component) {
  var WrappedComponent = function (_React$Component) {
    _inherits(WrappedComponent, _React$Component);

    function WrappedComponent() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, WrappedComponent);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = WrappedComponent.__proto__ || Object.getPrototypeOf(WrappedComponent)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
        active: false
      }, _this._handleBlur = function (e) {
        _this.setState({ active: false });
      }, _this._handleKeyDown = function (e) {
        switch (e.keyCode) {
          case _keyCode.BACKSPACE:
            if (_this.state.active) {
              // Prevent backspace keypress from triggering the browser "back"
              // action.
              e.preventDefault();
              _this.props.onRemove();
            }
            break;
        }
      }, _this.handleClickOutside = function (e) {
        _this._handleBlur();
      }, _this._handleActive = function (e) {
        e.stopPropagation();
        _this.setState({ active: true });
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(WrappedComponent, [{
      key: 'render',
      value: function render() {
        var _props = this.props,
            disableOnClickOutside = _props.disableOnClickOutside,
            enableOnClickOutside = _props.enableOnClickOutside,
            eventTypes = _props.eventTypes,
            outsideClickIgnoreClass = _props.outsideClickIgnoreClass,
            preventDefault = _props.preventDefault,
            stopPropagation = _props.stopPropagation,
            tokenProps = _objectWithoutProperties(_props, ['disableOnClickOutside', 'enableOnClickOutside', 'eventTypes', 'outsideClickIgnoreClass', 'preventDefault', 'stopPropagation']);

        return _react2.default.createElement(Component, _extends({}, tokenProps, this.state, {
          onBlur: this._handleBlur,
          onClick: this._handleActive,
          onFocus: this._handleActive,
          onKeyDown: this._handleKeyDown
        }));
      }

      /**
       * From `onClickOutside` HOC.
       */

    }]);

    return WrappedComponent;
  }(_react2.default.Component);

  WrappedComponent.displayName = 'TokenContainer(' + (0, _utils.getDisplayName)(Component) + ')';

  return (0, _reactOnclickoutside2.default)(WrappedComponent);
};

exports.default = tokenContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/containers/typeaheadContainer.js ***!
  \*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _flowRight = __webpack_require__(/*! lodash/flowRight */ "./node_modules/lodash/flowRight.js");

var _flowRight2 = _interopRequireDefault(_flowRight);

var _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _isEqual = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual2 = _interopRequireDefault(_isEqual);

var _noop = __webpack_require__(/*! lodash/noop */ "./node_modules/lodash/noop.js");

var _noop2 = _interopRequireDefault(_noop);

var _uniqueId = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");

var _uniqueId2 = _interopRequireDefault(_uniqueId);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactOnclickoutside = __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js");

var _reactOnclickoutside2 = _interopRequireDefault(_reactOnclickoutside);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _highlightOnlyResultContainer = __webpack_require__(/*! ./highlightOnlyResultContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/highlightOnlyResultContainer.js");

var _highlightOnlyResultContainer2 = _interopRequireDefault(_highlightOnlyResultContainer);

var _propTypes3 = __webpack_require__(/*! ../propTypes/ */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js");

var _utils = __webpack_require__(/*! ../utils/ */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

var _defaultLabelKey = __webpack_require__(/*! ../constants/defaultLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js");

var _keyCode = __webpack_require__(/*! ../constants/keyCode */ "./node_modules/react-bootstrap-typeahead/lib/constants/keyCode.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 _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; }

function genId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

  return prefix + Math.random().toString(36).substr(2, 12);
}

function getInitialState(props) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      maxResults = props.maxResults,
      multiple = props.multiple;


  var selected = props.selected ? props.selected.slice() : defaultSelected.slice();

  var text = defaultInputValue;

  if (!multiple && selected.length) {
    // Set the text if an initial selection is passed in.
    text = (0, _utils.getOptionLabel)((0, _head2.default)(selected), props.labelKey);

    if (selected.length > 1) {
      // Limit to 1 selection in single-select mode.
      selected = selected.slice(0, 1);
    }
  }

  return {
    activeIndex: -1,
    activeItem: null,
    initialItem: null,
    selected: selected,
    showMenu: false,
    shownResults: maxResults,
    text: text
  };
}

function typeaheadContainer(Typeahead) {
  // Nested HOCs to encapsulate behaviors. In order from outer to inner.
  Typeahead = (0, _flowRight2.default)(_highlightOnlyResultContainer2.default)(Typeahead);

  var WrappedTypeahead = function (_React$Component) {
    _inherits(WrappedTypeahead, _React$Component);

    function WrappedTypeahead(props) {
      _classCallCheck(this, WrappedTypeahead);

      var _this = _possibleConstructorReturn(this, (WrappedTypeahead.__proto__ || Object.getPrototypeOf(WrappedTypeahead)).call(this, props));

      _this.blur = function () {
        _this.getInput().blur();
        _this._hideMenu();
      };

      _this.clear = function () {
        _this.setState(_extends({}, getInitialState(_this.props), {
          selected: [],
          text: ''
        }));
      };

      _this.focus = function () {
        _this.getInput().focus();
      };

      _this.getInput = function () {
        return _this._input;
      };

      _this._handleActiveIndexChange = function (activeIndex) {
        var newState = { activeIndex: activeIndex };

        if (activeIndex === -1) {
          // Reset the active item if there is no active index.
          newState.activeItem = null;
        }

        _this.setState(newState);
      };

      _this._handleActiveItemChange = function (activeItem) {
        _this.setState({ activeItem: activeItem });
      };

      _this._handleClear = function () {
        _this.clear();
        _this._updateSelected([]);
      };

      _this._handleFocus = function (e) {
        _this.setState({ showMenu: true }, function () {
          return _this.props.onFocus(e);
        });
      };

      _this._handleInitialItemChange = function (initialItem) {
        var labelKey = _this.props.labelKey;

        var currentItem = _this.state.initialItem;

        // Don't update the initial item if it hasn't changed. For custom items,
        // compare the `labelKey` values since a unique id is generated each time,
        // causing the comparison to always return false otherwise.
        if ((0, _isEqual2.default)(initialItem, currentItem) || currentItem && initialItem && initialItem.customOption && initialItem[labelKey] === currentItem[labelKey]) {
          return;
        }

        _this.setState({ initialItem: initialItem });
      };

      _this._handleInputChange = function (e) {
        e.persist();

        var text = e.target.value;

        var _getInitialState = getInitialState(_this.props),
            activeIndex = _getInitialState.activeIndex,
            activeItem = _getInitialState.activeItem,
            shownResults = _getInitialState.shownResults;

        var _this$props = _this.props,
            multiple = _this$props.multiple,
            onInputChange = _this$props.onInputChange;


        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: true,
          shownResults: shownResults,
          text: text
        }, function () {
          return onInputChange(text, e);
        });

        // Clear any selections if text is entered in single-select mode.
        if (_this.state.selected.length && !multiple) {
          _this._updateSelected([]);
        }
      };

      _this._handleKeyDown = function (e, results, isMenuShown) {
        var activeItem = _this.state.activeItem;


        switch (e.keyCode) {
          case _keyCode.UP:
          case _keyCode.DOWN:
            if (!isMenuShown) {
              _this._showMenu();
              break;
            }

            var activeIndex = _this.state.activeIndex;

            // Prevents input cursor from going to the beginning when pressing up.

            e.preventDefault();

            // Increment or decrement index based on user keystroke.
            activeIndex += e.keyCode === _keyCode.UP ? -1 : 1;

            // Skip over any disabled options.
            while (results[activeIndex] && results[activeIndex].disabled) {
              activeIndex += e.keyCode === _keyCode.UP ? -1 : 1;
            }

            // If we've reached the end, go back to the beginning or vice-versa.
            if (activeIndex === results.length) {
              activeIndex = -1;
            } else if (activeIndex === -2) {
              activeIndex = results.length - 1;
            }

            _this._handleActiveIndexChange(activeIndex);
            break;
          case _keyCode.ESC:
            isMenuShown && _this._hideMenu();
            break;
          case _keyCode.RETURN:
            if (!isMenuShown) {
              break;
            }

            // Prevent form submission while menu is open.
            e.preventDefault();
            activeItem && _this._handleMenuItemSelect(activeItem, e);
            break;
          case _keyCode.RIGHT:
          case _keyCode.TAB:
            if (!isMenuShown) {
              break;
            }

            if (activeItem && !activeItem.paginationOption) {
              // Prevent blurring when selecting the active item.
              e.keyCode === _keyCode.TAB && e.preventDefault();
              _this._handleSelectionAdd(activeItem);
              break;
            }

            if (e.keyCode === _keyCode.TAB) {
              _this._hideMenu();
            }
            break;
        }

        _this.props.onKeyDown(e);
      };

      _this._handleMenuItemSelect = function (option, e) {
        if (option.paginationOption) {
          _this._handlePaginate(e);
        } else {
          _this._handleSelectionAdd(option);
        }
      };

      _this._handlePaginate = function (e) {
        e.persist();
        var _this$props2 = _this.props,
            maxResults = _this$props2.maxResults,
            onPaginate = _this$props2.onPaginate;

        var shownResults = _this.state.shownResults + maxResults;

        _this.setState({ shownResults: shownResults }, function () {
          return onPaginate(e, shownResults);
        });
      };

      _this._handleSelectionAdd = function (selection) {
        var _this$props3 = _this.props,
            multiple = _this$props3.multiple,
            labelKey = _this$props3.labelKey;


        var selected = void 0;
        var text = void 0;

        if (multiple) {
          // If multiple selections are allowed, add the new selection to the
          // existing selections.
          selected = _this.state.selected.concat(selection);
          text = '';
        } else {
          // If only a single selection is allowed, replace the existing selection
          // with the new one.
          selected = [selection];
          text = (0, _utils.getOptionLabel)(selection, labelKey);
        }

        _this._hideMenu();
        _this.setState({
          initialItem: selection,
          text: text
        });

        // Text must be updated before the selection to fix #211.
        // TODO: Find a more robust way of solving the issue.
        _this._updateSelected(selected);
      };

      _this._handleSelectionRemove = function (selection) {
        var selected = _this.state.selected.filter(function (option) {
          return !(0, _isEqual2.default)(option, selection);
        });

        // Make sure the input stays focused after the item is removed.
        _this.focus();
        _this._hideMenu();
        _this._updateSelected(selected);
      };

      _this.handleClickOutside = function (e) {
        _this.state.showMenu && _this._hideMenu();
      };

      _this._hideMenu = function () {
        var _getInitialState2 = getInitialState(_this.props),
            activeIndex = _getInitialState2.activeIndex,
            activeItem = _getInitialState2.activeItem,
            showMenu = _getInitialState2.showMenu,
            shownResults = _getInitialState2.shownResults;

        _this.setState({
          activeIndex: activeIndex,
          activeItem: activeItem,
          showMenu: showMenu,
          shownResults: shownResults
        });
      };

      _this._showMenu = function () {
        _this.setState({ showMenu: true });
      };

      _this._updateSelected = function (selected) {
        _this.setState({ selected: selected }, function () {
          return _this.props.onChange(selected);
        });
      };

      _this.state = getInitialState(props);
      return _this;
    }

    _createClass(WrappedTypeahead, [{
      key: 'getChildContext',
      value: function getChildContext() {
        return {
          activeIndex: this.state.activeIndex,
          onActiveItemChange: this._handleActiveItemChange,
          onInitialItemChange: this._handleInitialItemChange,
          onMenuItemClick: this._handleMenuItemSelect
        };
      }
    }, {
      key: 'componentWillMount',
      value: function componentWillMount() {
        // Generate random id here since doing it in defaultProps will generate
        // the same id for every instance.
        this._menuId = genId('rbt-menu-');
      }
    }, {
      key: 'componentDidMount',
      value: function componentDidMount() {
        this.props.autoFocus && this.focus();
      }
    }, {
      key: 'componentWillReceiveProps',
      value: function componentWillReceiveProps(nextProps) {
        var labelKey = nextProps.labelKey,
            multiple = nextProps.multiple,
            selected = nextProps.selected;

        // If new selections are passed via props, treat as a controlled input.

        if (selected && !(0, _isEqual2.default)(selected, this.state.selected)) {
          this.setState({ selected: selected });

          if (multiple) {
            return;
          }

          this.setState({
            text: selected.length ? (0, _utils.getOptionLabel)((0, _head2.default)(selected), labelKey) : ''
          });
        }

        // Truncate selections when in single-select mode.
        var newSelected = selected || this.state.selected;
        if (!multiple && newSelected.length > 1) {
          newSelected = newSelected.slice(0, 1);
          this.setState({
            selected: newSelected,
            text: (0, _utils.getOptionLabel)((0, _head2.default)(newSelected), labelKey)
          });
          return;
        }

        if (multiple !== this.props.multiple) {
          this.setState({ text: '' });
        }
      }
    }, {
      key: 'render',
      value: function render() {
        var _this2 = this;

        var mergedPropsAndState = _extends({}, this.props, this.state);

        var filterBy = mergedPropsAndState.filterBy,
            labelKey = mergedPropsAndState.labelKey,
            minLength = mergedPropsAndState.minLength,
            options = mergedPropsAndState.options,
            paginate = mergedPropsAndState.paginate,
            paginationText = mergedPropsAndState.paginationText,
            shownResults = mergedPropsAndState.shownResults,
            text = mergedPropsAndState.text;


        var results = [];
        if (text.length >= minLength) {
          var cb = Array.isArray(filterBy) ? _utils.defaultFilterBy : filterBy;
          results = options.filter(function (option) {
            return cb(option, mergedPropsAndState);
          });
        }

        // This must come before results are truncated.
        var shouldPaginate = paginate && results.length > shownResults;

        // Truncate results if necessary.
        results = (0, _utils.getTruncatedOptions)(results, shownResults);

        // Add the custom option if necessary.
        if ((0, _utils.addCustomOption)(results, mergedPropsAndState)) {
          results.push(_defineProperty({
            customOption: true,
            id: (0, _uniqueId2.default)('new-id-')
          }, (0, _utils.getStringLabelKey)(labelKey), text));
        }

        // Add the pagination item if necessary.
        if (shouldPaginate) {
          var _results$push2;

          results.push((_results$push2 = {}, _defineProperty(_results$push2, (0, _utils.getStringLabelKey)(labelKey), paginationText), _defineProperty(_results$push2, 'paginationOption', true), _results$push2));
        }

        // This must come after checks for the custom option and pagination.
        var isMenuShown = (0, _utils.isShown)(results, mergedPropsAndState);

        return _react2.default.createElement(Typeahead, _extends({}, mergedPropsAndState, {
          inputRef: function inputRef(input) {
            return _this2._input = input;
          },
          isMenuShown: isMenuShown,
          menuId: this.props.menuId || this._menuId,
          onAdd: this._handleSelectionAdd,
          onChange: this._handleInputChange,
          onClear: this._handleClear,
          onFocus: this._handleFocus,
          onInitialItemChange: this._handleInitialItemChange,
          onKeyDown: function onKeyDown(e) {
            return _this2._handleKeyDown(e, results, isMenuShown);
          },
          onRemove: this._handleSelectionRemove,
          results: results
        }));
      }

      /**
       * From `onClickOutside` HOC.
       */

    }]);

    return WrappedTypeahead;
  }(_react2.default.Component);

  WrappedTypeahead.displayName = 'TypeaheadContainer(' + (0, _utils.getDisplayName)(Typeahead) + ')';

  WrappedTypeahead.propTypes = {
    /**
     * For localized accessibility: Should return a string indicating the number
     * of results for screen readers. Receives the current results.
     */
    a11yNumResults: _propTypes2.default.func,
    /**
     * For localized accessibility: Should return a string indicating the number
     * of selections for screen readers. Receives the current selections.
     */
    a11yNumSelected: _propTypes2.default.func,
    /**
     * Specify menu alignment. The default value is `justify`, which makes the
     * menu as wide as the input and truncates long values. Specifying `left`
     * or `right` will align the menu to that side and the width will be
     * determined by the length of menu item values.
     */
    align: _propTypes2.default.oneOf(['justify', 'left', 'right']),
    /**
     * Allows the creation of new selections on the fly. Note that any new items
     * will be added to the list of selections, but not the list of original
     * options unless handled as such by `Typeahead`'s parent.
     *
     * If a function is specified, it will be used to determine whether a custom
     * option should be included. The return value should be true or false.
     */
    allowNew: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.func]),
    /**
     * Autofocus the input when the component initially mounts.
     */
    autoFocus: _propTypes2.default.bool,
    /**
     * Whether to render the menu inline or attach to `document.body`.
     */
    bodyContainer: _propTypes2.default.bool,
    /**
     * Whether or not filtering should be case-sensitive.
     */
    caseSensitive: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.caseSensitiveType),
    /**
     * Displays a button to clear the input when there are selections.
     */
    clearButton: _propTypes2.default.bool,
    /**
     * The initial value displayed in the text input.
     */
    defaultInputValue: (0, _propTypes3.checkPropType)(_propTypes2.default.string, _propTypes3.defaultInputValueType),
    /**
     * Specify any pre-selected options. Use only if you want the component to
     * be uncontrolled.
     */
    defaultSelected: _propTypes3.optionType,
    /**
     * Whether to disable the component.
     */
    disabled: _propTypes2.default.bool,
    /**
     * Specify whether the menu should appear above the input.
     */
    dropup: _propTypes2.default.bool,
    /**
     * Message to display in the menu if there are no valid results.
     */
    emptyLabel: _propTypes2.default.node,
    /**
     * Either an array of fields in `option` to search, or a custom filtering
     * callback.
     */
    filterBy: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.string.isRequired), _propTypes2.default.func]),
    /**
     * Whether or not to automatically adjust the position of the menu when it
     * reaches the viewport boundaries.
     */
    flip: _propTypes2.default.bool,
    /**
     * Highlights the menu item if there is only one result and allows selecting
     * that item by hitting enter. Does not work with `allowNew`.
     */
    highlightOnlyResult: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.highlightOnlyResultType),
    /**
     * Whether the filter should ignore accents and other diacritical marks.
     */
    ignoreDiacritics: (0, _propTypes3.checkPropType)(_propTypes2.default.bool, _propTypes3.ignoreDiacriticsType),
    /**
     * Props to be applied directly to the input. `onBlur`, `onChange`,
     * `onFocus`, and `onKeyDown` are ignored.
     */
    inputProps: (0, _propTypes3.checkPropType)(_propTypes2.default.object, _propTypes3.inputPropsType),
    /**
     * Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`.
     */
    isInvalid: _propTypes2.default.bool,
    /**
     * Indicate whether an asynchronous data fetch is happening.
     */
    isLoading: _propTypes2.default.bool,
    /**
     * Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`.
     */
    isValid: _propTypes2.default.bool,
    /**
     * Specify the option key to use for display or a function returning the
     * display string. By default, the selector will use the `label` key.
     */
    labelKey: (0, _propTypes3.checkPropType)(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func]), _propTypes3.labelKeyType),
    /**
     * Maximum number of results to display by default. Mostly done for
     * performance reasons so as not to render too many DOM nodes in the case of
     * large data sets.
     */
    maxResults: _propTypes2.default.number,
    /**
     * Id applied to the top-level menu element. Required for accessibility.
     */
    menuId: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
    /**
     * Number of input characters that must be entered before showing results.
     */
    minLength: _propTypes2.default.number,
    /**
     * Whether or not multiple selections are allowed.
     */
    multiple: _propTypes2.default.bool,
    /**
     * Invoked when the input is blurred. Receives an event.
     */
    onBlur: _propTypes2.default.func,
    /**
     * Invoked whenever items are added or removed. Receives an array of the
     * selected options.
     */
    onChange: _propTypes2.default.func,
    /**
     * Invoked when the input is focused. Receives an event.
     */
    onFocus: _propTypes2.default.func,
    /**
     * Invoked when the input value changes. Receives the string value of the
     * input.
     */
    onInputChange: _propTypes2.default.func,
    /**
     * Invoked when a key is pressed. Receives an event.
     */
    onKeyDown: _propTypes2.default.func,
    /**
     * Invoked when the menu is hidden.
     */
    onMenuHide: _propTypes2.default.func,
    /**
     * Invoked when the menu is shown.
     */
    onMenuShow: _propTypes2.default.func,
    /**
     * Invoked when the pagination menu item is clicked. Receives an event.
     */
    onPaginate: _propTypes2.default.func,
    /**
     * Full set of options, including pre-selected options. Must either be an
     * array of objects (recommended) or strings.
     */
    options: _propTypes3.optionType.isRequired,
    /**
     * Give user the ability to display additional results if the number of
     * results exceeds `maxResults`.
     */
    paginate: _propTypes2.default.bool,
    /**
     * Prompt displayed when large data sets are paginated.
     */
    paginationText: _propTypes2.default.string,
    /**
     * Placeholder text for the input.
     */
    placeholder: _propTypes2.default.string,
    /**
     * Callback for custom menu rendering.
     */
    renderMenu: _propTypes2.default.func,
    /**
     * The selected option(s) displayed in the input. Use this prop if you want
     * to control the component via its parent.
     */
    selected: _propTypes3.optionType,
    /**
     * Allows selecting the hinted result by pressing enter.
     */
    selectHintOnEnter: _propTypes2.default.bool
  };

  WrappedTypeahead.defaultProps = {
    a11yNumResults: function a11yNumResults(results) {
      var resultString = (0, _utils.pluralize)('result', results.length);
      return resultString + '. Use up and down arrow keys to navigate.';
    },
    a11yNumSelected: function a11yNumSelected(selected) {
      return (0, _utils.pluralize)('selection', selected.length);
    },
    align: 'justify',
    allowNew: false,
    autoFocus: false,
    bodyContainer: false,
    caseSensitive: false,
    clearButton: false,
    defaultInputValue: '',
    defaultSelected: [],
    disabled: false,
    dropup: false,
    emptyLabel: 'No matches found.',
    filterBy: [],
    flip: false,
    highlightOnlyResult: false,
    ignoreDiacritics: true,
    inputProps: {},
    isInvalid: false,
    isLoading: false,
    isValid: false,
    labelKey: _defaultLabelKey.DEFAULT_LABELKEY,
    maxResults: 100,
    minLength: 0,
    multiple: false,
    onBlur: _noop2.default,
    onChange: _noop2.default,
    onFocus: _noop2.default,
    onInputChange: _noop2.default,
    onKeyDown: _noop2.default,
    onMenuHide: _noop2.default,
    onMenuShow: _noop2.default,
    onPaginate: _noop2.default,
    paginate: true,
    paginationText: 'Display additional results...',
    placeholder: '',
    selectHintOnEnter: false
  };

  WrappedTypeahead.childContextTypes = {
    activeIndex: _propTypes2.default.number.isRequired,
    onActiveItemChange: _propTypes2.default.func.isRequired,
    onInitialItemChange: _propTypes2.default.func.isRequired,
    onMenuItemClick: _propTypes2.default.func.isRequired
  };

  return (0, _reactOnclickoutside2.default)(WrappedTypeahead);
}

exports.default = typeaheadContainer;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/index.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/index.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tokenContainer = exports.menuItemContainer = exports.asyncContainer = exports.TypeaheadMenu = exports.Typeahead = exports.Token = exports.MenuItem = exports.Menu = exports.Highlighter = exports.AsyncTypeahead = undefined;

var _AsyncTypeahead2 = __webpack_require__(/*! ./AsyncTypeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/AsyncTypeahead.react.js");

var _AsyncTypeahead3 = _interopRequireDefault(_AsyncTypeahead2);

var _Highlighter2 = __webpack_require__(/*! ./Highlighter.react */ "./node_modules/react-bootstrap-typeahead/lib/Highlighter.react.js");

var _Highlighter3 = _interopRequireDefault(_Highlighter2);

var _Menu2 = __webpack_require__(/*! ./Menu.react */ "./node_modules/react-bootstrap-typeahead/lib/Menu.react.js");

var _Menu3 = _interopRequireDefault(_Menu2);

var _MenuItem2 = __webpack_require__(/*! ./MenuItem.react */ "./node_modules/react-bootstrap-typeahead/lib/MenuItem.react.js");

var _MenuItem3 = _interopRequireDefault(_MenuItem2);

var _Token2 = __webpack_require__(/*! ./Token.react */ "./node_modules/react-bootstrap-typeahead/lib/Token.react.js");

var _Token3 = _interopRequireDefault(_Token2);

var _Typeahead2 = __webpack_require__(/*! ./Typeahead.react */ "./node_modules/react-bootstrap-typeahead/lib/Typeahead.react.js");

var _Typeahead3 = _interopRequireDefault(_Typeahead2);

var _TypeaheadMenu2 = __webpack_require__(/*! ./TypeaheadMenu.react */ "./node_modules/react-bootstrap-typeahead/lib/TypeaheadMenu.react.js");

var _TypeaheadMenu3 = _interopRequireDefault(_TypeaheadMenu2);

var _asyncContainer2 = __webpack_require__(/*! ./containers/asyncContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/asyncContainer.js");

var _asyncContainer3 = _interopRequireDefault(_asyncContainer2);

var _menuItemContainer2 = __webpack_require__(/*! ./containers/menuItemContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js");

var _menuItemContainer3 = _interopRequireDefault(_menuItemContainer2);

var _tokenContainer2 = __webpack_require__(/*! ./containers/tokenContainer */ "./node_modules/react-bootstrap-typeahead/lib/containers/tokenContainer.js");

var _tokenContainer3 = _interopRequireDefault(_tokenContainer2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.AsyncTypeahead = _AsyncTypeahead3.default; /* eslint-disable object-curly-spacing */

// Components

exports.Highlighter = _Highlighter3.default;
exports.Menu = _Menu3.default;
exports.MenuItem = _MenuItem3.default;
exports.Token = _Token3.default;
exports.Typeahead = _Typeahead3.default;
exports.TypeaheadMenu = _TypeaheadMenu3.default;

// HOCs

exports.asyncContainer = _asyncContainer3.default;
exports.menuItemContainer = _menuItemContainer3.default;
exports.tokenContainer = _tokenContainer3.default;

/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js ***!
  \***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = caseSensitiveType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function caseSensitiveType(props, propName, componentName) {
  var caseSensitive = props.caseSensitive,
      filterBy = props.filterBy;

  (0, _warn2.default)(!caseSensitive || typeof filterBy !== 'function', 'Your `filterBy` function will override the `caseSensitive` prop.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = checkPropType;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

/**
 * Allows additional warnings or messaging related to prop validation.
 */
function checkPropType(validator, callback) {
  return function (props, propName, componentName) {
    _propTypes2.default.checkPropTypes(_defineProperty({}, propName, validator), props, 'prop', componentName);

    typeof callback === 'function' && callback(props, propName, componentName);
  };
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultInputValueType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function defaultInputValueType(props, propName, componentName) {
  var defaultInputValue = props.defaultInputValue,
      defaultSelected = props.defaultSelected,
      multiple = props.multiple,
      selected = props.selected;

  var name = defaultSelected.length ? 'defaultSelected' : 'selected';

  (0, _warn2.default)(!(!multiple && defaultInputValue && (defaultSelected.length || selected && selected.length)), '`defaultInputValue` will be overridden by the value from `' + name + '`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = highlightOnlyResultType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function highlightOnlyResultType(props, propName, componentName) {
  var allowNew = props.allowNew,
      highlightOnlyResult = props.highlightOnlyResult;

  (0, _warn2.default)(!(highlightOnlyResult && allowNew), '`highlightOnlyResult` will not work with `allowNew`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = ignoreDiacriticsType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function ignoreDiacriticsType(props, propName, componentName) {
  var filterBy = props.filterBy,
      ignoreDiacritics = props.ignoreDiacritics;

  (0, _warn2.default)(ignoreDiacritics || typeof filterBy !== 'function', 'Your `filterBy` function will override the `ignoreDiacritics` prop.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/index.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.optionType = exports.labelKeyType = exports.inputPropsType = exports.ignoreDiacriticsType = exports.highlightOnlyResultType = exports.defaultInputValueType = exports.checkPropType = exports.caseSensitiveType = undefined;

var _caseSensitiveType2 = __webpack_require__(/*! ./caseSensitiveType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/caseSensitiveType.js");

var _caseSensitiveType3 = _interopRequireDefault(_caseSensitiveType2);

var _checkPropType2 = __webpack_require__(/*! ./checkPropType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/checkPropType.js");

var _checkPropType3 = _interopRequireDefault(_checkPropType2);

var _defaultInputValueType2 = __webpack_require__(/*! ./defaultInputValueType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/defaultInputValueType.js");

var _defaultInputValueType3 = _interopRequireDefault(_defaultInputValueType2);

var _highlightOnlyResultType2 = __webpack_require__(/*! ./highlightOnlyResultType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/highlightOnlyResultType.js");

var _highlightOnlyResultType3 = _interopRequireDefault(_highlightOnlyResultType2);

var _ignoreDiacriticsType2 = __webpack_require__(/*! ./ignoreDiacriticsType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/ignoreDiacriticsType.js");

var _ignoreDiacriticsType3 = _interopRequireDefault(_ignoreDiacriticsType2);

var _inputPropsType2 = __webpack_require__(/*! ./inputPropsType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js");

var _inputPropsType3 = _interopRequireDefault(_inputPropsType2);

var _labelKeyType2 = __webpack_require__(/*! ./labelKeyType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js");

var _labelKeyType3 = _interopRequireDefault(_labelKeyType2);

var _optionType2 = __webpack_require__(/*! ./optionType */ "./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js");

var _optionType3 = _interopRequireDefault(_optionType2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.caseSensitiveType = _caseSensitiveType3.default; /* eslint-disable object-curly-spacing */

exports.checkPropType = _checkPropType3.default;
exports.defaultInputValueType = _defaultInputValueType3.default;
exports.highlightOnlyResultType = _highlightOnlyResultType3.default;
exports.ignoreDiacriticsType = _ignoreDiacriticsType3.default;
exports.inputPropsType = _inputPropsType3.default;
exports.labelKeyType = _labelKeyType3.default;
exports.optionType = _optionType3.default;
/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/inputPropsType.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = inputPropsType;

var _isPlainObject = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");

var _isPlainObject2 = _interopRequireDefault(_isPlainObject);

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BLACKLIST = [{ alt: 'onBlur', prop: 'onBlur' }, { alt: 'onInputChange', prop: 'onChange' }, { alt: 'onFocus', prop: 'onFocus' }, { alt: 'onKeyDown', prop: 'onKeyDown' }];

function inputPropsType(props, propName, componentName) {
  var inputProps = props.inputProps;

  if (!(inputProps && (0, _isPlainObject2.default)(inputProps))) {
    return;
  }

  // Blacklisted properties.
  BLACKLIST.forEach(function (_ref) {
    var alt = _ref.alt,
        prop = _ref.prop;

    var msg = alt ? ' Use the top-level `' + alt + '` prop instead.' : null;
    (0, _warn2.default)(!inputProps.hasOwnProperty(prop), 'The `' + prop + '` property of `inputProps` will be ignored.' + msg);
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js":
/*!******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/labelKeyType.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = labelKeyType;

var _warn = __webpack_require__(/*! ../utils/warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function labelKeyType(props, propName, componentName) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey;

  (0, _warn2.default)(!(typeof labelKey === 'function' && allowNew), '`labelKey` must be a string when `allowNew={true}`.');
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/propTypes/optionType.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.object.isRequired), _propTypes2.default.arrayOf(_propTypes2.default.string.isRequired)]);

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _index = __webpack_require__(/*! ./index */ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js");

function addCustomOption(results, props) {
  var allowNew = props.allowNew,
      labelKey = props.labelKey,
      text = props.text;


  if (!allowNew || !text.trim()) {
    return false;
  }

  // If the consumer has provided a callback, use that to determine whether or
  // not to add the custom option.
  if (typeof allowNew === 'function') {
    return allowNew(results, props);
  }

  // By default, don't add the custom option if there is an exact text match
  // with an existing option.
  return !results.some(function (o) {
    return (0, _index.getOptionLabel)(o, labelKey) === text;
  });
}

exports.default = addCustomOption;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = defaultFilterBy;

var _isEqual = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual2 = _interopRequireDefault(_isEqual);

var _isFunction = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction2 = _interopRequireDefault(_isFunction);

var _isString = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");

var _isString2 = _interopRequireDefault(_isString);

var _some = __webpack_require__(/*! lodash/some */ "./node_modules/lodash/some.js");

var _some2 = _interopRequireDefault(_some);

var _stripDiacritics = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics2 = _interopRequireDefault(_stripDiacritics);

var _warn = __webpack_require__(/*! ./warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn2 = _interopRequireDefault(_warn);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function isMatch(input, string, props) {
  if (!props.caseSensitive) {
    input = input.toLowerCase();
    string = string.toLowerCase();
  }

  if (props.ignoreDiacritics) {
    input = (0, _stripDiacritics2.default)(input);
    string = (0, _stripDiacritics2.default)(string);
  }

  return string.indexOf(input) !== -1;
}

/**
 * Default algorithm for filtering results.
 */
function defaultFilterBy(option, props) {
  var filterBy = props.filterBy,
      labelKey = props.labelKey,
      multiple = props.multiple,
      selected = props.selected,
      text = props.text;

  // Don't show selected options in the menu for the multi-select case.

  if (multiple && selected.some(function (o) {
    return (0, _isEqual2.default)(o, option);
  })) {
    return false;
  }

  var fields = filterBy.slice();

  if ((0, _isFunction2.default)(labelKey) && isMatch(text, labelKey(option), props)) {
    return true;
  }

  if ((0, _isString2.default)(labelKey)) {
    // Add the `labelKey` field to the list of fields if it isn't already there.
    if (fields.indexOf(labelKey) === -1) {
      fields.unshift(labelKey);
    }
  }

  if ((0, _isString2.default)(option)) {
    (0, _warn2.default)(fields.length <= 1, 'You cannot filter by properties when `option` is a string.');

    return isMatch(text, option, props);
  }

  return (0, _some2.default)(fields, function (field) {
    var value = option[field];

    if (!(0, _isString2.default)(value)) {
      (0, _warn2.default)(false, 'Fields passed to `filterBy` should have string values. Value will ' + 'be converted to a string; results may be unexpected.');

      // Coerce to string since `toString` isn't null-safe.
      value = value + '';
    }

    return isMatch(text, value, props);
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function getAccessibilityStatus(props) {
  var a11yNumResults = props.a11yNumResults,
      a11yNumSelected = props.a11yNumSelected,
      emptyLabel = props.emptyLabel,
      isMenuShown = props.isMenuShown,
      results = props.results,
      selected = props.selected;

  // If the menu is hidden, display info about the number of selections.

  if (!isMenuShown) {
    return a11yNumSelected(selected);
  }

  // Display info about the number of matches.
  if (results.length === 0) {
    return emptyLabel;
  }

  return a11yNumResults(results);
}

exports.default = getAccessibilityStatus;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getDisplayName;
function getDisplayName(WrappedComponent) {
  return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js":
/*!*************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js ***!
  \*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _getMatchBounds = __webpack_require__(/*! ./getMatchBounds */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js");

var _getMatchBounds2 = _interopRequireDefault(_getMatchBounds);

var _getOptionLabel = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel2 = _interopRequireDefault(_getOptionLabel);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getHintText(_ref) {
  var activeItem = _ref.activeItem,
      initialItem = _ref.initialItem,
      isMenuShown = _ref.isMenuShown,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  // Don't display a hint under the following conditions:
  if (
  // No text entered.
  !text ||
  // The menu is hidden.
  !isMenuShown ||
  // No item in the menu.
  !initialItem ||
  // The initial item is a custom option.
  initialItem.customOption ||
  // One of the menu items is active.
  activeItem ||
  // There's already a selection in single-select mode.
  !!selected.length && !multiple) {
    return '';
  }

  var initialItemStr = (0, _getOptionLabel2.default)(initialItem, labelKey);
  var bounds = (0, _getMatchBounds2.default)(initialItemStr.toLowerCase(), text.toLowerCase());

  if (!(bounds && bounds.start === 0)) {
    return '';
  }

  // Text matching is case- and accent-insensitive, so to display the hint
  // correctly, splice the input string with the hint string.
  return text + initialItemStr.slice(bounds.end, initialItemStr.length);
}

exports.default = getHintText;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js":
/*!**************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _head = __webpack_require__(/*! lodash/head */ "./node_modules/lodash/head.js");

var _head2 = _interopRequireDefault(_head);

var _getOptionLabel = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel2 = _interopRequireDefault(_getOptionLabel);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getInputText(_ref) {
  var activeItem = _ref.activeItem,
      labelKey = _ref.labelKey,
      multiple = _ref.multiple,
      selected = _ref.selected,
      text = _ref.text;

  if (activeItem) {
    // Display the input value if the pagination item is active.
    return activeItem.paginationOption ? text : (0, _getOptionLabel2.default)(activeItem, labelKey);
  }

  var selectedItem = !multiple && !!selected.length && (0, _head2.default)(selected);
  if (selectedItem) {
    return (0, _getOptionLabel2.default)(selectedItem, labelKey);
  }

  return text;
}

exports.default = getInputText;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMatchBounds;

var _escapeStringRegexp = __webpack_require__(/*! escape-string-regexp */ "./node_modules/escape-string-regexp/index.js");

var _escapeStringRegexp2 = _interopRequireDefault(_escapeStringRegexp);

var _stripDiacritics = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics2 = _interopRequireDefault(_stripDiacritics);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CASE_INSENSITIVE = 'i';
var COMBINING_MARKS = /[\u0300-\u036F]/;

function getMatchBounds(subject, search) {
  search = new RegExp((0, _escapeStringRegexp2.default)((0, _stripDiacritics2.default)(search)), CASE_INSENSITIVE);

  var matches = search.exec((0, _stripDiacritics2.default)(subject));

  if (!matches) {
    return null;
  }

  var start = matches.index;
  var matchLength = matches[0].length;

  // Account for combining marks, which changes the indices.
  if (COMBINING_MARKS.test(subject)) {
    // Starting at the beginning of the subject string, check for the number of
    // combining marks and increment the start index whenever one is found.
    for (var ii = 0; ii <= start; ii++) {
      if (COMBINING_MARKS.test(subject[ii])) {
        start++;
      }
    }

    // Similarly, increment the length of the match string if it contains a
    // combining mark.
    for (var _ii = start; _ii <= start + matchLength; _ii++) {
      if (COMBINING_MARKS.test(subject[_ii])) {
        matchLength++;
      }
    }
  }

  return {
    end: start + matchLength,
    start: start
  };
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getMenuItemId;
function getMenuItemId(position) {
  return "rbt-menu-item-" + position;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _invariant = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");

var _invariant2 = _interopRequireDefault(_invariant);

var _isPlainObject = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");

var _isPlainObject2 = _interopRequireDefault(_isPlainObject);

var _getStringLabelKey = __webpack_require__(/*! ./getStringLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js");

var _getStringLabelKey2 = _interopRequireDefault(_getStringLabelKey);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Retrieves the display string from an option. Options can be the string
 * themselves, or an object with a defined display string. Anything else throws
 * an error.
 */
function getOptionLabel(option, labelKey) {
  if (option.paginationOption || option.customOption) {
    return option[(0, _getStringLabelKey2.default)(labelKey)];
  }

  var optionLabel = void 0;

  if (typeof option === 'string') {
    optionLabel = option;
  }

  if (typeof labelKey === 'function') {
    // This overwrites string options, but we assume the consumer wants to do
    // something custom if `labelKey` is a function.
    optionLabel = labelKey(option);
  } else if (typeof labelKey === 'string' && (0, _isPlainObject2.default)(option)) {
    optionLabel = option[labelKey];
  }

  !(typeof optionLabel === 'string') ?  true ? (0, _invariant2.default)(false, 'One or more options does not have a valid label string. Check the ' + '`labelKey` prop to ensure that it matches the correct option key and ' + 'provides a string for filtering and display.') : undefined : void 0;

  return optionLabel;
}

exports.default = getOptionLabel;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = getStringLabelKey;

var _defaultLabelKey = __webpack_require__(/*! ../constants/defaultLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/constants/defaultLabelKey.js");

function getStringLabelKey(labelKey) {
  return typeof labelKey === 'string' ? labelKey : _defaultLabelKey.DEFAULT_LABELKEY;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js ***!
  \*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Truncates the result set based on `maxResults` and returns the new set.
 */
function getTruncatedOptions(options, maxResults) {
  if (!maxResults || maxResults >= options.length) {
    return options;
  }

  return options.slice(0, maxResults);
}

exports.default = getTruncatedOptions;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/index.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/index.js ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.warn = exports.stripDiacritics = exports.scrollIntoViewIfNeeded = exports.preventInputBlur = exports.pluralize = exports.isShown = exports.getTruncatedOptions = exports.getStringLabelKey = exports.getOptionLabel = exports.getMenuItemId = exports.getMatchBounds = exports.getInputText = exports.getHintText = exports.getDisplayName = exports.getAccessibilityStatus = exports.defaultFilterBy = exports.addCustomOption = undefined;

var _addCustomOption2 = __webpack_require__(/*! ./addCustomOption */ "./node_modules/react-bootstrap-typeahead/lib/utils/addCustomOption.js");

var _addCustomOption3 = _interopRequireDefault(_addCustomOption2);

var _defaultFilterBy2 = __webpack_require__(/*! ./defaultFilterBy */ "./node_modules/react-bootstrap-typeahead/lib/utils/defaultFilterBy.js");

var _defaultFilterBy3 = _interopRequireDefault(_defaultFilterBy2);

var _getAccessibilityStatus2 = __webpack_require__(/*! ./getAccessibilityStatus */ "./node_modules/react-bootstrap-typeahead/lib/utils/getAccessibilityStatus.js");

var _getAccessibilityStatus3 = _interopRequireDefault(_getAccessibilityStatus2);

var _getDisplayName2 = __webpack_require__(/*! ./getDisplayName */ "./node_modules/react-bootstrap-typeahead/lib/utils/getDisplayName.js");

var _getDisplayName3 = _interopRequireDefault(_getDisplayName2);

var _getHintText2 = __webpack_require__(/*! ./getHintText */ "./node_modules/react-bootstrap-typeahead/lib/utils/getHintText.js");

var _getHintText3 = _interopRequireDefault(_getHintText2);

var _getInputText2 = __webpack_require__(/*! ./getInputText */ "./node_modules/react-bootstrap-typeahead/lib/utils/getInputText.js");

var _getInputText3 = _interopRequireDefault(_getInputText2);

var _getMatchBounds2 = __webpack_require__(/*! ./getMatchBounds */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMatchBounds.js");

var _getMatchBounds3 = _interopRequireDefault(_getMatchBounds2);

var _getMenuItemId2 = __webpack_require__(/*! ./getMenuItemId */ "./node_modules/react-bootstrap-typeahead/lib/utils/getMenuItemId.js");

var _getMenuItemId3 = _interopRequireDefault(_getMenuItemId2);

var _getOptionLabel2 = __webpack_require__(/*! ./getOptionLabel */ "./node_modules/react-bootstrap-typeahead/lib/utils/getOptionLabel.js");

var _getOptionLabel3 = _interopRequireDefault(_getOptionLabel2);

var _getStringLabelKey2 = __webpack_require__(/*! ./getStringLabelKey */ "./node_modules/react-bootstrap-typeahead/lib/utils/getStringLabelKey.js");

var _getStringLabelKey3 = _interopRequireDefault(_getStringLabelKey2);

var _getTruncatedOptions2 = __webpack_require__(/*! ./getTruncatedOptions */ "./node_modules/react-bootstrap-typeahead/lib/utils/getTruncatedOptions.js");

var _getTruncatedOptions3 = _interopRequireDefault(_getTruncatedOptions2);

var _isShown2 = __webpack_require__(/*! ./isShown */ "./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js");

var _isShown3 = _interopRequireDefault(_isShown2);

var _pluralize2 = __webpack_require__(/*! ./pluralize */ "./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js");

var _pluralize3 = _interopRequireDefault(_pluralize2);

var _preventInputBlur2 = __webpack_require__(/*! ./preventInputBlur */ "./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js");

var _preventInputBlur3 = _interopRequireDefault(_preventInputBlur2);

var _scrollIntoViewIfNeeded2 = __webpack_require__(/*! ./scrollIntoViewIfNeeded */ "./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js");

var _scrollIntoViewIfNeeded3 = _interopRequireDefault(_scrollIntoViewIfNeeded2);

var _stripDiacritics2 = __webpack_require__(/*! ./stripDiacritics */ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js");

var _stripDiacritics3 = _interopRequireDefault(_stripDiacritics2);

var _warn2 = __webpack_require__(/*! ./warn */ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js");

var _warn3 = _interopRequireDefault(_warn2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.addCustomOption = _addCustomOption3.default; /* eslint-disable object-curly-spacing */

exports.defaultFilterBy = _defaultFilterBy3.default;
exports.getAccessibilityStatus = _getAccessibilityStatus3.default;
exports.getDisplayName = _getDisplayName3.default;
exports.getHintText = _getHintText3.default;
exports.getInputText = _getInputText3.default;
exports.getMatchBounds = _getMatchBounds3.default;
exports.getMenuItemId = _getMenuItemId3.default;
exports.getOptionLabel = _getOptionLabel3.default;
exports.getStringLabelKey = _getStringLabelKey3.default;
exports.getTruncatedOptions = _getTruncatedOptions3.default;
exports.isShown = _isShown3.default;
exports.pluralize = _pluralize3.default;
exports.preventInputBlur = _preventInputBlur3.default;
exports.scrollIntoViewIfNeeded = _scrollIntoViewIfNeeded3.default;
exports.stripDiacritics = _stripDiacritics3.default;
exports.warn = _warn3.default;
/* eslint-enable object-curly-spacing */

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js":
/*!*********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/isShown.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = isShown;
function isShown(results, props) {
  var emptyLabel = props.emptyLabel,
      minLength = props.minLength,
      showMenu = props.showMenu,
      text = props.text;


  if (!showMenu) {
    return false;
  }

  if (text.length < minLength) {
    return false;
  }

  return !!(results.length || emptyLabel);
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/pluralize.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = pluralize;
/**
 * Basic util for pluralizing words. By default, simply adds an 's' to the word.
 * Also allows for a custom plural version.
 */
function pluralize(text, count, plural) {
  plural = plural || text + "s";
  return count === 1 ? "1 " + text : count + " " + plural;
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js":
/*!******************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/preventInputBlur.js ***!
  \******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = preventInputBlur;
/**
 * Prevent the main input from blurring when a menu item or the clear button is
 * clicked. (#226 & #310)
 */
function preventInputBlur(e) {
  e.preventDefault();
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/scrollIntoViewIfNeeded.js ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Partial polyfill for webkit `scrollIntoViewIfNeeded()` method. Addresses
 * vertical scrolling only.
 *
 * Inspired by https://gist.github.com/hsablonniere/2581101, but uses
 * `getBoundingClientRect`.
 */
function scrollIntoViewIfNeeded(node) {
  // Webkit browsers
  if (Element.prototype.scrollIntoViewIfNeeded) {
    node.scrollIntoViewIfNeeded();
    return;
  }

  // FF, IE, etc.
  var rect = node.getBoundingClientRect();
  var parent = node.parentNode;
  var parentRect = parent.getBoundingClientRect();

  var parentComputedStyle = window.getComputedStyle(parent, null);
  var parentBorderTopWidth = parseInt(parentComputedStyle.getPropertyValue('border-top-width'));

  if (rect.top < parentRect.top || rect.bottom > parentRect.bottom) {
    parent.scrollTop = node.offsetTop - parent.offsetTop - parent.clientHeight / 2 - parentBorderTopWidth + node.clientHeight / 2;
  }
}

exports.default = scrollIntoViewIfNeeded;

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/stripDiacritics.js ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = stripDiacritics;
/**
 * 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
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Taken from: http://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/18391901#18391901
 */

/* eslint-disable max-len */
var map = [{ 'base': 'A', 'letters': 'A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F' }, { 'base': 'AA', 'letters': '\uA732' }, { 'base': 'AE', 'letters': '\xC6\u01FC\u01E2' }, { 'base': 'AO', 'letters': '\uA734' }, { 'base': 'AU', 'letters': '\uA736' }, { 'base': 'AV', 'letters': '\uA738\uA73A' }, { 'base': 'AY', 'letters': '\uA73C' }, { 'base': 'B', 'letters': 'B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181' }, { 'base': 'C', 'letters': 'C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E' }, { 'base': 'D', 'letters': 'D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0' }, { 'base': 'DZ', 'letters': '\u01F1\u01C4' }, { 'base': 'Dz', 'letters': '\u01F2\u01C5' }, { 'base': 'E', 'letters': 'E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E' }, { 'base': 'F', 'letters': 'F\u24BB\uFF26\u1E1E\u0191\uA77B' }, { 'base': 'G', 'letters': 'G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E' }, { 'base': 'H', 'letters': 'H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D' }, { 'base': 'I', 'letters': 'I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197' }, { 'base': 'J', 'letters': 'J\u24BF\uFF2A\u0134\u0248' }, { 'base': 'K', 'letters': 'K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2' }, { 'base': 'L', 'letters': 'L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780' }, { 'base': 'LJ', 'letters': '\u01C7' }, { 'base': 'Lj', 'letters': '\u01C8' }, { 'base': 'M', 'letters': 'M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C' }, { 'base': 'N', 'letters': 'N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4' }, { 'base': 'NJ', 'letters': '\u01CA' }, { 'base': 'Nj', 'letters': '\u01CB' }, { 'base': 'O', 'letters': 'O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C' }, { 'base': 'OI', 'letters': '\u01A2' }, { 'base': 'OO', 'letters': '\uA74E' }, { 'base': 'OU', 'letters': '\u0222' }, { 'base': 'OE', 'letters': '\x8C\u0152' }, { 'base': 'oe', 'letters': '\x9C\u0153' }, { 'base': 'P', 'letters': 'P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754' }, { 'base': 'Q', 'letters': 'Q\u24C6\uFF31\uA756\uA758\u024A' }, { 'base': 'R', 'letters': 'R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782' }, { 'base': 'S', 'letters': 'S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784' }, { 'base': 'T', 'letters': 'T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786' }, { 'base': 'TZ', 'letters': '\uA728' }, { 'base': 'U', 'letters': 'U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244' }, { 'base': 'V', 'letters': 'V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245' }, { 'base': 'VY', 'letters': '\uA760' }, { 'base': 'W', 'letters': 'W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72' }, { 'base': 'X', 'letters': 'X\u24CD\uFF38\u1E8A\u1E8C' }, { 'base': 'Y', 'letters': 'Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE' }, { 'base': 'Z', 'letters': 'Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762' }, { 'base': 'a', 'letters': 'a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250' }, { 'base': 'aa', 'letters': '\uA733' }, { 'base': 'ae', 'letters': '\xE6\u01FD\u01E3' }, { 'base': 'ao', 'letters': '\uA735' }, { 'base': 'au', 'letters': '\uA737' }, { 'base': 'av', 'letters': '\uA739\uA73B' }, { 'base': 'ay', 'letters': '\uA73D' }, { 'base': 'b', 'letters': 'b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253' }, { 'base': 'c', 'letters': 'c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184' }, { 'base': 'd', 'letters': 'd\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A' }, { 'base': 'dz', 'letters': '\u01F3\u01C6' }, { 'base': 'e', 'letters': 'e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD' }, { 'base': 'f', 'letters': 'f\u24D5\uFF46\u1E1F\u0192\uA77C' }, { 'base': 'g', 'letters': 'g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F' }, { 'base': 'h', 'letters': 'h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265' }, { 'base': 'hv', 'letters': '\u0195' }, { 'base': 'i', 'letters': 'i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131' }, { 'base': 'j', 'letters': 'j\u24D9\uFF4A\u0135\u01F0\u0249' }, { 'base': 'k', 'letters': 'k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3' }, { 'base': 'l', 'letters': 'l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747' }, { 'base': 'lj', 'letters': '\u01C9' }, { 'base': 'm', 'letters': 'm\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F' }, { 'base': 'n', 'letters': 'n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5' }, { 'base': 'nj', 'letters': '\u01CC' }, { 'base': 'o', 'letters': 'o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275' }, { 'base': 'oi', 'letters': '\u01A3' }, { 'base': 'ou', 'letters': '\u0223' }, { 'base': 'oo', 'letters': '\uA74F' }, { 'base': 'p', 'letters': 'p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755' }, { 'base': 'q', 'letters': 'q\u24E0\uFF51\u024B\uA757\uA759' }, { 'base': 'r', 'letters': 'r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783' }, { 'base': 's', 'letters': 's\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B' }, { 'base': 't', 'letters': 't\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787' }, { 'base': 'tz', 'letters': '\uA729' }, { 'base': 'u', 'letters': 'u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289' }, { 'base': 'v', 'letters': 'v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C' }, { 'base': 'vy', 'letters': '\uA761' }, { 'base': 'w', 'letters': 'w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73' }, { 'base': 'x', 'letters': 'x\u24E7\uFF58\u1E8B\u1E8D' }, { 'base': 'y', 'letters': 'y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF' }, { 'base': 'z', 'letters': 'z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763' }];
/* eslint-enable max-len */

var diacriticsMap = {};
for (var ii = 0; ii < map.length; ii++) {
  var letters = map[ii].letters;
  for (var jj = 0; jj < letters.length; jj++) {
    diacriticsMap[letters[jj]] = map[ii].base;
  }
}

// "what?" version ... http://jsperf.com/diacritics/12
function stripDiacritics(str) {
  return str.replace(/[\u0300-\u036F]/g, '') // Remove combining diacritics
  /* eslint-disable-next-line no-control-regex */
  .replace(/[^\u0000-\u007E]/g, function (a) {
    return diacriticsMap[a] || a;
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/lib/utils/warn.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/lib/utils/warn.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = warn;
exports._resetWarned = _resetWarned;

var _warning = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js");

var _warning2 = _interopRequireDefault(_warning);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var warned = {}; /**
                  * This code is copied from: https://github.com/ReactTraining/react-router/blob/master/modules/routerWarning.js
                  */

function warn(falseToWarn, message) {
  // Only issue deprecation warnings once.
  if (!falseToWarn && message.indexOf('deprecated') !== -1) {
    if (warned[message]) {
      return;
    }
    warned[message] = true;
  }

  message = '[react-bootstrap-typeahead] ' + message;

  for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
    args[_key - 2] = arguments[_key];
  }

  _warning2.default.apply(undefined, [falseToWarn, message].concat(args));
}

function _resetWarned() {
  warned = {};
}

/***/ }),

/***/ "./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap-typeahead/node_modules/warning/warning.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (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__ = "development" !== '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;


/***/ }),

/***/ "./node_modules/react-bootstrap/esm/AbstractNav.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/AbstractNav.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-helpers/querySelectorAll */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/querySelectorAll.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useForceUpdate */ "./node_modules/@restart/hooks/esm/useForceUpdate.js");
/* harmony import */ var _restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/useMergedRefs */ "./node_modules/@restart/hooks/esm/useMergedRefs.js");
/* harmony import */ var _NavContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavContext */ "./node_modules/react-bootstrap/esm/NavContext.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _TabContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TabContext */ "./node_modules/react-bootstrap/esm/TabContext.js");










var noop = function noop() {};

var AbstractNav = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'ul' : _ref$as,
      onSelect = _ref.onSelect,
      activeKey = _ref.activeKey,
      role = _ref.role,
      onKeyDown = _ref.onKeyDown,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);

  // A ref and forceUpdate for refocus, b/c we only want to trigger when needed
  // and don't want to reset the set in the effect
  var forceUpdate = Object(_restart_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_4__["default"])();
  var needsRefocusRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
  var parentOnSelect = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["default"]);
  var tabContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_TabContext__WEBPACK_IMPORTED_MODULE_8__["default"]);
  var getControlledId, getControllerId;

  if (tabContext) {
    role = role || 'tablist';
    activeKey = tabContext.activeKey;
    getControlledId = tabContext.getControlledId;
    getControllerId = tabContext.getControllerId;
  }

  var listNode = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);

  var getNextActiveChild = function getNextActiveChild(offset) {
    if (!listNode.current) return null;
    var items = Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(listNode.current, '[data-rb-event-key]:not(.disabled)');
    var activeChild = listNode.current.querySelector('.active');
    var index = items.indexOf(activeChild);
    if (index === -1) return null;
    var nextIndex = index + offset;
    if (nextIndex >= items.length) nextIndex = 0;
    if (nextIndex < 0) nextIndex = items.length - 1;
    return items[nextIndex];
  };

  var handleSelect = function handleSelect(key, event) {
    if (key == null) return;
    if (onSelect) onSelect(key, event);
    if (parentOnSelect) parentOnSelect(key, event);
  };

  var handleKeyDown = function handleKeyDown(event) {
    if (onKeyDown) onKeyDown(event);
    var nextActiveChild;

    switch (event.key) {
      case 'ArrowLeft':
      case 'ArrowUp':
        nextActiveChild = getNextActiveChild(-1);
        break;

      case 'ArrowRight':
      case 'ArrowDown':
        nextActiveChild = getNextActiveChild(1);
        break;

      default:
        return;
    }

    if (!nextActiveChild) return;
    event.preventDefault();
    handleSelect(nextActiveChild.dataset.rbEventKey, event);
    needsRefocusRef.current = true;
    forceUpdate();
  };

  Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
    if (listNode.current && needsRefocusRef.current) {
      var activeChild = listNode.current.querySelector('[data-rb-event-key].active');
      if (activeChild) activeChild.focus();
    }

    needsRefocusRef.current = false;
  });
  var mergedRef = Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_5__["default"])(ref, listNode);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["default"].Provider, {
    value: handleSelect
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_NavContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
    value: {
      role: role,
      // used by NavLink to determine it's role
      activeKey: Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["makeEventKey"])(activeKey),
      getControlledId: getControlledId || noop,
      getControllerId: getControllerId || noop
    }
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    onKeyDown: handleKeyDown,
    ref: mergedRef,
    role: role
  }))));
});
/* harmony default export */ __webpack_exports__["default"] = (AbstractNav);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/AbstractNavItem.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/AbstractNavItem.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _NavContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavContext */ "./node_modules/react-bootstrap/esm/NavContext.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");








var defaultProps = {
  disabled: false
};
var AbstractNavItem = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var active = _ref.active,
      className = _ref.className,
      tabIndex = _ref.tabIndex,
      eventKey = _ref.eventKey,
      onSelect = _ref.onSelect,
      onClick = _ref.onClick,
      Component = _ref.as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["active", "className", "tabIndex", "eventKey", "onSelect", "onClick", "as"]);

  var navKey = Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["makeEventKey"])(eventKey, props.href);
  var parentOnSelect = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["default"]);
  var navContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_NavContext__WEBPACK_IMPORTED_MODULE_6__["default"]);
  var isActive = active;

  if (navContext) {
    if (!props.role && navContext.role === 'tablist') props.role = 'tab';
    var contextControllerId = navContext.getControllerId(navKey);
    var contextControlledId = navContext.getControlledId(navKey);
     true ? warning__WEBPACK_IMPORTED_MODULE_5___default()(!contextControllerId || !props.id, "[react-bootstrap] The provided id '" + props.id + "' was overwritten by the current navContext with '" + contextControllerId + "'.") : undefined;
     true ? warning__WEBPACK_IMPORTED_MODULE_5___default()(!contextControlledId || !props['aria-controls'], "[react-bootstrap] The provided aria-controls value '" + props['aria-controls'] + "' was overwritten by the current navContext with '" + contextControlledId + "'.") : undefined;
    props['data-rb-event-key'] = navKey;
    props.id = contextControllerId || props.id;
    props['aria-controls'] = contextControlledId || props['aria-controls'];
    isActive = active == null && navKey != null ? navContext.activeKey === navKey : active;
  }

  if (props.role === 'tab') {
    props.tabIndex = isActive ? tabIndex : -1;
    props['aria-selected'] = isActive;
  }

  var handleOnclick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__["default"])(function (e) {
    if (onClick) onClick(e);
    if (navKey == null) return;
    if (onSelect) onSelect(navKey, e);
    if (parentOnSelect) parentOnSelect(navKey, e);
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    onClick: handleOnclick,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, isActive && 'active')
  }));
});
AbstractNavItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (AbstractNavItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Accordion.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Accordion.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _AccordionToggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AccordionToggle */ "./node_modules/react-bootstrap/esm/AccordionToggle.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _AccordionCollapse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AccordionCollapse */ "./node_modules/react-bootstrap/esm/AccordionCollapse.js");
/* harmony import */ var _AccordionContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AccordionContext */ "./node_modules/react-bootstrap/esm/AccordionContext.js");










var Accordion = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])(props, {
    activeKey: 'onSelect'
  }),
      _useUncontrolled$as = _useUncontrolled.as,
      Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
      activeKey = _useUncontrolled.activeKey,
      bsPrefix = _useUncontrolled.bsPrefix,
      children = _useUncontrolled.children,
      className = _useUncontrolled.className,
      onSelect = _useUncontrolled.onSelect,
      controlledProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'accordion');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AccordionContext__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, {
    value: activeKey
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_7__["default"].Provider, {
    value: onSelect
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, controlledProps, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children)));
});
Accordion.Toggle = _AccordionToggle__WEBPACK_IMPORTED_MODULE_6__["default"];
Accordion.Collapse = _AccordionCollapse__WEBPACK_IMPORTED_MODULE_8__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Accordion);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/AccordionCollapse.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/AccordionCollapse.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Collapse */ "./node_modules/react-bootstrap/esm/Collapse.js");
/* harmony import */ var _AccordionContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AccordionContext */ "./node_modules/react-bootstrap/esm/AccordionContext.js");





var AccordionCollapse = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var children = _ref.children,
      eventKey = _ref.eventKey,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["children", "eventKey"]);

  var contextEventKey = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_AccordionContext__WEBPACK_IMPORTED_MODULE_4__["default"]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Collapse__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    in: contextEventKey === eventKey
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children)));
});
AccordionCollapse.displayName = 'AccordionCollapse';
/* harmony default export */ __webpack_exports__["default"] = (AccordionCollapse);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/AccordionContext.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/AccordionContext.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/AccordionToggle.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/AccordionToggle.js ***!
  \*************************************************************/
/*! exports provided: useAccordionToggle, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useAccordionToggle", function() { return useAccordionToggle; });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _AccordionContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AccordionContext */ "./node_modules/react-bootstrap/esm/AccordionContext.js");





function useAccordionToggle(eventKey, onClick) {
  var contextEventKey = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_AccordionContext__WEBPACK_IMPORTED_MODULE_4__["default"]);
  var onSelect = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_SelectableContext__WEBPACK_IMPORTED_MODULE_3__["default"]);
  return function (e) {
    /*
      Compare the event key in context with the given event key.
      If they are the same, then collapse the component.
    */
    var eventKeyPassed = eventKey === contextEventKey ? null : eventKey;
    onSelect(eventKeyPassed, e);
    if (onClick) onClick(e);
  };
}
var AccordionToggle = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'button' : _ref$as,
      children = _ref.children,
      eventKey = _ref.eventKey,
      onClick = _ref.onClick,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "children", "eventKey", "onClick"]);

  var accordionOnClick = useAccordionToggle(eventKey, onClick);

  if (Component === 'button') {
    props.type = 'button';
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    onClick: accordionOnClick
  }, props), children);
});
/* harmony default export */ __webpack_exports__["default"] = (AccordionToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Alert.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Alert.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _divWithClassName__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./divWithClassName */ "./node_modules/react-bootstrap/esm/divWithClassName.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");
/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/react-bootstrap/esm/CloseButton.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");












var defaultProps = {
  show: true,
  transition: _Fade__WEBPACK_IMPORTED_MODULE_9__["default"],
  closeLabel: 'Close alert'
};
var controllables = {
  show: 'onClose'
};
var Alert = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (uncontrolledProps, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])(uncontrolledProps, controllables),
      bsPrefix = _useUncontrolled.bsPrefix,
      show = _useUncontrolled.show,
      closeLabel = _useUncontrolled.closeLabel,
      className = _useUncontrolled.className,
      children = _useUncontrolled.children,
      variant = _useUncontrolled.variant,
      onClose = _useUncontrolled.onClose,
      dismissible = _useUncontrolled.dismissible,
      Transition = _useUncontrolled.transition,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_8__["useBootstrapPrefix"])(bsPrefix, 'alert');
  var handleClose = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_5__["default"])(function (e) {
    onClose(false, e);
  });
  var alert = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    role: "alert"
  }, Transition ? props : undefined, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
  }), dismissible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_CloseButton__WEBPACK_IMPORTED_MODULE_10__["default"], {
    onClick: handleClose,
    label: closeLabel
  }), children);
  if (!Transition) return show ? alert : null;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Transition, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    unmountOnExit: true
  }, props, {
    in: show
  }), alert);
});
var DivStyledAsH4 = Object(_divWithClassName__WEBPACK_IMPORTED_MODULE_7__["default"])('h4');
DivStyledAsH4.displayName = 'DivStyledAsH4';
Alert.displayName = 'Alert';
Alert.defaultProps = defaultProps;
Alert.Link = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_6__["default"])('alert-link', {
  Component: _SafeAnchor__WEBPACK_IMPORTED_MODULE_11__["default"]
});
Alert.Heading = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_6__["default"])('alert-heading', {
  Component: DivStyledAsH4
});
/* harmony default export */ __webpack_exports__["default"] = (Alert);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Badge.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Badge.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  pill: false
};
var Badge = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      variant = _ref.variant,
      pill = _ref.pill,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'span' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'badge');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
  }));
});
Badge.displayName = 'Badge';
Badge.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Badge);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/BootstrapModalManager.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/BootstrapModalManager.js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return BootstrapModalManager; });
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var dom_helpers_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/css */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js");
/* harmony import */ var dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-helpers/querySelectorAll */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/querySelectorAll.js");
/* harmony import */ var dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/scrollbarSize */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/scrollbarSize.js");
/* harmony import */ var react_overlays_ModalManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-overlays/ModalManager */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/ModalManager.js");





var Selector = {
  FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
  STICKY_CONTENT: '.sticky-top',
  NAVBAR_TOGGLER: '.navbar-toggler'
};

var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(BootstrapModalManager, _ModalManager);

  function BootstrapModalManager() {
    var _this;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _ModalManager.call.apply(_ModalManager, [this].concat(args)) || this;

    _this.adjustAndStore = function (prop, element, adjust) {
      var _css;

      var actual = element.style[prop];
      element.dataset[prop] = actual;
      Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_1__["default"])(element, (_css = {}, _css[prop] = parseFloat(Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_1__["default"])(element, prop)) + adjust + "px", _css));
    };

    _this.restore = function (prop, element) {
      var value = element.dataset[prop];

      if (value !== undefined) {
        var _css2;

        delete element.dataset[prop];
        Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_1__["default"])(element, (_css2 = {}, _css2[prop] = value, _css2));
      }
    };

    return _this;
  }

  var _proto = BootstrapModalManager.prototype;

  _proto.setContainerStyle = function setContainerStyle(containerState, container) {
    var _this2 = this;

    _ModalManager.prototype.setContainerStyle.call(this, containerState, container);

    if (!containerState.overflowing) return;
    var size = Object(dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_3__["default"])();
    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.FIXED_CONTENT).forEach(function (el) {
      return _this2.adjustAndStore('paddingRight', el, size);
    });
    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.STICKY_CONTENT).forEach(function (el) {
      return _this2.adjustAndStore('margingRight', el, -size);
    });
    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {
      return _this2.adjustAndStore('margingRight', el, size);
    });
  };

  _proto.removeContainerStyle = function removeContainerStyle(containerState, container) {
    var _this3 = this;

    _ModalManager.prototype.removeContainerStyle.call(this, containerState, container);

    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.FIXED_CONTENT).forEach(function (el) {
      return _this3.restore('paddingRight', el);
    });
    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.STICKY_CONTENT).forEach(function (el) {
      return _this3.restore('margingRight', el);
    });
    Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_2__["default"])(container, Selector.NAVBAR_TOGGLER).forEach(function (el) {
      return _this3.restore('margingRight', el);
    });
  };

  return BootstrapModalManager;
}(react_overlays_ModalManager__WEBPACK_IMPORTED_MODULE_4__["default"]);



/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Breadcrumb.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Breadcrumb.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/react-bootstrap/esm/BreadcrumbItem.js");






var defaultProps = {
  label: 'breadcrumb',
  listProps: {}
};
var Breadcrumb = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      listProps = _ref.listProps,
      children = _ref.children,
      label = _ref.label,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'nav' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'breadcrumb');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    "aria-label": label,
    className: className,
    ref: ref
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("ol", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, listProps, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefix, listProps.className)
  }), children));
});
Breadcrumb.displayName = 'Breadcrumb';
Breadcrumb.defaultProps = defaultProps;
Breadcrumb.Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_5__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Breadcrumb);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/BreadcrumbItem.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/BreadcrumbItem.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var defaultProps = {
  active: false,
  linkProps: {}
};
var BreadcrumbItem = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      active = _ref.active,
      children = _ref.children,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'li' : _ref$as,
      _ref$linkAs = _ref.linkAs,
      LinkComponent = _ref$linkAs === void 0 ? _SafeAnchor__WEBPACK_IMPORTED_MODULE_4__["default"] : _ref$linkAs,
      linkProps = _ref.linkProps,
      href = _ref.href,
      title = _ref.title,
      target = _ref.target,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'breadcrumb-item');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefix, className, {
      active: active
    }),
    "aria-current": active ? 'page' : undefined
  }), active ? children : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(LinkComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, linkProps, {
    href: href,
    title: title,
    target: target
  }), children));
});
BreadcrumbItem.displayName = 'BreadcrumbItem';
BreadcrumbItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (BreadcrumbItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Button.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Button.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");






var defaultProps = {
  variant: 'primary',
  active: false,
  disabled: false,
  type: 'button'
};
var Button = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      variant = _ref.variant,
      size = _ref.size,
      active = _ref.active,
      className = _ref.className,
      block = _ref.block,
      type = _ref.type,
      as = _ref.as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'btn');
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);

  if (props.href) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      as: as,
      ref: ref,
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(classes, props.disabled && 'disabled')
    }));
  }

  if (ref) {
    props.ref = ref;
  }

  if (!as) {
    props.type = type;
  }

  var Component = as || 'button';
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    className: classes
  }));
});
Button.displayName = 'Button';
Button.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Button);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ButtonGroup.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ButtonGroup.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  vertical: false,
  toggle: false,
  role: 'group'
};
var ButtonGroup = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
  var bsPrefix = props.bsPrefix,
      size = props.size,
      toggle = props.toggle,
      vertical = props.vertical,
      className = props.className,
      _props$as = props.as,
      Component = _props$as === void 0 ? 'div' : _props$as,
      rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'btn-group');
  var baseClass = prefix;
  if (vertical) baseClass = prefix + "-vertical";
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rest, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
  }));
});
ButtonGroup.displayName = 'ButtonGroup';
ButtonGroup.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ButtonGroup);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ButtonToolbar.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ButtonToolbar.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  role: 'toolbar'
};
var ButtonToolbar = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'btn-toolbar');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix)
  }));
});
ButtonToolbar.displayName = 'ButtonToolbar';
ButtonToolbar.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ButtonToolbar);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Card.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Card.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _divWithClassName__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./divWithClassName */ "./node_modules/react-bootstrap/esm/divWithClassName.js");
/* harmony import */ var _CardContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CardContext */ "./node_modules/react-bootstrap/esm/CardContext.js");
/* harmony import */ var _CardImg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardImg */ "./node_modules/react-bootstrap/esm/CardImg.js");









var DivStyledAsH5 = Object(_divWithClassName__WEBPACK_IMPORTED_MODULE_6__["default"])('h5');
var DivStyledAsH6 = Object(_divWithClassName__WEBPACK_IMPORTED_MODULE_6__["default"])('h6');
var CardBody = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-body');
var defaultProps = {
  body: false
};
var Card = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      bg = _ref.bg,
      text = _ref.text,
      border = _ref.border,
      body = _ref.body,
      children = _ref.children,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'card');
  var cardContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
    return {
      cardHeaderBsPrefix: prefix + "-header"
    };
  }, [prefix]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_CardContext__WEBPACK_IMPORTED_MODULE_7__["default"].Provider, {
    value: cardContext
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
  }), body ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(CardBody, null, children) : children));
});
Card.displayName = 'Card';
Card.defaultProps = defaultProps;
Card.Img = _CardImg__WEBPACK_IMPORTED_MODULE_8__["default"];
Card.Title = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-title', {
  Component: DivStyledAsH5
});
Card.Subtitle = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-subtitle', {
  Component: DivStyledAsH6
});
Card.Body = CardBody;
Card.Link = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-link', {
  Component: 'a'
});
Card.Text = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-text', {
  Component: 'p'
});
Card.Header = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-header');
Card.Footer = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-footer');
Card.ImgOverlay = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('card-img-overlay');
/* harmony default export */ __webpack_exports__["default"] = (Card);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CardColumns.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CardColumns.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('card-columns'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CardContext.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CardContext.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CardDeck.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CardDeck.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('card-deck'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CardGroup.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CardGroup.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('card-group'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CardImg.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CardImg.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  variant: null
};
var CardImg = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      variant = _ref.variant,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'img' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "variant", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'card-img');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(variant ? prefix + "-" + variant : prefix, className)
  }, props));
});
CardImg.displayName = 'CardImg';
CardImg.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (CardImg);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Carousel.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Carousel.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _restart_hooks_useUpdateEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @restart/hooks/useUpdateEffect */ "./node_modules/@restart/hooks/esm/useUpdateEffect.js");
/* harmony import */ var _restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useTimeout */ "./node_modules/@restart/hooks/esm/useTimeout.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/transitionEnd */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/transitionEnd.js");
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/Transition.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _CarouselCaption__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CarouselCaption */ "./node_modules/react-bootstrap/esm/CarouselCaption.js");
/* harmony import */ var _CarouselItem__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CarouselItem */ "./node_modules/react-bootstrap/esm/CarouselItem.js");
/* harmony import */ var _ElementChildren__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ElementChildren */ "./node_modules/react-bootstrap/esm/ElementChildren.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./triggerBrowserReflow */ "./node_modules/react-bootstrap/esm/triggerBrowserReflow.js");
















var SWIPE_THRESHOLD = 40;
var defaultProps = {
  slide: true,
  fade: false,
  controls: true,
  indicators: true,
  defaultActiveIndex: 0,
  interval: 5000,
  keyboard: true,
  pause: 'hover',
  wrap: true,
  touch: true,
  prevIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
    "aria-hidden": "true",
    className: "carousel-control-prev-icon"
  }),
  prevLabel: 'Previous',
  nextIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
    "aria-hidden": "true",
    className: "carousel-control-next-icon"
  }),
  nextLabel: 'Next'
};

function isVisible(element) {
  if (!element || !element.style || !element.parentNode || !element.parentNode.style) {
    return false;
  }

  var elementStyle = getComputedStyle(element);
  return elementStyle.display !== 'none' && elementStyle.visibility !== 'hidden' && getComputedStyle(element.parentNode).display !== 'none';
}

var Carousel = react__WEBPACK_IMPORTED_MODULE_8___default.a.forwardRef(function (uncontrolledProps, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_9__["useUncontrolled"])(uncontrolledProps, {
    activeIndex: 'onSelect'
  }),
      _useUncontrolled$as = _useUncontrolled.as,
      Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
      bsPrefix = _useUncontrolled.bsPrefix,
      slide = _useUncontrolled.slide,
      fade = _useUncontrolled.fade,
      controls = _useUncontrolled.controls,
      indicators = _useUncontrolled.indicators,
      activeIndex = _useUncontrolled.activeIndex,
      onSelect = _useUncontrolled.onSelect,
      onSlide = _useUncontrolled.onSlide,
      onSlid = _useUncontrolled.onSlid,
      interval = _useUncontrolled.interval,
      keyboard = _useUncontrolled.keyboard,
      onKeyDown = _useUncontrolled.onKeyDown,
      pause = _useUncontrolled.pause,
      onMouseOver = _useUncontrolled.onMouseOver,
      onMouseOut = _useUncontrolled.onMouseOut,
      wrap = _useUncontrolled.wrap,
      touch = _useUncontrolled.touch,
      onTouchStart = _useUncontrolled.onTouchStart,
      onTouchMove = _useUncontrolled.onTouchMove,
      onTouchEnd = _useUncontrolled.onTouchEnd,
      prevIcon = _useUncontrolled.prevIcon,
      prevLabel = _useUncontrolled.prevLabel,
      nextIcon = _useUncontrolled.nextIcon,
      nextLabel = _useUncontrolled.nextLabel,
      className = _useUncontrolled.className,
      children = _useUncontrolled.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_14__["useBootstrapPrefix"])(bsPrefix, 'carousel');
  var nextDirectionRef = Object(react__WEBPACK_IMPORTED_MODULE_8__["useRef"])(null);

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_8__["useState"])('next'),
      direction = _useState[0],
      setDirection = _useState[1];

  var _useState2 = Object(react__WEBPACK_IMPORTED_MODULE_8__["useState"])(false),
      isSliding = _useState2[0],
      setIsSliding = _useState2[1];

  var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_8__["useState"])(activeIndex),
      renderedActiveIndex = _useState3[0],
      setRenderedActiveIndex = _useState3[1];

  if (!isSliding && activeIndex !== renderedActiveIndex) {
    if (nextDirectionRef.current) {
      setDirection(nextDirectionRef.current);
      nextDirectionRef.current = null;
    } else {
      setDirection(activeIndex > renderedActiveIndex ? 'next' : 'prev');
    }

    if (slide) {
      setIsSliding(true);
    }

    setRenderedActiveIndex(activeIndex);
  }

  var numChildren = react__WEBPACK_IMPORTED_MODULE_8___default.a.Children.toArray(children).filter(react__WEBPACK_IMPORTED_MODULE_8___default.a.isValidElement).length;
  var prev = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    if (isSliding) {
      return;
    }

    var nextActiveIndex = renderedActiveIndex - 1;

    if (nextActiveIndex < 0) {
      if (!wrap) {
        return;
      }

      nextActiveIndex = numChildren - 1;
    }

    nextDirectionRef.current = 'prev';
    onSelect(nextActiveIndex, event);
  }, [isSliding, renderedActiveIndex, onSelect, wrap, numChildren]); // This is used in the setInterval, so it should not invalidate.

  var next = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_2__["default"])(function (event) {
    if (isSliding) {
      return;
    }

    var nextActiveIndex = renderedActiveIndex + 1;

    if (nextActiveIndex >= numChildren) {
      if (!wrap) {
        return;
      }

      nextActiveIndex = 0;
    }

    nextDirectionRef.current = 'next';
    onSelect(nextActiveIndex, event);
  });
  var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_8__["useRef"])();
  Object(react__WEBPACK_IMPORTED_MODULE_8__["useImperativeHandle"])(ref, function () {
    return {
      element: elementRef.current,
      prev: prev,
      next: next
    };
  }); // This is used in the setInterval, so it should not invalidate.

  var nextWhenVisible = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_2__["default"])(function () {
    if (!document.hidden && isVisible(elementRef.current)) {
      next();
    }
  });
  var slideDirection = direction === 'next' ? 'left' : 'right';
  Object(_restart_hooks_useUpdateEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
    if (slide) {
      // These callbacks will be handled by the <Transition> callbacks.
      return;
    }

    if (onSlide) {
      onSlide(renderedActiveIndex, slideDirection);
    }

    if (onSlid) {
      onSlid(renderedActiveIndex, slideDirection);
    }
  }, [renderedActiveIndex]);
  var orderClassName = prefix + "-item-" + direction;
  var directionalClassName = prefix + "-item-" + slideDirection;
  var handleEnter = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (node) {
    Object(_triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_15__["default"])(node);

    if (onSlide) {
      onSlide(renderedActiveIndex, slideDirection);
    }
  }, [onSlide, renderedActiveIndex, slideDirection]);
  var handleEntered = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function () {
    setIsSliding(false);

    if (onSlid) {
      onSlid(renderedActiveIndex, slideDirection);
    }
  }, [onSlid, renderedActiveIndex, slideDirection]);
  var handleKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    if (keyboard && !/input|textarea/i.test(event.target.tagName)) {
      switch (event.key) {
        case 'ArrowLeft':
          event.preventDefault();
          prev(event);
          return;

        case 'ArrowRight':
          event.preventDefault();
          next(event);
          return;

        default:
      }
    }

    if (onKeyDown) {
      onKeyDown(event);
    }
  }, [keyboard, onKeyDown, prev, next]);

  var _useState4 = Object(react__WEBPACK_IMPORTED_MODULE_8__["useState"])(false),
      pausedOnHover = _useState4[0],
      setPausedOnHover = _useState4[1];

  var handleMouseOver = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    if (pause === 'hover') {
      setPausedOnHover(true);
    }

    if (onMouseOver) {
      onMouseOver(event);
    }
  }, [pause, onMouseOver]);
  var handleMouseOut = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    setPausedOnHover(false);

    if (onMouseOut) {
      onMouseOut(event);
    }
  }, [onMouseOut]);
  var touchStartXRef = Object(react__WEBPACK_IMPORTED_MODULE_8__["useRef"])(0);
  var touchDeltaXRef = Object(react__WEBPACK_IMPORTED_MODULE_8__["useRef"])(0);

  var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_8__["useState"])(false),
      pausedOnTouch = _useState5[0],
      setPausedOnTouch = _useState5[1];

  var touchUnpauseTimeout = Object(_restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_4__["default"])();
  var handleTouchStart = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    touchStartXRef.current = event.touches[0].clientX;
    touchDeltaXRef.current = 0;

    if (touch) {
      setPausedOnTouch(true);
    }

    if (onTouchStart) {
      onTouchStart(event);
    }
  }, [touch, onTouchStart]);
  var handleTouchMove = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    if (event.touches && event.touches.length > 1) {
      touchDeltaXRef.current = 0;
    } else {
      touchDeltaXRef.current = event.touches[0].clientX - touchStartXRef.current;
    }

    if (onTouchMove) {
      onTouchMove(event);
    }
  }, [onTouchMove]);
  var handleTouchEnd = Object(react__WEBPACK_IMPORTED_MODULE_8__["useCallback"])(function (event) {
    if (touch) {
      var touchDeltaX = touchDeltaXRef.current;

      if (Math.abs(touchDeltaX) <= SWIPE_THRESHOLD) {
        return;
      }

      if (touchDeltaX > 0) {
        prev(event);
      } else {
        next(event);
      }
    }

    touchUnpauseTimeout.set(function () {
      setPausedOnTouch(false);
    }, interval);

    if (onTouchEnd) {
      onTouchEnd(event);
    }
  }, [touch, prev, next, touchUnpauseTimeout, interval, onTouchEnd]);
  var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
  var intervalHandleRef = Object(react__WEBPACK_IMPORTED_MODULE_8__["useRef"])();
  Object(react__WEBPACK_IMPORTED_MODULE_8__["useEffect"])(function () {
    if (!shouldPlay) {
      return undefined;
    }

    intervalHandleRef.current = setInterval(document.visibilityState ? nextWhenVisible : next, interval);
    return function () {
      clearInterval(intervalHandleRef.current);
    };
  }, [shouldPlay, next, interval, nextWhenVisible]);
  var indicatorOnClicks = Object(react__WEBPACK_IMPORTED_MODULE_8__["useMemo"])(function () {
    return indicators && Array.from({
      length: numChildren
    }, function (_, index) {
      return function (event) {
        onSelect(index, event);
      };
    });
  }, [indicators, numChildren, onSelect]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: elementRef
  }, props, {
    onKeyDown: handleKeyDown,
    onMouseOver: handleMouseOver,
    onMouseOut: handleMouseOut,
    onTouchStart: handleTouchStart,
    onTouchMove: handleTouchMove,
    onTouchEnd: handleTouchEnd,
    className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, prefix, slide && 'slide', fade && prefix + "-fade")
  }), indicators && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("ol", {
    className: prefix + "-indicators"
  }, Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_12__["map"])(children, function (child, index) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("li", {
      key: index,
      className: index === renderedActiveIndex ? 'active' : null,
      onClick: indicatorOnClicks[index]
    });
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div", {
    className: prefix + "-inner"
  }, Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_12__["map"])(children, function (child, index) {
    var isActive = index === renderedActiveIndex;
    return slide ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["default"], {
      in: isActive,
      onEnter: isActive ? handleEnter : null,
      onEntered: isActive ? handleEntered : null,
      addEndListener: dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_6__["default"]
    }, function (status) {
      return react__WEBPACK_IMPORTED_MODULE_8___default.a.cloneElement(child, {
        className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
      });
    }) : react__WEBPACK_IMPORTED_MODULE_8___default.a.cloneElement(child, {
      className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(child.props.className, isActive && 'active')
    });
  })), controls && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_8___default.a.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_13__["default"], {
    className: prefix + "-control-prev",
    onClick: prev
  }, prevIcon, prevLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
    className: "sr-only"
  }, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_SafeAnchor__WEBPACK_IMPORTED_MODULE_13__["default"], {
    className: prefix + "-control-next",
    onClick: next
  }, nextIcon, nextLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
    className: "sr-only"
  }, nextLabel))));
});
Carousel.displayName = 'Carousel';
Carousel.defaultProps = defaultProps;
Carousel.Caption = _CarouselCaption__WEBPACK_IMPORTED_MODULE_10__["default"];
Carousel.Item = _CarouselItem__WEBPACK_IMPORTED_MODULE_11__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Carousel);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CarouselCaption.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CarouselCaption.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('carousel-caption', {
  Component: 'div'
}));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CarouselItem.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CarouselItem.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('carousel-item'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/CloseButton.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/CloseButton.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);





var propTypes = {
  label: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string.isRequired,
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
var defaultProps = {
  label: 'Close'
};
var CloseButton = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var label = _ref.label,
      onClick = _ref.onClick,
      className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["label", "onClick", "className"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("button", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    type: "button",
    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('close', className),
    onClick: onClick
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
    "aria-hidden": "true"
  }, "\xD7"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
    className: "sr-only"
  }, label));
});
CloseButton.displayName = 'CloseButton';
CloseButton.propTypes = propTypes;
CloseButton.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (CloseButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Col.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Col.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
var Col = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'col');
  var spans = [];
  var classes = [];
  DEVICE_SIZES.forEach(function (brkPoint) {
    var propValue = props[brkPoint];
    delete props[brkPoint];
    var span, offset, order;

    if (propValue != null && typeof propValue === 'object') {
      var _propValue$span = propValue.span;
      span = _propValue$span === void 0 ? true : _propValue$span;
      offset = propValue.offset;
      order = propValue.order;
    } else {
      span = propValue;
    }

    var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
    if (span != null) spans.push(span === true ? "" + prefix + infix : "" + prefix + infix + "-" + span);
    if (order != null) classes.push("order" + infix + "-" + order);
    if (offset != null) classes.push("offset" + infix + "-" + offset);
  });

  if (!spans.length) {
    spans.push(prefix); // plain 'col'
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default.a.apply(void 0, [className].concat(spans, classes))
  }));
});
Col.displayName = 'Col';
/* harmony default export */ __webpack_exports__["default"] = (Col);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Collapse.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Collapse.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var dom_helpers_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-helpers/css */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js");
/* harmony import */ var dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/transitionEnd */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/transitionEnd.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/Transition.js");
/* harmony import */ var _createChainedFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./createChainedFunction */ "./node_modules/react-bootstrap/esm/createChainedFunction.js");
/* harmony import */ var _triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./triggerBrowserReflow */ "./node_modules/react-bootstrap/esm/triggerBrowserReflow.js");




var _collapseStyles;








var MARGINS = {
  height: ['marginTop', 'marginBottom'],
  width: ['marginLeft', 'marginRight']
};

function getDimensionValue(dimension, elem) {
  var offset = "offset" + dimension[0].toUpperCase() + dimension.slice(1);
  var value = elem[offset];
  var margins = MARGINS[dimension];
  return value + parseInt(Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_4__["default"])(elem, margins[0]), 10) + parseInt(Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_4__["default"])(elem, margins[1]), 10);
}

var collapseStyles = (_collapseStyles = {}, _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["EXITED"]] = 'collapse', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["EXITING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["ENTERING"]] = 'collapsing', _collapseStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["ENTERED"]] = 'collapse show', _collapseStyles);
var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  dimension: 'height',
  getDimensionValue: getDimensionValue
};

var Collapse = /*#__PURE__*/function (_React$Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Collapse, _React$Component);

  function Collapse() {
    var _this;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;

    _this.handleEnter = function (elem) {
      elem.style[_this.getDimension()] = '0';
    };

    _this.handleEntering = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this._getScrollDimensionValue(elem, dimension);
    };

    _this.handleEntered = function (elem) {
      elem.style[_this.getDimension()] = null;
    };

    _this.handleExit = function (elem) {
      var dimension = _this.getDimension();

      elem.style[dimension] = _this.props.getDimensionValue(dimension, elem) + "px";
      Object(_triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_9__["default"])(elem);
    };

    _this.handleExiting = function (elem) {
      elem.style[_this.getDimension()] = null;
    };

    return _this;
  }

  var _proto = Collapse.prototype;

  _proto.getDimension = function getDimension() {
    return typeof this.props.dimension === 'function' ? this.props.dimension() : this.props.dimension;
  }
  /* -- Expanding -- */
  ;

  // for testing
  _proto._getScrollDimensionValue = function _getScrollDimensionValue(elem, dimension) {
    var scroll = "scroll" + dimension[0].toUpperCase() + dimension.slice(1);
    return elem[scroll] + "px";
  };

  _proto.render = function render() {
    var _this2 = this;

    var _this$props = this.props,
        onEnter = _this$props.onEnter,
        onEntering = _this$props.onEntering,
        onEntered = _this$props.onEntered,
        onExit = _this$props.onExit,
        onExiting = _this$props.onExiting,
        className = _this$props.className,
        children = _this$props.children,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children"]);

    delete props.dimension;
    delete props.getDimensionValue;
    var handleEnter = Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(this.handleEnter, onEnter);
    var handleEntering = Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(this.handleEntering, onEntering);
    var handleEntered = Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(this.handleEntered, onEntered);
    var handleExit = Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(this.handleExit, onExit);
    var handleExiting = Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_8__["default"])(this.handleExiting, onExiting);
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      addEndListener: dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_5__["default"]
    }, props, {
      "aria-expanded": props.role ? props.in : null,
      onEnter: handleEnter,
      onEntering: handleEntering,
      onEntered: handleEntered,
      onExit: handleExit,
      onExiting: handleExiting
    }), function (state, innerProps) {
      return react__WEBPACK_IMPORTED_MODULE_6___default.a.cloneElement(children, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, children.props.className, collapseStyles[state], _this2.getDimension() === 'width' && 'width')
      }));
    });
  };

  return Collapse;
}(react__WEBPACK_IMPORTED_MODULE_6___default.a.Component);

Collapse.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Collapse);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Container.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Container.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  fluid: false
};
var Container = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      fluid = _ref.fluid,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "fluid", "as", "className"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'container');
  var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, fluid ? "" + prefix + suffix : prefix)
  }));
});
Container.displayName = 'Container';
Container.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Container);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Dropdown.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Dropdown.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_overlays_Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-overlays/Dropdown */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Dropdown.js");
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _DropdownItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DropdownItem */ "./node_modules/react-bootstrap/esm/DropdownItem.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/react-bootstrap/esm/DropdownMenu.js");
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/react-bootstrap/esm/DropdownToggle.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");













var defaultProps = {
  navbar: false
};
var Dropdown = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (uncontrolledProps, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_5__["useUncontrolled"])(uncontrolledProps, {
    show: 'onToggle'
  }),
      bsPrefix = _useUncontrolled.bsPrefix,
      drop = _useUncontrolled.drop,
      show = _useUncontrolled.show,
      className = _useUncontrolled.className,
      alignRight = _useUncontrolled.alignRight,
      onSelect = _useUncontrolled.onSelect,
      onToggle = _useUncontrolled.onToggle,
      focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
      _useUncontrolled$as = _useUncontrolled.as,
      Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
      _4 = _useUncontrolled.navbar,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);

  var onSelectCtx = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_SelectableContext__WEBPACK_IMPORTED_MODULE_10__["default"]);
  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_11__["useBootstrapPrefix"])(bsPrefix, 'dropdown');
  var handleToggle = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (nextShow, event, source) {
    if (source === void 0) {
      source = event.type;
    }

    if (event.currentTarget === document) source = 'rootClose';
    onToggle(nextShow, event, {
      source: source
    });
  });
  var handleSelect = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_6__["default"])(function (key, event) {
    if (onSelectCtx) onSelectCtx(key, event);
    if (onSelect) onSelect(key, event);
    handleToggle(false, event, 'select');
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_10__["default"].Provider, {
    value: handleSelect
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react_overlays_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"], {
    drop: drop,
    show: show,
    alignEnd: alignRight,
    onToggle: handleToggle,
    focusFirstItemOnShow: focusFirstItemOnShow,
    itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
  }, function (_ref) {
    var dropdownProps = _ref.props;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, dropdownProps, {
      ref: ref,
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
    }));
  }));
});
Dropdown.displayName = 'Dropdown';
Dropdown.defaultProps = defaultProps;
Dropdown.Toggle = _DropdownToggle__WEBPACK_IMPORTED_MODULE_9__["default"];
Dropdown.Menu = _DropdownMenu__WEBPACK_IMPORTED_MODULE_8__["default"];
Dropdown.Item = _DropdownItem__WEBPACK_IMPORTED_MODULE_7__["default"];
Dropdown.Header = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_12__["default"])('dropdown-header', {
  defaultProps: {
    role: 'heading'
  }
});
Dropdown.Divider = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_12__["default"])('dropdown-divider', {
  defaultProps: {
    role: 'separator'
  }
});
/* harmony default export */ __webpack_exports__["default"] = (Dropdown);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/DropdownButton.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/DropdownButton.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/esm/Dropdown.js");





var propTypes = {
  /**
   * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
   * @type {string|number}
   * @required
   */
  id: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any,

  /** An `href` passed to the Toggle component */
  href: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** An `onClick` handler passed to the Toggle component */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /** The content of the non-toggle Button.  */
  title: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node.isRequired,

  /** Disables both Buttons  */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
  menuRole: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** Whether to render the dropdown menu in the DOM before the first time it is shown */
  renderMenuOnMount: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   *  Which event when fired outside the component will cause it to be closed.
   *
   * _see [DropdownMenu](#menu-props) for more details_
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  bsPrefix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  variant: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
/**
 * A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
 * are passed directly to the default `Dropdown.Menu`.
 *
 * _All unknown props are passed through to the `Dropdown` component._ Only
 * the Button `variant`, `size` and `bsPrefix` props are passed to the toggle,
 * along with menu related props are passed to the `Dropdown.Menu`
 */

var DropdownButton = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var title = _ref.title,
      children = _ref.children,
      bsPrefix = _ref.bsPrefix,
      rootCloseEvent = _ref.rootCloseEvent,
      variant = _ref.variant,
      size = _ref.size,
      menuRole = _ref.menuRole,
      renderMenuOnMount = _ref.renderMenuOnMount,
      disabled = _ref.disabled,
      href = _ref.href,
      id = _ref.id,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Toggle, {
    id: id,
    href: href,
    size: size,
    variant: variant,
    disabled: disabled,
    childBsPrefix: bsPrefix
  }, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Menu, {
    role: menuRole,
    renderOnMount: renderMenuOnMount,
    rootCloseEvent: rootCloseEvent
  }, children));
});
DropdownButton.displayName = 'DropdownButton';
DropdownButton.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (DropdownButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/DropdownItem.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/DropdownItem.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _NavContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NavContext */ "./node_modules/react-bootstrap/esm/NavContext.js");









var defaultProps = {
  as: _SafeAnchor__WEBPACK_IMPORTED_MODULE_5__["default"],
  disabled: false
};
var DropdownItem = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      eventKey = _ref.eventKey,
      disabled = _ref.disabled,
      href = _ref.href,
      onClick = _ref.onClick,
      onSelect = _ref.onSelect,
      propActive = _ref.active,
      Component = _ref.as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_7__["useBootstrapPrefix"])(bsPrefix, 'dropdown-item');
  var onSelectCtx = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["default"]);
  var navContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_NavContext__WEBPACK_IMPORTED_MODULE_8__["default"]);

  var _ref2 = navContext || {},
      activeKey = _ref2.activeKey;

  var key = Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["makeEventKey"])(eventKey, href);
  var active = propActive == null && key != null ? Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["makeEventKey"])(activeKey) === key : propActive;
  var handleClick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__["default"])(function (event) {
    // SafeAnchor handles the disabled case, but we handle it here
    // for other components
    if (disabled) return;
    if (onClick) onClick(event);
    if (onSelectCtx) onSelectCtx(key, event);
    if (onSelect) onSelect(key, event);
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    href: href,
    disabled: disabled,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, active && 'active', disabled && 'disabled'),
    onClick: handleClick
  }), children);
});
DropdownItem.displayName = 'DropdownItem';
DropdownItem.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (DropdownItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/DropdownMenu.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/DropdownMenu.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_overlays_DropdownMenu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-overlays/DropdownMenu */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownMenu.js");
/* harmony import */ var _restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/useMergedRefs */ "./node_modules/@restart/hooks/esm/useMergedRefs.js");
/* harmony import */ var _NavbarContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavbarContext */ "./node_modules/react-bootstrap/esm/NavbarContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _useWrappedRefWithWarning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useWrappedRefWithWarning */ "./node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js");
/* harmony import */ var _usePopperMarginModifiers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./usePopperMarginModifiers */ "./node_modules/react-bootstrap/esm/usePopperMarginModifiers.js");










var defaultProps = {
  alignRight: false,
  flip: true
};
var DropdownMenu = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      alignRight = _ref.alignRight,
      rootCloseEvent = _ref.rootCloseEvent,
      flip = _ref.flip,
      showProps = _ref.show,
      renderOnMount = _ref.renderOnMount,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      _ref$popperConfig = _ref.popperConfig,
      popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);

  var isNavbar = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_NavbarContext__WEBPACK_IMPORTED_MODULE_6__["default"]);
  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_7__["useBootstrapPrefix"])(bsPrefix, 'dropdown-menu');

  var _usePopperMarginModif = Object(_usePopperMarginModifiers__WEBPACK_IMPORTED_MODULE_9__["default"])(),
      popperRef = _usePopperMarginModif[0],
      marginModifiers = _usePopperMarginModif[1];

  var _useDropdownMenu = Object(react_overlays_DropdownMenu__WEBPACK_IMPORTED_MODULE_4__["useDropdownMenu"])({
    flip: flip,
    rootCloseEvent: rootCloseEvent,
    show: showProps,
    alignEnd: alignRight,
    usePopper: !isNavbar,
    popperConfig: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popperConfig, {
      modifiers: marginModifiers.concat(popperConfig.modifiers || [])
    })
  }),
      hasShown = _useDropdownMenu.hasShown,
      placement = _useDropdownMenu.placement,
      show = _useDropdownMenu.show,
      alignEnd = _useDropdownMenu.alignEnd,
      close = _useDropdownMenu.close,
      menuProps = _useDropdownMenu.props;

  menuProps.ref = Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_5__["default"])(popperRef, Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_useWrappedRefWithWarning__WEBPACK_IMPORTED_MODULE_8__["default"])(ref, 'DropdownMenu'), menuProps.ref));
  if (!hasShown && !renderOnMount) return null; // For custom components provide additional, non-DOM, props;

  if (typeof Component !== 'string') {
    menuProps.show = show;
    menuProps.close = close;
    menuProps.alignRight = alignEnd;
  }

  var style = props.style;

  if (placement) {
    // we don't need the default popper style,
    // menus are display: none when not shown.
    style = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, style, {}, menuProps.style);
    props['x-placement'] = placement;
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, menuProps, {
    style: style,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, show && 'show', alignEnd && prefix + "-right")
  }));
});
DropdownMenu.displayName = 'DropdownMenu';
DropdownMenu.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (DropdownMenu);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/DropdownToggle.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/DropdownToggle.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react_overlays_DropdownToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-overlays/DropdownToggle */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownToggle.js");
/* harmony import */ var _restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @restart/hooks/useMergedRefs */ "./node_modules/@restart/hooks/esm/useMergedRefs.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/esm/Button.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _useWrappedRefWithWarning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useWrappedRefWithWarning */ "./node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js");










var DropdownToggle = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      split = _ref.split,
      className = _ref.className,
      children = _ref.children,
      childBsPrefix = _ref.childBsPrefix,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? _Button__WEBPACK_IMPORTED_MODULE_7__["default"] : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_8__["useBootstrapPrefix"])(bsPrefix, 'dropdown-toggle');

  if (childBsPrefix !== undefined) {
    props.bsPrefix = childBsPrefix;
  }

  var _useDropdownToggle = Object(react_overlays_DropdownToggle__WEBPACK_IMPORTED_MODULE_5__["useDropdownToggle"])(),
      toggleProps = _useDropdownToggle[0],
      toggle = _useDropdownToggle[1].toggle;

  toggleProps.ref = Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_6__["default"])(toggleProps.ref, Object(_useWrappedRefWithWarning__WEBPACK_IMPORTED_MODULE_9__["default"])(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
  // underlying component, to allow it to render size and style variants.

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    onClick: toggle,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, split && prefix + "-split")
  }, toggleProps, props), children);
});
DropdownToggle.displayName = 'DropdownToggle';
/* harmony default export */ __webpack_exports__["default"] = (DropdownToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ElementChildren.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ElementChildren.js ***!
  \*************************************************************/
/*! exports provided: map, forEach */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forEach", function() { return forEach; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/**
 * Iterates through children that are typically specified as `props.children`,
 * but only maps over children that are "valid elements".
 *
 * The mapFunction provided index will be normalised to the components mapped,
 * so an invalid component would not increase the index.
 *
 */

function map(children, func) {
  var index = 0;
  return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) {
    return react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child) ? func(child, index++) : child;
  });
}
/**
 * Iterates through children that are "valid elements".
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child with the index reflecting the position relative to "valid components".
 */


function forEach(children, func) {
  var index = 0;
  react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
    if (react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) func(child, index++);
  });
}



/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Fade.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Fade.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/transitionEnd */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/transitionEnd.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-transition-group/Transition */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/Transition.js");
/* harmony import */ var _triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./triggerBrowserReflow */ "./node_modules/react-bootstrap/esm/triggerBrowserReflow.js");



var _fadeStyles;






var defaultProps = {
  in: false,
  timeout: 300,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false
};
var fadeStyles = (_fadeStyles = {}, _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_5__["ENTERING"]] = 'show', _fadeStyles[react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_5__["ENTERED"]] = 'show', _fadeStyles);
var Fade = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var className = _ref.className,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["className", "children"]);

  var handleEnter = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (node) {
    Object(_triggerBrowserReflow__WEBPACK_IMPORTED_MODULE_6__["default"])(node);
    if (props.onEnter) props.onEnter(node);
  }, [props]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react_transition_group_Transition__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    addEndListener: dom_helpers_transitionEnd__WEBPACK_IMPORTED_MODULE_3__["default"]
  }, props, {
    onEnter: handleEnter
  }), function (status, innerProps) {
    return react__WEBPACK_IMPORTED_MODULE_4___default.a.cloneElement(children, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, innerProps, {
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('fade', className, children.props.className, fadeStyles[status])
    }));
  });
});
Fade.defaultProps = defaultProps;
Fade.displayName = 'Fade';
/* harmony default export */ __webpack_exports__["default"] = (Fade);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Feedback.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Feedback.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);





var propTypes = {
  /**
   * Specify whether the feedback is for valid or invalid fields
   *
   * @type {('valid'|'invalid')}
   */
  type: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string.isRequired,
  as: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.elementType
};
var defaultProps = {
  type: 'valid'
};
var Feedback = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      className = _ref.className,
      type = _ref.type,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "className", "type"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, type && type + "-feedback")
  }));
});
Feedback.displayName = 'Feedback';
Feedback.propTypes = propTypes;
Feedback.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Feedback);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Figure.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Figure.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _FigureImage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FigureImage */ "./node_modules/react-bootstrap/esm/FigureImage.js");
/* harmony import */ var _FigureCaption__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FigureCaption */ "./node_modules/react-bootstrap/esm/FigureCaption.js");



var Figure = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('figure', {
  Component: 'figure'
});
Figure.Image = _FigureImage__WEBPACK_IMPORTED_MODULE_1__["default"];
Figure.Caption = _FigureCaption__WEBPACK_IMPORTED_MODULE_2__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Figure);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FigureCaption.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FigureCaption.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

var FigureCaption = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('figure-caption', {
  Component: 'figcaption'
});
/* harmony default export */ __webpack_exports__["default"] = (FigureCaption);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FigureImage.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FigureImage.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* 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__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Image */ "./node_modules/react-bootstrap/esm/Image.js");






var propTypes = {
  /**
   * @default 'img'
   */
  bsPrefix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /**
   * Sets image as fluid image.
   */
  fluid: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * Sets image shape as rounded.
   */
  rounded: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * Sets image shape as circle.
   */
  roundedCircle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * Sets image shape as thumbnail.
   */
  thumbnail: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
var defaultProps = {
  fluid: true
};
var FigureImage = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["className"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Image__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'figure-img')
  }));
});
FigureImage.displayName = 'FigureImage';
FigureImage.propTypes = propTypes;
FigureImage.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (FigureImage);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Form.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Form.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormCheck */ "./node_modules/react-bootstrap/esm/FormCheck.js");
/* harmony import */ var _FormFile__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormFile */ "./node_modules/react-bootstrap/esm/FormFile.js");
/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormControl */ "./node_modules/react-bootstrap/esm/FormControl.js");
/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/react-bootstrap/esm/FormGroup.js");
/* harmony import */ var _FormLabel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FormLabel */ "./node_modules/react-bootstrap/esm/FormLabel.js");
/* harmony import */ var _FormText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./FormText */ "./node_modules/react-bootstrap/esm/FormText.js");
/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Switch */ "./node_modules/react-bootstrap/esm/Switch.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");













var defaultProps = {
  inline: false
};
var Form = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      inline = _ref.inline,
      className = _ref.className,
      validated = _ref.validated,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'form' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_11__["useBootstrapPrefix"])(bsPrefix, 'form');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, validated && 'was-validated', inline && bsPrefix + "-inline")
  }));
});
Form.displayName = 'Form';
Form.defaultProps = defaultProps;
Form.Row = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_12__["default"])('form-row');
Form.Group = _FormGroup__WEBPACK_IMPORTED_MODULE_7__["default"];
Form.Control = _FormControl__WEBPACK_IMPORTED_MODULE_6__["default"];
Form.Check = _FormCheck__WEBPACK_IMPORTED_MODULE_4__["default"];
Form.File = _FormFile__WEBPACK_IMPORTED_MODULE_5__["default"];
Form.Switch = _Switch__WEBPACK_IMPORTED_MODULE_10__["default"];
Form.Label = _FormLabel__WEBPACK_IMPORTED_MODULE_8__["default"];
Form.Text = _FormText__WEBPACK_IMPORTED_MODULE_9__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Form);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormCheck.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormCheck.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Feedback__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Feedback */ "./node_modules/react-bootstrap/esm/Feedback.js");
/* harmony import */ var _FormCheckInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormCheckInput */ "./node_modules/react-bootstrap/esm/FormCheckInput.js");
/* harmony import */ var _FormCheckLabel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormCheckLabel */ "./node_modules/react-bootstrap/esm/FormCheckLabel.js");
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");










var defaultProps = {
  type: 'checkbox',
  inline: false,
  disabled: false,
  isValid: false,
  isInvalid: false,
  title: ''
};
var FormCheck = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      inline = _ref.inline,
      disabled = _ref.disabled,
      isValid = _ref.isValid,
      isInvalid = _ref.isInvalid,
      feedback = _ref.feedback,
      className = _ref.className,
      style = _ref.style,
      title = _ref.title,
      type = _ref.type,
      label = _ref.label,
      children = _ref.children,
      propCustom = _ref.custom,
      _ref$as = _ref.as,
      as = _ref$as === void 0 ? 'input' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);

  var custom = type === 'switch' ? true : propCustom;

  var _ref2 = custom ? [bsCustomPrefix, 'custom-control'] : [bsPrefix, 'form-check'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_9__["useBootstrapPrefix"])(prefix, defaultPrefix);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
      controlId = _useContext.controlId;

  var innerFormContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useMemo"])(function () {
    return {
      controlId: id || controlId,
      custom: custom
    };
  }, [controlId, custom, id]);
  var hasLabel = label != null && label !== false && !children;
  var input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_FormCheckInput__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    type: type === 'switch' ? 'checkbox' : type,
    ref: ref,
    isValid: isValid,
    isInvalid: isInvalid,
    isStatic: !hasLabel,
    disabled: disabled,
    as: as
  }));
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_FormContext__WEBPACK_IMPORTED_MODULE_8__["default"].Provider, {
    value: innerFormContext
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
    style: style,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
  }, children || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_4___default.a.Fragment, null, input, hasLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_FormCheckLabel__WEBPACK_IMPORTED_MODULE_7__["default"], {
    title: title
  }, label), (isValid || isInvalid) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Feedback__WEBPACK_IMPORTED_MODULE_5__["default"], {
    type: isValid ? 'valid' : 'invalid'
  }, feedback))));
});
FormCheck.displayName = 'FormCheck';
FormCheck.defaultProps = defaultProps;
FormCheck.Input = _FormCheckInput__WEBPACK_IMPORTED_MODULE_6__["default"];
FormCheck.Label = _FormCheckLabel__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (FormCheck);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormCheckInput.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormCheckInput.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var defaultProps = {
  type: 'checkbox'
};
var FormCheckInput = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      className = _ref.className,
      isValid = _ref.isValid,
      isInvalid = _ref.isInvalid,
      isStatic = _ref.isStatic,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'input' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "isStatic", "as"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
      controlId = _useContext.controlId,
      custom = _useContext.custom;

  var _ref2 = custom ? [bsCustomPrefix, 'custom-control-input'] : [bsPrefix, 'form-check-input'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(prefix, defaultPrefix);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    id: id || controlId,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
  }));
});
FormCheckInput.displayName = 'FormCheckInput';
FormCheckInput.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (FormCheckInput);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormCheckLabel.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormCheckLabel.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var FormCheckLabel = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      className = _ref.className,
      htmlFor = _ref.htmlFor,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
      controlId = _useContext.controlId,
      custom = _useContext.custom;

  var _ref2 = custom ? [bsCustomPrefix, 'custom-control-label'] : [bsPrefix, 'form-check-label'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(prefix, defaultPrefix);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("label", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    htmlFor: htmlFor || controlId,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }));
});
FormCheckLabel.displayName = 'FormCheckLabel';
/* harmony default export */ __webpack_exports__["default"] = (FormCheckLabel);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormContext.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormContext.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var FormContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({
  controlId: undefined
});
/* harmony default export */ __webpack_exports__["default"] = (FormContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormControl.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormControl.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _Feedback__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Feedback */ "./node_modules/react-bootstrap/esm/Feedback.js");
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");









var FormControl = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      type = _ref.type,
      size = _ref.size,
      id = _ref.id,
      className = _ref.className,
      isValid = _ref.isValid,
      isInvalid = _ref.isInvalid,
      plaintext = _ref.plaintext,
      readOnly = _ref.readOnly,
      custom = _ref.custom,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'input' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
      controlId = _useContext.controlId;

  var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-control'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_8__["useBootstrapPrefix"])(prefix, defaultPrefix);
  var classes;

  if (plaintext) {
    var _classes;

    classes = (_classes = {}, _classes[bsPrefix + "-plaintext"] = true, _classes);
  } else if (type === 'file') {
    var _classes2;

    classes = (_classes2 = {}, _classes2[bsPrefix + "-file"] = true, _classes2);
  } else if (type === 'range') {
    var _classes3;

    classes = (_classes3 = {}, _classes3[bsPrefix + "-range"] = true, _classes3);
  } else if (Component === 'select' && custom) {
    var _classes4;

    classes = (_classes4 = {}, _classes4[bsPrefix + "-select"] = true, _classes4[bsPrefix + "-select-" + size] = size, _classes4);
  } else {
    var _classes5;

    classes = (_classes5 = {}, _classes5[bsPrefix] = true, _classes5[bsPrefix + "-" + size] = size, _classes5);
  }

   true ? warning__WEBPACK_IMPORTED_MODULE_5___default()(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : undefined;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    type: type,
    ref: ref,
    readOnly: readOnly,
    id: id || controlId,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
  }));
});
FormControl.displayName = 'FormControl';
FormControl.Feedback = _Feedback__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (FormControl);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormFile.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormFile.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Feedback__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Feedback */ "./node_modules/react-bootstrap/esm/Feedback.js");
/* harmony import */ var _FormFileInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormFileInput */ "./node_modules/react-bootstrap/esm/FormFileInput.js");
/* harmony import */ var _FormFileLabel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormFileLabel */ "./node_modules/react-bootstrap/esm/FormFileLabel.js");
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");










var defaultProps = {
  disabled: false,
  isValid: false,
  isInvalid: false
};
var FormFile = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      disabled = _ref.disabled,
      isValid = _ref.isValid,
      isInvalid = _ref.isInvalid,
      feedback = _ref.feedback,
      className = _ref.className,
      style = _ref.style,
      label = _ref.label,
      children = _ref.children,
      custom = _ref.custom,
      lang = _ref.lang,
      dataBrowse = _ref['data-browse'],
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      _ref$inputAs = _ref.inputAs,
      inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);

  var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_9__["useBootstrapPrefix"])(prefix, defaultPrefix);
  var type = 'file';

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
      controlId = _useContext.controlId;

  var innerFormContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
    return {
      controlId: id || controlId,
      custom: custom
    };
  }, [controlId, custom, id]);
  var hasLabel = label != null && label !== false && !children;
  var input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FormFileInput__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    isValid: isValid,
    isInvalid: isInvalid,
    disabled: disabled,
    as: inputAs,
    lang: lang
  }));
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FormContext__WEBPACK_IMPORTED_MODULE_8__["default"].Provider, {
    value: innerFormContext
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, {
    style: style,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, custom && "custom-" + type)
  }, children || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, custom ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, input, hasLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FormFileLabel__WEBPACK_IMPORTED_MODULE_7__["default"], {
    "data-browse": dataBrowse
  }, label)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, hasLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FormFileLabel__WEBPACK_IMPORTED_MODULE_7__["default"], null, label), input), (isValid || isInvalid) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Feedback__WEBPACK_IMPORTED_MODULE_5__["default"], {
    type: isValid ? 'valid' : 'invalid'
  }, feedback))));
});
FormFile.displayName = 'FormFile';
FormFile.defaultProps = defaultProps;
FormFile.Input = _FormFileInput__WEBPACK_IMPORTED_MODULE_6__["default"];
FormFile.Label = _FormFileLabel__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (FormFile);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormFileInput.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormFileInput.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var FormFileInput = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      className = _ref.className,
      isValid = _ref.isValid,
      isInvalid = _ref.isInvalid,
      lang = _ref.lang,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'input' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
      controlId = _useContext.controlId,
      custom = _useContext.custom;

  var type = 'file';

  var _ref2 = custom ? [bsCustomPrefix, 'custom-file-input'] : [bsPrefix, 'form-control-file'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(prefix, defaultPrefix);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    id: id || controlId,
    type: type,
    lang: lang,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
  }));
});
FormFileInput.displayName = 'FormFileInput';
/* harmony default export */ __webpack_exports__["default"] = (FormFileInput);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormFileLabel.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormFileLabel.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var FormFileLabel = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      bsCustomPrefix = _ref.bsCustomPrefix,
      className = _ref.className,
      htmlFor = _ref.htmlFor,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
      controlId = _useContext.controlId,
      custom = _useContext.custom;

  var _ref2 = custom ? [bsCustomPrefix, 'custom-file-label'] : [bsPrefix, 'form-file-label'],
      prefix = _ref2[0],
      defaultPrefix = _ref2[1];

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(prefix, defaultPrefix);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("label", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    htmlFor: htmlFor || controlId,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix),
    "data-browse": props['data-browse']
  }));
});
FormFileLabel.displayName = 'FormFileLabel';
/* harmony default export */ __webpack_exports__["default"] = (FormFileLabel);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormGroup.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormGroup.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var FormGroup = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      controlId = _ref.controlId,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'form-group');
  var context = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
    return {
      controlId: controlId
    };
  }, [controlId]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_FormContext__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, {
    value: context
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children));
});
FormGroup.displayName = 'FormGroup';
/* harmony default export */ __webpack_exports__["default"] = (FormGroup);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormLabel.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormLabel.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Col */ "./node_modules/react-bootstrap/esm/Col.js");
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FormContext */ "./node_modules/react-bootstrap/esm/FormContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");








var defaultProps = {
  column: false,
  srOnly: false
};
var FormLabel = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'label' : _ref$as,
      bsPrefix = _ref.bsPrefix,
      column = _ref.column,
      srOnly = _ref.srOnly,
      className = _ref.className,
      htmlFor = _ref.htmlFor,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);

  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_FormContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
      controlId = _useContext.controlId;

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_7__["useBootstrapPrefix"])(bsPrefix, 'form-label');
  var columnClass = 'col-form-label';
  if (typeof column === 'string') columnClass = columnClass + "-" + column;
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
   true ? warning__WEBPACK_IMPORTED_MODULE_4___default()(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : undefined;
  htmlFor = htmlFor || controlId;
  if (column) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Col__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    as: "label",
    className: classes,
    htmlFor: htmlFor
  }, props));
  return (
    /*#__PURE__*/
    // eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
    react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      ref: ref,
      className: classes,
      htmlFor: htmlFor
    }, props))
  );
});
FormLabel.displayName = 'FormLabel';
FormLabel.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (FormLabel);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/FormText.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/FormText.js ***!
  \******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var FormText = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'small' : _ref$as,
      muted = _ref.muted,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "as", "muted"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'form-text');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, muted && 'text-muted')
  }));
});
FormText.displayName = 'FormText';
/* harmony default export */ __webpack_exports__["default"] = (FormText);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Image.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Image.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  fluid: false,
  rounded: false,
  roundedCircle: false,
  thumbnail: false
};
var Image = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      fluid = _ref.fluid,
      rounded = _ref.rounded,
      roundedCircle = _ref.roundedCircle,
      thumbnail = _ref.thumbnail,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'img');
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("img", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    // eslint-disable-line jsx-a11y/alt-text
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, classes)
  }));
});
Image.displayName = 'Image';
Image.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Image);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/InputGroup.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/InputGroup.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");







/**
 *
 * @property {InputGroupAppend} Append
 * @property {InputGroupPrepend} Prepend
 * @property {InputGroupText} Text
 * @property {InputGroupRadio} Radio
 * @property {InputGroupCheckbox} Checkbox
 */
var InputGroup = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      size = _ref.size,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "size", "className", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'input-group');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, size && bsPrefix + "-" + size)
  }));
});
var InputGroupAppend = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__["default"])('input-group-append');
var InputGroupPrepend = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__["default"])('input-group-prepend');
var InputGroupText = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__["default"])('input-group-text', {
  Component: 'span'
});

var InputGroupCheckbox = function InputGroupCheckbox(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(InputGroupText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("input", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    type: "checkbox"
  }, props)));
};

var InputGroupRadio = function InputGroupRadio(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(InputGroupText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("input", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    type: "radio"
  }, props)));
};

InputGroup.displayName = 'InputGroup';
InputGroup.Text = InputGroupText;
InputGroup.Radio = InputGroupRadio;
InputGroup.Checkbox = InputGroupCheckbox;
InputGroup.Append = InputGroupAppend;
InputGroup.Prepend = InputGroupPrepend;
/* harmony default export */ __webpack_exports__["default"] = (InputGroup);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Jumbotron.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Jumbotron.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  fluid: false
};
var Jumbotron = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var _classes;

  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      className = _ref.className,
      fluid = _ref.fluid,
      bsPrefix = _ref.bsPrefix,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "className", "fluid", "bsPrefix"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'jumbotron');
  var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, classes)
  }));
});
Jumbotron.defaultProps = defaultProps;
Jumbotron.displayName = 'Jumbotron';
/* harmony default export */ __webpack_exports__["default"] = (Jumbotron);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ListGroup.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ListGroup.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _AbstractNav__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AbstractNav */ "./node_modules/react-bootstrap/esm/AbstractNav.js");
/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/react-bootstrap/esm/ListGroupItem.js");









var defaultProps = {
  variant: null,
  horizontal: null
};
var ListGroup = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_5__["useUncontrolled"])(props, {
    activeKey: 'onSelect'
  }),
      className = _useUncontrolled.className,
      bsPrefix = _useUncontrolled.bsPrefix,
      variant = _useUncontrolled.variant,
      horizontal = _useUncontrolled.horizontal,
      _useUncontrolled$as = _useUncontrolled.as,
      as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
      controlledProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_6__["useBootstrapPrefix"])(bsPrefix, 'list-group');
  var horizontalVariant;

  if (horizontal) {
    horizontalVariant = horizontal === true ? 'horizontal' : "horizontal-" + horizontal;
  } else {
    horizontalVariant = null;
  }

   true ? warning__WEBPACK_IMPORTED_MODULE_4___default()(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : undefined;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AbstractNav__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, controlledProps, {
    as: as,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
  }));
});
ListGroup.defaultProps = defaultProps;
ListGroup.displayName = 'ListGroup';
ListGroup.Item = _ListGroupItem__WEBPACK_IMPORTED_MODULE_8__["default"];
/* harmony default export */ __webpack_exports__["default"] = (ListGroup);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ListGroupItem.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ListGroupItem.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _AbstractNavItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AbstractNavItem */ "./node_modules/react-bootstrap/esm/AbstractNavItem.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");







var defaultProps = {
  variant: null,
  active: false,
  disabled: false
};
var ListGroupItem = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      active = _ref.active,
      disabled = _ref.disabled,
      className = _ref.className,
      variant = _ref.variant,
      action = _ref.action,
      as = _ref.as,
      eventKey = _ref.eventKey,
      onClick = _ref.onClick,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_6__["useBootstrapPrefix"])(bsPrefix, 'list-group-item');
  var handleClick = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
    if (disabled) {
      event.preventDefault();
      event.stopPropagation();
      return;
    }

    if (onClick) onClick(event);
  }, [disabled, onClick]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AbstractNavItem__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    eventKey: Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_5__["makeEventKey"])(eventKey, props.href) // eslint-disable-next-line
    ,
    as: as || (action ? props.href ? 'a' : 'button' : 'div'),
    onClick: handleClick,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
  }));
});
ListGroupItem.defaultProps = defaultProps;
ListGroupItem.displayName = 'ListGroupItem';
/* harmony default export */ __webpack_exports__["default"] = (ListGroupItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Media.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Media.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var Media = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "as"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'media');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix)
  }));
});
Media.displayName = 'Media';
Media.Body = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_4__["default"])('media-body');
/* harmony default export */ __webpack_exports__["default"] = (Media);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Modal.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Modal.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var dom_helpers_addEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-helpers/addEventListener */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addEventListener.js");
/* harmony import */ var dom_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/canUseDOM */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js");
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");
/* harmony import */ var dom_helpers_removeEventListener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! dom-helpers/removeEventListener */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeEventListener.js");
/* harmony import */ var dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! dom-helpers/scrollbarSize */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/scrollbarSize.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react_overlays_Modal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-overlays/Modal */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Modal.js");
/* harmony import */ var _BootstrapModalManager__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./BootstrapModalManager */ "./node_modules/react-bootstrap/esm/BootstrapModalManager.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");
/* harmony import */ var _ModalBody__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ModalBody */ "./node_modules/react-bootstrap/esm/ModalBody.js");
/* harmony import */ var _ModalContext__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ModalContext */ "./node_modules/react-bootstrap/esm/ModalContext.js");
/* harmony import */ var _ModalDialog__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ModalDialog */ "./node_modules/react-bootstrap/esm/ModalDialog.js");
/* harmony import */ var _ModalFooter__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ModalFooter */ "./node_modules/react-bootstrap/esm/ModalFooter.js");
/* harmony import */ var _ModalHeader__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ModalHeader */ "./node_modules/react-bootstrap/esm/ModalHeader.js");
/* harmony import */ var _ModalTitle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ModalTitle */ "./node_modules/react-bootstrap/esm/ModalTitle.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");




















var manager;
var defaultProps = {
  show: false,
  backdrop: true,
  keyboard: true,
  autoFocus: true,
  enforceFocus: true,
  restoreFocus: true,
  animation: true,
  dialogAs: _ModalDialog__WEBPACK_IMPORTED_MODULE_15__["default"]
};
/* eslint-disable no-use-before-define, react/no-multi-comp */

function DialogTransition(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_12__["default"], props);
}

function BackdropTransition(props) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_Fade__WEBPACK_IMPORTED_MODULE_12__["default"], props);
}
/* eslint-enable no-use-before-define */


var Modal = /*#__PURE__*/function (_React$Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(Modal, _React$Component);

  function Modal() {
    var _this;

    for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
      _args[_key] = arguments[_key];
    }

    _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
    _this.state = {
      style: {}
    };
    _this.modalContext = {
      onHide: function onHide() {
        return _this.props.onHide();
      }
    };

    _this.setModalRef = function (ref) {
      _this._modal = ref;
    };

    _this.handleDialogMouseDown = function () {
      _this._waitingForMouseUp = true;
    };

    _this.handleMouseUp = function (e) {
      if (_this._waitingForMouseUp && e.target === _this._modal.dialog) {
        _this._ignoreBackdropClick = true;
      }

      _this._waitingForMouseUp = false;
    };

    _this.handleClick = function (e) {
      if (_this._ignoreBackdropClick || e.target !== e.currentTarget) {
        _this._ignoreBackdropClick = false;
        return;
      }

      _this.props.onHide();
    };

    _this.handleEnter = function (node) {
      var _this$props;

      if (node) {
        node.style.display = 'block';

        _this.updateDialogStyle(node);
      }

      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
        args[_key2 - 1] = arguments[_key2];
      }

      if (_this.props.onEnter) (_this$props = _this.props).onEnter.apply(_this$props, [node].concat(args));
    };

    _this.handleEntering = function (node) {
      var _this$props2;

      for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
        args[_key3 - 1] = arguments[_key3];
      }

      if (_this.props.onEntering) (_this$props2 = _this.props).onEntering.apply(_this$props2, [node].concat(args)); // FIXME: This should work even when animation is disabled.

      Object(dom_helpers_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(window, 'resize', _this.handleWindowResize);
    };

    _this.handleExited = function (node) {
      var _this$props3;

      if (node) node.style.display = ''; // RHL removes it sometimes

      for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
        args[_key4 - 1] = arguments[_key4];
      }

      if (_this.props.onExited) (_this$props3 = _this.props).onExited.apply(_this$props3, args); // FIXME: This should work even when animation is disabled.

      Object(dom_helpers_removeEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(window, 'resize', _this.handleWindowResize);
    };

    _this.handleWindowResize = function () {
      _this.updateDialogStyle(_this._modal.dialog);
    };

    _this.getModalManager = function () {
      if (_this.props.manager) {
        return _this.props.manager;
      }

      if (!manager) {
        manager = new _BootstrapModalManager__WEBPACK_IMPORTED_MODULE_11__["default"]();
      }

      return manager;
    };

    _this.renderBackdrop = function (props) {
      var _this$props4 = _this.props,
          bsPrefix = _this$props4.bsPrefix,
          backdropClassName = _this$props4.backdropClassName,
          animation = _this$props4.animation;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
        className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
      }));
    };

    return _this;
  }

  var _proto = Modal.prototype;

  _proto.componentWillUnmount = function componentWillUnmount() {
    // Clean up the listener if we need to.
    Object(dom_helpers_removeEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(window, 'resize', this.handleWindowResize);
  };

  _proto.updateDialogStyle = function updateDialogStyle(node) {
    if (!dom_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_5__["default"]) return;
    var containerIsOverflowing = this.getModalManager().isContainerOverflowing(this._modal);
    var modalIsOverflowing = node.scrollHeight > Object(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_6__["default"])(node).documentElement.clientHeight;
    this.setState({
      style: {
        paddingRight: containerIsOverflowing && !modalIsOverflowing ? Object(dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__["default"])() : undefined,
        paddingLeft: !containerIsOverflowing && modalIsOverflowing ? Object(dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_8__["default"])() : undefined
      }
    });
  };

  _proto.render = function render() {
    var _this$props5 = this.props,
        bsPrefix = _this$props5.bsPrefix,
        className = _this$props5.className,
        style = _this$props5.style,
        dialogClassName = _this$props5.dialogClassName,
        children = _this$props5.children,
        Dialog = _this$props5.dialogAs,
        ariaLabelledby = _this$props5['aria-labelledby'],
        show = _this$props5.show,
        animation = _this$props5.animation,
        backdrop = _this$props5.backdrop,
        keyboard = _this$props5.keyboard,
        onEscapeKeyDown = _this$props5.onEscapeKeyDown,
        onShow = _this$props5.onShow,
        onHide = _this$props5.onHide,
        container = _this$props5.container,
        autoFocus = _this$props5.autoFocus,
        enforceFocus = _this$props5.enforceFocus,
        restoreFocus = _this$props5.restoreFocus,
        restoreFocusOptions = _this$props5.restoreFocusOptions,
        onEntered = _this$props5.onEntered,
        onExit = _this$props5.onExit,
        onExiting = _this$props5.onExiting,
        _ = _this$props5.onExited,
        _1 = _this$props5.onEntering,
        _6 = _this$props5.onEnter,
        _4 = _this$props5.onEntering,
        _2 = _this$props5.backdropClassName,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props5, ["bsPrefix", "className", "style", "dialogClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onExited", "onEntering", "onEnter", "onEntering", "backdropClassName"]);

    var clickHandler = backdrop === true ? this.handleClick : null;

    var baseModalStyle = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, style, {}, this.state.style); // Sets `display` always block when `animation` is false


    if (!animation) baseModalStyle.display = 'block';
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(_ModalContext__WEBPACK_IMPORTED_MODULE_14__["default"].Provider, {
      value: this.modalContext
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_overlays_Modal__WEBPACK_IMPORTED_MODULE_10__["default"], {
      show: show,
      backdrop: backdrop,
      container: container,
      keyboard: keyboard,
      autoFocus: autoFocus,
      enforceFocus: enforceFocus,
      restoreFocus: restoreFocus,
      restoreFocusOptions: restoreFocusOptions,
      onEscapeKeyDown: onEscapeKeyDown,
      onShow: onShow,
      onHide: onHide,
      onEntered: onEntered,
      onExit: onExit,
      onExiting: onExiting,
      manager: this.getModalManager(),
      ref: this.setModalRef,
      style: baseModalStyle,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, bsPrefix),
      containerClassName: bsPrefix + "-open",
      transition: animation ? DialogTransition : undefined,
      backdropTransition: animation ? BackdropTransition : undefined,
      renderBackdrop: this.renderBackdrop,
      onClick: clickHandler,
      onMouseUp: this.handleMouseUp,
      onEnter: this.handleEnter,
      onEntering: this.handleEntering,
      onExited: this.handleExited,
      'aria-labelledby': ariaLabelledby
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(Dialog, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
      onMouseDown: this.handleDialogMouseDown,
      className: dialogClassName
    }), children)));
  };

  return Modal;
}(react__WEBPACK_IMPORTED_MODULE_9___default.a.Component);

Modal.defaultProps = defaultProps;
var DecoratedModal = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_19__["createBootstrapComponent"])(Modal, 'modal');
DecoratedModal.Body = _ModalBody__WEBPACK_IMPORTED_MODULE_13__["default"];
DecoratedModal.Header = _ModalHeader__WEBPACK_IMPORTED_MODULE_17__["default"];
DecoratedModal.Title = _ModalTitle__WEBPACK_IMPORTED_MODULE_18__["default"];
DecoratedModal.Footer = _ModalFooter__WEBPACK_IMPORTED_MODULE_16__["default"];
DecoratedModal.Dialog = _ModalDialog__WEBPACK_IMPORTED_MODULE_15__["default"];
DecoratedModal.TRANSITION_DURATION = 300;
DecoratedModal.BACKDROP_TRANSITION_DURATION = 150;
/* harmony default export */ __webpack_exports__["default"] = (DecoratedModal);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalBody.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalBody.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('modal-body'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalContext.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalContext.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var ModalContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({
  onHide: function onHide() {}
});
/* harmony default export */ __webpack_exports__["default"] = (ModalContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalDialog.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalDialog.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var ModalDialog = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      centered = _ref.centered,
      size = _ref.size,
      children = _ref.children,
      scrollable = _ref.scrollable,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'modal');
  var dialogClass = bsPrefix + "-dialog";
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
    className: bsPrefix + "-content"
  }, children));
});
ModalDialog.displayName = 'ModalDialog';
/* harmony default export */ __webpack_exports__["default"] = (ModalDialog);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalFooter.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalFooter.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('modal-footer'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalHeader.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalHeader.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/react-bootstrap/esm/CloseButton.js");
/* harmony import */ var _ModalContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ModalContext */ "./node_modules/react-bootstrap/esm/ModalContext.js");








var defaultProps = {
  closeLabel: 'Close',
  closeButton: false
};
var ModalHeader = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      closeLabel = _ref.closeLabel,
      closeButton = _ref.closeButton,
      onHide = _ref.onHide,
      className = _ref.className,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'modal-header');
  var context = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_ModalContext__WEBPACK_IMPORTED_MODULE_7__["default"]);
  var handleClick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__["default"])(function () {
    if (context) context.onHide();
    if (onHide) onHide();
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children, closeButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_CloseButton__WEBPACK_IMPORTED_MODULE_6__["default"], {
    label: closeLabel,
    onClick: handleClick
  }));
});
ModalHeader.displayName = 'ModalHeader';
ModalHeader.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ModalHeader);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ModalTitle.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ModalTitle.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _divWithClassName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./divWithClassName */ "./node_modules/react-bootstrap/esm/divWithClassName.js");


var DivStyledAsH4 = Object(_divWithClassName__WEBPACK_IMPORTED_MODULE_1__["default"])('h4');
/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('modal-title', {
  Component: DivStyledAsH4
}));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Nav.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Nav.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types-extra/lib/all */ "./node_modules/prop-types-extra/lib/all.js");
/* harmony import */ var prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_all__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _NavbarContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NavbarContext */ "./node_modules/react-bootstrap/esm/NavbarContext.js");
/* harmony import */ var _CardContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CardContext */ "./node_modules/react-bootstrap/esm/CardContext.js");
/* harmony import */ var _AbstractNav__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AbstractNav */ "./node_modules/react-bootstrap/esm/AbstractNav.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NavItem */ "./node_modules/react-bootstrap/esm/NavItem.js");
/* harmony import */ var _NavLink__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NavLink */ "./node_modules/react-bootstrap/esm/NavLink.js");












var defaultProps = {
  justify: false,
  fill: false
};
var Nav = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (uncontrolledProps, ref) {
  var _classNames;

  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_5__["useUncontrolled"])(uncontrolledProps, {
    activeKey: 'onSelect'
  }),
      _useUncontrolled$as = _useUncontrolled.as,
      as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
      bsPrefix = _useUncontrolled.bsPrefix,
      variant = _useUncontrolled.variant,
      fill = _useUncontrolled.fill,
      justify = _useUncontrolled.justify,
      navbar = _useUncontrolled.navbar,
      className = _useUncontrolled.className,
      children = _useUncontrolled.children,
      activeKey = _useUncontrolled.activeKey,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_6__["useBootstrapPrefix"])(bsPrefix, 'nav');
  var navbarBsPrefix, cardHeaderBsPrefix;
  var navbarContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_NavbarContext__WEBPACK_IMPORTED_MODULE_7__["default"]);
  var cardContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_CardContext__WEBPACK_IMPORTED_MODULE_8__["default"]);

  if (navbarContext) {
    navbarBsPrefix = navbarContext.bsPrefix;
    navbar = navbar == null ? true : navbar;
  } else if (cardContext) {
    cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_AbstractNav__WEBPACK_IMPORTED_MODULE_9__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    as: as,
    ref: ref,
    activeKey: activeKey,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, (_classNames = {}, _classNames[bsPrefix] = !navbar, _classNames[navbarBsPrefix + "-nav"] = navbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
  }, props), children);
});
Nav.displayName = 'Nav';
Nav.defaultProps = defaultProps;
Nav.Item = _NavItem__WEBPACK_IMPORTED_MODULE_10__["default"];
Nav.Link = _NavLink__WEBPACK_IMPORTED_MODULE_11__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Nav);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavContext.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavContext.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var NavContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null);
/* harmony default export */ __webpack_exports__["default"] = (NavContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavDropdown.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavDropdown.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/esm/Dropdown.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NavItem */ "./node_modules/react-bootstrap/esm/NavItem.js");
/* harmony import */ var _NavLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavLink */ "./node_modules/react-bootstrap/esm/NavLink.js");







var propTypes = {
  /**
   * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
   * @type {string|number}
   * @required
   */
  id: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any,

  /** An `onClick` handler passed to the Toggle component */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /** The content of the non-toggle Button.  */
  title: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node.isRequired,

  /** Disables the toggle NavLink  */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /** Style the toggle NavLink as active  */
  active: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
  menuRole: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** Whether to render the dropdown menu in the DOM before the first time it is shown */
  renderMenuOnMount: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   *  Which event when fired outside the component will cause it to be closed.
   *
   * _see [DropdownMenu](#menu-props) for more details_
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  bsPrefix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
var NavDropdown = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      title = _ref.title,
      children = _ref.children,
      bsPrefix = _ref.bsPrefix,
      rootCloseEvent = _ref.rootCloseEvent,
      menuRole = _ref.menuRole,
      disabled = _ref.disabled,
      active = _ref.active,
      renderMenuOnMount = _ref.renderMenuOnMount,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    as: _NavItem__WEBPACK_IMPORTED_MODULE_5__["default"]
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Toggle, {
    id: id,
    eventKey: null,
    active: active,
    disabled: disabled,
    childBsPrefix: bsPrefix,
    as: _NavLink__WEBPACK_IMPORTED_MODULE_6__["default"]
  }, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Menu, {
    role: menuRole,
    renderOnMount: renderMenuOnMount,
    rootCloseEvent: rootCloseEvent
  }, children));
});
NavDropdown.displayName = 'NavDropdown';
NavDropdown.propTypes = propTypes;
NavDropdown.Item = _Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Item;
NavDropdown.Divider = _Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Divider;
NavDropdown.Header = _Dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].Header;
/* harmony default export */ __webpack_exports__["default"] = (NavDropdown);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavItem.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavItem.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var NavItem = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'nav-item');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children);
});
NavItem.displayName = 'NavItem';
/* harmony default export */ __webpack_exports__["default"] = (NavItem);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavLink.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavLink.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");
/* harmony import */ var _AbstractNavItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AbstractNavItem */ "./node_modules/react-bootstrap/esm/AbstractNavItem.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");







var defaultProps = {
  disabled: false,
  as: _SafeAnchor__WEBPACK_IMPORTED_MODULE_4__["default"]
};
var NavLink = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      disabled = _ref.disabled,
      className = _ref.className,
      href = _ref.href,
      eventKey = _ref.eventKey,
      onSelect = _ref.onSelect,
      as = _ref.as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_6__["useBootstrapPrefix"])(bsPrefix, 'nav-link');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_AbstractNavItem__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    href: href,
    ref: ref,
    eventKey: eventKey,
    as: as,
    disabled: disabled,
    onSelect: onSelect,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, disabled && 'disabled')
  }));
});
NavLink.displayName = 'NavLink';
NavLink.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (NavLink);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Navbar.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Navbar.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");
/* harmony import */ var _NavbarBrand__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavbarBrand */ "./node_modules/react-bootstrap/esm/NavbarBrand.js");
/* harmony import */ var _NavbarCollapse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NavbarCollapse */ "./node_modules/react-bootstrap/esm/NavbarCollapse.js");
/* harmony import */ var _NavbarToggle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NavbarToggle */ "./node_modules/react-bootstrap/esm/NavbarToggle.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _NavbarContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NavbarContext */ "./node_modules/react-bootstrap/esm/NavbarContext.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");












var defaultProps = {
  expand: true,
  variant: 'light',
  collapseOnSelect: false
};
var Navbar = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])(props, {
    expanded: 'onToggle'
  }),
      bsPrefix = _useUncontrolled.bsPrefix,
      expand = _useUncontrolled.expand,
      variant = _useUncontrolled.variant,
      bg = _useUncontrolled.bg,
      fixed = _useUncontrolled.fixed,
      sticky = _useUncontrolled.sticky,
      className = _useUncontrolled.className,
      children = _useUncontrolled.children,
      _useUncontrolled$as = _useUncontrolled.as,
      Component = _useUncontrolled$as === void 0 ? 'nav' : _useUncontrolled$as,
      expanded = _useUncontrolled.expanded,
      _onToggle = _useUncontrolled.onToggle,
      onSelect = _useUncontrolled.onSelect,
      collapseOnSelect = _useUncontrolled.collapseOnSelect,
      controlledProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_9__["useBootstrapPrefix"])(bsPrefix, 'navbar');
  var handleCollapse = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function () {
    if (onSelect) onSelect.apply(void 0, arguments);

    if (collapseOnSelect && expanded) {
      _onToggle(false);
    }
  }, [onSelect, collapseOnSelect, expanded, _onToggle]); // will result in some false positives but that seems better
  // than false negatives. strict `undefined` check allows explicit
  // "nulling" of the role if the user really doesn't want one

  if (controlledProps.role === undefined && Component !== 'nav') {
    controlledProps.role = 'navigation';
  }

  var expandClass = bsPrefix + "-expand";
  if (typeof expand === 'string') expandClass = expandClass + "-" + expand;
  var navbarContext = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
    return {
      onToggle: function onToggle() {
        return _onToggle(!expanded);
      },
      bsPrefix: bsPrefix,
      expanded: expanded
    };
  }, [bsPrefix, expanded, _onToggle]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_NavbarContext__WEBPACK_IMPORTED_MODULE_10__["default"].Provider, {
    value: navbarContext
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_11__["default"].Provider, {
    value: handleCollapse
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, controlledProps, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
  }), children)));
});
Navbar.defaultProps = defaultProps;
Navbar.displayName = 'Navbar';
Navbar.Brand = _NavbarBrand__WEBPACK_IMPORTED_MODULE_6__["default"];
Navbar.Toggle = _NavbarToggle__WEBPACK_IMPORTED_MODULE_8__["default"];
Navbar.Collapse = _NavbarCollapse__WEBPACK_IMPORTED_MODULE_7__["default"];
Navbar.Text = Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_5__["default"])('navbar-text', {
  Component: 'span'
});
/* harmony default export */ __webpack_exports__["default"] = (Navbar);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavbarBrand.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavbarBrand.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var NavbarBrand = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      as = _ref.as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "as"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'navbar-brand');
  var Component = as || (props.href ? 'a' : 'span');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }));
});
NavbarBrand.displayName = 'NavbarBrand';
/* harmony default export */ __webpack_exports__["default"] = (NavbarBrand);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavbarCollapse.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavbarCollapse.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Collapse */ "./node_modules/react-bootstrap/esm/Collapse.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _NavbarContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NavbarContext */ "./node_modules/react-bootstrap/esm/NavbarContext.js");






var NavbarCollapse = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var children = _ref.children,
      bsPrefix = _ref.bsPrefix,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["children", "bsPrefix"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'navbar-collapse');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_NavbarContext__WEBPACK_IMPORTED_MODULE_5__["default"].Consumer, null, function (context) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Collapse__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      in: !!(context && context.expanded)
    }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", {
      ref: ref,
      className: bsPrefix
    }, children));
  });
});
NavbarCollapse.displayName = 'NavbarCollapse';
/* harmony default export */ __webpack_exports__["default"] = (NavbarCollapse);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavbarContext.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavbarContext.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/NavbarToggle.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/NavbarToggle.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _NavbarContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavbarContext */ "./node_modules/react-bootstrap/esm/NavbarContext.js");







var defaultProps = {
  label: 'Toggle navigation'
};
var NavbarToggle = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      label = _ref.label,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'button' : _ref$as,
      onClick = _ref.onClick,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'navbar-toggler');

  var _ref2 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_NavbarContext__WEBPACK_IMPORTED_MODULE_6__["default"]) || {},
      onToggle = _ref2.onToggle,
      expanded = _ref2.expanded;

  var handleClick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__["default"])(function (e) {
    if (onClick) onClick(e);
    if (onToggle) onToggle();
  });

  if (Component === 'button') {
    props.type = 'button';
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    onClick: handleClick,
    "aria-label": label,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, !expanded && 'collapsed')
  }), children || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
    className: bsPrefix + "-icon"
  }));
});
NavbarToggle.displayName = 'NavbarToggle';
NavbarToggle.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (NavbarToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Overlay.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Overlay.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_overlays_Overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-overlays/Overlay */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Overlay.js");
/* harmony import */ var react_overlays_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-overlays/safeFindDOMNode */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/safeFindDOMNode.js");
/* harmony import */ var _usePopperMarginModifiers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./usePopperMarginModifiers */ "./node_modules/react-bootstrap/esm/usePopperMarginModifiers.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");








var defaultProps = {
  transition: _Fade__WEBPACK_IMPORTED_MODULE_7__["default"],
  rootClose: false,
  show: false,
  placement: 'top'
};

function wrapRefs(props, arrowProps) {
  var ref = props.ref;
  var aRef = arrowProps.ref;

  props.ref = ref.__wrapped || (ref.__wrapped = function (r) {
    return ref(Object(react_overlays_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_5__["default"])(r));
  });

  arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = function (r) {
    return aRef(Object(react_overlays_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_5__["default"])(r));
  });
}

function Overlay(_ref) {
  var overlay = _ref.children,
      transition = _ref.transition,
      _ref$popperConfig = _ref.popperConfig,
      popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig,
      outerProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["children", "transition", "popperConfig"]);

  var popperRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])({});

  var _usePopperMarginModif = Object(_usePopperMarginModifiers__WEBPACK_IMPORTED_MODULE_6__["default"])(),
      ref = _usePopperMarginModif[0],
      marginModifiers = _usePopperMarginModif[1];

  transition = transition === true ? _Fade__WEBPACK_IMPORTED_MODULE_7__["default"] : transition || null;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_overlays_Overlay__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, outerProps, {
    ref: ref,
    popperConfig: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popperConfig, {
      modifiers: marginModifiers.concat(popperConfig.modifiers || [])
    }),
    transition: transition
  }), function (_ref2) {
    var overlayProps = _ref2.props,
        arrowProps = _ref2.arrowProps,
        show = _ref2.show,
        state = _ref2.state,
        scheduleUpdate = _ref2.scheduleUpdate,
        placement = _ref2.placement,
        outOfBoundaries = _ref2.outOfBoundaries,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, ["props", "arrowProps", "show", "state", "scheduleUpdate", "placement", "outOfBoundaries"]);

    wrapRefs(overlayProps, arrowProps);
    var popper = Object.assign(popperRef.current, {
      state: state,
      scheduleUpdate: scheduleUpdate,
      placement: placement,
      outOfBoundaries: outOfBoundaries
    });
    if (typeof overlay === 'function') return overlay(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {}, overlayProps, {
      placement: placement,
      show: show,
      popper: popper,
      arrowProps: arrowProps
    }));
    return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(overlay, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {}, overlayProps, {
      placement: placement,
      arrowProps: arrowProps,
      popper: popper,
      className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(overlay.props.className, !transition && show && 'show'),
      style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, overlay.props.style, {}, overlayProps.style)
    }));
  });
}

Overlay.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Overlay);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/OverlayTrigger.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/OverlayTrigger.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var dom_helpers_contains__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/contains */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/contains.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/useTimeout */ "./node_modules/@restart/hooks/esm/useTimeout.js");
/* harmony import */ var react_overlays_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-overlays/safeFindDOMNode */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/safeFindDOMNode.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Overlay */ "./node_modules/react-bootstrap/esm/Overlay.js");










var RefHolder = /*#__PURE__*/function (_React$Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(RefHolder, _React$Component);

  function RefHolder() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = RefHolder.prototype;

  _proto.render = function render() {
    return this.props.children;
  };

  return RefHolder;
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);

function normalizeDelay(delay) {
  return delay && typeof delay === 'object' ? delay : {
    show: delay,
    hide: delay
  };
} // Simple implementation of mouseEnter and mouseLeave.
// React's built version is broken: https://github.com/facebook/react/issues/4251
// for cases when the trigger is disabled and mouseOut/Over can cause flicker
// moving from one child element to another.


function handleMouseOverOut(handler, e, relatedNative) {
  var target = e.currentTarget;
  var related = e.relatedTarget || e.nativeEvent[relatedNative];

  if ((!related || related !== target) && !Object(dom_helpers_contains__WEBPACK_IMPORTED_MODULE_3__["default"])(target, related)) {
    handler(e);
  }
}

var defaultProps = {
  defaultShow: false,
  trigger: ['hover', 'focus']
};

function OverlayTrigger(_ref) {
  var trigger = _ref.trigger,
      overlay = _ref.overlay,
      children = _ref.children,
      _ref$popperConfig = _ref.popperConfig,
      popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig,
      defaultShow = _ref.defaultShow,
      propsDelay = _ref.delay,
      placement = _ref.placement,
      _ref$flip = _ref.flip,
      flip = _ref$flip === void 0 ? placement && placement.indexOf('auto') !== -1 : _ref$flip,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["trigger", "overlay", "children", "popperConfig", "defaultShow", "delay", "placement", "flip"]);

  var triggerNodeRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(null);
  var timeout = Object(_restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_5__["default"])();
  var hoverStateRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])();

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_4__["useState"])(!!defaultShow),
      show = _useState[0],
      setShow = _useState[1];

  var delay = normalizeDelay(propsDelay);
  var child = react__WEBPACK_IMPORTED_MODULE_4___default.a.Children.only(children);
  var _child$props = child.props,
      onFocus = _child$props.onFocus,
      onBlur = _child$props.onBlur,
      onClick = _child$props.onClick;
  var getTarget = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function () {
    return Object(react_overlays_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_6__["default"])(triggerNodeRef.current);
  }, []);
  var handleShow = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function () {
    timeout.clear();
    hoverStateRef.current = 'show';

    if (!delay.show) {
      setShow(true);
      return;
    }

    timeout.set(function () {
      if (hoverStateRef.current === 'show') setShow(true);
    }, delay.show);
  }, [delay.show, timeout]);
  var handleHide = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function () {
    timeout.clear();
    hoverStateRef.current = 'hide';

    if (!delay.hide) {
      setShow(false);
      return;
    }

    timeout.set(function () {
      if (hoverStateRef.current === 'hide') setShow(false);
    }, delay.hide);
  }, [delay.hide, timeout]);
  var handleFocus = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
    handleShow(e);
    if (onFocus) onFocus(e);
  }, [handleShow, onFocus]);
  var handleBlur = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
    handleHide(e);
    if (onBlur) onBlur(e);
  }, [handleHide, onBlur]);
  var handleClick = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
    setShow(function (prevShow) {
      return !prevShow;
    });
    if (onClick) onClick(e);
  }, [onClick]);
  var handleMouseOver = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
    handleMouseOverOut(handleShow, e, 'fromElement');
  }, [handleShow]);
  var handleMouseOut = Object(react__WEBPACK_IMPORTED_MODULE_4__["useCallback"])(function (e) {
    handleMouseOverOut(handleHide, e, 'toElement');
  }, [handleHide]); // We add aria-describedby in the case where the overlay is a role="tooltip"
  // for other cases describedby isn't appropriate (e.g. a popover with inputs) so we don't add it.

  var ariaModifier = {
    name: 'ariaDescribedBy',
    enabled: true,
    phase: 'afterWrite',
    effect: function effect(_ref2) {
      var state = _ref2.state;
      return function () {
        state.elements.reference.removeAttribute('aria-describedby');
      };
    },
    fn: function fn(_ref3) {
      var state = _ref3.state;
      var _state$elements = state.elements,
          popper = _state$elements.popper,
          reference = _state$elements.reference;
      if (!show || !reference) return;
      var role = popper.getAttribute('role') || '';

      if (popper.id && role.toLowerCase() === 'tooltip') {
        reference.setAttribute('aria-describedby', popper.id);
      }
    }
  };
  var triggers = trigger == null ? [] : [].concat(trigger);
  var triggerProps = {};

  if (triggers.indexOf('click') !== -1) {
    triggerProps.onClick = handleClick;
  }

  if (triggers.indexOf('focus') !== -1) {
    triggerProps.onFocus = handleFocus;
    triggerProps.onBlur = handleBlur;
  }

  if (triggers.indexOf('hover') !== -1) {
     true ? warning__WEBPACK_IMPORTED_MODULE_7___default()(triggers.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.') : undefined;
    triggerProps.onMouseOver = handleMouseOver;
    triggerProps.onMouseOut = handleMouseOut;
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_4___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(RefHolder, {
    ref: triggerNodeRef
  }, Object(react__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, triggerProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Overlay__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    popperConfig: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popperConfig, {
      modifiers: [ariaModifier].concat(popperConfig.modifiers || [])
    }),
    show: show,
    onHide: handleHide,
    target: getTarget,
    placement: placement,
    flip: flip
  }), overlay));
}

OverlayTrigger.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (OverlayTrigger);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/PageItem.js":
/*!******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/PageItem.js ***!
  \******************************************************/
/*! exports provided: default, First, Prev, Ellipsis, Next, Last */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "First", function() { return First; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Prev", function() { return Prev; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ellipsis", function() { return Ellipsis; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Next", function() { return Next; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Last", function() { return Last; });
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");




/* eslint-disable react/no-multi-comp */



var defaultProps = {
  active: false,
  disabled: false,
  activeLabel: '(current)'
};
var PageItem = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef(function (_ref, ref) {
  var active = _ref.active,
      disabled = _ref.disabled,
      className = _ref.className,
      style = _ref.style,
      activeLabel = _ref.activeLabel,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);

  var Component = active || disabled ? 'span' : _SafeAnchor__WEBPACK_IMPORTED_MODULE_5__["default"];
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("li", {
    ref: ref,
    style: style,
    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(className, 'page-item', {
      active: active,
      disabled: disabled
    })
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
    className: "page-link",
    disabled: disabled
  }, props), children, active && activeLabel && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
    className: "sr-only"
  }, activeLabel)));
});
PageItem.defaultProps = defaultProps;
PageItem.displayName = 'PageItem';
/* harmony default export */ __webpack_exports__["default"] = (PageItem);

function createButton(name, defaultValue, label) {
  var _class, _temp;

  if (label === void 0) {
    label = name;
  }

  return _temp = _class = /*#__PURE__*/function (_React$Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_class, _React$Component);

    function _class() {
      return _React$Component.apply(this, arguments) || this;
    }

    var _proto = _class.prototype;

    _proto.render = function render() {
      var _this$props = this.props,
          children = _this$props.children,
          props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props, ["children"]);

      delete props.active;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(PageItem, props, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
        "aria-hidden": "true"
      }, children || defaultValue), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
        className: "sr-only"
      }, label));
    };

    return _class;
  }(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component), _class.displayName = name, _temp;
}

var First = createButton('First', '«');
var Prev = createButton('Prev', '‹', 'Previous');
var Ellipsis = createButton('Ellipsis', '…', 'More');
var Next = createButton('Next', '›');
var Last = createButton('Last', '»');

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Pagination.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Pagination.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _PageItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PageItem */ "./node_modules/react-bootstrap/esm/PageItem.js");







/**
 * @property {PageItem} Item
 * @property {PageItem} First
 * @property {PageItem} Prev
 * @property {PageItem} Ellipsis
 * @property {PageItem} Next
 * @property {PageItem} Last
 */
var Pagination = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      size = _ref.size,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "size"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'pagination');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("ul", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
  }), children);
});
Pagination.First = _PageItem__WEBPACK_IMPORTED_MODULE_5__["First"];
Pagination.Prev = _PageItem__WEBPACK_IMPORTED_MODULE_5__["Prev"];
Pagination.Ellipsis = _PageItem__WEBPACK_IMPORTED_MODULE_5__["Ellipsis"];
Pagination.Item = _PageItem__WEBPACK_IMPORTED_MODULE_5__["default"];
Pagination.Next = _PageItem__WEBPACK_IMPORTED_MODULE_5__["Next"];
Pagination.Last = _PageItem__WEBPACK_IMPORTED_MODULE_5__["Last"];
/* harmony default export */ __webpack_exports__["default"] = (Pagination);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Popover.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Popover.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _PopoverTitle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PopoverTitle */ "./node_modules/react-bootstrap/esm/PopoverTitle.js");
/* harmony import */ var _PopoverContent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PopoverContent */ "./node_modules/react-bootstrap/esm/PopoverContent.js");








var defaultProps = {
  placement: 'right'
};
var Popover = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      placement = _ref.placement,
      className = _ref.className,
      style = _ref.style,
      children = _ref.children,
      content = _ref.content,
      arrowProps = _ref.arrowProps,
      _ = _ref.popper,
      _1 = _ref.show,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'popover');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    role: "tooltip",
    style: style,
    "x-placement": placement,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, decoratedBsPrefix, "bs-popover-" + placement)
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    className: "arrow"
  }, arrowProps, {
    // this prevents an error if you render a Popover without arrow props, like in a test
    style: arrowProps ? Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, arrowProps.style, {
      margin: 0
    }) : undefined
  })), content ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_PopoverContent__WEBPACK_IMPORTED_MODULE_7__["default"], null, children) : children);
});
Popover.defaultProps = defaultProps;
Popover.Title = _PopoverTitle__WEBPACK_IMPORTED_MODULE_6__["default"];
Popover.Content = _PopoverContent__WEBPACK_IMPORTED_MODULE_7__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Popover);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/PopoverContent.js":
/*!************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/PopoverContent.js ***!
  \************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var PopoverContent = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "bsPrefix", "className", "children"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'popover-body');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children);
});
/* harmony default export */ __webpack_exports__["default"] = (PopoverContent);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/PopoverTitle.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/PopoverTitle.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var PopoverTitle = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "bsPrefix", "className", "children"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'popover-header');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(bsPrefix, className)
  }), children);
});
/* harmony default export */ __webpack_exports__["default"] = (PopoverTitle);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ProgressBar.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ProgressBar.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _ElementChildren__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ElementChildren */ "./node_modules/react-bootstrap/esm/ElementChildren.js");






var ROUND_PRECISION = 1000;
/**
 * Validate that children, if any, are instances of `<ProgressBar>`.
 */

function onlyProgressBar(props, propName, componentName) {
  var children = props[propName];

  if (!children) {
    return null;
  }

  var error = null;
  react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.forEach(children, function (child) {
    if (error) {
      return;
    }
    /**
     * Compare types in a way that works with libraries that patch and proxy
     * components like react-hot-loader.
     *
     * see https://github.com/gaearon/react-hot-loader#checking-element-types
     */


    var element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ProgressBar, null);
    if (child.type === element.type) return;
    var childIdentifier = react__WEBPACK_IMPORTED_MODULE_3___default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child;
    error = new Error("Children of " + componentName + " can contain only ProgressBar " + ("components. Found " + childIdentifier + "."));
  });
  return error;
}

var defaultProps = {
  min: 0,
  max: 100,
  animated: false,
  isChild: false,
  srOnly: false,
  striped: false
};

function getPercentage(now, min, max) {
  var percentage = (now - min) / (max - min) * 100;
  return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
}

function renderProgressBar(_ref, ref) {
  var _classNames;

  var min = _ref.min,
      now = _ref.now,
      max = _ref.max,
      label = _ref.label,
      srOnly = _ref.srOnly,
      striped = _ref.striped,
      animated = _ref.animated,
      className = _ref.className,
      style = _ref.style,
      variant = _ref.variant,
      bsPrefix = _ref.bsPrefix,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    role: "progressbar",
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
    style: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      width: getPercentage(now, min, max) + "%"
    }, style),
    "aria-valuenow": now,
    "aria-valuemin": min,
    "aria-valuemax": max
  }), srOnly ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
    className: "sr-only"
  }, label) : label);
}

var ProgressBar = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref2, ref) {
  var isChild = _ref2.isChild,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, ["isChild"]);

  props.bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(props.bsPrefix, 'progress');

  if (isChild) {
    return renderProgressBar(props, ref);
  }

  var min = props.min,
      now = props.now,
      max = props.max,
      label = props.label,
      srOnly = props.srOnly,
      striped = props.striped,
      animated = props.animated,
      bsPrefix = props.bsPrefix,
      variant = props.variant,
      className = props.className,
      children = props.children,
      wrapperProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, wrapperProps, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix)
  }), children ? Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_5__["map"])(children, function (child) {
    return Object(react__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(child, {
      isChild: true
    });
  }) : renderProgressBar({
    min: min,
    now: now,
    max: max,
    label: label,
    srOnly: srOnly,
    striped: striped,
    animated: animated,
    bsPrefix: bsPrefix,
    variant: variant
  }, ref));
});
ProgressBar.displayName = 'ProgressBar';
ProgressBar.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ProgressBar);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ResponsiveEmbed.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ResponsiveEmbed.js ***!
  \*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var defaultProps = {
  aspectRatio: '1by1'
};
var ResponsiveEmbed = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      aspectRatio = _ref.aspectRatio,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'embed-responsive');
  var child = react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.only(children);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
  }), react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(child, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(child.props.className, decoratedBsPrefix + "-item")
  }));
});
ResponsiveEmbed.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ResponsiveEmbed);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Row.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Row.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
var defaultProps = {
  noGutters: false
};
var Row = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      noGutters = _ref.noGutters,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "noGutters", "as"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'row');
  var sizePrefix = decoratedBsPrefix + "-cols";
  var classes = [];
  DEVICE_SIZES.forEach(function (brkPoint) {
    var propValue = props[brkPoint];
    delete props[brkPoint];
    var cols;

    if (propValue != null && typeof propValue === 'object') {
      cols = propValue.cols;
    } else {
      cols = propValue;
    }

    var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
    if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default.a.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
  }));
});
Row.displayName = 'Row';
Row.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (Row);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/SafeAnchor.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/SafeAnchor.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _createChainedFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createChainedFunction */ "./node_modules/react-bootstrap/esm/createChainedFunction.js");





function isTrivialHref(href) {
  return !href || href.trim() === '#';
}
/**
 * There are situations due to browser quirks or Bootstrap CSS where
 * an anchor tag is needed, when semantically a button tag is the
 * better choice. SafeAnchor ensures that when an anchor is used like a
 * button its accessible. It also emulates input `disabled` behavior for
 * links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
 */


var SafeAnchor = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'a' : _ref$as,
      disabled = _ref.disabled,
      onKeyDown = _ref.onKeyDown,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["as", "disabled", "onKeyDown"]);

  var handleClick = function handleClick(event) {
    var href = props.href,
        onClick = props.onClick;

    if (disabled || isTrivialHref(href)) {
      event.preventDefault();
    }

    if (disabled) {
      event.stopPropagation();
      return;
    }

    if (onClick) {
      onClick(event);
    }
  };

  var handleKeyDown = function handleKeyDown(event) {
    if (event.key === ' ') {
      event.preventDefault();
      handleClick(event);
    }
  };

  if (isTrivialHref(props.href)) {
    props.role = props.role || 'button'; // we want to make sure there is a href attribute on the node
    // otherwise, the cursor incorrectly styled (except with role='button')

    props.href = props.href || '#';
  }

  if (disabled) {
    props.tabIndex = -1;
    props['aria-disabled'] = true;
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    onClick: handleClick,
    onKeyDown: Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_3__["default"])(handleKeyDown, onKeyDown)
  }));
});
SafeAnchor.displayName = 'SafeAnchor';
/* harmony default export */ __webpack_exports__["default"] = (SafeAnchor);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/SelectableContext.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/SelectableContext.js ***!
  \***************************************************************/
/*! exports provided: makeEventKey, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeEventKey", function() { return makeEventKey; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var SelectableContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext();
var makeEventKey = function makeEventKey(eventKey, href) {
  if (eventKey != null) return String(eventKey);
  return href || null;
};
/* harmony default export */ __webpack_exports__["default"] = (SelectableContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Spinner.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Spinner.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var Spinner = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      variant = _ref.variant,
      animation = _ref.animation,
      size = _ref.size,
      children = _ref.children,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'spinner');
  var bsSpinnerPrefix = bsPrefix + "-" + animation;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
  }), children);
});
Spinner.displayName = 'Spinner';
/* harmony default export */ __webpack_exports__["default"] = (Spinner);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/SplitButton.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/SplitButton.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/esm/Button.js");
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/react-bootstrap/esm/ButtonGroup.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/esm/Dropdown.js");







var propTypes = {
  /**
   * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
   * @type {string|number}
   * @required
   */
  id: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any,

  /**
   * Accessible label for the toggle; the value of `title` if not specified.
   */
  toggleLabel: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** An `href` passed to the non-toggle Button */
  href: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** An anchor `target` passed to the non-toggle Button */
  target: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** An `onClick` handler passed to the non-toggle Button */
  onClick: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,

  /** The content of the non-toggle Button.  */
  title: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.node.isRequired,

  /** A `type` passed to the non-toggle Button */
  type: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** Disables both Buttons  */
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
  menuRole: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** Whether to render the dropdown menu in the DOM before the first time it is shown */
  renderMenuOnMount: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   *  Which event when fired outside the component will cause it to be closed.
   *
   * _see [DropdownMenu](#menu-props) for more details_
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  bsPrefix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  variant: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /** @ignore */
  size: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
var defaultProps = {
  toggleLabel: 'Toggle dropdown',
  type: 'button'
};
var SplitButton = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var id = _ref.id,
      bsPrefix = _ref.bsPrefix,
      size = _ref.size,
      variant = _ref.variant,
      title = _ref.title,
      type = _ref.type,
      toggleLabel = _ref.toggleLabel,
      children = _ref.children,
      onClick = _ref.onClick,
      href = _ref.href,
      target = _ref.target,
      menuRole = _ref.menuRole,
      renderMenuOnMount = _ref.renderMenuOnMount,
      rootCloseEvent = _ref.rootCloseEvent,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    as: _ButtonGroup__WEBPACK_IMPORTED_MODULE_5__["default"]
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__["default"], {
    size: size,
    variant: variant,
    disabled: props.disabled,
    bsPrefix: bsPrefix,
    href: href,
    target: target,
    onClick: onClick,
    type: type
  }, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Toggle, {
    split: true,
    id: id,
    size: size,
    variant: variant,
    disabled: props.disabled,
    childBsPrefix: bsPrefix
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
    className: "sr-only"
  }, toggleLabel)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].Menu, {
    role: menuRole,
    renderOnMount: renderMenuOnMount,
    rootCloseEvent: rootCloseEvent
  }, children));
});
SplitButton.propTypes = propTypes;
SplitButton.defaultProps = defaultProps;
SplitButton.displayName = 'SplitButton';
/* harmony default export */ __webpack_exports__["default"] = (SplitButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Switch.js":
/*!****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Switch.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _FormCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormCheck */ "./node_modules/react-bootstrap/esm/FormCheck.js");



var Switch = react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (props, ref) {
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_FormCheck__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    type: "switch"
  }));
});
Switch.displayName = 'Switch';
Switch.Input = _FormCheck__WEBPACK_IMPORTED_MODULE_2__["default"].Input;
Switch.Label = _FormCheck__WEBPACK_IMPORTED_MODULE_2__["default"].Label;
/* harmony default export */ __webpack_exports__["default"] = (Switch);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Tab.js":
/*!*************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Tab.js ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/react-bootstrap/esm/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabContent */ "./node_modules/react-bootstrap/esm/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabPane */ "./node_modules/react-bootstrap/esm/TabPane.js");





/* eslint-disable react/require-render-return, react/no-unused-prop-types */

var Tab = /*#__PURE__*/function (_React$Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(Tab, _React$Component);

  function Tab() {
    return _React$Component.apply(this, arguments) || this;
  }

  var _proto = Tab.prototype;

  _proto.render = function render() {
    throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly');
  };

  return Tab;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

Tab.Container = _TabContainer__WEBPACK_IMPORTED_MODULE_2__["default"];
Tab.Content = _TabContent__WEBPACK_IMPORTED_MODULE_3__["default"];
Tab.Pane = _TabPane__WEBPACK_IMPORTED_MODULE_4__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Tab);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/TabContainer.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/TabContainer.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _TabContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabContext */ "./node_modules/react-bootstrap/esm/TabContext.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");




/* eslint-disable react/no-unused-prop-types */

var TabContainer = function TabContainer(props) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_1__["useUncontrolled"])(props, {
    activeKey: 'onSelect'
  }),
      id = _useUncontrolled.id,
      generateCustomChildId = _useUncontrolled.generateChildId,
      onSelect = _useUncontrolled.onSelect,
      activeKey = _useUncontrolled.activeKey,
      transition = _useUncontrolled.transition,
      mountOnEnter = _useUncontrolled.mountOnEnter,
      unmountOnExit = _useUncontrolled.unmountOnExit,
      children = _useUncontrolled.children;

  var generateChildId = Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
    return generateCustomChildId || function (key, type) {
      return id ? id + "-" + type + "-" + key : null;
    };
  }, [id, generateCustomChildId]);
  var tabContext = Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
    return {
      onSelect: onSelect,
      activeKey: activeKey,
      transition: transition,
      mountOnEnter: mountOnEnter,
      unmountOnExit: unmountOnExit,
      getControlledId: function getControlledId(key) {
        return generateChildId(key, 'tabpane');
      },
      getControllerId: function getControllerId(key) {
        return generateChildId(key, 'tab');
      }
    };
  }, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TabContext__WEBPACK_IMPORTED_MODULE_2__["default"].Provider, {
    value: tabContext
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_3__["default"].Provider, {
    value: onSelect
  }, children));
};

/* harmony default export */ __webpack_exports__["default"] = (TabContainer);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/TabContent.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/TabContent.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var TabContent = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      _ref$as = _ref.as,
      Component = _ref$as === void 0 ? 'div' : _ref$as,
      className = _ref.className,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "as", "className"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'tab-content');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, decoratedBsPrefix)
  }));
});
/* harmony default export */ __webpack_exports__["default"] = (TabContent);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/TabContext.js":
/*!********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/TabContext.js ***!
  \********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var TabContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null);
/* harmony default export */ __webpack_exports__["default"] = (TabContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/TabPane.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/TabPane.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _TabContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabContext */ "./node_modules/react-bootstrap/esm/TabContext.js");
/* harmony import */ var _SelectableContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectableContext */ "./node_modules/react-bootstrap/esm/SelectableContext.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");









function useTabContext(props) {
  var context = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_TabContext__WEBPACK_IMPORTED_MODULE_5__["default"]);
  if (!context) return props;

  var activeKey = context.activeKey,
      getControlledId = context.getControlledId,
      getControllerId = context.getControllerId,
      rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(context, ["activeKey", "getControlledId", "getControllerId"]);

  var shouldTransition = props.transition !== false && rest.transition !== false;
  var key = Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["makeEventKey"])(props.eventKey);
  return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    active: props.active == null && key != null ? Object(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["makeEventKey"])(activeKey) === key : props.active,
    id: getControlledId(props.eventKey),
    'aria-labelledby': getControllerId(props.eventKey),
    transition: shouldTransition && (props.transition || rest.transition || _Fade__WEBPACK_IMPORTED_MODULE_7__["default"]),
    mountOnEnter: props.mountOnEnter != null ? props.mountOnEnter : rest.mountOnEnter,
    unmountOnExit: props.unmountOnExit != null ? props.unmountOnExit : rest.unmountOnExit
  });
}

var TabPane = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
  var _useTabContext = useTabContext(props),
      bsPrefix = _useTabContext.bsPrefix,
      className = _useTabContext.className,
      active = _useTabContext.active,
      onEnter = _useTabContext.onEnter,
      onEntering = _useTabContext.onEntering,
      onEntered = _useTabContext.onEntered,
      onExit = _useTabContext.onExit,
      onExiting = _useTabContext.onExiting,
      onExited = _useTabContext.onExited,
      mountOnEnter = _useTabContext.mountOnEnter,
      unmountOnExit = _useTabContext.unmountOnExit,
      Transition = _useTabContext.transition,
      _useTabContext$as = _useTabContext.as,
      Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
      _ = _useTabContext.eventKey,
      rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);

  var prefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'tab-pane');
  if (!active && !Transition && unmountOnExit) return null;
  var pane = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rest, {
    ref: ref,
    role: "tabpanel",
    "aria-hidden": !active,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, prefix, {
      active: active
    })
  }));
  if (Transition) pane = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Transition, {
    in: active,
    onEnter: onEnter,
    onEntering: onEntering,
    onEntered: onEntered,
    onExit: onExit,
    onExiting: onExiting,
    onExited: onExited,
    mountOnEnter: mountOnEnter,
    unmountOnExit: unmountOnExit
  }, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
  // conflict with the top level one.

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TabContext__WEBPACK_IMPORTED_MODULE_5__["default"].Provider, {
    value: null
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_SelectableContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
    value: null
  }, pane));
});
TabPane.displayName = 'TabPane';
/* harmony default export */ __webpack_exports__["default"] = (TabPane);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Table.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Table.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");





var Table = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      striped = _ref.striped,
      bordered = _ref.bordered,
      borderless = _ref.borderless,
      hover = _ref.hover,
      size = _ref.size,
      variant = _ref.variant,
      responsive = _ref.responsive,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);

  var decoratedBsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_4__["useBootstrapPrefix"])(bsPrefix, 'table');
  var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
  var table = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("table", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    className: classes,
    ref: ref
  }));

  if (responsive) {
    var responsiveClass = decoratedBsPrefix + "-responsive";

    if (typeof responsive === 'string') {
      responsiveClass = responsiveClass + "-" + responsive;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
      className: responsiveClass
    }, table);
  }

  return table;
});
/* harmony default export */ __webpack_exports__["default"] = (Table);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Tabs.js":
/*!**************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Tabs.js ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Nav */ "./node_modules/react-bootstrap/esm/Nav.js");
/* harmony import */ var _NavLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NavLink */ "./node_modules/react-bootstrap/esm/NavLink.js");
/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NavItem */ "./node_modules/react-bootstrap/esm/NavItem.js");
/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/react-bootstrap/esm/TabContainer.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TabContent */ "./node_modules/react-bootstrap/esm/TabContent.js");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TabPane */ "./node_modules/react-bootstrap/esm/TabPane.js");
/* harmony import */ var _ElementChildren__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ElementChildren */ "./node_modules/react-bootstrap/esm/ElementChildren.js");












var defaultProps = {
  variant: 'tabs',
  mountOnEnter: false,
  unmountOnExit: false
};

function getDefaultActiveKey(children) {
  var defaultActiveKey;
  Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_11__["forEach"])(children, function (child) {
    if (defaultActiveKey == null) {
      defaultActiveKey = child.props.eventKey;
    }
  });
  return defaultActiveKey;
}

function renderTab(child) {
  var _child$props = child.props,
      title = _child$props.title,
      eventKey = _child$props.eventKey,
      disabled = _child$props.disabled,
      tabClassName = _child$props.tabClassName,
      id = _child$props.id;

  if (title == null) {
    return null;
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_NavItem__WEBPACK_IMPORTED_MODULE_7__["default"], {
    as: _NavLink__WEBPACK_IMPORTED_MODULE_6__["default"],
    eventKey: eventKey,
    disabled: disabled,
    id: id,
    className: tabClassName
  }, title);
}

var Tabs = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (props, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])(props, {
    activeKey: 'onSelect'
  }),
      id = _useUncontrolled.id,
      onSelect = _useUncontrolled.onSelect,
      transition = _useUncontrolled.transition,
      mountOnEnter = _useUncontrolled.mountOnEnter,
      unmountOnExit = _useUncontrolled.unmountOnExit,
      children = _useUncontrolled.children,
      _useUncontrolled$acti = _useUncontrolled.activeKey,
      activeKey = _useUncontrolled$acti === void 0 ? getDefaultActiveKey(children) : _useUncontrolled$acti,
      controlledProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["id", "onSelect", "transition", "mountOnEnter", "unmountOnExit", "children", "activeKey"]);

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TabContainer__WEBPACK_IMPORTED_MODULE_8__["default"], {
    ref: ref,
    id: id,
    activeKey: activeKey,
    onSelect: onSelect,
    transition: transition,
    mountOnEnter: mountOnEnter,
    unmountOnExit: unmountOnExit
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Nav__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, controlledProps, {
    role: "tablist",
    as: "nav"
  }), Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_11__["map"])(children, renderTab)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TabContent__WEBPACK_IMPORTED_MODULE_9__["default"], null, Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_11__["map"])(children, function (child) {
    var childProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, child.props);

    delete childProps.title;
    delete childProps.disabled;
    delete childProps.tabClassName;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TabPane__WEBPACK_IMPORTED_MODULE_10__["default"], childProps);
  })));
});
Tabs.defaultProps = defaultProps;
Tabs.displayName = 'Tabs';
/* harmony default export */ __webpack_exports__["default"] = (Tabs);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ThemeProvider.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ThemeProvider.js ***!
  \***********************************************************/
/*! exports provided: useBootstrapPrefix, createBootstrapComponent, ThemeConsumer, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useBootstrapPrefix", function() { return useBootstrapPrefix; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBootstrapComponent", function() { return createBootstrapComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeConsumer", function() { return Consumer; });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _restart_context_forwardRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @restart/context/forwardRef */ "./node_modules/@restart/context/forwardRef.js");
/* harmony import */ var _restart_context_forwardRef__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_restart_context_forwardRef__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);



var ThemeContext = react__WEBPACK_IMPORTED_MODULE_2___default.a.createContext({});
var Consumer = ThemeContext.Consumer,
    Provider = ThemeContext.Provider;

function ThemeProvider(_ref) {
  var prefixes = _ref.prefixes,
      children = _ref.children;
  var copiedPrefixes = Object(react__WEBPACK_IMPORTED_MODULE_2__["useMemo"])(function () {
    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, prefixes);
  }, [prefixes]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Provider, {
    value: copiedPrefixes
  }, children);
}

function useBootstrapPrefix(prefix, defaultPrefix) {
  var prefixes = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(ThemeContext);
  return prefix || prefixes[defaultPrefix] || defaultPrefix;
}

function createBootstrapComponent(Component, opts) {
  if (typeof opts === 'string') opts = {
    prefix: opts
  };
  var isClassy = Component.prototype && Component.prototype.isReactComponent; // If it's a functional component make sure we don't break it with a ref

  var _opts = opts,
      prefix = _opts.prefix,
      _opts$forwardRefAs = _opts.forwardRefAs,
      forwardRefAs = _opts$forwardRefAs === void 0 ? isClassy ? 'ref' : 'innerRef' : _opts$forwardRefAs;
  return _restart_context_forwardRef__WEBPACK_IMPORTED_MODULE_1___default()(function (_ref2, ref) {
    var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, _ref2);

    props[forwardRefAs] = ref; // eslint-disable-next-line react/prop-types

    var bsPrefix = useBootstrapPrefix(props.bsPrefix, prefix);
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
      bsPrefix: bsPrefix
    }));
  }, {
    displayName: "Bootstrap(" + (Component.displayName || Component.name) + ")"
  });
}


/* harmony default export */ __webpack_exports__["default"] = (ThemeProvider);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Toast.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Toast.js ***!
  \***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useTimeout */ "./node_modules/@restart/hooks/esm/useTimeout.js");
/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");
/* harmony import */ var _ToastHeader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToastHeader */ "./node_modules/react-bootstrap/esm/ToastHeader.js");
/* harmony import */ var _ToastBody__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToastBody */ "./node_modules/react-bootstrap/esm/ToastBody.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _ToastContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ToastContext */ "./node_modules/react-bootstrap/esm/ToastContext.js");










var defaultProps = {
  animation: true,
  autohide: false,
  delay: 3000,
  show: true,
  transition: _Fade__WEBPACK_IMPORTED_MODULE_5__["default"]
};
var Toast = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      className = _ref.className,
      children = _ref.children,
      Transition = _ref.transition,
      show = _ref.show,
      animation = _ref.animation,
      delay = _ref.delay,
      autohide = _ref.autohide,
      onClose = _ref.onClose,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_8__["useBootstrapPrefix"])('toast');
  var delayRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(delay);
  var onCloseRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(onClose);
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    // We use refs for these, because we don't want to restart the autohide
    // timer in case these values change.
    delayRef.current = delay;
    onCloseRef.current = onClose;
  }, [delay, onClose]);
  var autohideTimeout = Object(_restart_hooks_useTimeout__WEBPACK_IMPORTED_MODULE_4__["default"])();
  var autohideFunc = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function () {
    if (!(autohide && show)) {
      return;
    }

    onCloseRef.current();
  }, [autohide, show]);
  autohideTimeout.set(autohideFunc, delayRef.current);
  var hasAnimation = Object(react__WEBPACK_IMPORTED_MODULE_2__["useMemo"])(function () {
    return Transition && animation;
  }, [Transition, animation]);
  var toast = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_3___default()(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
    role: "alert",
    "aria-live": "assertive",
    "aria-atomic": "true"
  }), children);
  var toastContext = {
    onClose: onClose
  };
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ToastContext__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, {
    value: toastContext
  }, hasAnimation ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Transition, {
    in: show,
    unmountOnExit: true
  }, toast) : toast);
});
Toast.defaultProps = defaultProps;
Toast.displayName = 'Toast';
Toast.Body = _ToastBody__WEBPACK_IMPORTED_MODULE_7__["default"];
Toast.Header = _ToastHeader__WEBPACK_IMPORTED_MODULE_6__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Toast);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ToastBody.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ToastBody.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createWithBsPrefix */ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js");

/* harmony default export */ __webpack_exports__["default"] = (Object(_createWithBsPrefix__WEBPACK_IMPORTED_MODULE_0__["default"])('toast-body'));

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ToastContext.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ToastContext.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var ToastContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({
  onClose: function onClose() {}
});
/* harmony default export */ __webpack_exports__["default"] = (ToastContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ToastHeader.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ToastHeader.js ***!
  \*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/react-bootstrap/esm/CloseButton.js");
/* harmony import */ var _ToastContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToastContext */ "./node_modules/react-bootstrap/esm/ToastContext.js");








var defaultProps = {
  closeLabel: 'Close',
  closeButton: true
};
var ToastHeader = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      closeLabel = _ref.closeLabel,
      closeButton = _ref.closeButton,
      className = _ref.className,
      children = _ref.children,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'toast-header');
  var context = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_ToastContext__WEBPACK_IMPORTED_MODULE_7__["default"]);
  var handleClick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_4__["default"])(function (e) {
    if (context && context.onClose) {
      context.onClose(e);
    }
  });
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref
  }, props, {
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(bsPrefix, className)
  }), children, closeButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_CloseButton__WEBPACK_IMPORTED_MODULE_6__["default"], {
    label: closeLabel,
    onClick: handleClick,
    className: "ml-2 mb-1",
    "data-dismiss": "toast"
  }));
});
ToastHeader.displayName = 'ToastHeader';
ToastHeader.defaultProps = defaultProps;
/* harmony default export */ __webpack_exports__["default"] = (ToastHeader);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ToggleButton.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ToggleButton.js ***!
  \**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/esm/Button.js");






var noop = function noop() {};

var ToggleButton = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var children = _ref.children,
      name = _ref.name,
      className = _ref.className,
      checked = _ref.checked,
      type = _ref.type,
      onChange = _ref.onChange,
      value = _ref.value,
      disabled = _ref.disabled,
      inputRef = _ref.inputRef,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
      focused = _useState[0],
      setFocused = _useState[1];

  var handleFocus = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (e) {
    if (e.target.tagName === 'INPUT') setFocused(true);
  }, []);
  var handleBlur = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (e) {
    if (e.target.tagName === 'INPUT') setFocused(false);
  }, []);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
    ref: ref,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, focused && 'focus', disabled && 'disabled'),
    type: null,
    active: !!checked,
    as: "label"
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("input", {
    name: name,
    type: type,
    value: value,
    ref: inputRef,
    autoComplete: "off",
    checked: !!checked,
    disabled: !!disabled,
    onFocus: handleFocus,
    onBlur: handleBlur,
    onChange: onChange || noop
  }), children);
});
ToggleButton.displayName = 'ToggleButton';
/* harmony default export */ __webpack_exports__["default"] = (ToggleButton);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/ToggleButtonGroup.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/ToggleButtonGroup.js ***!
  \***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _createChainedFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createChainedFunction */ "./node_modules/react-bootstrap/esm/createChainedFunction.js");
/* harmony import */ var _ElementChildren__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ElementChildren */ "./node_modules/react-bootstrap/esm/ElementChildren.js");
/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/react-bootstrap/esm/ButtonGroup.js");
/* harmony import */ var _ToggleButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ToggleButton */ "./node_modules/react-bootstrap/esm/ToggleButton.js");









var defaultProps = {
  type: 'radio'
};
var ToggleButtonGroup = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(function (props, ref) {
  var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])(props, {
    value: 'onChange'
  }),
      children = _useUncontrolled.children,
      type = _useUncontrolled.type,
      name = _useUncontrolled.name,
      value = _useUncontrolled.value,
      onChange = _useUncontrolled.onChange,
      controlledProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);

  var getValues = function getValues() {
    return value == null ? [] : [].concat(value);
  };

  var handleToggle = function handleToggle(inputVal, event) {
    var values = getValues();
    var isActive = values.indexOf(inputVal) !== -1;

    if (type === 'radio') {
      if (!isActive) onChange(inputVal, event);
      return;
    }

    if (isActive) {
      onChange(values.filter(function (n) {
        return n !== inputVal;
      }), event);
    } else {
      onChange([].concat(values, [inputVal]), event);
    }
  };

  !(type !== 'radio' || !!name) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_3___default()(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : undefined : void 0;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ButtonGroup__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, controlledProps, {
    ref: ref,
    toggle: true
  }), Object(_ElementChildren__WEBPACK_IMPORTED_MODULE_6__["map"])(children, function (child) {
    var values = getValues();
    var _child$props = child.props,
        childVal = _child$props.value,
        childOnChange = _child$props.onChange;

    var handler = function handler(e) {
      return handleToggle(childVal, e);
    };

    return react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(child, {
      type: type,
      name: child.name || name,
      checked: values.indexOf(childVal) !== -1,
      onChange: Object(_createChainedFunction__WEBPACK_IMPORTED_MODULE_5__["default"])(childOnChange, handler)
    });
  }));
});
ToggleButtonGroup.defaultProps = defaultProps;
ToggleButtonGroup.Button = _ToggleButton__WEBPACK_IMPORTED_MODULE_8__["default"];
/* harmony default export */ __webpack_exports__["default"] = (ToggleButtonGroup);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/Tooltip.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/Tooltip.js ***!
  \*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types-extra/lib/isRequiredForA11y */ "./node_modules/prop-types-extra/lib/isRequiredForA11y.js");
/* harmony import */ var prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types_extra_lib_isRequiredForA11y__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");






var defaultProps = {
  placement: 'right'
};
var Tooltip = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (_ref, ref) {
  var bsPrefix = _ref.bsPrefix,
      placement = _ref.placement,
      className = _ref.className,
      style = _ref.style,
      children = _ref.children,
      arrowProps = _ref.arrowProps,
      _ = _ref.popper,
      _2 = _ref.show,
      props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);

  bsPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, 'tooltip');
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    ref: ref,
    style: style,
    role: "tooltip",
    "x-placement": placement,
    className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, bsPrefix, "bs-tooltip-" + placement)
  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    className: "arrow"
  }, arrowProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
    className: bsPrefix + "-inner"
  }, children));
});
Tooltip.defaultProps = defaultProps;
Tooltip.displayName = 'Tooltip';
/* harmony default export */ __webpack_exports__["default"] = (Tooltip);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/createChainedFunction.js":
/*!*******************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/createChainedFunction.js ***!
  \*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/**
 * Safe chained function
 *
 * Will only create a new function if needed,
 * otherwise will pass back existing functions or null.
 *
 * @param {function} functions to chain
 * @returns {function|null}
 */
function createChainedFunction() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.filter(function (f) {
    return f != null;
  }).reduce(function (acc, f) {
    if (typeof f !== 'function') {
      throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
    }

    if (acc === null) return f;
    return function chainedFunction() {
      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }

      acc.apply(this, args);
      f.apply(this, args);
    };
  }, null);
}

/* harmony default export */ __webpack_exports__["default"] = (createChainedFunction);

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/createWithBsPrefix.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/createWithBsPrefix.js ***!
  \****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createWithBsPrefix; });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var dom_helpers_camelize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/camelize */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/camelize.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");







var pascalCase = function pascalCase(str) {
  return str[0].toUpperCase() + Object(dom_helpers_camelize__WEBPACK_IMPORTED_MODULE_3__["default"])(str).slice(1);
};

function createWithBsPrefix(prefix, _temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      _ref$displayName = _ref.displayName,
      displayName = _ref$displayName === void 0 ? pascalCase(prefix) : _ref$displayName,
      _ref$Component = _ref.Component,
      Component = _ref$Component === void 0 ? 'div' : _ref$Component,
      defaultProps = _ref.defaultProps;

  var BsComponent = react__WEBPACK_IMPORTED_MODULE_4___default.a.forwardRef( // eslint-disable-next-line react/prop-types
  function (_ref2, ref) {
    var className = _ref2.className,
        bsPrefix = _ref2.bsPrefix,
        _ref2$as = _ref2.as,
        Tag = _ref2$as === void 0 ? Component : _ref2$as,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, ["className", "bsPrefix", "as"]);

    var resolvedPrefix = Object(_ThemeProvider__WEBPACK_IMPORTED_MODULE_5__["useBootstrapPrefix"])(bsPrefix, prefix);
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Tag, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
      ref: ref,
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, resolvedPrefix)
    }, props));
  });
  BsComponent.defaultProps = defaultProps;
  BsComponent.displayName = displayName;
  return BsComponent;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/divWithClassName.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/divWithClassName.js ***!
  \**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);



/* harmony default export */ __webpack_exports__["default"] = (function (className) {
  return react__WEBPACK_IMPORTED_MODULE_1___default.a.forwardRef(function (p, ref) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, p, {
      ref: ref,
      className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(p.className, className)
    }));
  });
});

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/index.js":
/*!***************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/index.js ***!
  \***************************************************/
/*! exports provided: Accordion, AccordionToggle, useAccordionToggle, AccordionCollapse, Alert, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, ButtonToolbar, Card, CardColumns, CardDeck, CardImg, CardGroup, Carousel, CarouselItem, CloseButton, Col, Collapse, Dropdown, DropdownButton, DropdownItem, Fade, Form, FormControl, FormCheck, FormFile, Switch, FormGroup, FormLabel, FormText, Container, Image, Figure, InputGroup, Jumbotron, ListGroup, ListGroupItem, Media, Modal, ModalBody, ModalDialog, ModalFooter, ModalTitle, Nav, Navbar, NavbarBrand, NavDropdown, NavItem, NavLink, Overlay, OverlayTrigger, PageItem, Pagination, Popover, PopoverContent, PopoverTitle, ProgressBar, ResponsiveEmbed, Row, SafeAnchor, Spinner, SplitButton, Tab, TabContainer, TabContent, Table, TabPane, Tabs, ThemeProvider, ToggleButton, ToggleButtonGroup, Tooltip, Toast, ToastBody, ToastHeader */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Accordion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Accordion */ "./node_modules/react-bootstrap/esm/Accordion.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Accordion", function() { return _Accordion__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony import */ var _AccordionToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AccordionToggle */ "./node_modules/react-bootstrap/esm/AccordionToggle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionToggle", function() { return _AccordionToggle__WEBPACK_IMPORTED_MODULE_1__["default"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useAccordionToggle", function() { return _AccordionToggle__WEBPACK_IMPORTED_MODULE_1__["useAccordionToggle"]; });

/* harmony import */ var _AccordionCollapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AccordionCollapse */ "./node_modules/react-bootstrap/esm/AccordionCollapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AccordionCollapse", function() { return _AccordionCollapse__WEBPACK_IMPORTED_MODULE_2__["default"]; });

/* harmony import */ var _Alert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Alert */ "./node_modules/react-bootstrap/esm/Alert.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _Alert__WEBPACK_IMPORTED_MODULE_3__["default"]; });

/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Badge */ "./node_modules/react-bootstrap/esm/Badge.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _Badge__WEBPACK_IMPORTED_MODULE_4__["default"]; });

/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/react-bootstrap/esm/Breadcrumb.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _Breadcrumb__WEBPACK_IMPORTED_MODULE_5__["default"]; });

/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BreadcrumbItem */ "./node_modules/react-bootstrap/esm/BreadcrumbItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbItem", function() { return _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__["default"]; });

/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Button */ "./node_modules/react-bootstrap/esm/Button.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _Button__WEBPACK_IMPORTED_MODULE_7__["default"]; });

/* harmony import */ var _ButtonGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ButtonGroup */ "./node_modules/react-bootstrap/esm/ButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return _ButtonGroup__WEBPACK_IMPORTED_MODULE_8__["default"]; });

/* harmony import */ var _ButtonToolbar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ButtonToolbar */ "./node_modules/react-bootstrap/esm/ButtonToolbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonToolbar", function() { return _ButtonToolbar__WEBPACK_IMPORTED_MODULE_9__["default"]; });

/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Card */ "./node_modules/react-bootstrap/esm/Card.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _Card__WEBPACK_IMPORTED_MODULE_10__["default"]; });

/* harmony import */ var _CardColumns__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CardColumns */ "./node_modules/react-bootstrap/esm/CardColumns.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardColumns", function() { return _CardColumns__WEBPACK_IMPORTED_MODULE_11__["default"]; });

/* harmony import */ var _CardDeck__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CardDeck */ "./node_modules/react-bootstrap/esm/CardDeck.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardDeck", function() { return _CardDeck__WEBPACK_IMPORTED_MODULE_12__["default"]; });

/* harmony import */ var _CardImg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./CardImg */ "./node_modules/react-bootstrap/esm/CardImg.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardImg", function() { return _CardImg__WEBPACK_IMPORTED_MODULE_13__["default"]; });

/* harmony import */ var _CardGroup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./CardGroup */ "./node_modules/react-bootstrap/esm/CardGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CardGroup", function() { return _CardGroup__WEBPACK_IMPORTED_MODULE_14__["default"]; });

/* harmony import */ var _Carousel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Carousel */ "./node_modules/react-bootstrap/esm/Carousel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return _Carousel__WEBPACK_IMPORTED_MODULE_15__["default"]; });

/* harmony import */ var _CarouselItem__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./CarouselItem */ "./node_modules/react-bootstrap/esm/CarouselItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CarouselItem", function() { return _CarouselItem__WEBPACK_IMPORTED_MODULE_16__["default"]; });

/* harmony import */ var _CloseButton__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CloseButton */ "./node_modules/react-bootstrap/esm/CloseButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CloseButton", function() { return _CloseButton__WEBPACK_IMPORTED_MODULE_17__["default"]; });

/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Col */ "./node_modules/react-bootstrap/esm/Col.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_18__["default"]; });

/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Collapse */ "./node_modules/react-bootstrap/esm/Collapse.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return _Collapse__WEBPACK_IMPORTED_MODULE_19__["default"]; });

/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/react-bootstrap/esm/Dropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _Dropdown__WEBPACK_IMPORTED_MODULE_20__["default"]; });

/* harmony import */ var _DropdownButton__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./DropdownButton */ "./node_modules/react-bootstrap/esm/DropdownButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButton", function() { return _DropdownButton__WEBPACK_IMPORTED_MODULE_21__["default"]; });

/* harmony import */ var _DropdownItem__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./DropdownItem */ "./node_modules/react-bootstrap/esm/DropdownItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownItem", function() { return _DropdownItem__WEBPACK_IMPORTED_MODULE_22__["default"]; });

/* harmony import */ var _Fade__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Fade */ "./node_modules/react-bootstrap/esm/Fade.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Fade", function() { return _Fade__WEBPACK_IMPORTED_MODULE_23__["default"]; });

/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Form */ "./node_modules/react-bootstrap/esm/Form.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _Form__WEBPACK_IMPORTED_MODULE_24__["default"]; });

/* harmony import */ var _FormControl__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./FormControl */ "./node_modules/react-bootstrap/esm/FormControl.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return _FormControl__WEBPACK_IMPORTED_MODULE_25__["default"]; });

/* harmony import */ var _FormCheck__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./FormCheck */ "./node_modules/react-bootstrap/esm/FormCheck.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormCheck", function() { return _FormCheck__WEBPACK_IMPORTED_MODULE_26__["default"]; });

/* harmony import */ var _FormFile__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./FormFile */ "./node_modules/react-bootstrap/esm/FormFile.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormFile", function() { return _FormFile__WEBPACK_IMPORTED_MODULE_27__["default"]; });

/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Switch */ "./node_modules/react-bootstrap/esm/Switch.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _Switch__WEBPACK_IMPORTED_MODULE_28__["default"]; });

/* harmony import */ var _FormGroup__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./FormGroup */ "./node_modules/react-bootstrap/esm/FormGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return _FormGroup__WEBPACK_IMPORTED_MODULE_29__["default"]; });

/* harmony import */ var _FormLabel__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./FormLabel */ "./node_modules/react-bootstrap/esm/FormLabel.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormLabel", function() { return _FormLabel__WEBPACK_IMPORTED_MODULE_30__["default"]; });

/* harmony import */ var _FormText__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./FormText */ "./node_modules/react-bootstrap/esm/FormText.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormText", function() { return _FormText__WEBPACK_IMPORTED_MODULE_31__["default"]; });

/* harmony import */ var _Container__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Container */ "./node_modules/react-bootstrap/esm/Container.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Container", function() { return _Container__WEBPACK_IMPORTED_MODULE_32__["default"]; });

/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./Image */ "./node_modules/react-bootstrap/esm/Image.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Image", function() { return _Image__WEBPACK_IMPORTED_MODULE_33__["default"]; });

/* harmony import */ var _Figure__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./Figure */ "./node_modules/react-bootstrap/esm/Figure.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Figure", function() { return _Figure__WEBPACK_IMPORTED_MODULE_34__["default"]; });

/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./InputGroup */ "./node_modules/react-bootstrap/esm/InputGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputGroup", function() { return _InputGroup__WEBPACK_IMPORTED_MODULE_35__["default"]; });

/* harmony import */ var _Jumbotron__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Jumbotron */ "./node_modules/react-bootstrap/esm/Jumbotron.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Jumbotron", function() { return _Jumbotron__WEBPACK_IMPORTED_MODULE_36__["default"]; });

/* harmony import */ var _ListGroup__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ListGroup */ "./node_modules/react-bootstrap/esm/ListGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroup", function() { return _ListGroup__WEBPACK_IMPORTED_MODULE_37__["default"]; });

/* harmony import */ var _ListGroupItem__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./ListGroupItem */ "./node_modules/react-bootstrap/esm/ListGroupItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListGroupItem", function() { return _ListGroupItem__WEBPACK_IMPORTED_MODULE_38__["default"]; });

/* harmony import */ var _Media__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./Media */ "./node_modules/react-bootstrap/esm/Media.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Media", function() { return _Media__WEBPACK_IMPORTED_MODULE_39__["default"]; });

/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Modal */ "./node_modules/react-bootstrap/esm/Modal.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _Modal__WEBPACK_IMPORTED_MODULE_40__["default"]; });

/* harmony import */ var _ModalBody__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ModalBody */ "./node_modules/react-bootstrap/esm/ModalBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalBody", function() { return _ModalBody__WEBPACK_IMPORTED_MODULE_41__["default"]; });

/* harmony import */ var _ModalDialog__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ModalDialog */ "./node_modules/react-bootstrap/esm/ModalDialog.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalDialog", function() { return _ModalDialog__WEBPACK_IMPORTED_MODULE_42__["default"]; });

/* harmony import */ var _ModalFooter__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ModalFooter */ "./node_modules/react-bootstrap/esm/ModalFooter.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalFooter", function() { return _ModalFooter__WEBPACK_IMPORTED_MODULE_43__["default"]; });

/* harmony import */ var _ModalTitle__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ModalTitle */ "./node_modules/react-bootstrap/esm/ModalTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ModalTitle", function() { return _ModalTitle__WEBPACK_IMPORTED_MODULE_44__["default"]; });

/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./Nav */ "./node_modules/react-bootstrap/esm/Nav.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Nav", function() { return _Nav__WEBPACK_IMPORTED_MODULE_45__["default"]; });

/* harmony import */ var _Navbar__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./Navbar */ "./node_modules/react-bootstrap/esm/Navbar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Navbar", function() { return _Navbar__WEBPACK_IMPORTED_MODULE_46__["default"]; });

/* harmony import */ var _NavbarBrand__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./NavbarBrand */ "./node_modules/react-bootstrap/esm/NavbarBrand.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavbarBrand", function() { return _NavbarBrand__WEBPACK_IMPORTED_MODULE_47__["default"]; });

/* harmony import */ var _NavDropdown__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./NavDropdown */ "./node_modules/react-bootstrap/esm/NavDropdown.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavDropdown", function() { return _NavDropdown__WEBPACK_IMPORTED_MODULE_48__["default"]; });

/* harmony import */ var _NavItem__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./NavItem */ "./node_modules/react-bootstrap/esm/NavItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavItem", function() { return _NavItem__WEBPACK_IMPORTED_MODULE_49__["default"]; });

/* harmony import */ var _NavLink__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./NavLink */ "./node_modules/react-bootstrap/esm/NavLink.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return _NavLink__WEBPACK_IMPORTED_MODULE_50__["default"]; });

/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./Overlay */ "./node_modules/react-bootstrap/esm/Overlay.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return _Overlay__WEBPACK_IMPORTED_MODULE_51__["default"]; });

/* harmony import */ var _OverlayTrigger__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./OverlayTrigger */ "./node_modules/react-bootstrap/esm/OverlayTrigger.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OverlayTrigger", function() { return _OverlayTrigger__WEBPACK_IMPORTED_MODULE_52__["default"]; });

/* harmony import */ var _PageItem__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./PageItem */ "./node_modules/react-bootstrap/esm/PageItem.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageItem", function() { return _PageItem__WEBPACK_IMPORTED_MODULE_53__["default"]; });

/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./Pagination */ "./node_modules/react-bootstrap/esm/Pagination.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_54__["default"]; });

/* harmony import */ var _Popover__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./Popover */ "./node_modules/react-bootstrap/esm/Popover.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _Popover__WEBPACK_IMPORTED_MODULE_55__["default"]; });

/* harmony import */ var _PopoverContent__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./PopoverContent */ "./node_modules/react-bootstrap/esm/PopoverContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopoverContent", function() { return _PopoverContent__WEBPACK_IMPORTED_MODULE_56__["default"]; });

/* harmony import */ var _PopoverTitle__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./PopoverTitle */ "./node_modules/react-bootstrap/esm/PopoverTitle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopoverTitle", function() { return _PopoverTitle__WEBPACK_IMPORTED_MODULE_57__["default"]; });

/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./ProgressBar */ "./node_modules/react-bootstrap/esm/ProgressBar.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressBar", function() { return _ProgressBar__WEBPACK_IMPORTED_MODULE_58__["default"]; });

/* harmony import */ var _ResponsiveEmbed__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./ResponsiveEmbed */ "./node_modules/react-bootstrap/esm/ResponsiveEmbed.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResponsiveEmbed", function() { return _ResponsiveEmbed__WEBPACK_IMPORTED_MODULE_59__["default"]; });

/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./Row */ "./node_modules/react-bootstrap/esm/Row.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_60__["default"]; });

/* harmony import */ var _SafeAnchor__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./SafeAnchor */ "./node_modules/react-bootstrap/esm/SafeAnchor.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SafeAnchor", function() { return _SafeAnchor__WEBPACK_IMPORTED_MODULE_61__["default"]; });

/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./Spinner */ "./node_modules/react-bootstrap/esm/Spinner.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spinner", function() { return _Spinner__WEBPACK_IMPORTED_MODULE_62__["default"]; });

/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./SplitButton */ "./node_modules/react-bootstrap/esm/SplitButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SplitButton", function() { return _SplitButton__WEBPACK_IMPORTED_MODULE_63__["default"]; });

/* harmony import */ var _Tab__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./Tab */ "./node_modules/react-bootstrap/esm/Tab.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tab", function() { return _Tab__WEBPACK_IMPORTED_MODULE_64__["default"]; });

/* harmony import */ var _TabContainer__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./TabContainer */ "./node_modules/react-bootstrap/esm/TabContainer.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContainer", function() { return _TabContainer__WEBPACK_IMPORTED_MODULE_65__["default"]; });

/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./TabContent */ "./node_modules/react-bootstrap/esm/TabContent.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_66__["default"]; });

/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./Table */ "./node_modules/react-bootstrap/esm/Table.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _Table__WEBPACK_IMPORTED_MODULE_67__["default"]; });

/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./TabPane */ "./node_modules/react-bootstrap/esm/TabPane.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_68__["default"]; });

/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./Tabs */ "./node_modules/react-bootstrap/esm/Tabs.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _Tabs__WEBPACK_IMPORTED_MODULE_69__["default"]; });

/* harmony import */ var _ThemeProvider__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/react-bootstrap/esm/ThemeProvider.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeProvider", function() { return _ThemeProvider__WEBPACK_IMPORTED_MODULE_70__["default"]; });

/* harmony import */ var _ToggleButton__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./ToggleButton */ "./node_modules/react-bootstrap/esm/ToggleButton.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return _ToggleButton__WEBPACK_IMPORTED_MODULE_71__["default"]; });

/* harmony import */ var _ToggleButtonGroup__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./ToggleButtonGroup */ "./node_modules/react-bootstrap/esm/ToggleButtonGroup.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return _ToggleButtonGroup__WEBPACK_IMPORTED_MODULE_72__["default"]; });

/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./Tooltip */ "./node_modules/react-bootstrap/esm/Tooltip.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _Tooltip__WEBPACK_IMPORTED_MODULE_73__["default"]; });

/* harmony import */ var _Toast__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./Toast */ "./node_modules/react-bootstrap/esm/Toast.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toast", function() { return _Toast__WEBPACK_IMPORTED_MODULE_74__["default"]; });

/* harmony import */ var _ToastBody__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./ToastBody */ "./node_modules/react-bootstrap/esm/ToastBody.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastBody", function() { return _ToastBody__WEBPACK_IMPORTED_MODULE_75__["default"]; });

/* harmony import */ var _ToastHeader__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./ToastHeader */ "./node_modules/react-bootstrap/esm/ToastHeader.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToastHeader", function() { return _ToastHeader__WEBPACK_IMPORTED_MODULE_76__["default"]; });





























































































































































/***/ }),

/***/ "./node_modules/react-bootstrap/esm/triggerBrowserReflow.js":
/*!******************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/triggerBrowserReflow.js ***!
  \******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return triggerBrowserReflow; });
// reading a dimension prop will cause the browser to recalculate,
// which will let our animations work
function triggerBrowserReflow(node) {
  node.offsetHeight; // eslint-disable-line no-unused-expressions
}

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/usePopperMarginModifiers.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/usePopperMarginModifiers.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return usePopperMarginModifiers; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var dom_helpers_hasClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/hasClass */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hasClass.js");



function getMargins(element) {
  var styles = getComputedStyle(element);
  var top = parseFloat(styles.marginTop) || 0;
  var right = parseFloat(styles.marginRight) || 0;
  var bottom = parseFloat(styles.marginBottom) || 0;
  var left = parseFloat(styles.marginLeft) || 0;
  return {
    top: top,
    right: right,
    bottom: bottom,
    left: left
  };
}

function usePopperMarginModifiers() {
  var overlayRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
  var margins = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
  return [Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (overlay) {
    if (!overlay || !(Object(dom_helpers_hasClass__WEBPACK_IMPORTED_MODULE_1__["default"])(overlay, 'popover') || Object(dom_helpers_hasClass__WEBPACK_IMPORTED_MODULE_1__["default"])(overlay, 'dropdown-menu'))) return;
    margins.current = getMargins(overlay);
    overlay.style.margin = 0;
    overlayRef.current = overlay;
  }, []), [Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
    return {
      name: 'offset',
      options: {
        offset: function offset(_ref) {
          var placement = _ref.placement;
          if (!margins.current) return [0, 0];
          var _margins$current = margins.current,
              top = _margins$current.top,
              left = _margins$current.left,
              bottom = _margins$current.bottom,
              right = _margins$current.right;

          switch (placement.split('-')[0]) {
            case 'top':
              return [0, bottom];

            case 'left':
              return [0, right];

            case 'bottom':
              return [0, top];

            case 'right':
              return [0, left];

            default:
              return [0, 0];
          }
        }
      }
    };
  }, [margins])]];
}

/***/ }),

/***/ "./node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap/esm/useWrappedRefWithWarning.js ***!
  \**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useWrappedRefWithWarning; });
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @restart/hooks/useMergedRefs */ "./node_modules/@restart/hooks/esm/useMergedRefs.js");



function useWrappedRefWithWarning(ref, componentName) {
  if (false) {} // eslint-disable-next-line react-hooks/rules-of-hooks

  var warningRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useCallback"])(function (refValue) {
    !(refValue == null || !refValue.isReactComponent) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_0___default()(false, componentName + " injected a ref to a provided `as` component that resolved to a component instance instead of a DOM element. " + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : undefined : void 0;
  }, [componentName]); // eslint-disable-next-line react-hooks/rules-of-hooks

  return Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_2__["default"])(warningRef, ref);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];

      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }

    return target;
  };

  return _extends.apply(this, arguments);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
  \***********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \**************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
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;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/activeElement.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/activeElement.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return activeElement; });
/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");

/**
 * Return the actively focused element safely.
 *
 * @param doc the document to checl
 */

function activeElement(doc) {
  if (doc === void 0) {
    doc = Object(_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])();
  }

  // Support: IE 9 only
  // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
  try {
    var active = doc.activeElement; // IE11 returns a seemingly empty object in some cases when accessing
    // document.activeElement from an <iframe>

    if (!active || !active.nodeName) return null;
    return active;
  } catch (e) {
    /* ie throws if no active element */
    return doc.body;
  }
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addClass.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addClass.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addClass; });
/* harmony import */ var _hasClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hasClass */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hasClass.js");

function addClass(element, className) {
  if (element.classList) element.classList.add(className);else if (!Object(_hasClass__WEBPACK_IMPORTED_MODULE_0__["default"])(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addEventListener.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addEventListener.js ***!
  \***************************************************************************************/
/*! exports provided: optionsSupported, onceSupported, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "optionsSupported", function() { return optionsSupported; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onceSupported", function() { return onceSupported; });
/* harmony import */ var _canUseDOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDOM */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js");
/* eslint-disable no-return-assign */

var optionsSupported = false;
var onceSupported = false;

try {
  var options = {
    get passive() {
      return optionsSupported = true;
    },

    get once() {
      // eslint-disable-next-line no-multi-assign
      return onceSupported = optionsSupported = true;
    }

  };

  if (_canUseDOM__WEBPACK_IMPORTED_MODULE_0__["default"]) {
    window.addEventListener('test', options, options);
    window.removeEventListener('test', options, true);
  }
} catch (e) {
  /* */
}

/**
 * An `addEventListener` ponyfill, supports the `once` option
 */
function addEventListener(node, eventName, handler, options) {
  if (options && typeof options !== 'boolean' && !onceSupported) {
    var once = options.once,
        capture = options.capture;
    var wrappedHandler = handler;

    if (!onceSupported && once) {
      wrappedHandler = handler.__once || function onceHandler(event) {
        this.removeEventListener(eventName, onceHandler, capture);
        handler.call(this, event);
      };

      handler.__once = wrappedHandler;
    }

    node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);
  }

  node.addEventListener(eventName, handler, options);
}

/* harmony default export */ __webpack_exports__["default"] = (addEventListener);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/camelize.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/camelize.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return camelize; });
var rHyphen = /-(.)/g;
function camelize(string) {
  return string.replace(rHyphen, function (_, chr) {
    return chr.toUpperCase();
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (!!(typeof window !== 'undefined' && window.document && window.document.createElement));

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/contains.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/contains.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
/* eslint-disable no-bitwise, no-cond-assign */
// HTML DOM and SVG DOM may have different support levels,
// so we need to check on context instead of a document root element.
function contains(context, node) {
  if (context.contains) return context.contains(node);
  if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js":
/*!**************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js ***!
  \**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _getComputedStyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/getComputedStyle.js");
/* harmony import */ var _hyphenateStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hyphenateStyle */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenateStyle.js");
/* harmony import */ var _isTransform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isTransform */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isTransform.js");




function style(node, property) {
  var css = '';
  var transforms = '';

  if (typeof property === 'string') {
    return node.style.getPropertyValue(Object(_hyphenateStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(property)) || Object(_getComputedStyle__WEBPACK_IMPORTED_MODULE_0__["default"])(node).getPropertyValue(Object(_hyphenateStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(property));
  }

  Object.keys(property).forEach(function (key) {
    var value = property[key];

    if (!value && value !== 0) {
      node.style.removeProperty(Object(_hyphenateStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(key));
    } else if (Object(_isTransform__WEBPACK_IMPORTED_MODULE_2__["default"])(key)) {
      transforms += key + "(" + value + ") ";
    } else {
      css += Object(_hyphenateStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(key) + ": " + value + ";";
    }
  });

  if (transforms) {
    css += "transform: " + transforms + ";";
  }

  node.style.cssText += ";" + css;
}

/* harmony default export */ __webpack_exports__["default"] = (style);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/getComputedStyle.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/getComputedStyle.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getComputedStyle; });
/* harmony import */ var _ownerWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ownerWindow */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerWindow.js");

function getComputedStyle(node, psuedoElement) {
  return Object(_ownerWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node).getComputedStyle(node, psuedoElement);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hasClass.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hasClass.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hasClass; });
function hasClass(element, className) {
  if (element.classList) return !!className && element.classList.contains(className);
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenate.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenate.js ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hyphenate; });
var rUpper = /([A-Z])/g;
function hyphenate(string) {
  return string.replace(rUpper, '-$1').toLowerCase();
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenateStyle.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenateStyle.js ***!
  \*************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hyphenateStyleName; });
/* harmony import */ var _hyphenate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hyphenate */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/hyphenate.js");
/**
 * Copyright 2013-2014, Facebook, Inc.
 * All rights reserved.
 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
 */

var msPattern = /^ms-/;
function hyphenateStyleName(string) {
  return Object(_hyphenate__WEBPACK_IMPORTED_MODULE_0__["default"])(string).replace(msPattern, '-ms-');
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isDocument.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isDocument.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isDocument; });
function isDocument(element) {
  return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isTransform.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isTransform.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isTransform; });
var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
function isTransform(value) {
  return !!(value && supportedTransforms.test(value));
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isWindow.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isWindow.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isWindow; });
/* harmony import */ var _isDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isDocument.js");

function isWindow(node) {
  if ('window' in node && node.window === node) return node;
  if (Object(_isDocument__WEBPACK_IMPORTED_MODULE_0__["default"])(node)) return node.defaultView || false;
  return false;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/listen.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/listen.js ***!
  \*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _addEventListener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./addEventListener */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addEventListener.js");
/* harmony import */ var _removeEventListener__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./removeEventListener */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeEventListener.js");



function listen(node, eventName, handler, options) {
  Object(_addEventListener__WEBPACK_IMPORTED_MODULE_0__["default"])(node, eventName, handler, options);
  return function () {
    Object(_removeEventListener__WEBPACK_IMPORTED_MODULE_1__["default"])(node, eventName, handler, options);
  };
}

/* harmony default export */ __webpack_exports__["default"] = (listen);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/matches.js":
/*!******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/matches.js ***!
  \******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return matches; });
var matchesImpl;
function matches(node, selector) {
  if (!matchesImpl) {
    var body = document.body;
    var nativeMatch = body.matches || body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector;

    matchesImpl = function matchesImpl(n, s) {
      return nativeMatch.call(n, s);
    };
  }

  return matchesImpl(node, selector);
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ownerDocument; });
function ownerDocument(node) {
  return node && node.ownerDocument || document;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerWindow.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerWindow.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ownerWindow; });
/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");

function ownerWindow(node) {
  var doc = Object(_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])(node);
  return doc && doc.defaultView || window;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/querySelectorAll.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/querySelectorAll.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return qsa; });
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
function qsa(element, selector) {
  return toArray(element.querySelectorAll(selector));
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeClass.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeClass.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return removeClass; });
function replaceClassName(origClass, classToRemove) {
  return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
}

function removeClass(element, className) {
  if (element.classList) {
    element.classList.remove(className);
  } else if (typeof element.className === 'string') {
    ;
    element.className = replaceClassName(element.className, className);
  } else {
    element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
  }
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeEventListener.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeEventListener.js ***!
  \******************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
function removeEventListener(node, eventName, handler, options) {
  var capture = options && typeof options !== 'boolean' ? options.capture : options;
  node.removeEventListener(eventName, handler, capture);

  if (handler.__once) {
    node.removeEventListener(eventName, handler.__once, capture);
  }
}

/* harmony default export */ __webpack_exports__["default"] = (removeEventListener);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/scrollbarSize.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/scrollbarSize.js ***!
  \************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scrollbarSize; });
/* harmony import */ var _canUseDOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDOM */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js");

var size;
function scrollbarSize(recalc) {
  if (!size && size !== 0 || recalc) {
    if (_canUseDOM__WEBPACK_IMPORTED_MODULE_0__["default"]) {
      var scrollDiv = document.createElement('div');
      scrollDiv.style.position = 'absolute';
      scrollDiv.style.top = '-9999px';
      scrollDiv.style.width = '50px';
      scrollDiv.style.height = '50px';
      scrollDiv.style.overflow = 'scroll';
      document.body.appendChild(scrollDiv);
      size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
      document.body.removeChild(scrollDiv);
    }
  }

  return size;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/transitionEnd.js":
/*!************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/dom-helpers/esm/transitionEnd.js ***!
  \************************************************************************************/
/*! exports provided: TRANSITION_SUPPORTED, parseDuration, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSITION_SUPPORTED", function() { return TRANSITION_SUPPORTED; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDuration", function() { return parseDuration; });
/* harmony import */ var _canUseDOM__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./canUseDOM */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js");
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js");
/* harmony import */ var _listen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./listen */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/listen.js");



var TRANSITION_SUPPORTED = _canUseDOM__WEBPACK_IMPORTED_MODULE_0__["default"] && 'ontransitionend' in window;
function parseDuration(node) {
  var str = Object(_css__WEBPACK_IMPORTED_MODULE_1__["default"])(node, 'transitionDuration') || '';
  var mult = str.indexOf('ms') === -1 ? 1000 : 1;
  return parseFloat(str) * mult;
}

function triggerTransitionEnd(element) {
  var evt = document.createEvent('HTMLEvents');
  evt.initEvent('transitionend', true, true);
  element.dispatchEvent(evt);
}

function emulateTransitionEnd(element, duration, padding) {
  if (padding === void 0) {
    padding = 5;
  }

  var called = false;
  var handle = setTimeout(function () {
    if (!called) triggerTransitionEnd(element);
  }, duration + padding);
  var remove = Object(_listen__WEBPACK_IMPORTED_MODULE_2__["default"])(element, 'transitionend', function () {
    called = true;
  }, {
    once: true
  });
  return function () {
    clearTimeout(handle);
    remove();
  };
}

function transitionEnd(element, handler, duration) {
  if (duration == null) duration = parseDuration(element) || 0;
  var removeEmulate = emulateTransitionEnd(element, duration);
  var remove = Object(_listen__WEBPACK_IMPORTED_MODULE_2__["default"])(element, 'transitionend', handler);
  return function () {
    removeEmulate();
    remove();
  };
}

/* harmony default export */ __webpack_exports__["default"] = (transitionEnd);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/prop-types/checkPropTypes.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/prop-types/checkPropTypes.js ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (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__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/react-bootstrap/node_modules/prop-types/lib/ReactPropTypesSecret.js");
  var loggedTypeFailures = {};
  var has = Function.call.bind(Object.prototype.hasOwnProperty);

  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 (has(typeSpecs, 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 : '')
          );
        }
      }
    }
  }
}

/**
 * Resets warning cache when testing.
 *
 * @private
 */
checkPropTypes.resetWarningCache = function() {
  if (true) {
    loggedTypeFailures = {};
  }
}

module.exports = checkPropTypes;


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/prop-types/factoryWithTypeCheckers.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (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 ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-bootstrap/node_modules/react-is/index.js");
var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");

var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/react-bootstrap/node_modules/prop-types/lib/ReactPropTypesSecret.js");
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/react-bootstrap/node_modules/prop-types/checkPropTypes.js");

var has = Function.call.bind(Object.prototype.hasOwnProperty);
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(),
    elementType: createElementTypeTypeChecker(),
    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 ( true && 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 createElementTypeTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!ReactIs.isValidElementType(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
      }
      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)) {
      if (true) {
        if (arguments.length > 1) {
          printWarning(
            'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
            'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
          );
        } else {
          printWarning('Invalid argument supplied to oneOf, expected an array.');
        }
      }
      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, function replacer(key, value) {
        var type = getPreciseType(value);
        if (type === 'symbol') {
          return String(value);
        }
        return value;
      });
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(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 (has(propValue, 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;
    }

    // falsy value can't be a Symbol
    if (!propValue) {
      return false;
    }

    // 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.resetWarningCache = checkPropTypes.resetWarningCache;
  ReactPropTypes.PropTypes = ReactPropTypes;

  return ReactPropTypes;
};


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/prop-types/index.js":
/*!***********************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/prop-types/index.js ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (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 ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-bootstrap/node_modules/react-is/index.js");

  // 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__(/*! ./factoryWithTypeCheckers */ "./node_modules/react-bootstrap/node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
} else {}


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-is/cjs/react-is.development.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-is/cjs/react-is.development.js ***!
  \****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.13.1
 * react-is.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';

// 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; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// (unstable) APIs that have been removed. Can we remove the symbols?

var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;

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_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
}

function typeOf(object) {
  if (typeof object === 'object' && object !== null) {
    var $$typeof = object.$$typeof;

    switch ($$typeof) {
      case REACT_ELEMENT_TYPE:
        var type = object.type;

        switch (type) {
          case REACT_ASYNC_MODE_TYPE:
          case REACT_CONCURRENT_MODE_TYPE:
          case REACT_FRAGMENT_TYPE:
          case REACT_PROFILER_TYPE:
          case REACT_STRICT_MODE_TYPE:
          case REACT_SUSPENSE_TYPE:
            return type;

          default:
            var $$typeofType = type && type.$$typeof;

            switch ($$typeofType) {
              case REACT_CONTEXT_TYPE:
              case REACT_FORWARD_REF_TYPE:
              case REACT_LAZY_TYPE:
              case REACT_MEMO_TYPE:
              case REACT_PROVIDER_TYPE:
                return $$typeofType;

              default:
                return $$typeof;
            }

        }

      case REACT_PORTAL_TYPE:
        return $$typeof;
    }
  }

  return undefined;
} // AsyncMode is deprecated along with isAsyncMode

var AsyncMode = REACT_ASYNC_MODE_TYPE;
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
var ContextConsumer = REACT_CONTEXT_TYPE;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
var Fragment = REACT_FRAGMENT_TYPE;
var Lazy = REACT_LAZY_TYPE;
var Memo = REACT_MEMO_TYPE;
var Portal = REACT_PORTAL_TYPE;
var Profiler = REACT_PROFILER_TYPE;
var StrictMode = REACT_STRICT_MODE_TYPE;
var Suspense = REACT_SUSPENSE_TYPE;
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated

function isAsyncMode(object) {
  {
    if (!hasWarnedAboutDeprecatedIsAsyncMode) {
      hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint

      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
    }
  }

  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
}
function isConcurrentMode(object) {
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
}
function isContextConsumer(object) {
  return typeOf(object) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object) {
  return typeOf(object) === REACT_PROVIDER_TYPE;
}
function isElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object) {
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object) {
  return typeOf(object) === REACT_FRAGMENT_TYPE;
}
function isLazy(object) {
  return typeOf(object) === REACT_LAZY_TYPE;
}
function isMemo(object) {
  return typeOf(object) === REACT_MEMO_TYPE;
}
function isPortal(object) {
  return typeOf(object) === REACT_PORTAL_TYPE;
}
function isProfiler(object) {
  return typeOf(object) === REACT_PROFILER_TYPE;
}
function isStrictMode(object) {
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
}
function isSuspense(object) {
  return typeOf(object) === REACT_SUSPENSE_TYPE;
}

exports.AsyncMode = AsyncMode;
exports.ConcurrentMode = ConcurrentMode;
exports.ContextConsumer = ContextConsumer;
exports.ContextProvider = ContextProvider;
exports.Element = Element;
exports.ForwardRef = ForwardRef;
exports.Fragment = Fragment;
exports.Lazy = Lazy;
exports.Memo = Memo;
exports.Portal = Portal;
exports.Profiler = Profiler;
exports.StrictMode = StrictMode;
exports.Suspense = Suspense;
exports.isAsyncMode = isAsyncMode;
exports.isConcurrentMode = isConcurrentMode;
exports.isContextConsumer = isContextConsumer;
exports.isContextProvider = isContextProvider;
exports.isElement = isElement;
exports.isForwardRef = isForwardRef;
exports.isFragment = isFragment;
exports.isLazy = isLazy;
exports.isMemo = isMemo;
exports.isPortal = isPortal;
exports.isProfiler = isProfiler;
exports.isStrictMode = isStrictMode;
exports.isSuspense = isSuspense;
exports.isValidElementType = isValidElementType;
exports.typeOf = typeOf;
  })();
}


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-is/index.js":
/*!*********************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-is/index.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-bootstrap/node_modules/react-is/cjs/react-is.development.js");
}


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Dropdown.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/Dropdown.js ***!
  \**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var dom_helpers_matches__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/matches */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/matches.js");
/* harmony import */ var dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/querySelectorAll */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/querySelectorAll.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var uncontrollable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uncontrollable */ "./node_modules/uncontrollable/esm/index.js");
/* harmony import */ var _restart_hooks_usePrevious__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/usePrevious */ "./node_modules/@restart/hooks/esm/usePrevious.js");
/* harmony import */ var _restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @restart/hooks/useCallbackRef */ "./node_modules/@restart/hooks/esm/useCallbackRef.js");
/* harmony import */ var _restart_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @restart/hooks/useForceUpdate */ "./node_modules/@restart/hooks/esm/useForceUpdate.js");
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _DropdownContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DropdownContext */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownContext.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownMenu.js");
/* harmony import */ var _DropdownToggle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DropdownToggle */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownToggle.js");












var propTypes = {
  /**
   * A render prop that returns the root dropdown element. The `props`
   * argument should spread through to an element containing _both_ the
   * menu and toggle in order to handle keyboard events for focus management.
   *
   * @type {Function ({
   *   props: {
   *     onKeyDown: (SyntheticEvent) => void,
   *   },
   * }) => React.Element}
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func.isRequired,

  /**
   * Determines the direction and location of the Menu in relation to it's Toggle.
   */
  drop: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf(['up', 'left', 'right', 'down']),

  /**
   * Controls the focus behavior for when the Dropdown is opened. Set to
   * `true` to always focus the first menu item, `keyboard` to focus only when
   * navigating via the keyboard, or `false` to disable completely
   *
   * The Default behavior is `false` **unless** the Menu has a `role="menu"`
   * where it will default to `keyboard` to match the recommended [ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).
   */
  focusFirstItemOnShow: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.oneOf([false, true, 'keyboard']),

  /**
   * A css slector string that will return __focusable__ menu items.
   * Selectors should be relative to the menu component:
   * e.g. ` > li:not('.disabled')`
   */
  itemSelector: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,

  /**
   * Align the menu to the 'end' side of the placement side of the Dropdown toggle. The default placement is `top-start` or `bottom-start`.
   */
  alignEnd: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * Whether or not the Dropdown is visible.
   *
   * @controllable onToggle
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * Sets the initial show position of the Dropdown.
   */
  defaultShow: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,

  /**
   * A callback fired when the Dropdown wishes to change visibility. Called with the requested
   * `show` value, the DOM event, and the source that fired it: `'click'`,`'keydown'`,`'rootClose'`, or `'select'`.
   *
   * ```ts static
   * function(
   *   isOpen: boolean,
   *   event: SyntheticEvent,
   * ): void
   * ```
   *
   * @controllable show
   */
  onToggle: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};

/**
 * @displayName Dropdown
 */
function Dropdown(_ref) {
  var drop = _ref.drop,
      alignEnd = _ref.alignEnd,
      defaultShow = _ref.defaultShow,
      rawShow = _ref.show,
      rawOnToggle = _ref.onToggle,
      _ref$itemSelector = _ref.itemSelector,
      itemSelector = _ref$itemSelector === void 0 ? '* > *' : _ref$itemSelector,
      focusFirstItemOnShow = _ref.focusFirstItemOnShow,
      children = _ref.children;
  var forceUpdate = Object(_restart_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_7__["default"])();

  var _useUncontrolledProp = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolledProp"])(rawShow, defaultShow, rawOnToggle),
      show = _useUncontrolledProp[0],
      onToggle = _useUncontrolledProp[1];

  var _useCallbackRef = Object(_restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_6__["default"])(),
      toggleElement = _useCallbackRef[0],
      setToggle = _useCallbackRef[1]; // We use normal refs instead of useCallbackRef in order to populate the
  // the value as quickly as possible, otherwise the effect to focus the element
  // may run before the state value is set


  var menuRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null);
  var menuElement = menuRef.current;
  var setMenu = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (ref) {
    menuRef.current = ref; // ensure that a menu set triggers an update for consumers

    forceUpdate();
  }, [forceUpdate]);
  var lastShow = Object(_restart_hooks_usePrevious__WEBPACK_IMPORTED_MODULE_5__["default"])(show);
  var lastSourceEvent = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null);
  var focusInDropdown = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(false);
  var toggle = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (event) {
    onToggle(!show, event);
  }, [onToggle, show]);
  var context = Object(react__WEBPACK_IMPORTED_MODULE_2__["useMemo"])(function () {
    return {
      toggle: toggle,
      drop: drop,
      show: show,
      alignEnd: alignEnd,
      menuElement: menuElement,
      toggleElement: toggleElement,
      setMenu: setMenu,
      setToggle: setToggle
    };
  }, [toggle, drop, show, alignEnd, menuElement, toggleElement, setMenu, setToggle]);

  if (menuElement && lastShow && !show) {
    focusInDropdown.current = menuElement.contains(document.activeElement);
  }

  var focusToggle = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function () {
    if (toggleElement && toggleElement.focus) {
      toggleElement.focus();
    }
  });
  var maybeFocusFirst = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function () {
    var type = lastSourceEvent.current;
    var focusType = focusFirstItemOnShow;

    if (focusType == null) {
      focusType = menuRef.current && Object(dom_helpers_matches__WEBPACK_IMPORTED_MODULE_0__["default"])(menuRef.current, '[role=menu]') ? 'keyboard' : false;
    }

    if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) {
      return;
    }

    var first = Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(menuRef.current, itemSelector)[0];
    if (first && first.focus) first.focus();
  });
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    if (show) maybeFocusFirst();else if (focusInDropdown.current) {
      focusInDropdown.current = false;
      focusToggle();
    } // only `show` should be changing
  }, [show, focusInDropdown, focusToggle, maybeFocusFirst]);
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    lastSourceEvent.current = null;
  });

  var getNextFocusedChild = function getNextFocusedChild(current, offset) {
    if (!menuRef.current) return null;
    var items = Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(menuRef.current, itemSelector);
    var index = items.indexOf(current) + offset;
    index = Math.max(0, Math.min(index, items.length));
    return items[index];
  };

  var handleKeyDown = function handleKeyDown(event) {
    var key = event.key;
    var target = event.target; // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
    // in inscrutability

    var isInput = /input|textarea/i.test(target.tagName);

    if (isInput && (key === ' ' || key !== 'Escape' && menuRef.current && menuRef.current.contains(target))) {
      return;
    }

    lastSourceEvent.current = event.type;

    switch (key) {
      case 'ArrowUp':
        {
          var next = getNextFocusedChild(target, -1);
          if (next && next.focus) next.focus();
          event.preventDefault();
          return;
        }

      case 'ArrowDown':
        event.preventDefault();

        if (!show) {
          toggle(event);
        } else {
          var _next = getNextFocusedChild(target, 1);

          if (_next && _next.focus) _next.focus();
        }

        return;

      case 'Escape':
      case 'Tab':
        onToggle(false, event);
        break;

      default:
    }
  };

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_DropdownContext__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, {
    value: context
  }, children({
    props: {
      onKeyDown: handleKeyDown
    }
  }));
}

Dropdown.displayName = 'ReactOverlaysDropdown';
Dropdown.propTypes = propTypes;
Dropdown.Menu = _DropdownMenu__WEBPACK_IMPORTED_MODULE_10__["default"];
Dropdown.Toggle = _DropdownToggle__WEBPACK_IMPORTED_MODULE_11__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Dropdown);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownContext.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownContext.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

var DropdownContext = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null);
/* harmony default export */ __webpack_exports__["default"] = (DropdownContext);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownMenu.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownMenu.js ***!
  \**************************************************************************************/
/*! exports provided: useDropdownMenu, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useDropdownMenu", function() { return useDropdownMenu; });
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @restart/hooks/useCallbackRef */ "./node_modules/@restart/hooks/esm/useCallbackRef.js");
/* harmony import */ var _DropdownContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DropdownContext */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownContext.js");
/* harmony import */ var _usePopper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./usePopper */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/usePopper.js");
/* harmony import */ var _useRootClose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useRootClose */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useRootClose.js");









var noop = function noop() {};
/**
 * @memberOf Dropdown
 * @param {object}  options
 * @param {boolean} options.flip Automatically adjust the menu `drop` position based on viewport edge detection
 * @param {boolean} options.show Display the menu manually, ignored in the context of a `Dropdown`
 * @param {boolean} options.usePopper opt in/out of using PopperJS to position menus. When disabled you must position it yourself.
 * @param {string}  options.rootCloseEvent The pointer event to listen for when determining "clicks outside" the menu for triggering a close.
 * @param {object}  options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.
 */


function useDropdownMenu(options) {
  var _modifiers$arrow;

  if (options === void 0) {
    options = {};
  }

  var context = Object(react__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_DropdownContext__WEBPACK_IMPORTED_MODULE_5__["default"]);

  var _useCallbackRef = Object(_restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_4__["default"])(),
      arrowElement = _useCallbackRef[0],
      attachArrowRef = _useCallbackRef[1];

  var hasShownRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
  var _options = options,
      flip = _options.flip,
      rootCloseEvent = _options.rootCloseEvent,
      _options$popperConfig = _options.popperConfig,
      popperConfig = _options$popperConfig === void 0 ? {} : _options$popperConfig,
      _options$usePopper = _options.usePopper,
      shouldUsePopper = _options$usePopper === void 0 ? !!context : _options$usePopper;
  var show = (context == null ? void 0 : context.show) == null ? options.show : context.show;
  var alignEnd = (context == null ? void 0 : context.alignEnd) == null ? options.alignEnd : context.alignEnd;

  if (show && !hasShownRef.current) {
    hasShownRef.current = true;
  }

  var handleClose = function handleClose(e) {
    context == null ? void 0 : context.toggle(false, e);
  };

  var _ref = context || {},
      drop = _ref.drop,
      setMenu = _ref.setMenu,
      menuElement = _ref.menuElement,
      toggleElement = _ref.toggleElement;

  var placement = alignEnd ? 'bottom-end' : 'bottom-start';
  if (drop === 'up') placement = alignEnd ? 'top-end' : 'top-start';else if (drop === 'right') placement = alignEnd ? 'right-end' : 'right-start';else if (drop === 'left') placement = alignEnd ? 'left-end' : 'left-start';
  var modifiers = Object(_usePopper__WEBPACK_IMPORTED_MODULE_6__["toModifierMap"])(popperConfig.modifiers);
  var popper = Object(_usePopper__WEBPACK_IMPORTED_MODULE_6__["default"])(toggleElement, menuElement, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, popperConfig, {
    placement: placement,
    enabled: !!(shouldUsePopper && show),
    modifiers: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, modifiers, {
      eventListeners: {
        enabled: !!show
      },
      arrow: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, modifiers.arrow, {
        enabled: !!arrowElement,
        options: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
          element: arrowElement
        })
      }),
      flip: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
        enabled: !!flip
      }, modifiers.flip)
    })
  }));
  var menu;
  var menuProps = {
    ref: setMenu || noop,
    'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
  };
  var childArgs = {
    show: show,
    alignEnd: alignEnd,
    hasShown: hasShownRef.current,
    close: handleClose
  };

  if (!shouldUsePopper) {
    menu = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, childArgs, {
      props: menuProps
    });
  } else {
    menu = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, popper, {}, childArgs, {
      props: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, menuProps, {
        style: popper.styles
      }),
      arrowProps: {
        ref: attachArrowRef,
        style: popper.arrowStyles
      }
    });
  }

  Object(_useRootClose__WEBPACK_IMPORTED_MODULE_7__["default"])(menuElement, handleClose, {
    clickTrigger: rootCloseEvent,
    disabled: !(menu && show)
  });
  return menu;
}
var propTypes = {
  /**
   * A render prop that returns a Menu element. The `props`
   * argument should spread through to **a component that can accept a ref**.
   *
   * @type {Function ({
   *   show: boolean,
   *   alignEnd: boolean,
   *   close: (?SyntheticEvent) => void,
   *   placement: Placement,
   *   outOfBoundaries: ?boolean,
   *   scheduleUpdate: () => void,
   *   props: {
   *     ref: (?HTMLElement) => void,
   *     style: { [string]: string | number },
   *     aria-labelledby: ?string
   *   },
   *   arrowProps: {
   *     ref: (?HTMLElement) => void,
   *     style: { [string]: string | number },
   *   },
   * }) => React.Element}
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired,

  /**
   * Controls the visible state of the menu, generally this is
   * provided by the parent `Dropdown` component,
   * but may also be specified as a prop directly.
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Aligns the dropdown menu to the 'end' of it's placement position.
   * Generally this is provided by the parent `Dropdown` component,
   * but may also be specified as a prop directly.
   */
  alignEnd: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Enables the Popper.js `flip` modifier, allowing the Dropdown to
   * automatically adjust it's placement in case of overlap with the viewport or toggle.
   * Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
   */
  flip: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  usePopper: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf([true, false]),

  /**
   * A set of popper options and props passed directly to react-popper's Popper component.
   */
  popperConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,

  /**
   * Override the default event used by RootCloseWrapper.
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
var defaultProps = {
  usePopper: true
};

/**
 * Also exported as `<Dropdown.Menu>` from `Dropdown`.
 *
 * @displayName DropdownMenu
 * @memberOf Dropdown
 */
function DropdownMenu(_ref2) {
  var children = _ref2.children,
      options = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref2, ["children"]);

  var args = useDropdownMenu(options);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_3___default.a.Fragment, null, args.hasShown ? children(args) : null);
}

DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
DropdownMenu.propTypes = propTypes;
DropdownMenu.defaultProps = defaultProps;
/** @component */

/* harmony default export */ __webpack_exports__["default"] = (DropdownMenu);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownToggle.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownToggle.js ***!
  \****************************************************************************************/
/*! exports provided: useDropdownToggle, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useDropdownToggle", function() { return useDropdownToggle; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _DropdownContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownContext */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/DropdownContext.js");




var noop = function noop() {};
/**
 * Wires up Dropdown toggle functionality, returning a set a props to attach
 * to the element that functions as the dropdown toggle (generally a button).
 *
 * @memberOf Dropdown
 */


function useDropdownToggle() {
  var _ref = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(_DropdownContext__WEBPACK_IMPORTED_MODULE_2__["default"]) || {},
      _ref$show = _ref.show,
      show = _ref$show === void 0 ? false : _ref$show,
      _ref$toggle = _ref.toggle,
      toggle = _ref$toggle === void 0 ? noop : _ref$toggle,
      setToggle = _ref.setToggle;

  return [{
    ref: setToggle || noop,
    'aria-haspopup': true,
    'aria-expanded': !!show
  }, {
    show: show,
    toggle: toggle
  }];
}
var propTypes = {
  /**
   * A render prop that returns a Toggle element. The `props`
   * argument should spread through to **a component that can accept a ref**. Use
   * the `onToggle` argument to toggle the menu open or closed
   *
   * @type {Function ({
   *   show: boolean,
   *   toggle: (show: boolean) => void,
   *   props: {
   *     ref: (?HTMLElement) => void,
   *     aria-haspopup: true
   *     aria-expanded: boolean
   *   },
   * }) => React.Element}
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired
};

/**
 * Also exported as `<Dropdown.Toggle>` from `Dropdown`.
 *
 * @displayName DropdownToggle
 * @memberOf Dropdown
 */
function DropdownToggle(_ref2) {
  var children = _ref2.children;

  var _useDropdownToggle = useDropdownToggle(),
      props = _useDropdownToggle[0],
      _useDropdownToggle$ = _useDropdownToggle[1],
      show = _useDropdownToggle$.show,
      toggle = _useDropdownToggle$.toggle;

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null, children({
    show: show,
    toggle: toggle,
    props: props
  }));
}

DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
DropdownToggle.propTypes = propTypes;
/** @component */

/* harmony default export */ __webpack_exports__["default"] = (DropdownToggle);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Modal.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/Modal.js ***!
  \*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-helpers/activeElement */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/activeElement.js");
/* harmony import */ var dom_helpers_contains__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/contains */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/contains.js");
/* harmony import */ var dom_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-helpers/canUseDOM */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/canUseDOM.js");
/* harmony import */ var dom_helpers_listen__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-helpers/listen */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/listen.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _restart_hooks_useMounted__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @restart/hooks/useMounted */ "./node_modules/@restart/hooks/esm/useMounted.js");
/* harmony import */ var _restart_hooks_useWillUnmount__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @restart/hooks/useWillUnmount */ "./node_modules/@restart/hooks/esm/useWillUnmount.js");
/* harmony import */ var _restart_hooks_usePrevious__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @restart/hooks/usePrevious */ "./node_modules/@restart/hooks/esm/usePrevious.js");
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var _ModalManager__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ModalManager */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/ModalManager.js");
/* harmony import */ var _useWaitForDOMRef__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useWaitForDOMRef */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useWaitForDOMRef.js");



/* eslint-disable @typescript-eslint/no-use-before-define */

/* eslint-disable react/prop-types */













var manager;

function getManager() {
  if (!manager) manager = new _ModalManager__WEBPACK_IMPORTED_MODULE_13__["default"]();
  return manager;
}

function useModalManager(provided) {
  var modalManager = provided || getManager();
  var modal = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])({
    dialog: null,
    backdrop: null
  });
  return Object.assign(modal.current, {
    add: function add(container, className) {
      return modalManager.add(modal.current, container, className);
    },
    remove: function remove() {
      return modalManager.remove(modal.current);
    },
    isTopModal: function isTopModal() {
      return modalManager.isTopModal(modal.current);
    },
    setDialogRef: Object(react__WEBPACK_IMPORTED_MODULE_7__["useCallback"])(function (ref) {
      modal.current.dialog = ref;
    }, []),
    setBackdropRef: Object(react__WEBPACK_IMPORTED_MODULE_7__["useCallback"])(function (ref) {
      modal.current.backdrop = ref;
    }, [])
  });
}

var Modal = Object(react__WEBPACK_IMPORTED_MODULE_7__["forwardRef"])(function (_ref, ref) {
  var _ref$show = _ref.show,
      show = _ref$show === void 0 ? false : _ref$show,
      _ref$role = _ref.role,
      role = _ref$role === void 0 ? 'dialog' : _ref$role,
      className = _ref.className,
      style = _ref.style,
      children = _ref.children,
      _ref$backdrop = _ref.backdrop,
      backdrop = _ref$backdrop === void 0 ? true : _ref$backdrop,
      _ref$keyboard = _ref.keyboard,
      keyboard = _ref$keyboard === void 0 ? true : _ref$keyboard,
      onBackdropClick = _ref.onBackdropClick,
      onEscapeKeyDown = _ref.onEscapeKeyDown,
      transition = _ref.transition,
      backdropTransition = _ref.backdropTransition,
      _ref$autoFocus = _ref.autoFocus,
      autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
      _ref$enforceFocus = _ref.enforceFocus,
      enforceFocus = _ref$enforceFocus === void 0 ? true : _ref$enforceFocus,
      _ref$restoreFocus = _ref.restoreFocus,
      restoreFocus = _ref$restoreFocus === void 0 ? true : _ref$restoreFocus,
      restoreFocusOptions = _ref.restoreFocusOptions,
      renderDialog = _ref.renderDialog,
      _ref$renderBackdrop = _ref.renderBackdrop,
      renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", props);
  } : _ref$renderBackdrop,
      providedManager = _ref.manager,
      containerRef = _ref.container,
      containerClassName = _ref.containerClassName,
      onShow = _ref.onShow,
      _ref$onHide = _ref.onHide,
      onHide = _ref$onHide === void 0 ? function () {} : _ref$onHide,
      onExit = _ref.onExit,
      onExited = _ref.onExited,
      onExiting = _ref.onExiting,
      onEnter = _ref.onEnter,
      onEntering = _ref.onEntering,
      onEntered = _ref.onEntered,
      rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);

  var container = Object(_useWaitForDOMRef__WEBPACK_IMPORTED_MODULE_14__["default"])(containerRef);
  var modal = useModalManager(providedManager);
  var isMounted = Object(_restart_hooks_useMounted__WEBPACK_IMPORTED_MODULE_9__["default"])();
  var prevShow = Object(_restart_hooks_usePrevious__WEBPACK_IMPORTED_MODULE_11__["default"])(show);

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])(!show),
      exited = _useState[0],
      setExited = _useState[1];

  var lastFocusRef = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])(null);
  Object(react__WEBPACK_IMPORTED_MODULE_7__["useImperativeHandle"])(ref, function () {
    return modal;
  }, [modal]);

  if (dom_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_4__["default"] && !prevShow && show) {
    lastFocusRef.current = Object(dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_2__["default"])();
  }

  if (!transition && !show && !exited) {
    setExited(true);
  } else if (show && exited) {
    setExited(false);
  }

  var handleShow = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_12__["default"])(function () {
    modal.add(container, containerClassName);
    removeKeydownListenerRef.current = Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_5__["default"])(document, 'keydown', handleDocumentKeyDown);
    removeFocusListenerRef.current = Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_5__["default"])(document, 'focus', // the timeout is necessary b/c this will run before the new modal is mounted
    // and so steals focus from it
    function () {
      return setTimeout(handleEnforceFocus);
    }, true);

    if (onShow) {
      onShow();
    } // autofocus after onShow to not trigger a focus event for previous
    // modals before this one is shown.


    if (autoFocus) {
      var currentActiveElement = Object(dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_2__["default"])(document);

      if (modal.dialog && currentActiveElement && !Object(dom_helpers_contains__WEBPACK_IMPORTED_MODULE_3__["default"])(modal.dialog, currentActiveElement)) {
        lastFocusRef.current = currentActiveElement;
        modal.dialog.focus();
      }
    }
  });
  var handleHide = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_12__["default"])(function () {
    modal.remove();
    removeKeydownListenerRef.current == null ? void 0 : removeKeydownListenerRef.current();
    removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();

    if (restoreFocus) {
      var _lastFocusRef$current;

      // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
      (_lastFocusRef$current = lastFocusRef.current) == null ? void 0 : _lastFocusRef$current.focus == null ? void 0 : _lastFocusRef$current.focus(restoreFocusOptions);
      lastFocusRef.current = null;
    }
  }); // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120
  // Show logic when:
  //  - show is `true` _and_ `container` has resolved

  Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
    if (!show || !container) return;
    handleShow();
  }, [show, container,
  /* should never change: */
  handleShow]); // Hide cleanup logic when:
  //  - `exited` switches to true
  //  - component unmounts;

  Object(react__WEBPACK_IMPORTED_MODULE_7__["useEffect"])(function () {
    if (!exited) return;
    handleHide();
  }, [exited, handleHide]);
  Object(_restart_hooks_useWillUnmount__WEBPACK_IMPORTED_MODULE_10__["default"])(function () {
    handleHide();
  }); // --------------------------------

  var handleEnforceFocus = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_12__["default"])(function () {
    if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
      return;
    }

    var currentActiveElement = Object(dom_helpers_activeElement__WEBPACK_IMPORTED_MODULE_2__["default"])();

    if (modal.dialog && currentActiveElement && !Object(dom_helpers_contains__WEBPACK_IMPORTED_MODULE_3__["default"])(modal.dialog, currentActiveElement)) {
      modal.dialog.focus();
    }
  });
  var handleBackdropClick = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_12__["default"])(function (e) {
    if (e.target !== e.currentTarget) {
      return;
    }

    onBackdropClick == null ? void 0 : onBackdropClick(e);

    if (backdrop === true) {
      onHide();
    }
  });

  var handleDocumentKeyDown = function handleDocumentKeyDown(e) {
    if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
      onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
      onHide();
    }
  };

  var removeFocusListenerRef = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])();
  var removeKeydownListenerRef = Object(react__WEBPACK_IMPORTED_MODULE_7__["useRef"])();

  var handleHidden = function handleHidden() {
    setExited(true);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    onExited == null ? void 0 : onExited.apply(void 0, args);
  };

  var Transition = transition;

  if (!container || !(show || Transition && !exited)) {
    return null;
  }

  var dialogProps = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
    role: role,
    ref: modal.setDialogRef,
    // apparently only works on the dialog role element
    'aria-modal': role === 'dialog' ? true : undefined
  }, rest, {
    style: style,
    className: className,
    tabIndex: -1
  });

  var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div", dialogProps, react__WEBPACK_IMPORTED_MODULE_7___default.a.cloneElement(children, {
    role: 'document'
  }));

  if (Transition) {
    dialog = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(Transition, {
      appear: true,
      unmountOnExit: true,
      "in": !!show,
      onExit: onExit,
      onExiting: onExiting,
      onExited: handleHidden,
      onEnter: onEnter,
      onEntering: onEntering,
      onEntered: onEntered
    }, dialog);
  }

  var backdropElement = null;

  if (backdrop) {
    var BackdropTransition = backdropTransition;
    backdropElement = renderBackdrop({
      ref: modal.setBackdropRef,
      onClick: handleBackdropClick
    });

    if (BackdropTransition) {
      backdropElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(BackdropTransition, {
        appear: true,
        "in": !!show
      }, backdropElement);
    }
  }

  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_7___default.a.Fragment, null, react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.createPortal( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_7___default.a.Fragment, null, backdropElement, dialog), container));
});
var propTypes = {
  /**
   * Set the visibility of the Modal
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
   *
   * For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
   * page content can be placed behind a virtual backdrop as well as a visual one.
   */
  container: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.any,

  /**
   * A callback fired when the Modal is opening.
   */
  onShow: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A callback fired when either the backdrop is clicked, or the escape key is pressed.
   *
   * The `onHide` callback only signals intent from the Modal,
   * you must actually set the `show` prop to `false` for the Modal to close.
   */
  onHide: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Include a backdrop component.
   */
  backdrop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.oneOf(['static'])]),

  /**
   * A function that returns the dialog component. Useful for custom
   * rendering. **Note:** the component should make sure to apply the provided ref.
   *
   * ```js static
   * renderDialog={props => <MyDialog {...props} />}
   * ```
   */
  renderDialog: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A function that returns a backdrop component. Useful for custom
   * backdrop rendering.
   *
   * ```js
   *  renderBackdrop={props => <MyBackdrop {...props} />}
   * ```
   */
  renderBackdrop: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A callback fired when the escape key, if specified in `keyboard`, is pressed.
   */
  onEscapeKeyDown: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A callback fired when the backdrop, if specified, is clicked.
   */
  onBackdropClick: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A css class or set of classes applied to the modal container when the modal is open,
   * and removed when it is closed.
   */
  containerClassName: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,

  /**
   * Close the modal when escape key is pressed
   */
  keyboard: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the dialog component.
   */
  transition: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.elementType,

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component used
   * to control animations for the backdrop components.
   */
  backdropTransition: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.elementType,

  /**
   * When `true` The modal will automatically shift focus to itself when it opens, and
   * replace it to the last focused element when it closes. This also
   * works correctly with any Modal children that have the `autoFocus` prop.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  autoFocus: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * When `true` The modal will prevent focus from leaving the Modal while open.
   *
   * Generally this should never be set to `false` as it makes the Modal less
   * accessible to assistive technologies, like screen readers.
   */
  enforceFocus: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * When `true` The modal will restore focus to previously focused element once
   * modal is hidden
   */
  restoreFocus: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,

  /**
   * Options passed to focus function when `restoreFocus` is set to `true`
   *
   * @link  https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
   */
  restoreFocusOptions: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.shape({
    preventScroll: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool
  }),

  /**
   * Callback fired before the Modal transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired as the Modal begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired right before the Modal transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired as the Modal begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * Callback fired after the Modal finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,

  /**
   * A ModalManager instance used to track and manage the state of open
   * Modals. Useful when customizing how modals interact within a container
   */
  manager: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.instanceOf(_ModalManager__WEBPACK_IMPORTED_MODULE_13__["default"])
};
Modal.displayName = 'Modal';
Modal.propTypes = propTypes;
/* harmony default export */ __webpack_exports__["default"] = (Object.assign(Modal, {
  Manager: _ModalManager__WEBPACK_IMPORTED_MODULE_13__["default"]
}));

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/ModalManager.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/ModalManager.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var dom_helpers_addClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/addClass */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/addClass.js");
/* harmony import */ var dom_helpers_removeClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/removeClass */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/removeClass.js");
/* harmony import */ var dom_helpers_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dom-helpers/css */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/css.js");
/* harmony import */ var dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-helpers/scrollbarSize */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/scrollbarSize.js");
/* harmony import */ var _isOverflowing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isOverflowing */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/isOverflowing.js");
/* harmony import */ var _manageAriaHidden__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./manageAriaHidden */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/manageAriaHidden.js");







function findIndexOf(arr, cb) {
  var idx = -1;
  arr.some(function (d, i) {
    if (cb(d, i)) {
      idx = i;
      return true;
    }

    return false;
  });
  return idx;
}

/**
 * Proper state management for containers and the modals in those containers.
 *
 * @internal Used by the Modal to ensure proper styling of containers.
 */
var ModalManager = /*#__PURE__*/function () {
  function ModalManager(_temp) {
    var _ref = _temp === void 0 ? {} : _temp,
        _ref$hideSiblingNodes = _ref.hideSiblingNodes,
        hideSiblingNodes = _ref$hideSiblingNodes === void 0 ? true : _ref$hideSiblingNodes,
        _ref$handleContainerO = _ref.handleContainerOverflow,
        handleContainerOverflow = _ref$handleContainerO === void 0 ? true : _ref$handleContainerO;

    this.hideSiblingNodes = void 0;
    this.handleContainerOverflow = void 0;
    this.modals = void 0;
    this.containers = void 0;
    this.data = void 0;
    this.scrollbarSize = void 0;
    this.hideSiblingNodes = hideSiblingNodes;
    this.handleContainerOverflow = handleContainerOverflow;
    this.modals = [];
    this.containers = [];
    this.data = [];
    this.scrollbarSize = Object(dom_helpers_scrollbarSize__WEBPACK_IMPORTED_MODULE_3__["default"])();
  }

  var _proto = ModalManager.prototype;

  _proto.isContainerOverflowing = function isContainerOverflowing(modal) {
    var data = this.data[this.containerIndexFromModal(modal)];
    return data && data.overflowing;
  };

  _proto.containerIndexFromModal = function containerIndexFromModal(modal) {
    return findIndexOf(this.data, function (d) {
      return d.modals.indexOf(modal) !== -1;
    });
  };

  _proto.setContainerStyle = function setContainerStyle(containerState, container) {
    var style = {
      overflow: 'hidden'
    }; // we are only interested in the actual `style` here
    // because we will override it

    containerState.style = {
      overflow: container.style.overflow,
      paddingRight: container.style.paddingRight
    };

    if (containerState.overflowing) {
      // use computed style, here to get the real padding
      // to add our scrollbar width
      style.paddingRight = parseInt(Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_2__["default"])(container, 'paddingRight') || '0', 10) + this.scrollbarSize + "px";
    }

    Object(dom_helpers_css__WEBPACK_IMPORTED_MODULE_2__["default"])(container, style);
  };

  _proto.removeContainerStyle = function removeContainerStyle(containerState, container) {
    var style = containerState.style;
    Object.keys(style).forEach(function (key) {
      container.style[key] = style[key];
    });
  };

  _proto.add = function add(modal, container, className) {
    var modalIdx = this.modals.indexOf(modal);
    var containerIdx = this.containers.indexOf(container);

    if (modalIdx !== -1) {
      return modalIdx;
    }

    modalIdx = this.modals.length;
    this.modals.push(modal);

    if (this.hideSiblingNodes) {
      Object(_manageAriaHidden__WEBPACK_IMPORTED_MODULE_5__["hideSiblings"])(container, modal);
    }

    if (containerIdx !== -1) {
      this.data[containerIdx].modals.push(modal);
      return modalIdx;
    }

    var data = {
      modals: [modal],
      // right now only the first modal of a container will have its classes applied
      classes: className ? className.split(/\s+/) : [],
      overflowing: Object(_isOverflowing__WEBPACK_IMPORTED_MODULE_4__["default"])(container)
    };

    if (this.handleContainerOverflow) {
      this.setContainerStyle(data, container);
    }

    data.classes.forEach(dom_helpers_addClass__WEBPACK_IMPORTED_MODULE_0__["default"].bind(null, container));
    this.containers.push(container);
    this.data.push(data);
    return modalIdx;
  };

  _proto.remove = function remove(modal) {
    var modalIdx = this.modals.indexOf(modal);

    if (modalIdx === -1) {
      return;
    }

    var containerIdx = this.containerIndexFromModal(modal);
    var data = this.data[containerIdx];
    var container = this.containers[containerIdx];
    data.modals.splice(data.modals.indexOf(modal), 1);
    this.modals.splice(modalIdx, 1); // if that was the last modal in a container,
    // clean up the container

    if (data.modals.length === 0) {
      data.classes.forEach(dom_helpers_removeClass__WEBPACK_IMPORTED_MODULE_1__["default"].bind(null, container));

      if (this.handleContainerOverflow) {
        this.removeContainerStyle(data, container);
      }

      if (this.hideSiblingNodes) {
        Object(_manageAriaHidden__WEBPACK_IMPORTED_MODULE_5__["showSiblings"])(container, modal);
      }

      this.containers.splice(containerIdx, 1);
      this.data.splice(containerIdx, 1);
    } else if (this.hideSiblingNodes) {
      // otherwise make sure the next top modal is visible to a SR
      var _data$modals = data.modals[data.modals.length - 1],
          backdrop = _data$modals.backdrop,
          dialog = _data$modals.dialog;
      Object(_manageAriaHidden__WEBPACK_IMPORTED_MODULE_5__["ariaHidden"])(false, dialog);
      Object(_manageAriaHidden__WEBPACK_IMPORTED_MODULE_5__["ariaHidden"])(false, backdrop);
    }
  };

  _proto.isTopModal = function isTopModal(modal) {
    return !!this.modals.length && this.modals[this.modals.length - 1] === modal;
  };

  return ModalManager;
}();

/* harmony default export */ __webpack_exports__["default"] = (ModalManager);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/Overlay.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/Overlay.js ***!
  \*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @restart/hooks/useCallbackRef */ "./node_modules/@restart/hooks/esm/useCallbackRef.js");
/* harmony import */ var _restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @restart/hooks/useMergedRefs */ "./node_modules/@restart/hooks/esm/useMergedRefs.js");
/* harmony import */ var _popper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./popper */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/popper.js");
/* harmony import */ var _usePopper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./usePopper */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/usePopper.js");
/* harmony import */ var _useRootClose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useRootClose */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useRootClose.js");
/* harmony import */ var _useWaitForDOMRef__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useWaitForDOMRef */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useWaitForDOMRef.js");












/**
 * Built on top of `Popper.js`, the overlay component is
 * great for custom tooltip overlays.
 */
var Overlay = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, outerRef) {
  var _modifiers$preventOve, _modifiers$arrow;

  var flip = props.flip,
      placement = props.placement,
      _props$containerPaddi = props.containerPadding,
      containerPadding = _props$containerPaddi === void 0 ? 5 : _props$containerPaddi,
      _props$popperConfig = props.popperConfig,
      popperConfig = _props$popperConfig === void 0 ? {} : _props$popperConfig,
      Transition = props.transition;

  var _useCallbackRef = Object(_restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_5__["default"])(),
      rootElement = _useCallbackRef[0],
      attachRef = _useCallbackRef[1];

  var _useCallbackRef2 = Object(_restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_5__["default"])(),
      arrowElement = _useCallbackRef2[0],
      attachArrowRef = _useCallbackRef2[1];

  var mergedRef = Object(_restart_hooks_useMergedRefs__WEBPACK_IMPORTED_MODULE_6__["default"])(attachRef, outerRef);
  var container = Object(_useWaitForDOMRef__WEBPACK_IMPORTED_MODULE_10__["default"])(props.container);
  var target = Object(_useWaitForDOMRef__WEBPACK_IMPORTED_MODULE_10__["default"])(props.target);

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(!props.show),
      exited = _useState[0],
      setExited = _useState[1];

  var modifiers = Object(_usePopper__WEBPACK_IMPORTED_MODULE_8__["toModifierMap"])(popperConfig.modifiers);

  var _usePopper = Object(_usePopper__WEBPACK_IMPORTED_MODULE_8__["default"])(target, rootElement, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popperConfig, {
    placement: placement || 'bottom',
    modifiers: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, modifiers, {
      eventListeners: {
        enabled: !!props.show
      },
      preventOverflow: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, modifiers.preventOverflow, {
        options: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
          padding: containerPadding || 5
        }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options)
      }),
      arrow: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, modifiers.arrow, {
        enabled: !!arrowElement,
        options: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
          element: arrowElement
        })
      }),
      flip: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
        enabled: !!flip
      }, modifiers.flip)
    })
  })),
      styles = _usePopper.styles,
      arrowStyles = _usePopper.arrowStyles,
      popper = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_usePopper, ["styles", "arrowStyles"]);

  if (props.show) {
    if (exited) setExited(false);
  } else if (!props.transition && !exited) {
    setExited(true);
  }

  var handleHidden = function handleHidden() {
    setExited(true);

    if (props.onExited) {
      props.onExited.apply(props, arguments);
    }
  }; // Don't un-render the overlay while it's transitioning out.


  var mountOverlay = props.show || Transition && !exited;
  Object(_useRootClose__WEBPACK_IMPORTED_MODULE_9__["default"])(rootElement, props.onHide, {
    disabled: !props.rootClose || props.rootCloseDisabled,
    clickTrigger: props.rootCloseEvent
  });

  if (!mountOverlay) {
    // Don't bother showing anything if we don't have to.
    return null;
  }

  var child = props.children(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popper, {
    show: !!props.show,
    props: {
      style: styles,
      ref: mergedRef
    },
    arrowProps: {
      style: arrowStyles,
      ref: attachArrowRef
    }
  }));

  if (Transition) {
    var onExit = props.onExit,
        onExiting = props.onExiting,
        onEnter = props.onEnter,
        onEntering = props.onEntering,
        onEntered = props.onEntered;
    child = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Transition, {
      "in": props.show,
      appear: true,
      onExit: onExit,
      onExiting: onExiting,
      onExited: handleHidden,
      onEnter: onEnter,
      onEntering: onEntering,
      onEntered: onEntered
    }, child);
  }

  return container ? react_dom__WEBPACK_IMPORTED_MODULE_4___default.a.createPortal(child, container) : null;
});
Overlay.displayName = 'Overlay';
Overlay.propTypes = {
  /**
   * Set the visibility of the Overlay
   */
  show: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /** Specify where the overlay element is positioned in relation to the target element */
  placement: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(_popper__WEBPACK_IMPORTED_MODULE_7__["placements"]),

  /**
   * A DOM Element, Ref to an element, or function that returns either. The `target` element is where
   * the overlay is positioned relative to.
   */
  target: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,

  /**
   * A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,

  /**
   * Enables the Popper.js `flip` modifier, allowing the Overlay to
   * automatically adjust it's placement in case of overlap with the viewport or toggle.
   * Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
   */
  flip: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * A render prop that returns an element to overlay and position. See
   * the [react-popper documentation](https://github.com/FezVrasta/react-popper#children) for more info.
   *
   * @type {Function ({
   *   show: boolean,
   *   placement: Placement,
   *   outOfBoundaries: ?boolean,
   *   scheduleUpdate: () => void,
   *   props: {
   *     ref: (?HTMLElement) => void,
   *     style: { [string]: string | number },
   *     aria-labelledby: ?string
   *   },
   *   arrowProps: {
   *     ref: (?HTMLElement) => void,
   *     style: { [string]: string | number },
   *   },
   * }) => React.Element}
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired,

  /**
   * Control how much space there is between the edge of the boundary element and overlay.
   * A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
   */
  containerPadding: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,

  /**
   * A set of popper options and props passed directly to react-popper's Popper component.
   */
  popperConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,

  /**
   * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
   */
  rootClose: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Specify event for toggling overlay
   */
  rootCloseEvent: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(['click', 'mousedown']),

  /**
   * Specify disabled for disable RootCloseWrapper
   */
  rootCloseDisabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * A Callback fired by the Overlay when it wishes to be hidden.
   *
   * __required__ when `rootClose` is `true`.
   *
   * @type func
   */
  onHide: function onHide(props) {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    if (props.rootClose) {
      var _PropTypes$func;

      return (_PropTypes$func = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func).isRequired.apply(_PropTypes$func, [props].concat(args));
    }

    return prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.apply(prop_types__WEBPACK_IMPORTED_MODULE_2___default.a, [props].concat(args));
  },

  /**
   * A `react-transition-group@2.0.0` `<Transition/>` component
   * used to animate the overlay as it changes visibility.
   */
  // @ts-ignore
  transition: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.elementType,

  /**
   * Callback fired before the Overlay transitions in
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition in
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning in
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired right before the Overlay transitions out
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired as the Overlay begins to transition out
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the Overlay finishes transitioning out
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
/* harmony default export */ __webpack_exports__["default"] = (Overlay);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/isOverflowing.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/isOverflowing.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isOverflowing; });
/* harmony import */ var dom_helpers_isWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/isWindow */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/isWindow.js");
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");



function isBody(node) {
  return node && node.tagName.toLowerCase() === 'body';
}

function bodyIsOverflowing(node) {
  var doc = Object(dom_helpers_isWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node) ? Object(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_1__["default"])() : Object(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_1__["default"])(node);
  var win = Object(dom_helpers_isWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node) || doc.defaultView;
  return doc.body.clientWidth < win.innerWidth;
}

function isOverflowing(container) {
  var win = Object(dom_helpers_isWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(container);
  return win || isBody(container) ? bodyIsOverflowing(container) : container.scrollHeight > container.clientHeight;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/manageAriaHidden.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/manageAriaHidden.js ***!
  \******************************************************************************************/
/*! exports provided: ariaHidden, hideSiblings, showSiblings */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ariaHidden", function() { return ariaHidden; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hideSiblings", function() { return hideSiblings; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showSiblings", function() { return showSiblings; });
var BLACKLIST = ['template', 'script', 'style'];

var isHidable = function isHidable(_ref) {
  var nodeType = _ref.nodeType,
      tagName = _ref.tagName;
  return nodeType === 1 && BLACKLIST.indexOf(tagName.toLowerCase()) === -1;
};

var siblings = function siblings(container, exclude, cb) {
  [].forEach.call(container.children, function (node) {
    if (exclude.indexOf(node) === -1 && isHidable(node)) {
      cb(node);
    }
  });
};

function ariaHidden(show, node) {
  if (!node) return;

  if (show) {
    node.setAttribute('aria-hidden', 'true');
  } else {
    node.removeAttribute('aria-hidden');
  }
}
function hideSiblings(container, _ref2) {
  var dialog = _ref2.dialog,
      backdrop = _ref2.backdrop;
  siblings(container, [dialog, backdrop], function (node) {
    return ariaHidden(true, node);
  });
}
function showSiblings(container, _ref3) {
  var dialog = _ref3.dialog,
      backdrop = _ref3.backdrop;
  siblings(container, [dialog, backdrop], function (node) {
    return ariaHidden(false, node);
  });
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/ownerDocument.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/ownerDocument.js ***!
  \***************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");
/* harmony import */ var _safeFindDOMNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./safeFindDOMNode */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/safeFindDOMNode.js");


/* harmony default export */ __webpack_exports__["default"] = (function (componentOrElement) {
  return Object(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_safeFindDOMNode__WEBPACK_IMPORTED_MODULE_1__["default"])(componentOrElement));
});

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/popper.js":
/*!********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/popper.js ***!
  \********************************************************************************/
/*! exports provided: createPopper, placements */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return createPopper; });
/* harmony import */ var _popperjs_core_lib_modifiers_arrow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/arrow */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js");
/* harmony import */ var _popperjs_core_lib_modifiers_computeStyles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/computeStyles */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js");
/* harmony import */ var _popperjs_core_lib_modifiers_eventListeners__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/eventListeners */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js");
/* harmony import */ var _popperjs_core_lib_modifiers_flip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/flip */ "./node_modules/@popperjs/core/lib/modifiers/flip.js");
/* harmony import */ var _popperjs_core_lib_modifiers_hide__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/hide */ "./node_modules/@popperjs/core/lib/modifiers/hide.js");
/* harmony import */ var _popperjs_core_lib_modifiers_offset__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/offset */ "./node_modules/@popperjs/core/lib/modifiers/offset.js");
/* harmony import */ var _popperjs_core_lib_modifiers_popperOffsets__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/popperOffsets */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js");
/* harmony import */ var _popperjs_core_lib_modifiers_preventOverflow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @popperjs/core/lib/modifiers/preventOverflow */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js");
/* harmony import */ var _popperjs_core_lib_enums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @popperjs/core/lib/enums */ "./node_modules/@popperjs/core/lib/enums.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return _popperjs_core_lib_enums__WEBPACK_IMPORTED_MODULE_8__["placements"]; });

/* harmony import */ var _popperjs_core_lib_popper_base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @popperjs/core/lib/popper-base */ "./node_modules/@popperjs/core/lib/popper-base.js");









 // For the common JS build we will turn this file into a bundle with no imports.
// This is b/c the Popper lib is all esm files, and would break in a common js only environment

var createPopper = Object(_popperjs_core_lib_popper_base__WEBPACK_IMPORTED_MODULE_9__["popperGenerator"])({
  defaultModifiers: [_popperjs_core_lib_modifiers_hide__WEBPACK_IMPORTED_MODULE_4__["default"], _popperjs_core_lib_modifiers_popperOffsets__WEBPACK_IMPORTED_MODULE_6__["default"], _popperjs_core_lib_modifiers_computeStyles__WEBPACK_IMPORTED_MODULE_1__["default"], _popperjs_core_lib_modifiers_eventListeners__WEBPACK_IMPORTED_MODULE_2__["default"], _popperjs_core_lib_modifiers_offset__WEBPACK_IMPORTED_MODULE_5__["default"], _popperjs_core_lib_modifiers_flip__WEBPACK_IMPORTED_MODULE_3__["default"], _popperjs_core_lib_modifiers_preventOverflow__WEBPACK_IMPORTED_MODULE_7__["default"], _popperjs_core_lib_modifiers_arrow__WEBPACK_IMPORTED_MODULE_0__["default"]]
});


/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/safeFindDOMNode.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/safeFindDOMNode.js ***!
  \*****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return safeFindDOMNode; });
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);

function safeFindDOMNode(componentOrElement) {
  if (componentOrElement && 'setState' in componentOrElement) {
    return react_dom__WEBPACK_IMPORTED_MODULE_0___default.a.findDOMNode(componentOrElement);
  }

  return componentOrElement != null ? componentOrElement : null;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/usePopper.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/usePopper.js ***!
  \***********************************************************************************/
/*! exports provided: toModifierMap, toModifierArray, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toModifierMap", function() { return toModifierMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toModifierArray", function() { return toModifierArray; });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _restart_hooks_useSafeState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @restart/hooks/useSafeState */ "./node_modules/@restart/hooks/esm/useSafeState.js");
/* harmony import */ var _popper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./popper */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/popper.js");





var initialPopperStyles = {
  position: 'absolute',
  top: '0',
  left: '0',
  opacity: '0',
  pointerEvents: 'none'
};
var initialArrowStyles = {}; // until docjs supports type exports...

function toModifierMap(modifiers) {
  var result = {};

  if (!Array.isArray(modifiers)) {
    return modifiers || result;
  } // eslint-disable-next-line no-unused-expressions


  modifiers == null ? void 0 : modifiers.forEach(function (m) {
    result[m.name] = m;
  });
  return result;
}
function toModifierArray(map) {
  if (map === void 0) {
    map = {};
  }

  if (Array.isArray(map)) return map;
  return Object.keys(map).map(function (k) {
    map[k].name = k;
    return map[k];
  });
}

/**
 * Position an element relative some reference element using Popper.js
 *
 * @param referenceElement
 * @param popperElement
 * @param {object}      options
 * @param {object=}     options.modifiers Popper.js modifiers
 * @param {boolean=}    options.enabled toggle the popper functionality on/off
 * @param {string=}     options.placement The popper element placement relative to the reference element
 * @param {string=}     options.strategy the positioning strategy
 * @param {boolean=}    options.eventsEnabled have Popper listen on window resize events to reposition the element
 * @param {function=}   options.onCreate called when the popper is created
 * @param {function=}   options.onUpdate called when the popper is updated
 *
 * @returns {UsePopperState} The popper state
 */
function usePopper(referenceElement, popperElement, _temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      _ref$enabled = _ref.enabled,
      enabled = _ref$enabled === void 0 ? true : _ref$enabled,
      _ref$placement = _ref.placement,
      placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === void 0 ? 'absolute' : _ref$strategy,
      _ref$eventsEnabled = _ref.eventsEnabled,
      eventsEnabled = _ref$eventsEnabled === void 0 ? true : _ref$eventsEnabled,
      userModifiers = _ref.modifiers,
      popperOptions = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["enabled", "placement", "strategy", "eventsEnabled", "modifiers"]);

  var popperInstanceRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])();
  var scheduleUpdate = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function () {
    if (popperInstanceRef.current) {
      popperInstanceRef.current.update();
    }
  }, []);

  var _useSafeState = Object(_restart_hooks_useSafeState__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(react__WEBPACK_IMPORTED_MODULE_2__["useState"])({
    placement: placement,
    scheduleUpdate: scheduleUpdate,
    outOfBoundaries: false,
    styles: initialPopperStyles,
    arrowStyles: initialArrowStyles
  })),
      state = _useSafeState[0],
      setState = _useSafeState[1];

  var updateModifier = Object(react__WEBPACK_IMPORTED_MODULE_2__["useMemo"])(function () {
    return {
      name: 'updateStateModifier',
      enabled: true,
      phase: 'afterWrite',
      requires: ['computeStyles'],
      fn: function fn(data) {
        var _data$state$modifiers, _data$state$styles, _data$state$styles2;

        setState({
          scheduleUpdate: scheduleUpdate,
          outOfBoundaries: !!((_data$state$modifiers = data.state.modifiersData.hide) == null ? void 0 : _data$state$modifiers.isReferenceHidden),
          placement: data.state.placement,
          styles: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (_data$state$styles = data.state.styles) == null ? void 0 : _data$state$styles.popper),
          arrowStyles: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, (_data$state$styles2 = data.state.styles) == null ? void 0 : _data$state$styles2.arrow),
          state: data.state
        });
      }
    };
  }, [scheduleUpdate, setState]);
  var modifiers = toModifierArray(userModifiers);
  var eventsModifier = modifiers.find(function (m) {
    return m.name === 'eventListeners';
  });

  if (!eventsModifier && eventsEnabled) {
    eventsModifier = {
      name: 'eventListeners',
      enabled: true
    };
    modifiers = [].concat(modifiers, [eventsModifier]);
  } // A placement difference in state means popper determined a new placement
  // apart from the props value. By the time the popper element is rendered with
  // the new position Popper has already measured it, if the place change triggers
  // a size change it will result in a misaligned popper. So we schedule an update to be sure.


  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    scheduleUpdate();
  }, [state.placement, scheduleUpdate]);
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    if (!popperInstanceRef.current || !enabled) return;
    popperInstanceRef.current.setOptions({
      placement: placement,
      strategy: strategy,
      modifiers: [].concat(modifiers, [updateModifier])
    }); // intentionally NOT re-running on new modifiers
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [strategy, placement, eventsModifier.enabled, updateModifier, enabled]);
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    if (!enabled || referenceElement == null || popperElement == null) {
      return undefined;
    }

    popperInstanceRef.current = Object(_popper__WEBPACK_IMPORTED_MODULE_4__["createPopper"])(referenceElement, popperElement, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, popperOptions, {
      placement: placement,
      strategy: strategy,
      modifiers: [].concat(modifiers, [updateModifier])
    }));
    return function () {
      if (popperInstanceRef.current != null) {
        popperInstanceRef.current.destroy();
        popperInstanceRef.current = undefined;
        setState(function (s) {
          return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, s, {
            styles: initialPopperStyles,
            arrowStyles: initialArrowStyles
          });
        });
      }
    }; // This is only run once to _create_ the popper
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [enabled, referenceElement, popperElement]);
  return state;
}

/* harmony default export */ __webpack_exports__["default"] = (usePopper);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useRootClose.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/useRootClose.js ***!
  \**************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var dom_helpers_contains__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/contains */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/contains.js");
/* harmony import */ var dom_helpers_listen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-helpers/listen */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/listen.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @restart/hooks/useEventCallback */ "./node_modules/@restart/hooks/esm/useEventCallback.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/react-bootstrap/node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ownerDocument */ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/ownerDocument.js");






var escapeKeyCode = 27;

var noop = function noop() {};

function isLeftClickEvent(event) {
  return event.button === 0;
}

function isModifiedEvent(event) {
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}

var getRefTarget = function getRefTarget(ref) {
  return ref && ('current' in ref ? ref.current : ref);
};

/**
 * The `useRootClose` hook registers your callback on the document
 * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
 * style behavior where your callback is triggered when the user tries to
 * interact with the rest of the document or hits the `esc` key.
 *
 * @param {Ref<HTMLElement>| HTMLElement} ref  The element boundary
 * @param {function} onRootClose
 * @param {object=}  options
 * @param {boolean=} options.disabled
 * @param {string=}  options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
 */
function useRootClose(ref, onRootClose, _temp) {
  var _ref = _temp === void 0 ? {} : _temp,
      disabled = _ref.disabled,
      _ref$clickTrigger = _ref.clickTrigger,
      clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;

  var preventMouseRootCloseRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(false);
  var onClose = onRootClose || noop;
  var handleMouseCapture = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (e) {
    var currentTarget = getRefTarget(ref);
    warning__WEBPACK_IMPORTED_MODULE_4___default()(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
    preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!Object(dom_helpers_contains__WEBPACK_IMPORTED_MODULE_0__["default"])(currentTarget, e.target);
  }, [ref]);
  var handleMouse = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_3__["default"])(function (e) {
    if (!preventMouseRootCloseRef.current) {
      onClose(e);
    }
  });
  var handleKeyUp = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_3__["default"])(function (e) {
    if (e.keyCode === escapeKeyCode) {
      onClose(e);
    }
  });
  Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
    if (disabled || ref == null) return undefined;
    var doc = Object(_ownerDocument__WEBPACK_IMPORTED_MODULE_5__["default"])(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
    // avoid false positives in the contains() check below if the target DOM
    // element is removed in the React mouse callback.

    var removeMouseCaptureListener = Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_1__["default"])(doc, clickTrigger, handleMouseCapture, true);
    var removeMouseListener = Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_1__["default"])(doc, clickTrigger, handleMouse);
    var removeKeyupListener = Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_1__["default"])(doc, 'keyup', handleKeyUp);
    var mobileSafariHackListeners = [];

    if ('ontouchstart' in doc.documentElement) {
      mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
        return Object(dom_helpers_listen__WEBPACK_IMPORTED_MODULE_1__["default"])(el, 'mousemove', noop);
      });
    }

    return function () {
      removeMouseCaptureListener();
      removeMouseListener();
      removeKeyupListener();
      mobileSafariHackListeners.forEach(function (remove) {
        return remove();
      });
    };
  }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse, handleKeyUp]);
}

/* harmony default export */ __webpack_exports__["default"] = (useRootClose);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-overlays/esm/useWaitForDOMRef.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-overlays/esm/useWaitForDOMRef.js ***!
  \******************************************************************************************/
/*! exports provided: resolveContainerRef, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveContainerRef", function() { return resolveContainerRef; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useWaitForDOMRef; });
/* harmony import */ var dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/react-bootstrap/node_modules/dom-helpers/esm/ownerDocument.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);


var resolveContainerRef = function resolveContainerRef(ref) {
  var _ref;

  if (typeof document === 'undefined') return null;
  if (ref == null) return Object(dom_helpers_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])().body;
  if (typeof ref === 'function') ref = ref();
  if (ref && 'current' in ref) ref = ref.current;
  if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
  return null;
};
function useWaitForDOMRef(ref, onResolved) {
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(function () {
    return resolveContainerRef(ref);
  }),
      resolvedRef = _useState[0],
      setRef = _useState[1];

  if (!resolvedRef) {
    var earlyRef = resolveContainerRef(ref);
    if (earlyRef) setRef(earlyRef);
  }

  Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
    if (onResolved && resolvedRef) {
      onResolved(resolvedRef);
    }
  }, [onResolved, resolvedRef]);
  Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
    var nextRef = resolveContainerRef(ref);

    if (nextRef !== resolvedRef) {
      setRef(nextRef);
    }
  }, [ref, resolvedRef]);
  return resolvedRef;
}

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/Transition.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-transition-group/esm/Transition.js ***!
  \********************************************************************************************/
/*! exports provided: UNMOUNTED, EXITED, ENTERING, ENTERED, EXITING, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNMOUNTED", function() { return UNMOUNTED; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXITED", function() { return EXITED; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENTERING", function() { return ENTERING; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENTERED", function() { return ENTERED; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EXITING", function() { return EXITING; });
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/react-bootstrap/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* 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__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./config */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/config.js");
/* harmony import */ var _utils_PropTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/PropTypes */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/utils/PropTypes.js");
/* harmony import */ var _TransitionGroupContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TransitionGroupContext */ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/TransitionGroupContext.js");








var UNMOUNTED = 'unmounted';
var EXITED = 'exited';
var ENTERING = 'entering';
var ENTERED = 'entered';
var EXITING = 'exiting';
/**
 * The Transition component lets you describe a transition from one component
 * state to another _over time_ with a simple declarative API. Most commonly
 * it's used to animate the mounting and unmounting of a component, but can also
 * be used to describe in-place transition states as well.
 *
 * ---
 *
 * **Note**: `Transition` is a platform-agnostic base component. If you're using
 * transitions in CSS, you'll probably want to use
 * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
 * instead. It inherits all the features of `Transition`, but contains
 * additional features necessary to play nice with CSS transitions (hence the
 * name of the component).
 *
 * ---
 *
 * By default the `Transition` component does not alter the behavior of the
 * component it renders, it only tracks "enter" and "exit" states for the
 * components. It's up to you to give meaning and effect to those states. For
 * example we can add styles to a component when it enters or exits:
 *
 * ```jsx
 * import { Transition } from 'react-transition-group';
 *
 * const duration = 300;
 *
 * const defaultStyle = {
 *   transition: `opacity ${duration}ms ease-in-out`,
 *   opacity: 0,
 * }
 *
 * const transitionStyles = {
 *   entering: { opacity: 1 },
 *   entered:  { opacity: 1 },
 *   exiting:  { opacity: 0 },
 *   exited:  { opacity: 0 },
 * };
 *
 * const Fade = ({ in: inProp }) => (
 *   <Transition in={inProp} timeout={duration}>
 *     {state => (
 *       <div style={{
 *         ...defaultStyle,
 *         ...transitionStyles[state]
 *       }}>
 *         I'm a fade Transition!
 *       </div>
 *     )}
 *   </Transition>
 * );
 * ```
 *
 * There are 4 main states a Transition can be in:
 *  - `'entering'`
 *  - `'entered'`
 *  - `'exiting'`
 *  - `'exited'`
 *
 * Transition state is toggled via the `in` prop. When `true` the component
 * begins the "Enter" stage. During this stage, the component will shift from
 * its current transition state, to `'entering'` for the duration of the
 * transition and then to the `'entered'` stage once it's complete. Let's take
 * the following example (we'll use the
 * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
 *
 * ```jsx
 * function App() {
 *   const [inProp, setInProp] = useState(false);
 *   return (
 *     <div>
 *       <Transition in={inProp} timeout={500}>
 *         {state => (
 *           // ...
 *         )}
 *       </Transition>
 *       <button onClick={() => setInProp(true)}>
 *         Click to Enter
 *       </button>
 *     </div>
 *   );
 * }
 * ```
 *
 * When the button is clicked the component will shift to the `'entering'` state
 * and stay there for 500ms (the value of `timeout`) before it finally switches
 * to `'entered'`.
 *
 * When `in` is `false` the same thing happens except the state moves from
 * `'exiting'` to `'exited'`.
 */

var Transition =
/*#__PURE__*/
function (_React$Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(Transition, _React$Component);

  function Transition(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    var parentGroup = context; // In the context of a TransitionGroup all enters are really appears

    var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
    var initialStatus;
    _this.appearStatus = null;

    if (props.in) {
      if (appear) {
        initialStatus = EXITED;
        _this.appearStatus = ENTERING;
      } else {
        initialStatus = ENTERED;
      }
    } else {
      if (props.unmountOnExit || props.mountOnEnter) {
        initialStatus = UNMOUNTED;
      } else {
        initialStatus = EXITED;
      }
    }

    _this.state = {
      status: initialStatus
    };
    _this.nextCallback = null;
    return _this;
  }

  Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
    var nextIn = _ref.in;

    if (nextIn && prevState.status === UNMOUNTED) {
      return {
        status: EXITED
      };
    }

    return null;
  }; // getSnapshotBeforeUpdate(prevProps) {
  //   let nextStatus = null
  //   if (prevProps !== this.props) {
  //     const { status } = this.state
  //     if (this.props.in) {
  //       if (status !== ENTERING && status !== ENTERED) {
  //         nextStatus = ENTERING
  //       }
  //     } else {
  //       if (status === ENTERING || status === ENTERED) {
  //         nextStatus = EXITING
  //       }
  //     }
  //   }
  //   return { nextStatus }
  // }


  var _proto = Transition.prototype;

  _proto.componentDidMount = function componentDidMount() {
    this.updateStatus(true, this.appearStatus);
  };

  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
    var nextStatus = null;

    if (prevProps !== this.props) {
      var status = this.state.status;

      if (this.props.in) {
        if (status !== ENTERING && status !== ENTERED) {
          nextStatus = ENTERING;
        }
      } else {
        if (status === ENTERING || status === ENTERED) {
          nextStatus = EXITING;
        }
      }
    }

    this.updateStatus(false, nextStatus);
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    this.cancelNextCallback();
  };

  _proto.getTimeouts = function getTimeouts() {
    var timeout = this.props.timeout;
    var exit, enter, appear;
    exit = enter = appear = timeout;

    if (timeout != null && typeof timeout !== 'number') {
      exit = timeout.exit;
      enter = timeout.enter; // TODO: remove fallback for next major

      appear = timeout.appear !== undefined ? timeout.appear : enter;
    }

    return {
      exit: exit,
      enter: enter,
      appear: appear
    };
  };

  _proto.updateStatus = function updateStatus(mounting, nextStatus) {
    if (mounting === void 0) {
      mounting = false;
    }

    if (nextStatus !== null) {
      // nextStatus will always be ENTERING or EXITING.
      this.cancelNextCallback();
      var node = react_dom__WEBPACK_IMPORTED_MODULE_4___default.a.findDOMNode(this);

      if (nextStatus === ENTERING) {
        this.performEnter(node, mounting);
      } else {
        this.performExit(node);
      }
    } else if (this.props.unmountOnExit && this.state.status === EXITED) {
      this.setState({
        status: UNMOUNTED
      });
    }
  };

  _proto.performEnter = function performEnter(node, mounting) {
    var _this2 = this;

    var enter = this.props.enter;
    var appearing = this.context ? this.context.isMounting : mounting;
    var timeouts = this.getTimeouts();
    var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
    // if we are mounting and running this it means appear _must_ be set

    if (!mounting && !enter || _config__WEBPACK_IMPORTED_MODULE_5__["default"].disabled) {
      this.safeSetState({
        status: ENTERED
      }, function () {
        _this2.props.onEntered(node);
      });
      return;
    }

    this.props.onEnter(node, appearing);
    this.safeSetState({
      status: ENTERING
    }, function () {
      _this2.props.onEntering(node, appearing);

      _this2.onTransitionEnd(node, enterTimeout, function () {
        _this2.safeSetState({
          status: ENTERED
        }, function () {
          _this2.props.onEntered(node, appearing);
        });
      });
    });
  };

  _proto.performExit = function performExit(node) {
    var _this3 = this;

    var exit = this.props.exit;
    var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED

    if (!exit || _config__WEBPACK_IMPORTED_MODULE_5__["default"].disabled) {
      this.safeSetState({
        status: EXITED
      }, function () {
        _this3.props.onExited(node);
      });
      return;
    }

    this.props.onExit(node);
    this.safeSetState({
      status: EXITING
    }, function () {
      _this3.props.onExiting(node);

      _this3.onTransitionEnd(node, timeouts.exit, function () {
        _this3.safeSetState({
          status: EXITED
        }, function () {
          _this3.props.onExited(node);
        });
      });
    });
  };

  _proto.cancelNextCallback = function cancelNextCallback() {
    if (this.nextCallback !== null) {
      this.nextCallback.cancel();
      this.nextCallback = null;
    }
  };

  _proto.safeSetState = function safeSetState(nextState, callback) {
    // This shouldn't be necessary, but there are weird race conditions with
    // setState callbacks and unmounting in testing, so always make sure that
    // we can cancel any pending setState callbacks after we unmount.
    callback = this.setNextCallback(callback);
    this.setState(nextState, callback);
  };

  _proto.setNextCallback = function setNextCallback(callback) {
    var _this4 = this;

    var active = true;

    this.nextCallback = function (event) {
      if (active) {
        active = false;
        _this4.nextCallback = null;
        callback(event);
      }
    };

    this.nextCallback.cancel = function () {
      active = false;
    };

    return this.nextCallback;
  };

  _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
    this.setNextCallback(handler);
    var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;

    if (!node || doesNotHaveTimeoutOrListener) {
      setTimeout(this.nextCallback, 0);
      return;
    }

    if (this.props.addEndListener) {
      this.props.addEndListener(node, this.nextCallback);
    }

    if (timeout != null) {
      setTimeout(this.nextCallback, timeout);
    }
  };

  _proto.render = function render() {
    var status = this.state.status;

    if (status === UNMOUNTED) {
      return null;
    }

    var _this$props = this.props,
        children = _this$props.children,
        childProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props, ["children"]); // filter props for Transtition


    delete childProps.in;
    delete childProps.mountOnEnter;
    delete childProps.unmountOnExit;
    delete childProps.appear;
    delete childProps.enter;
    delete childProps.exit;
    delete childProps.timeout;
    delete childProps.addEndListener;
    delete childProps.onEnter;
    delete childProps.onEntering;
    delete childProps.onEntered;
    delete childProps.onExit;
    delete childProps.onExiting;
    delete childProps.onExited;

    if (typeof children === 'function') {
      // allows for nested Transitions
      return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TransitionGroupContext__WEBPACK_IMPORTED_MODULE_7__["default"].Provider, {
        value: null
      }, children(status, childProps));
    }

    var child = react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.only(children);
    return (// allows for nested Transitions
      react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_TransitionGroupContext__WEBPACK_IMPORTED_MODULE_7__["default"].Provider, {
        value: null
      }, react__WEBPACK_IMPORTED_MODULE_3___default.a.cloneElement(child, childProps))
    );
  };

  return Transition;
}(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

Transition.contextType = _TransitionGroupContext__WEBPACK_IMPORTED_MODULE_7__["default"];
Transition.propTypes =  true ? {
  /**
   * A `function` child can be used instead of a React element. This function is
   * called with the current transition status (`'entering'`, `'entered'`,
   * `'exiting'`, `'exited'`), which can be used to apply context
   * specific props to a component.
   *
   * ```jsx
   * <Transition in={this.state.in} timeout={150}>
   *   {state => (
   *     <MyComponent className={`fade fade-${state}`} />
   *   )}
   * </Transition>
   * ```
   */
  children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func.isRequired, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element.isRequired]).isRequired,

  /**
   * Show the component; triggers the enter or exit states
   */
  in: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * By default the child component is mounted immediately along with
   * the parent `Transition` component. If you want to "lazy mount" the component on the
   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
   * mounted, even on "exited", unless you also specify `unmountOnExit`.
   */
  mountOnEnter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * By default the child component stays mounted after it reaches the `'exited'` state.
   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
   */
  unmountOnExit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Normally a component is not transitioned if it is shown when the
   * `<Transition>` component mounts. If you want to transition on the first
   * mount set `appear` to `true`, and the component will transition in as soon
   * as the `<Transition>` mounts.
   *
   * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
   * > only adds an additional enter transition. However, in the
   * > `<CSSTransition>` component that first enter transition does result in
   * > additional `.appear-*` classes, that way you can choose to style it
   * > differently.
   */
  appear: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Enable or disable enter transitions.
   */
  enter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * Enable or disable exit transitions.
   */
  exit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,

  /**
   * The duration of the transition, in milliseconds.
   * Required unless `addEndListener` is provided.
   *
   * You may specify a single timeout for all transitions:
   *
   * ```jsx
   * timeout={500}
   * ```
   *
   * or individually:
   *
   * ```jsx
   * timeout={{
   *  appear: 500,
   *  enter: 300,
   *  exit: 500,
   * }}
   * ```
   *
   * - `appear` defaults to the value of `enter`
   * - `enter` defaults to `0`
   * - `exit` defaults to `0`
   *
   * @type {number | { enter?: number, exit?: number, appear?: number }}
   */
  timeout: function timeout(props) {
    var pt = _utils_PropTypes__WEBPACK_IMPORTED_MODULE_6__["timeoutsShape"];
    if (!props.addEndListener) pt = pt.isRequired;

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },

  /**
   * Add a custom transition end trigger. Called with the transitioning
   * DOM node and a `done` callback. Allows for more fine grained transition end
   * logic. **Note:** Timeouts are still used as a fallback if provided.
   *
   * ```jsx
   * addEndListener={(node, done) => {
   *   // use the css transitionend event to mark the finish of a transition
   *   node.addEventListener('transitionend', done, false);
   * }}
   * ```
   */
  addEndListener: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired before the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEnter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool)
   */
  onEntering: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the "entered" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEntered: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired before the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExiting: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,

  /**
   * Callback fired after the "exited" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExited: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func // Name the function so it is clearer in the documentation

} : undefined;

function noop() {}

Transition.defaultProps = {
  in: false,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  enter: true,
  exit: true,
  onEnter: noop,
  onEntering: noop,
  onEntered: noop,
  onExit: noop,
  onExiting: noop,
  onExited: noop
};
Transition.UNMOUNTED = 0;
Transition.EXITED = 1;
Transition.ENTERING = 2;
Transition.ENTERED = 3;
Transition.EXITING = 4;
/* harmony default export */ __webpack_exports__["default"] = (Transition);

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/TransitionGroupContext.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-transition-group/esm/TransitionGroupContext.js ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);

/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null));

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/config.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-transition-group/esm/config.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
  disabled: false
});

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/react-transition-group/esm/utils/PropTypes.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/react-transition-group/esm/utils/PropTypes.js ***!
  \*************************************************************************************************/
/*! exports provided: timeoutsShape, classNamesShape */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeoutsShape", function() { return timeoutsShape; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "classNamesShape", function() { return classNamesShape; });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/react-bootstrap/node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);

var timeoutsShape =  true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({
  enter: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  exit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number,
  appear: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.number
}).isRequired]) : undefined;
var classNamesShape =  true ? prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({
  enter: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  exit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  active: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string
}), prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.shape({
  enter: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  enterDone: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  enterActive: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  exit: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  exitDone: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,
  exitActive: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string
})]) : undefined;

/***/ }),

/***/ "./node_modules/react-bootstrap/node_modules/warning/warning.js":
/*!**********************************************************************!*\
  !*** ./node_modules/react-bootstrap/node_modules/warning/warning.js ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (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__ = "development" !== 'production';

var warning = function() {};

if (__DEV__) {
  var printWarning = function printWarning(format, args) {
    var len = arguments.length;
    args = new Array(len > 1 ? len - 1 : 0);
    for (var 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(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;


/***/ }),

/***/ "./node_modules/react-c3js/react-c3js.js":
/*!***********************************************!*\
  !*** ./node_modules/react-c3js/react-c3js.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 c3 = void 0;

var C3Chart = function (_React$Component) {
  _inherits(C3Chart, _React$Component);

  function C3Chart() {
    _classCallCheck(this, C3Chart);

    return _possibleConstructorReturn(this, (C3Chart.__proto__ || Object.getPrototypeOf(C3Chart)).apply(this, arguments));
  }

  _createClass(C3Chart, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      c3 = __webpack_require__(/*! c3 */ "./node_modules/c3/c3.js");
      this.updateChart(this.props);
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(newProps) {
      this.updateChart(newProps);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.destroyChart();
    }
  }, {
    key: 'destroyChart',
    value: function destroyChart() {
      try {
        this.chart = this.chart.destroy();
      } catch (err) {
        throw new Error('Internal C3 error', err);
      }
    }
  }, {
    key: 'generateChart',
    value: function generateChart(mountNode, config) {
      var newConfig = _extends({ bindto: mountNode }, config);
      return c3.generate(newConfig);
    }
  }, {
    key: 'loadNewData',
    value: function loadNewData(data) {
      this.chart.load(data);
    }
  }, {
    key: 'unloadData',
    value: function unloadData() {
      this.chart.unload();
    }
  }, {
    key: 'updateChart',
    value: function updateChart(config) {
      if (!this.chart) {
        this.chart = this.generateChart((0, _reactDom.findDOMNode)(this), config);
      }

      if (config.unloadBeforeLoad) {
        this.unloadData();
      }

      this.loadNewData(config.data);
    }
  }, {
    key: 'render',
    value: function render() {
      var className = this.props.className ? ' ' + this.props.className : '';
      var style = this.props.style ? this.props.style : {};
      return _react2.default.createElement('div', { className: className, style: style });
    }
  }], [{
    key: 'displayName',
    get: function get() {
      return 'C3Chart';
    }
  }, {
    key: 'propTypes',
    get: function get() {
      return {
        data: _propTypes2.default.object.isRequired,
        title: _propTypes2.default.object,
        size: _propTypes2.default.object,
        padding: _propTypes2.default.object,
        color: _propTypes2.default.object,
        interaction: _propTypes2.default.object,
        transition: _propTypes2.default.object,
        oninit: _propTypes2.default.func,
        onrendered: _propTypes2.default.func,
        onmouseover: _propTypes2.default.func,
        onmouseout: _propTypes2.default.func,
        onresize: _propTypes2.default.func,
        onresized: _propTypes2.default.func,
        axis: _propTypes2.default.object,
        grid: _propTypes2.default.object,
        regions: _propTypes2.default.array,
        legend: _propTypes2.default.object,
        tooltip: _propTypes2.default.object,
        subchart: _propTypes2.default.object,
        zoom: _propTypes2.default.object,
        point: _propTypes2.default.object,
        line: _propTypes2.default.object,
        area: _propTypes2.default.object,
        bar: _propTypes2.default.object,
        pie: _propTypes2.default.object,
        donut: _propTypes2.default.object,
        gauge: _propTypes2.default.object,
        className: _propTypes2.default.string,
        style: _propTypes2.default.object,
        unloadBeforeLoad: _propTypes2.default.bool
      };
    }
  }]);

  return C3Chart;
}(_react2.default.Component);

exports.default = C3Chart;


/***/ }),

/***/ "./node_modules/react-collapse/lib/Collapse.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-collapse/lib/Collapse.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Collapse = undefined;

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _reactMotion = __webpack_require__(/*! react-motion */ "./node_modules/react-motion/lib/react-motion.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 SPRING_PRECISION = 1;

var WAITING = 'WAITING';
var RESIZING = 'RESIZING';
var RESTING = 'RESTING';
var IDLING = 'IDLING';

var noop = function noop() {
  return null;
};
var css = {
  collapse: 'ReactCollapse--collapse',
  content: 'ReactCollapse--content'
};

var Collapse = exports.Collapse = function (_React$PureComponent) {
  _inherits(Collapse, _React$PureComponent);

  function Collapse(props) {
    _classCallCheck(this, Collapse);

    var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));

    _initialiseProps.call(_this);

    _this.state = {
      currentState: IDLING,
      from: 0,
      to: 0
    };
    return _this;
  }

  _createClass(Collapse, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var _props = this.props,
          isOpened = _props.isOpened,
          forceInitialAnimation = _props.forceInitialAnimation,
          onRest = _props.onRest;

      if (isOpened) {
        var to = this.getTo();
        if (forceInitialAnimation) {
          var from = this.wrapper.clientHeight;
          this.setState({ currentState: RESIZING, from: from, to: to });
        } else {
          this.setState({ currentState: IDLING, from: to, to: to });
        }
      }
      onRest();
    }
  }, {
    key: 'componentWillReceiveProps',
    value: function componentWillReceiveProps(nextProps) {
      if (nextProps.hasNestedCollapse) {
        // For nested collapses we do not need to change to waiting state
        // and should keep `height:auto`
        // Because children will be animated and height will not jump anyway
        // See https://github.com/nkbt/react-collapse/issues/76 for more details
        if (nextProps.isOpened !== this.props.isOpened) {
          // Still go to WAITING state if own isOpened was changed
          this.setState({ currentState: WAITING });
        }
      } else if (this.state.currentState === IDLING && (nextProps.isOpened || this.props.isOpened)) {
        this.setState({ currentState: WAITING });
      }
    }
  }, {
    key: 'componentDidUpdate',
    value: function componentDidUpdate(_, prevState) {
      var _props2 = this.props,
          isOpened = _props2.isOpened,
          onRest = _props2.onRest,
          onMeasure = _props2.onMeasure;


      if (this.state.currentState === IDLING) {
        onRest();
        return;
      }

      if (prevState.to !== this.state.to) {
        onMeasure({ height: this.state.to, width: this.content.clientWidth });
      }

      var from = this.wrapper.clientHeight;
      var to = isOpened ? this.getTo() : 0;

      if (from !== to) {
        this.setState({ currentState: RESIZING, from: from, to: to });
        return;
      }

      if (this.state.currentState === RESTING || this.state.currentState === WAITING) {
        this.setState({ currentState: IDLING, from: from, to: to });
      }
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      cancelAnimationFrame(this.raf);
    }
  }, {
    key: 'render',
    value: function render() {
      return _react2.default.createElement(_reactMotion.Motion, _extends({}, this.getMotionProps(), {
        onRest: this.onRest,
        children: this.renderContent }));
    }
  }]);

  return Collapse;
}(_react2.default.PureComponent);

Collapse.propTypes = {
  isOpened: _propTypes2.default.bool.isRequired,
  springConfig: _propTypes2.default.objectOf(_propTypes2.default.number),
  forceInitialAnimation: _propTypes2.default.bool,

  hasNestedCollapse: _propTypes2.default.bool,

  fixedHeight: _propTypes2.default.number,

  theme: _propTypes2.default.objectOf(_propTypes2.default.string),
  style: _propTypes2.default.object,

  onRender: _propTypes2.default.func,
  onRest: _propTypes2.default.func,
  onMeasure: _propTypes2.default.func,

  children: _propTypes2.default.node.isRequired
};
Collapse.defaultProps = {
  forceInitialAnimation: false,
  hasNestedCollapse: false,
  fixedHeight: -1,
  style: {},
  theme: css,
  onRender: noop,
  onRest: noop,
  onMeasure: noop
};

var _initialiseProps = function _initialiseProps() {
  var _this2 = this;

  this.onContentRef = function (content) {
    _this2.content = content;
  };

  this.onWrapperRef = function (wrapper) {
    _this2.wrapper = wrapper;
  };

  this.onRest = function () {
    _this2.raf = requestAnimationFrame(_this2.setResting);
  };

  this.setResting = function () {
    _this2.setState({ currentState: RESTING });
  };

  this.getTo = function () {
    var fixedHeight = _this2.props.fixedHeight;

    return fixedHeight > -1 ? fixedHeight : _this2.content.clientHeight;
  };

  this.getWrapperStyle = function (height) {
    if (_this2.state.currentState === IDLING && _this2.state.to) {
      var fixedHeight = _this2.props.fixedHeight;

      if (fixedHeight > -1) {
        return { overflow: 'hidden', height: fixedHeight };
      }
      return { height: 'auto' };
    }

    if (_this2.state.currentState === WAITING && !_this2.state.to) {
      return { overflow: 'hidden', height: 0 };
    }

    return { overflow: 'hidden', height: Math.max(0, height) };
  };

  this.getMotionProps = function () {
    var springConfig = _this2.props.springConfig;


    return _this2.state.currentState === IDLING ? {
      // When completely stable, instantly jump to the position
      defaultStyle: { height: _this2.state.to },
      style: { height: _this2.state.to }
    } : {
      // Otherwise, animate
      defaultStyle: { height: _this2.state.from },
      style: { height: (0, _reactMotion.spring)(_this2.state.to, _extends({ precision: SPRING_PRECISION }, springConfig)) }
    };
  };

  this.renderContent = function (_ref) {
    var height = _ref.height;

    // eslint-disable-line
    var _props3 = _this2.props,
        _isOpened = _props3.isOpened,
        _springConfig = _props3.springConfig,
        _forceInitialAnimation = _props3.forceInitialAnimation,
        _hasNestedCollapse = _props3.hasNestedCollapse,
        _fixedHeight = _props3.fixedHeight,
        theme = _props3.theme,
        style = _props3.style,
        onRender = _props3.onRender,
        _onRest = _props3.onRest,
        _onMeasure = _props3.onMeasure,
        children = _props3.children,
        props = _objectWithoutProperties(_props3, ['isOpened', 'springConfig', 'forceInitialAnimation', 'hasNestedCollapse', 'fixedHeight', 'theme', 'style', 'onRender', 'onRest', 'onMeasure', 'children']);

    var _state = _this2.state,
        from = _state.from,
        to = _state.to;

    // DANGEROUS, use with caution, never do setState with it

    onRender({ current: height, from: from, to: to });

    return _react2.default.createElement(
      'div',
      _extends({
        ref: _this2.onWrapperRef,
        className: theme.collapse,
        style: _extends({}, _this2.getWrapperStyle(Math.max(0, height)), style)
      }, props),
      _react2.default.createElement(
        'div',
        { ref: _this2.onContentRef, className: theme.content },
        children
      )
    );
  };
};

/***/ }),

/***/ "./node_modules/react-collapse/lib/UnmountClosed.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-collapse/lib/UnmountClosed.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.UnmountClosed = undefined;

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _Collapse = __webpack_require__(/*! ./Collapse */ "./node_modules/react-collapse/lib/Collapse.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 UnmountClosed = exports.UnmountClosed = function (_React$PureComponent) {
  _inherits(UnmountClosed, _React$PureComponent);

  function UnmountClosed(props) {
    _classCallCheck(this, UnmountClosed);

    var _this = _possibleConstructorReturn(this, (UnmountClosed.__proto__ || Object.getPrototypeOf(UnmountClosed)).call(this, props));

    _this.componentWillReceiveProps = function (_ref) {
      var isOpened = _ref.isOpened;

      if (!_this.props.isOpened && isOpened) {
        _this.setState({
          forceInitialAnimation: true,
          shouldUnmount: false
        });
      }
    };

    _this.onRest = function () {
      var _this$props = _this.props,
          isOpened = _this$props.isOpened,
          onRest = _this$props.onRest;


      if (!isOpened) {
        _this.setState({ shouldUnmount: true });
      }
      if (onRest) {
        onRest.apply(undefined, arguments);
      }
    };

    _this.state = {
      shouldUnmount: !_this.props.isOpened,
      forceInitialAnimation: !_this.props.isOpened
    };
    return _this;
  }

  _createClass(UnmountClosed, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          isOpened = _props.isOpened,
          _onRest = _props.onRest,
          props = _objectWithoutProperties(_props, ['isOpened', 'onRest']);

      var _state = this.state,
          forceInitialAnimation = _state.forceInitialAnimation,
          shouldUnmount = _state.shouldUnmount;


      return shouldUnmount ? null : _react2.default.createElement(_Collapse.Collapse, _extends({
        forceInitialAnimation: forceInitialAnimation,
        isOpened: isOpened,
        onRest: this.onRest
      }, props));
    }
  }]);

  return UnmountClosed;
}(_react2.default.PureComponent);

UnmountClosed.propTypes = {
  isOpened: _propTypes2.default.bool.isRequired,
  onRest: _propTypes2.default.func
};

/***/ }),

/***/ "./node_modules/react-collapse/lib/index.js":
/*!**************************************************!*\
  !*** ./node_modules/react-collapse/lib/index.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(/*! ./Collapse */ "./node_modules/react-collapse/lib/Collapse.js"),
    Collapse = _require.Collapse;

var _require2 = __webpack_require__(/*! ./UnmountClosed */ "./node_modules/react-collapse/lib/UnmountClosed.js"),
    UnmountClosed = _require2.UnmountClosed;

UnmountClosed.Collapse = Collapse;
UnmountClosed.UnmountClosed = UnmountClosed;

module.exports = UnmountClosed;

/***/ }),

/***/ "./node_modules/react-debounce-input/lib/Component.js":
/*!************************************************************!*\
  !*** ./node_modules/react-debounce-input/lib/Component.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.DebounceInput = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _lodash = _interopRequireDefault(__webpack_require__(/*! lodash.debounce */ "./node_modules/lodash.debounce/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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; }

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; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

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; }

var DebounceInput =
/*#__PURE__*/
function (_React$PureComponent) {
  _inherits(DebounceInput, _React$PureComponent);

  function DebounceInput(props) {
    var _this;

    _classCallCheck(this, DebounceInput);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(DebounceInput).call(this, props));

    _defineProperty(_assertThisInitialized(_this), "onChange", function (event) {
      event.persist();
      var oldValue = _this.state.value;
      var minLength = _this.props.minLength;

      _this.setState({
        value: event.target.value
      }, function () {
        var value = _this.state.value;

        if (value.length >= minLength) {
          _this.notify(event);

          return;
        } // If user hits backspace and goes below minLength consider it cleaning the value


        if (oldValue.length > value.length) {
          _this.notify(_objectSpread({}, event, {
            target: _objectSpread({}, event.target, {
              value: ''
            })
          }));
        }
      });
    });

    _defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) {
      if (event.key === 'Enter') {
        _this.forceNotify(event);
      } // Invoke original onKeyDown if present


      var onKeyDown = _this.props.onKeyDown;

      if (onKeyDown) {
        event.persist();
        onKeyDown(event);
      }
    });

    _defineProperty(_assertThisInitialized(_this), "onBlur", function (event) {
      _this.forceNotify(event); // Invoke original onBlur if present


      var onBlur = _this.props.onBlur;

      if (onBlur) {
        event.persist();
        onBlur(event);
      }
    });

    _defineProperty(_assertThisInitialized(_this), "createNotifier", function (debounceTimeout) {
      if (debounceTimeout < 0) {
        _this.notify = function () {
          return null;
        };
      } else if (debounceTimeout === 0) {
        _this.notify = _this.doNotify;
      } else {
        var debouncedChangeFunc = (0, _lodash["default"])(function (event) {
          _this.isDebouncing = false;

          _this.doNotify(event);
        }, debounceTimeout);

        _this.notify = function (event) {
          _this.isDebouncing = true;
          debouncedChangeFunc(event);
        };

        _this.flush = function () {
          return debouncedChangeFunc.flush();
        };

        _this.cancel = function () {
          _this.isDebouncing = false;
          debouncedChangeFunc.cancel();
        };
      }
    });

    _defineProperty(_assertThisInitialized(_this), "doNotify", function () {
      var onChange = _this.props.onChange;
      onChange.apply(void 0, arguments);
    });

    _defineProperty(_assertThisInitialized(_this), "forceNotify", function (event) {
      var debounceTimeout = _this.props.debounceTimeout;

      if (!_this.isDebouncing && debounceTimeout > 0) {
        return;
      }

      if (_this.cancel) {
        _this.cancel();
      }

      var value = _this.state.value;
      var minLength = _this.props.minLength;

      if (value.length >= minLength) {
        _this.doNotify(event);
      } else {
        _this.doNotify(_objectSpread({}, event, {
          target: _objectSpread({}, event.target, {
            value: value
          })
        }));
      }
    });

    _this.isDebouncing = false;
    _this.state = {
      value: props.value || ''
    };
    var _debounceTimeout = _this.props.debounceTimeout;

    _this.createNotifier(_debounceTimeout);

    return _this;
  }

  _createClass(DebounceInput, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.isDebouncing) {
        return;
      }

      var _this$props = this.props,
          value = _this$props.value,
          debounceTimeout = _this$props.debounceTimeout;
      var oldTimeout = prevProps.debounceTimeout,
          oldValue = prevProps.value;
      var stateValue = this.state.value;

      if (typeof value !== 'undefined' && oldValue !== value && stateValue !== value) {
        // Update state.value if new value passed via props, yep re-render should happen
        // eslint-disable-next-line react/no-did-update-set-state
        this.setState({
          value: value
        });
      }

      if (debounceTimeout !== oldTimeout) {
        this.createNotifier(debounceTimeout);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      if (this.flush) {
        this.flush();
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          element = _this$props2.element,
          _onChange = _this$props2.onChange,
          _value = _this$props2.value,
          _minLength = _this$props2.minLength,
          _debounceTimeout = _this$props2.debounceTimeout,
          forceNotifyByEnter = _this$props2.forceNotifyByEnter,
          forceNotifyOnBlur = _this$props2.forceNotifyOnBlur,
          onKeyDown = _this$props2.onKeyDown,
          onBlur = _this$props2.onBlur,
          inputRef = _this$props2.inputRef,
          props = _objectWithoutProperties(_this$props2, ["element", "onChange", "value", "minLength", "debounceTimeout", "forceNotifyByEnter", "forceNotifyOnBlur", "onKeyDown", "onBlur", "inputRef"]);

      var value = this.state.value;
      var maybeOnKeyDown;

      if (forceNotifyByEnter) {
        maybeOnKeyDown = {
          onKeyDown: this.onKeyDown
        };
      } else if (onKeyDown) {
        maybeOnKeyDown = {
          onKeyDown: onKeyDown
        };
      } else {
        maybeOnKeyDown = {};
      }

      var maybeOnBlur;

      if (forceNotifyOnBlur) {
        maybeOnBlur = {
          onBlur: this.onBlur
        };
      } else if (onBlur) {
        maybeOnBlur = {
          onBlur: onBlur
        };
      } else {
        maybeOnBlur = {};
      }

      var maybeRef = inputRef ? {
        ref: inputRef
      } : {};
      return _react["default"].createElement(element, _objectSpread({}, props, {
        onChange: this.onChange,
        value: value
      }, maybeOnKeyDown, {}, maybeOnBlur, {}, maybeRef));
    }
  }]);

  return DebounceInput;
}(_react["default"].PureComponent);

exports.DebounceInput = DebounceInput;

_defineProperty(DebounceInput, "defaultProps", {
  element: 'input',
  type: 'text',
  onKeyDown: undefined,
  onBlur: undefined,
  value: undefined,
  minLength: 0,
  debounceTimeout: 100,
  forceNotifyByEnter: true,
  forceNotifyOnBlur: true,
  inputRef: undefined
});

/***/ }),

/***/ "./node_modules/react-debounce-input/lib/index.js":
/*!********************************************************!*\
  !*** ./node_modules/react-debounce-input/lib/index.js ***!
  \********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(/*! ./Component */ "./node_modules/react-debounce-input/lib/Component.js"),
    DebounceInput = _require.DebounceInput;

DebounceInput.DebounceInput = DebounceInput;
module.exports = DebounceInput;

/***/ }),

/***/ "./node_modules/react-dom/cjs/react-dom.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.13.1
 * 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__(/*! react */ "./node_modules/react/index.js");
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js");
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js");

var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.
// Current owner and dispatcher used to share the same ref,
// but PR #14548 split them out to better support the react-debug-tools package.

if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  ReactSharedInternals.ReactCurrentDispatcher = {
    current: null
  };
}

if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  ReactSharedInternals.ReactCurrentBatchConfig = {
    suspense: null
  };
}

// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    printWarning('warn', format, args);
  }
}
function error(format) {
  {
    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    printWarning('error', format, args);
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n    in') === 0;

    if (!hasExistingStack) {
      var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
      var stack = ReactDebugCurrentFrame.getStackAddendum();

      if (stack !== '') {
        format += '%s';
        args = args.concat([stack]);
      }
    }

    var argsWithFormat = args.map(function (item) {
      return '' + item;
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);

    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) {}
  }
}

if (!React) {
  {
    throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
  }
}

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
  // unintuitive, 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.
      if (!(typeof document !== 'undefined')) {
        {
          throw Error( "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." );
        }
      }

      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; // Keeps track of the descriptor of window.event to restore it after event
      // dispatching: https://github.com/facebook/react/issues/13688

      var windowEventDescriptor = Object.getOwnPropertyDescriptor(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; // 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 (windowEventDescriptor) {
        Object.defineProperty(window, 'event', windowEventDescriptor);
      }

      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;

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 {
    {
      {
        throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  }
}

var getFiberCurrentPropsFromNode = null;
var getInstanceFromNode = null;
var getNodeFromInstance = null;
function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  getInstanceFromNode = getInstanceFromNodeImpl;
  getNodeFromInstance = getNodeFromInstanceImpl;

  {
    if (!getNodeFromInstance || !getInstanceFromNode) {
      error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');
    }
  }
}
var validateEventDispatches;

{
  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;

    if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) {
      error('EventPluginUtils: Invalid `event`.');
    }
  };
}
/**
 * Dispatch the event to the listener.
 * @param {SyntheticEvent} event SyntheticEvent to handle
 * @param {function} listener Application-level callback
 * @param {*} inst Internal component instance
 */


function executeDispatch(event, 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) {
  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, dispatchListeners[i], dispatchInstances[i]);
    }
  } else if (dispatchListeners) {
    executeDispatch(event, dispatchListeners, dispatchInstances);
  }

  event._dispatchListeners = null;
  event._dispatchInstances = null;
}

var FunctionComponent = 0;
var ClassComponent = 1;
var IndeterminateComponent = 2; // Before we know whether it is function or class

var HostRoot = 3; // Root of a host tree. Could be nested inside another node.

var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.

var HostComponent = 5;
var HostText = 6;
var Fragment = 7;
var Mode = 8;
var ContextConsumer = 9;
var ContextProvider = 10;
var ForwardRef = 11;
var Profiler = 12;
var SuspenseComponent = 13;
var MemoComponent = 14;
var SimpleMemoComponent = 15;
var LazyComponent = 16;
var IncompleteClassComponent = 17;
var DehydratedFragment = 18;
var SuspenseListComponent = 19;
var FundamentalComponent = 20;
var ScopeComponent = 21;
var Block = 22;

/**
 * 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);

    if (!(pluginIndex > -1)) {
      {
        throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." );
      }
    }

    if (plugins[pluginIndex]) {
      continue;
    }

    if (!pluginModule.extractEvents) {
      {
        throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." );
      }
    }

    plugins[pluginIndex] = pluginModule;
    var publishedEvents = pluginModule.eventTypes;

    for (var eventName in publishedEvents) {
      if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
        {
          throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." );
        }
      }
    }
  }
}
/**
 * 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) {
  if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
    {
      throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." );
    }
  }

  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) {
  if (!!registrationNameModules[registrationName]) {
    {
      throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." );
    }
  }

  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.
 */

/**
 * 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
 */

function injectEventPluginOrder(injectedEventPluginOrder) {
  if (!!eventPluginOrder) {
    {
      throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." );
    }
  } // Clone the ordering so it cannot be dynamically mutated.


  eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  recomputePluginOrdering();
}
/**
 * Injects plugins to be used by plugin event system. 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
 */

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) {
      if (!!namesToPlugins[pluginName]) {
        {
          throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." );
        }
      }

      namesToPlugins[pluginName] = pluginModule;
      isOrderingDirty = true;
    }
  }

  if (isOrderingDirty) {
    recomputePluginOrdering();
  }
}

var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');

var PLUGIN_EVENT_SYSTEM = 1;
var IS_REPLAYED = 1 << 5;
var IS_FIRST_ANCESTOR = 1 << 6;

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;
  }

  if (!(typeof restoreImpl === 'function')) {
    {
      throw Error( "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." );
    }
  }

  var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.

  if (stateNode) {
    var _props = getFiberCurrentPropsFromNode(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]);
    }
  }
}

var enableProfilerTimer = true; // Trace which interactions trigger each commit.

var enableDeprecatedFlareAPI = false; // Experimental Host Component support.

var enableFundamentalAPI = false; // Experimental Scope support.
var warnAboutStringRefs = false;

// 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 discreteUpdatesImpl = function (fn, a, b, c, d) {
  return fn(a, b, c, d);
};

var flushDiscreteUpdatesImpl = function () {};

var batchedEventUpdatesImpl = batchedUpdatesImpl;
var isInsideEventHandler = false;
var isBatchingEventUpdates = false;

function finishEventHandler() {
  // 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.
  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.
    flushDiscreteUpdatesImpl();
    restoreStateIfNeeded();
  }
}

function batchedUpdates(fn, bookkeeping) {
  if (isInsideEventHandler) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(bookkeeping);
  }

  isInsideEventHandler = true;

  try {
    return batchedUpdatesImpl(fn, bookkeeping);
  } finally {
    isInsideEventHandler = false;
    finishEventHandler();
  }
}
function batchedEventUpdates(fn, a, b) {
  if (isBatchingEventUpdates) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(a, b);
  }

  isBatchingEventUpdates = true;

  try {
    return batchedEventUpdatesImpl(fn, a, b);
  } finally {
    isBatchingEventUpdates = false;
    finishEventHandler();
  }
} // This is for the React Flare event system
function discreteUpdates(fn, a, b, c, d) {
  var prevIsInsideEventHandler = isInsideEventHandler;
  isInsideEventHandler = true;

  try {
    return discreteUpdatesImpl(fn, a, b, c, d);
  } finally {
    isInsideEventHandler = prevIsInsideEventHandler;

    if (!isInsideEventHandler) {
      finishEventHandler();
    }
  }
}
function flushDiscreteUpdatesIfNeeded(timeStamp) {
  // event.timeStamp isn't overly reliable due to inconsistencies in
  // how different browsers have historically provided the time stamp.
  // Some browsers provide high-resolution time stamps for all events,
  // some provide low-resolution time stamps for all events. FF < 52
  // even mixes both time stamps together. Some browsers even report
  // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  // Given we are only comparing two time stamps with equality (!==),
  // we are safe from the resolution differences. If the time stamp is 0
  // we bail-out of preventing the flush, which can affect semantics,
  // such as if an earlier flush removes or adds event listeners that
  // are fired in the subsequent flush. However, this is the same
  // behaviour as we had before this change, so the risks are low.
  if (!isInsideEventHandler && (!enableDeprecatedFlareAPI  )) {
    flushDiscreteUpdatesImpl();
  }
}
function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  batchedUpdatesImpl = _batchedUpdatesImpl;
  discreteUpdatesImpl = _discreteUpdatesImpl;
  flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
}

var DiscreteEvent = 0;
var UserBlockingEvent = 1;
var ContinuousEvent = 2;

// 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;

  {
    error('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, sanitizeURL) {
  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;
  this.sanitizeURL = sanitizeURL;
} // 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.

var reservedProps = ['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'];

reservedProps.forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false);
}); // 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
  false);
}); // 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
  false);
}); // 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
  false);
}); // 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', 'disablePictureInPicture', '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
  false);
}); // 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' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false);
}); // These are HTML attributes that are "overloaded booleans": they behave like
// booleans, but can also accept a string value.

['capture', 'download' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false);
}); // These are HTML attributes that must be positive numbers.

['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false);
}); // 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
  false);
});
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
// scraping 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' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, null, // attributeNamespace
  false);
}); // String SVG attributes with the xlink namespace.

['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/1999/xlink', false);
}); // String SVG attributes with the xml namespace.

['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].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', false);
}); // These attribute exists both in HTML and SVG.
// The attribute name is case-sensitive in SVG so we can't just use
// the React name like we do for attributes that exist only in HTML.

['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  false);
}); // These attributes accept URLs. These must not allow javascript: URLS.
// These will also need to accept Trusted Types object in the future.

var xlinkHref = 'xlinkHref';
properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
'xlink:href', 'http://www.w3.org/1999/xlink', true);
['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  true);
});

var ReactDebugCurrentFrame = null;

{
  ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
} // A javascript: URL can contain leading C0 control or \u0020 SPACE,
// and any newline or tab are filtered out as if they're not part of the URL.
// https://url.spec.whatwg.org/#url-parsing
// Tab or newline are defined as \r\n\t:
// https://infra.spec.whatwg.org/#ascii-tab-or-newline
// A C0 control is a code point in the range \u0000 NULL to \u001F
// INFORMATION SEPARATOR ONE, inclusive:
// https://infra.spec.whatwg.org/#c0-control-or-space

/* eslint-disable max-len */


var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
var didWarn = false;

function sanitizeURL(url) {
  {
    if (!didWarn && isJavaScriptProtocol.test(url)) {
      didWarn = true;

      error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
    }
  }
}

/**
 * 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 {
      if ( propertyInfo.sanitizeURL) {
        // If we haven't fully disabled javascript: URLs, and if
        // the hydration is successful of a javascript: URL, we
        // still want to warn on the client.
        sanitizeURL('' + expected);
      }

      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;

    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
      // If attribute type is boolean, we know for sure it won't be an execution sink
      // and we won't require Trusted Type here.
      attributeValue = '';
    } else {
      // `setAttribute` with objects becomes only `[object]` in IE8/9,
      // ('' + value) makes it output the correct toString()-value.
      {
        attributeValue = '' + value;
      }

      if (propertyInfo.sanitizeURL) {
        sanitizeURL(attributeValue.toString());
      }
    }

    if (attributeNamespace) {
      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
    } else {
      node.setAttribute(attributeName, attributeValue);
    }
  }
}

var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
function describeComponentFrame (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; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
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 Uninitialized = -1;
var Pending = 0;
var Resolved = 1;
var Rejected = 2;
function refineResolvedLazyComponent(lazyComponent) {
  return lazyComponent._status === Resolved ? lazyComponent._result : null;
}
function initializeLazyComponentType(lazyComponent) {
  if (lazyComponent._status === Uninitialized) {
    lazyComponent._status = Pending;
    var ctor = lazyComponent._ctor;
    var thenable = ctor();
    lazyComponent._result = thenable;
    thenable.then(function (moduleObject) {
      if (lazyComponent._status === Pending) {
        var defaultExport = moduleObject.default;

        {
          if (defaultExport === undefined) {
            error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
          }
        }

        lazyComponent._status = Resolved;
        lazyComponent._result = defaultExport;
      }
    }, function (error) {
      if (lazyComponent._status === Pending) {
        lazyComponent._status = Rejected;
        lazyComponent._result = error;
      }
    });
  }
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('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_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_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';
  }

  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:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        return getComponentName(type.type);

      case REACT_BLOCK_TYPE:
        return getComponentName(type.render);

      case REACT_LAZY_TYPE:
        {
          var thenable = type;
          var resolvedThenable = refineResolvedLazyComponent(thenable);

          if (resolvedThenable) {
            return getComponentName(resolvedThenable);
          }

          break;
        }
    }
  }

  return null;
}

var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function describeFiber(fiber) {
  switch (fiber.tag) {
    case HostRoot:
    case HostPortal:
    case HostText:
    case Fragment:
    case ContextProvider:
    case ContextConsumer:
      return '';

    default:
      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);
  }
}

function getStackByFiberInDevAndProd(workInProgress) {
  var info = '';
  var node = workInProgress;

  do {
    info += describeFiber(node);
    node = node.return;
  } while (node);

  return info;
}
var current = null;
var isRendering = false;
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);
  }
}
function resetCurrentFiber() {
  {
    ReactDebugCurrentFrame$1.getCurrentStack = null;
    current = null;
    isRendering = false;
  }
}
function setCurrentFiber(fiber) {
  {
    ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev;
    current = fiber;
    isRendering = false;
  }
}
function setIsRendering(rendering) {
  {
    isRendering = rendering;
  }
}

// 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$2 = null;
var ReactControlledValuePropTypes = {
  checkPropTypes: null
};

{
  ReactDebugCurrentFrame$2 = 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 || enableDeprecatedFlareAPI ) {
        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 || enableDeprecatedFlareAPI ) {
        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$2.getStackAddendum);
  };
}

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 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) {
      error('%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) {
      error('%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) {
      error('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) {
      error('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;
  }

  {
    // 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));
    }
  }

  {
    // 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) {
      {
        // When syncing the value attribute, the value property should use
        // 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;
        }
      }
    }

    {
      // 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 = '';
  }

  {
    // When syncing the checked attribute, both 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);

      if (!otherProps) {
        {
          throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
        }
      } // 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 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;

          error('Only strings and numbers are supported as <option> children.');
        }
      });
    } // TODO: Remove support for `selected` in <option>.


    if (props.selected != null && !didWarnSelectedSetOnOption) {
      error('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;
}

var didWarnValueDefaultValue$1;

{
  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) {
        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
      } else if (!props.multiple && isArray) {
        error('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) {
      error('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$1(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;

  if (!(props.dangerouslySetInnerHTML == null)) {
    {
      throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
    }
  } // 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) {
      error('%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 children = props.children,
        defaultValue = props.defaultValue;

    if (children != null) {
      {
        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
      }

      {
        if (!(defaultValue == null)) {
          {
            throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
          }
        }

        if (Array.isArray(children)) {
          if (!(children.length <= 1)) {
            {
              throw Error( "<textarea> can only have at most one child." );
            }
          }

          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) {
    if (textContent !== '' && textContent !== null) {
      node.value = textContent;
    }
  }
}
function restoreControlledState$2(element, props) {
  // DOM component is still mounted; update
  updateWrapper$1(element, props);
}

var HTML_NAMESPACE = '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,
  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;
  }
}
function getChildNamespace(parentNamespace, type) {
  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
    // No (or default) parent namespace: potential entry point.
    return getIntrinsicNamespace(type);
  }

  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
    // We're leaving SVG.
    return HTML_NAMESPACE;
  } // 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;
  }
};

var reusableSVGContainer;
/**
 * Set the innerHTML property of a node
 *
 * @param {DOMElement} node
 * @param {string} html
 * @internal
 */

var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  if (node.namespaceURI === Namespaces.svg) {

    if (!('innerHTML' in node)) {
      // 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
      reusableSVGContainer = reusableSVGContainer || document.createElement('div');
      reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
      var svgNode = reusableSVGContainer.firstChild;

      while (node.firstChild) {
        node.removeChild(node.firstChild);
      }

      while (svgNode.firstChild) {
        node.appendChild(svgNode.firstChild);
      }

      return;
    }
  }

  node.innerHTML = html;
});

/**
 * 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;

/**
 * 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;
};

// Do not use 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);
}

var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore

var elementListenerMap = new PossiblyWeakMap();
function getListenerMapForElement(element) {
  var listenerMap = elementListenerMap.get(element);

  if (listenerMap === undefined) {
    listenerMap = new Map();
    elementListenerMap.set(element, listenerMap);
  }

  return listenerMap;
}

/**
 * `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.
 */
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;
var Passive =
/*               */
512;
var Hydrating =
/*             */
1024;
var HydratingAndUpdate =
/*    */
1028; // Passive & Update & Callback & Ref & Snapshot

var LifecycleEffectMask =
/*   */
932; // Union of all host effects

var HostEffectMask =
/*        */
2047;
var Incomplete =
/*            */
2048;
var ShouldCapture =
/*         */
4096;

var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {
  var node = fiber;
  var nearestMounted = 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.
    var nextNode = node;

    do {
      node = nextNode;

      if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) {
        // This is an insertion or in-progress hydration. The nearest possible
        // mounted fiber is the parent but we need to continue to figure out
        // if that one is still mounted.
        nearestMounted = node.return;
      }

      nextNode = node.return;
    } while (nextNode);
  } else {
    while (node.return) {
      node = node.return;
    }
  }

  if (node.tag === HostRoot) {
    // TODO: Check if this was a nested HostRoot when used with
    // renderContainerIntoSubtree.
    return nearestMounted;
  } // If we didn't hit the root, that means that we're in an disconnected tree
  // that has been unmounted.


  return null;
}
function getSuspenseInstanceFromFiber(fiber) {
  if (fiber.tag === SuspenseComponent) {
    var suspenseState = fiber.memoizedState;

    if (suspenseState === null) {
      var current = fiber.alternate;

      if (current !== null) {
        suspenseState = current.memoizedState;
      }
    }

    if (suspenseState !== null) {
      return suspenseState.dehydrated;
    }
  }

  return null;
}
function getContainerFromFiber(fiber) {
  return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
}
function isFiberMounted(fiber) {
  return getNearestMountedFiber(fiber) === fiber;
}
function isMounted(component) {
  {
    var owner = ReactCurrentOwner.current;

    if (owner !== null && owner.tag === ClassComponent) {
      var ownerFiber = owner;
      var instance = ownerFiber.stateNode;

      if (!instance._warnedAboutRefsInRender) {
        error('%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');
      }

      instance._warnedAboutRefsInRender = true;
    }
  }

  var fiber = get(component);

  if (!fiber) {
    return false;
  }

  return getNearestMountedFiber(fiber) === fiber;
}

function assertIsMounted(fiber) {
  if (!(getNearestMountedFiber(fiber) === fiber)) {
    {
      throw Error( "Unable to find node on an unmounted component." );
    }
  }
}

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 nearestMounted = getNearestMountedFiber(fiber);

    if (!(nearestMounted !== null)) {
      {
        throw Error( "Unable to find node on an unmounted component." );
      }
    }

    if (nearestMounted !== fiber) {
      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;

    if (parentA === null) {
      // We're at the root.
      break;
    }

    var parentB = parentA.alternate;

    if (parentB === null) {
      // There is no alternate. This is an unusual case. Currently, it only
      // happens when a Suspense component is hidden. An extra fragment fiber
      // is inserted in between the Suspense fiber and its children. Skip
      // over this extra fragment fiber and proceed to the next parent.
      var nextParent = parentA.return;

      if (nextParent !== null) {
        a = b = nextParent;
        continue;
      } // If there's no parent, 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.


      {
        {
          throw Error( "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;
        }

        if (!didFindChild) {
          {
            throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
          }
        }
      }
    }

    if (!(a.alternate === b)) {
      {
        throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  } // If the root is not a host container, we're in a disconnected tree. I.e.
  // unmounted.


  if (!(a.tag === HostRoot)) {
    {
      throw Error( "Unable to find node on an unmounted component." );
    }
  }

  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 || enableFundamentalAPI ) {
      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;
}

/**
 * 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) {
  if (!(next != null)) {
    {
      throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." );
    }
  }

  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.
 * @private
 */

var executeDispatchesAndRelease = function (event) {
  if (event) {
    executeDispatchesInOrder(event);

    if (!event.isPersistent()) {
      event.constructor.release(event);
    }
  }
};

var executeDispatchesAndReleaseTopLevel = function (e) {
  return executeDispatchesAndRelease(e);
};

function runEventsInBatch(events) {
  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;
  }

  forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);

  if (!!eventQueue) {
    {
      throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." );
    }
  } // This would be a good time to rethrow if any of the event handlers threw.


  rethrowCaughtError();
}

/**
 * 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;
}

/**
 * Summary of `DOMEventPluginSystem` 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 `EventPluginRegistry`, which in turn will ask plugins if they want
 *    to extract any synthetic events.
 *
 *  - The `EventPluginRegistry` will then process each event by annotating them with
 *    "dispatches", a sequence of listeners and IDs that care about that event.
 *
 *  - The `EventPluginRegistry` then dispatches the events.
 *
 * Overview of React and the event system:
 *
 * +------------+    .
 * |    DOM     |    .
 * +------------+    .
 *       |           .
 *       v           .
 * +------------+    .
 * | ReactEvent |    .
 * |  Listener  |    .
 * +------------+    .                         +-----------+
 *       |           .               +--------+|SimpleEvent|
 *       |           .               |         |Plugin     |
 * +-----|------+    .               v         +-----------+
 * |     |      |    .    +--------------+                    +------------+
 * |     +-----------.--->|PluginRegistry|                    |    Event   |
 * |            |    .    |              |     +-----------+  | Propagators|
 * | ReactEvent |    .    |              |     |TapEvent   |  |------------|
 * |  Emitter   |    .    |              |<---+|Plugin     |  |other plugin|
 * |            |    .    |              |     +-----------+  |  utilities |
 * |     +-----------.--->|              |                    +------------+
 * |     |      |    .    +--------------+
 * +-----|------+    .                ^        +-----------+
 *       |           .                |        |Enter/Leave|
 *       +           .                +-------+|Plugin     |
 * +-------------+   .                         +-----------+
 * | application |   .
 * |-------------|   .
 * |             |   .
 * |             |   .
 * +-------------+   .
 *                   .
 *    React Core     .  General Purpose Event Plugin System
 */

var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
var callbackBookkeepingPool = [];

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);
  }
} // Used to store ancestor hierarchy in top level callback


function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) {
  if (callbackBookkeepingPool.length) {
    var instance = callbackBookkeepingPool.pop();
    instance.topLevelType = topLevelType;
    instance.eventSystemFlags = eventSystemFlags;
    instance.nativeEvent = nativeEvent;
    instance.targetInst = targetInst;
    return instance;
  }

  return {
    topLevelType: topLevelType,
    eventSystemFlags: eventSystemFlags,
    nativeEvent: nativeEvent,
    targetInst: targetInst,
    ancestors: []
  };
}
/**
 * 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) {
  if (inst.tag === HostRoot) {
    return inst.stateNode.containerInfo;
  } // 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;
}
/**
 * Allows registered plugins an opportunity to extract events from top-level
 * native browser events.
 *
 * @return {*} An accumulation of synthetic events.
 * @internal
 */


function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  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, eventSystemFlags);

      if (extractedEvents) {
        events = accumulateInto(events, extractedEvents);
      }
    }
  }

  return events;
}

function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
  var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  runEventsInBatch(events);
}

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) {
      var ancestors = bookKeeping.ancestors;
      ancestors.push(ancestor);
      break;
    }

    var root = findRootContainerNode(ancestor);

    if (!root) {
      break;
    }

    var tag = ancestor.tag;

    if (tag === HostComponent || tag === HostText) {
      bookKeeping.ancestors.push(ancestor);
    }

    ancestor = getClosestInstanceFromNode(root);
  } while (ancestor);

  for (var i = 0; i < bookKeeping.ancestors.length; i++) {
    targetInst = bookKeeping.ancestors[i];
    var eventTarget = getEventTarget(bookKeeping.nativeEvent);
    var topLevelType = bookKeeping.topLevelType;
    var nativeEvent = bookKeeping.nativeEvent;
    var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags

    if (i === 0) {
      eventSystemFlags |= IS_FIRST_ANCESTOR;
    }

    runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);
  }
}

function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);

  try {
    // Event queue being processed in the same cycle allows
    // `preventDefault`.
    batchedEventUpdates(handleTopLevel, bookKeeping);
  } finally {
    releaseTopLevelCallbackBookKeeping(bookKeeping);
  }
}
/**
 * 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 legacyListenToEvent(registrationName, mountAt) {
  var listenerMap = getListenerMapForElement(mountAt);
  var dependencies = registrationNameDependencies[registrationName];

  for (var i = 0; i < dependencies.length; i++) {
    var dependency = dependencies[i];
    legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);
  }
}
function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) {
  if (!listenerMap.has(topLevelType)) {
    switch (topLevelType) {
      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.

        listenerMap.set(TOP_BLUR, null);
        listenerMap.set(TOP_FOCUS, null);
        break;

      case TOP_CANCEL:
      case TOP_CLOSE:
        if (isEventSupported(getRawEventName(topLevelType))) {
          trapCapturedEvent(topLevelType, 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(topLevelType) !== -1;

        if (!isMediaEvent) {
          trapBubbledEvent(topLevelType, mountAt);
        }

        break;
    }

    listenerMap.set(topLevelType, null);
  }
}
function isListeningToAllDependencies(registrationName, mountAt) {
  var listenerMap = getListenerMapForElement(mountAt);
  var dependencies = registrationNameDependencies[registrationName];

  for (var i = 0; i < dependencies.length; i++) {
    var dependency = dependencies[i];

    if (!listenerMap.has(dependency)) {
      return false;
    }
  }

  return true;
}

var attemptUserBlockingHydration;
function setAttemptUserBlockingHydration(fn) {
  attemptUserBlockingHydration = fn;
}
var attemptContinuousHydration;
function setAttemptContinuousHydration(fn) {
  attemptContinuousHydration = fn;
}
var attemptHydrationAtCurrentPriority;
function setAttemptHydrationAtCurrentPriority(fn) {
  attemptHydrationAtCurrentPriority = fn;
} // TODO: Upgrade this definition once we're on a newer version of Flow that
var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.

var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
// if the last target was dehydrated.

var queuedFocus = null;
var queuedDrag = null;
var queuedMouse = null; // For pointer events there can be one latest event per pointerId.

var queuedPointers = new Map();
var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.

var queuedExplicitHydrationTargets = [];
function hasQueuedDiscreteEvents() {
  return queuedDiscreteEvents.length > 0;
}
var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];
var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];
function isReplayableDiscreteEvent(eventType) {
  return discreteReplayableEvents.indexOf(eventType) > -1;
}

function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
  legacyListenToTopLevelEvent(topLevelType, document, listenerMap);
}

function eagerlyTrapReplayableEvents(container, document) {
  var listenerMapForDoc = getListenerMapForElement(document); // Discrete

  discreteReplayableEvents.forEach(function (topLevelType) {
    trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  }); // Continuous

  continuousReplayableEvents.forEach(function (topLevelType) {
    trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
  });
}

function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  return {
    blockedOn: blockedOn,
    topLevelType: topLevelType,
    eventSystemFlags: eventSystemFlags | IS_REPLAYED,
    nativeEvent: nativeEvent,
    container: container
  };
}

function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
  queuedDiscreteEvents.push(queuedEvent);
} // Resets the replaying for this type of continuous event to no event.

function clearIfContinuousEvent(topLevelType, nativeEvent) {
  switch (topLevelType) {
    case TOP_FOCUS:
    case TOP_BLUR:
      queuedFocus = null;
      break;

    case TOP_DRAG_ENTER:
    case TOP_DRAG_LEAVE:
      queuedDrag = null;
      break;

    case TOP_MOUSE_OVER:
    case TOP_MOUSE_OUT:
      queuedMouse = null;
      break;

    case TOP_POINTER_OVER:
    case TOP_POINTER_OUT:
      {
        var pointerId = nativeEvent.pointerId;
        queuedPointers.delete(pointerId);
        break;
      }

    case TOP_GOT_POINTER_CAPTURE:
    case TOP_LOST_POINTER_CAPTURE:
      {
        var _pointerId = nativeEvent.pointerId;
        queuedPointerCaptures.delete(_pointerId);
        break;
      }
  }
}

function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
    var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);

    if (blockedOn !== null) {
      var _fiber2 = getInstanceFromNode$1(blockedOn);

      if (_fiber2 !== null) {
        // Attempt to increase the priority of this target.
        attemptContinuousHydration(_fiber2);
      }
    }

    return queuedEvent;
  } // If we have already queued this exact event, then it's because
  // the different event systems have different DOM event listeners.
  // We can accumulate the flags and store a single event to be
  // replayed.


  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  return existingQueuedEvent;
}

function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
  // These set relatedTarget to null because the replayed event will be treated as if we
  // moved from outside the window (no target) onto the target once it hydrates.
  // Instead of mutating we could clone the event.
  switch (topLevelType) {
    case TOP_FOCUS:
      {
        var focusEvent = nativeEvent;
        queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);
        return true;
      }

    case TOP_DRAG_ENTER:
      {
        var dragEvent = nativeEvent;
        queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);
        return true;
      }

    case TOP_MOUSE_OVER:
      {
        var mouseEvent = nativeEvent;
        queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);
        return true;
      }

    case TOP_POINTER_OVER:
      {
        var pointerEvent = nativeEvent;
        var pointerId = pointerEvent.pointerId;
        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));
        return true;
      }

    case TOP_GOT_POINTER_CAPTURE:
      {
        var _pointerEvent = nativeEvent;
        var _pointerId2 = _pointerEvent.pointerId;
        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));
        return true;
      }
  }

  return false;
} // Check if this target is unblocked. Returns true if it's unblocked.

function attemptExplicitHydrationTarget(queuedTarget) {
  // TODO: This function shares a lot of logic with attemptToDispatchEvent.
  // Try to unify them. It's a bit tricky since it would require two return
  // values.
  var targetInst = getClosestInstanceFromNode(queuedTarget.target);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted !== null) {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // We're blocked on hydrating this boundary.
          // Increase its priority.
          queuedTarget.blockedOn = instance;
          Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
            attemptHydrationAtCurrentPriority(nearestMounted);
          });
          return;
        }
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (root.hydrate) {
          queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
          // a root other than sync.

          return;
        }
      }
    }
  }

  queuedTarget.blockedOn = null;
}

function attemptReplayContinuousQueuedEvent(queuedEvent) {
  if (queuedEvent.blockedOn !== null) {
    return false;
  }

  var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);

  if (nextBlockedOn !== null) {
    // We're still blocked. Try again later.
    var _fiber3 = getInstanceFromNode$1(nextBlockedOn);

    if (_fiber3 !== null) {
      attemptContinuousHydration(_fiber3);
    }

    queuedEvent.blockedOn = nextBlockedOn;
    return false;
  }

  return true;
}

function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
    map.delete(key);
  }
}

function replayUnblockedEvents() {
  hasScheduledReplayAttempt = false; // First replay discrete events.

  while (queuedDiscreteEvents.length > 0) {
    var nextDiscreteEvent = queuedDiscreteEvents[0];

    if (nextDiscreteEvent.blockedOn !== null) {
      // We're still blocked.
      // Increase the priority of this boundary to unblock
      // the next discrete event.
      var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn);

      if (_fiber4 !== null) {
        attemptUserBlockingHydration(_fiber4);
      }

      break;
    }

    var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);

    if (nextBlockedOn !== null) {
      // We're still blocked. Try again later.
      nextDiscreteEvent.blockedOn = nextBlockedOn;
    } else {
      // We've successfully replayed the first event. Let's try the next one.
      queuedDiscreteEvents.shift();
    }
  } // Next replay any continuous events.


  if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
    queuedFocus = null;
  }

  if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
    queuedDrag = null;
  }

  if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
    queuedMouse = null;
  }

  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
}

function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  if (queuedEvent.blockedOn === unblocked) {
    queuedEvent.blockedOn = null;

    if (!hasScheduledReplayAttempt) {
      hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
      // now unblocked. This first might not actually be unblocked yet.
      // We could check it early to avoid scheduling an unnecessary callback.

      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
    }
  }
}

function retryIfBlockedOn(unblocked) {
  // Mark anything that was blocked on this as no longer blocked
  // and eligible for a replay.
  if (queuedDiscreteEvents.length > 0) {
    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
    // worth it because we expect very few discrete events to queue up and once
    // we are actually fully unblocked it will be fast to replay them.

    for (var i = 1; i < queuedDiscreteEvents.length; i++) {
      var queuedEvent = queuedDiscreteEvents[i];

      if (queuedEvent.blockedOn === unblocked) {
        queuedEvent.blockedOn = null;
      }
    }
  }

  if (queuedFocus !== null) {
    scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  }

  if (queuedDrag !== null) {
    scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  }

  if (queuedMouse !== null) {
    scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  }

  var unblock = function (queuedEvent) {
    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  };

  queuedPointers.forEach(unblock);
  queuedPointerCaptures.forEach(unblock);

  for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
    var queuedTarget = queuedExplicitHydrationTargets[_i];

    if (queuedTarget.blockedOn === unblocked) {
      queuedTarget.blockedOn = null;
    }
  }

  while (queuedExplicitHydrationTargets.length > 0) {
    var nextExplicitTarget = queuedExplicitHydrationTargets[0];

    if (nextExplicitTarget.blockedOn !== null) {
      // We're still blocked.
      break;
    } else {
      attemptExplicitHydrationTarget(nextExplicitTarget);

      if (nextExplicitTarget.blockedOn === null) {
        // We're unblocked.
        queuedExplicitHydrationTargets.shift();
      }
    }
  }
}

function addEventBubbleListener(element, eventType, listener) {
  element.addEventListener(eventType, listener, false);
}
function addEventCaptureListener(element, eventType, listener) {
  element.addEventListener(eventType, listener, true);
}

// do it in two places, which duplicates logic
// and increases the bundle size, we do it all
// here once. If we remove or refactor the
// SimpleEventPlugin, we should also remove or
// update the below line.

var simpleEventPluginEventTypes = {};
var topLevelEventsToDispatchConfig = new Map();
var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
// the code required to apply the same logic for event prioritization and that of the
// SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
// duplication (for which there would be quite a bit). For the events that are not needed
// for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
// array of top level events.
// Lastly, we ignore prettier so we can keep the formatting sane.
// prettier-ignore

var discreteEventPairsForSimpleEventPlugin = [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 otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore

var userBlockingPairsForSimpleEventPlugin = [TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore

var continuousPairsForSimpleEventPlugin = [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_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_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting'];
/**
 * Turns
 * ['abort', ...]
 * into
 * eventTypes = {
 *   'abort': {
 *     phasedRegistrationNames: {
 *       bubbled: 'onAbort',
 *       captured: 'onAbortCapture',
 *     },
 *     dependencies: [TOP_ABORT],
 *   },
 *   ...
 * };
 * topLevelEventsToDispatchConfig = new Map([
 *   [TOP_ABORT, { sameConfig }],
 * ]);
 */

function processSimpleEventPluginPairsByPriority(eventTypes, priority) {
  // As the event types are in pairs of two, we need to iterate
  // through in twos. The events are in pairs of two to save code
  // and improve init perf of processing this array, as it will
  // result in far fewer object allocations and property accesses
  // if we only use three arrays to process all the categories of
  // instead of tuples.
  for (var i = 0; i < eventTypes.length; i += 2) {
    var topEvent = eventTypes[i];
    var event = eventTypes[i + 1];
    var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
    var onEvent = 'on' + capitalizedEvent;
    var config = {
      phasedRegistrationNames: {
        bubbled: onEvent,
        captured: onEvent + 'Capture'
      },
      dependencies: [topEvent],
      eventPriority: priority
    };
    eventPriorities.set(topEvent, priority);
    topLevelEventsToDispatchConfig.set(topEvent, config);
    simpleEventPluginEventTypes[event] = config;
  }
}

function processTopEventPairsByPriority(eventTypes, priority) {
  for (var i = 0; i < eventTypes.length; i++) {
    eventPriorities.set(eventTypes[i], priority);
  }
} // SimpleEventPlugin


processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin

processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);
function getEventPriorityForPluginSystem(topLevelType) {
  var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might
  // want to warn if we can't detect the priority
  // for the event.

  return priority === undefined ? ContinuousEvent : priority;
}

// Intentionally not named imports because Rollup would use dynamic dispatch for
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
    runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?

var _enabled = true;
function setEnabled(enabled) {
  _enabled = !!enabled;
}
function isEnabled() {
  return _enabled;
}
function trapBubbledEvent(topLevelType, element) {
  trapEventForPluginEventSystem(element, topLevelType, false);
}
function trapCapturedEvent(topLevelType, element) {
  trapEventForPluginEventSystem(element, topLevelType, true);
}

function trapEventForPluginEventSystem(container, topLevelType, capture) {
  var listener;

  switch (getEventPriorityForPluginSystem(topLevelType)) {
    case DiscreteEvent:
      listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
      break;

    case UserBlockingEvent:
      listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
      break;

    case ContinuousEvent:
    default:
      listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
      break;
  }

  var rawEventName = getRawEventName(topLevelType);

  if (capture) {
    addEventCaptureListener(container, rawEventName, listener);
  } else {
    addEventBubbleListener(container, rawEventName, listener);
  }
}

function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);
}

function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) {
  runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));
}

function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  if (!_enabled) {
    return;
  }

  if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) {
    // If we already have a queue of discrete events, and this is another discrete
    // event, then we can't dispatch it regardless of its target, since they
    // need to dispatch in order.
    queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
    topLevelType, eventSystemFlags, container, nativeEvent);
    return;
  }

  var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);

  if (blockedOn === null) {
    // We successfully dispatched this event.
    clearIfContinuousEvent(topLevelType, nativeEvent);
    return;
  }

  if (isReplayableDiscreteEvent(topLevelType)) {
    // This this to be replayed later once the target is available.
    queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
    return;
  }

  if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) {
    return;
  } // We need to clear only if we didn't queue because
  // queueing is accummulative.


  clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,
  // in case the event system needs to trace it.

  {
    dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);
  }
} // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.

function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
  // TODO: Warn if _enabled is false.
  var nativeEventTarget = getEventTarget(nativeEvent);
  var targetInst = getClosestInstanceFromNode(nativeEventTarget);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted === null) {
      // This tree has been unmounted already. Dispatch without a target.
      targetInst = null;
    } else {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // Queue the event to be replayed later. Abort dispatching since we
          // don't want this event dispatched twice through the event system.
          // TODO: If this is the first discrete event in the queue. Schedule an increased
          // priority for this boundary.
          return instance;
        } // This shouldn't happen, something went wrong but to avoid blocking
        // the whole system, dispatch the event without a target.
        // TODO: Warn.


        targetInst = null;
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (root.hydrate) {
          // If this happens during a replay something went wrong and it might block
          // the whole system.
          return getContainerFromFiber(nearestMounted);
        }

        targetInst = null;
      } else if (nearestMounted !== 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;
      }
    }
  }

  {
    dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  } // We're not blocked on anything.


  return null;
}

// List derived from Gecko source code:
// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
var shorthandToLonghand = {
  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  columns: ['columnCount', 'columnWidth'],
  flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  flexFlow: ['flexDirection', 'flexWrap'],
  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  gap: ['columnGap', 'rowGap'],
  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  gridColumnGap: ['columnGap'],
  gridGap: ['columnGap', 'rowGap'],
  gridRow: ['gridRowEnd', 'gridRowStart'],
  gridRowGap: ['rowGap'],
  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  marker: ['markerEnd', 'markerMid', 'markerStart'],
  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  maskPosition: ['maskPositionX', 'maskPositionY'],
  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  overflow: ['overflowX', 'overflowY'],
  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  placeContent: ['alignContent', 'justifyContent'],
  placeItems: ['alignItems', 'justifyItems'],
  placeSelf: ['alignSelf', 'justifySelf'],
  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  wordWrap: ['overflowWrap']
};

/**
 * 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;

    error('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;

    error('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;

    error("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;

    error('`NaN` is an invalid value for the `%s` css style property.', name);
  };

  var warnStyleValueIsInfinity = function (name, value) {
    if (warnedForInfinityValue) {
      return;
    }

    warnedForInfinityValue = true;

    error('`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 + (isCustomProperty ? styleName : 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;
    }
  }
}

function isValueEmpty(value) {
  return value == null || typeof value === 'boolean' || value === '';
}
/**
 * Given {color: 'red', overflow: 'hidden'} returns {
 *   color: 'color',
 *   overflowX: 'overflow',
 *   overflowY: 'overflow',
 * }. This can be read as "the overflowY property was set by the overflow
 * shorthand". That is, the values are the property that each was derived from.
 */


function expandShorthandMap(styles) {
  var expanded = {};

  for (var key in styles) {
    var longhands = shorthandToLonghand[key] || [key];

    for (var i = 0; i < longhands.length; i++) {
      expanded[longhands[i]] = key;
    }
  }

  return expanded;
}
/**
 * When mixing shorthand and longhand property names, we warn during updates if
 * we expect an incorrect result to occur. In particular, we warn for:
 *
 * Updating a shorthand property (longhand gets overwritten):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
 *   becomes .style.font = 'baz'
 * Removing a shorthand property (longhand gets lost too):
 *   {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
 *   becomes .style.font = ''
 * Removing a longhand property (should revert to shorthand; doesn't):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
 *   becomes .style.fontVariant = ''
 */


function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  {

    if (!nextStyles) {
      return;
    }

    var expandedUpdates = expandShorthandMap(styleUpdates);
    var expandedStyles = expandShorthandMap(nextStyles);
    var warnedAbout = {};

    for (var key in expandedUpdates) {
      var originalKey = expandedUpdates[key];
      var correctOriginalKey = expandedStyles[key];

      if (correctOriginalKey && originalKey !== correctOriginalKey) {
        var warningKey = originalKey + ',' + correctOriginalKey;

        if (warnedAbout[warningKey]) {
          continue;
        }

        warnedAbout[warningKey] = true;

        error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
      }
    }
  }
}

// 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.

};

// `omittedCloseTags` except that `menuitem` should still have its closing tag.

var voidElementTags = _assign({
  menuitem: true
}, omittedCloseTags);

var HTML = '__html';
var ReactDebugCurrentFrame$3 = null;

{
  ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
}

function assertValidProps(tag, props) {
  if (!props) {
    return;
  } // Note the use of `==` which checks for null or undefined.


  if (voidElementTags[tag]) {
    if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
      {
        throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
      }
    }
  }

  if (props.dangerouslySetInnerHTML != null) {
    if (!(props.children == null)) {
      {
        throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
      }
    }

    if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
      {
        throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." );
      }
    }
  }

  {
    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
      error('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.');
    }
  }

  if (!(props.style == null || typeof props.style === 'object')) {
    {
      throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
    }
  }
}

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',
  disablepictureinpicture: 'disablePictureInPicture',
  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,
  // state
  'aria-details': 0,
  'aria-disabled': 0,
  // state
  'aria-hidden': 0,
  // state
  'aria-invalid': 0,
  // state
  '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$1 = Object.prototype.hasOwnProperty;

function validateProperty(tagName, name) {
  {
    if (hasOwnProperty$1.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) {
        error('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) {
        error('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) {
        error('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) {
      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
    } else if (invalidProps.length > 1) {
      error('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) {
        error('`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 {
        error('`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') {
      error('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) {
        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);

        warnedProperties$1[name] = true;
        return true;
      }

      if (EVENT_NAME_REGEX.test(name)) {
        error('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)) {
        error('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') {
      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');

      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'aria') {
      error('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') {
      error('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)) {
      error('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) {
        error('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.
      error('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) {
        error('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 {
        error('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) {
      error('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) {
      error('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) {
      error('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);
}

var didWarnInvalidHydration = false;
var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
var AUTOFOCUS = 'autoFocus';
var CHILDREN = 'children';
var STYLE = 'style';
var HTML$1 = '__html';
var HTML_NAMESPACE$1 = Namespaces.html;
var warnedUnknownTags;
var suppressHydrationWarning;
var validatePropertiesInDevelopment;
var warnForTextDifference;
var warnForPropDifference;
var warnForExtraAttributes;
var warnForInvalidEventListener;
var canDiffStyleForHydrationWarning;
var normalizeMarkupForTextOrAttribute;
var normalizeHTML;

{
  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;

    error('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;

    error('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);
    });

    error('Extra attributes from the server: %s', names);
  };

  warnForInvalidEventListener = function (registrationName, listener) {
    if (listener === false) {
      error('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 {
      error('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$1 ? 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;
  legacyListenToEvent(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$1] : 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) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( 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; // We create tags in the namespace of their parent container, except HTML
  // tags get no namespace.

  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  var domElement;
  var namespaceURI = parentNamespace;

  if (namespaceURI === HTML_NAMESPACE$1) {
    namespaceURI = getIntrinsicNamespace(type);
  }

  if (namespaceURI === HTML_NAMESPACE$1) {
    {
      isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
      // allow <SVG> or <mATH>.

      if (!isCustomComponentTag && type !== type.toLowerCase()) {
        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
      }
    }

    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` and `size`
      // attributes 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 #13222
      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
      // See https://github.com/facebook/react/issues/13222
      // and https://github.com/facebook/react/issues/14239

      if (type === 'select') {
        var node = domElement;

        if (props.multiple) {
          node.multiple = true;
        } else if (props.size) {
          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
          // it is possible that no option is selected.
          //
          // This is only necessary when a select in "single selection mode".
          node.size = props.size;
        }
      }
    }
  } else {
    domElement = ownerDocument.createElementNS(namespaceURI, type);
  }

  {
    if (namespaceURI === HTML_NAMESPACE$1) {
      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
        warnedUnknownTags[type] = true;

        error('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);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  var props;

  switch (tag) {
    case 'iframe':
    case 'object':
    case 'embed':
      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);
      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;
  var nextProps;

  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;
  var styleName;
  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) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; 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$1] : undefined;
      var lastHtml = lastProp ? lastProp[HTML$1] : undefined;

      if (nextHtml != null) {
        if (lastHtml !== nextHtml) {
          (updatePayload = updatePayload || []).push(propKey, nextHtml);
        }
      }
    } 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) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        // We eagerly listen to this even though we haven't committed yet.
        if ( 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) {
    {
      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
    }

    (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;
  }
}

function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  var isCustomComponentTag;
  var extraAttributeNames;

  {
    suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
    isCustomComponentTag = isCustomComponent(tag, rawProps);
    validatePropertiesInDevelopment(tag, rawProps);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  switch (tag) {
    case 'iframe':
    case 'object':
    case 'embed':
      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 ( !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }

          updatePayload = [CHILDREN, nextProp];
        }
      } else if (typeof nextProp === 'number') {
        if (domElement.textContent !== '' + nextProp) {
          if ( !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }

          updatePayload = [CHILDREN, '' + nextProp];
        }
      }
    } else if (registrationNameModules.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        ensureListeningTo(rootContainerElement, propKey);
      }
    } else if ( // 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) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
      // TODO: Only ignore them on controlled tags.
      propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
        var serverHTML = domElement.innerHTML;
        var nextHtml = nextProp ? nextProp[HTML$1] : 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$1) {
            ownNamespace = getIntrinsicNamespace(tag);
          }

          if (ownNamespace === HTML_NAMESPACE$1) {
            // $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);
      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;

    error('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;

    error('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;

    error('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;

    error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  }
}
function restoreControlledState$3(domElement, tag, props) {
  switch (tag) {
    case 'input':
      restoreControlledState(domElement, props);
      return;

    case 'textarea':
      restoreControlledState$2(domElement, props);
      return;

    case 'select':
      restoreControlledState$1(domElement, props);
      return;
  }
}

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; // Edge fails with "Object expected" in some scenarios.
  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  // fails when pasting 100+ items)

  if (!win.getSelection) {
    return;
  }

  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 isSameOriginFrame(iframe) {
  try {
    // Accessing the contentDocument of a HTMLIframeElement can cause the browser
    // to throw, e.g. if it has a cross-origin src attribute.
    // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
    // iframe.contentDocument.defaultView;
    // A safety way is to access one of the cross origin properties: Window or Location
    // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
    return typeof iframe.contentWindow.location.href === 'string';
  } catch (err) {
    return false;
  }
}

function getActiveElementDeep() {
  var win = window;
  var element = getActiveElement();

  while (element instanceof win.HTMLIFrameElement) {
    if (isSameOriginFrame(element)) {
      win = element.contentWindow;
    } else {
      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 {
    // Used by Flare
    activeElementDetached: null,
    focusedElem: focusedElem,
    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(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(input) {
  var selection;

  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 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' || tag === 'frameset';

      case 'frameset':
        return tag === 'frame';

      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 'frameset':
      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$1 = {};

  validateDOMNesting = function (childTag, childText, ancestorInfo) {
    ancestorInfo = ancestorInfo || emptyAncestorInfo;
    var parentInfo = ancestorInfo.current;
    var parentTag = parentInfo && parentInfo.tag;

    if (childText != null) {
      if (childTag != null) {
        error('validateDOMNesting: when childText is passed, childTag should be null');
      }

      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$1[warnKey]) {
      return;
    }

    didWarn$1[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>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
      }

      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
    } else {
      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
    }
  };
}

var SUPPRESS_HYDRATION_WARNING$1;

{
  SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
}

var SUSPENSE_START_DATA = '$';
var SUSPENSE_END_DATA = '/$';
var SUSPENSE_PENDING_START_DATA = '$?';
var SUSPENSE_FALLBACK_START_DATA = '$!';
var STYLE$1 = 'style';
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;
  var namespace;
  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
    };
  }
}
function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  {
    var parentHostContextDev = parentHostContext;
    var namespace = getChildNamespace(parentHostContextDev.namespace, type);
    var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
    return {
      namespace: namespace,
      ancestorInfo: ancestorInfo
    };
  }
}
function getPublicInstance(instance) {
  return instance;
}
function prepareForCommit(containerInfo) {
  eventsEnabled = isEnabled();
  selectionInformation = getSelectionInformation();
  setEnabled(false);
}
function resetAfterCommit(containerInfo) {
  restoreSelection(selectionInformation);
  setEnabled(eventsEnabled);
  eventsEnabled = null;

  selectionInformation = null;
}
function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  var parentNamespace;

  {
    // 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;
}
// if a component just imports ReactDOM (e.g. for findDOMNode).
// Some environments might not have setTimeout or clearTimeout.

var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
var noTimeout = -1; // -------------------
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;

  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 non React root containers have inline onclick
  // defined.
  // https://github.com/facebook/react/issues/11918


  var reactRootContainer = container._reactRootContainer;

  if ((reactRootContainer === null || reactRootContainer === undefined) && 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);
  }
}

function hideInstance(instance) {
  // pass host context to this method?


  instance = instance;
  var style = instance.style;

  if (typeof style.setProperty === 'function') {
    style.setProperty('display', 'none', 'important');
  } else {
    style.display = 'none';
  }
}
function hideTextInstance(textInstance) {
  textInstance.nodeValue = '';
}
function unhideInstance(instance, props) {
  instance = instance;
  var styleProp = props[STYLE$1];
  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  instance.style.display = dangerousStyleValue('display', display);
}
function unhideTextInstance(textInstance, text) {
  textInstance.nodeValue = text;
} // -------------------
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 isSuspenseInstancePending(instance) {
  return instance.data === SUSPENSE_PENDING_START_DATA;
}
function isSuspenseInstanceFallback(instance) {
  return instance.data === SUSPENSE_FALLBACK_START_DATA;
}

function getNextHydratable(node) {
  // Skip non-hydratable nodes.
  for (; node != null; node = node.nextSibling) {
    var nodeType = node.nodeType;

    if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
      break;
    }
  }

  return node;
}

function getNextHydratableSibling(instance) {
  return getNextHydratable(instance.nextSibling);
}
function getFirstHydratableChild(parentInstance) {
  return getNextHydratable(parentInstance.firstChild);
}
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;

  {
    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 getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_END_DATA) {
        if (depth === 0) {
          return getNextHydratableSibling(node);
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        depth++;
      }
    }

    node = node.nextSibling;
  } // TODO: Warn, we didn't find the end comment boundary.


  return null;
} // Returns the SuspenseInstance if this node is a direct child of a
// SuspenseInstance. I.e. if its previous sibling is a Comment with
// SUSPENSE_x_START_DATA. Otherwise, null.

function getParentSuspenseInstance(targetInstance) {
  var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        if (depth === 0) {
          return node;
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_END_DATA) {
        depth++;
      }
    }

    node = node.previousSibling;
  }

  return null;
}
function commitHydratedContainer(container) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(container);
}
function commitHydratedSuspenseInstance(suspenseInstance) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(suspenseInstance);
}
function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  {
    warnForUnmatchedText(textInstance, text);
  }
}
function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForUnmatchedText(textInstance, text);
  }
}
function didNotHydrateContainerInstance(parentContainer, instance) {
  {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentContainer, instance);
    } else if (instance.nodeType === COMMENT_NODE) ; else {
      warnForDeletedHydratableText(parentContainer, instance);
    }
  }
}
function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentInstance, instance);
    } else if (instance.nodeType === COMMENT_NODE) ; else {
      warnForDeletedHydratableText(parentInstance, instance);
    }
  }
}
function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  {
    warnForInsertedHydratedElement(parentContainer, type);
  }
}
function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  {
    warnForInsertedHydratedText(parentContainer, text);
  }
}
function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForInsertedHydratedElement(parentInstance, type);
  }
}
function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForInsertedHydratedText(parentInstance, text);
  }
}
function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
}

var randomKey = Math.random().toString(36).slice(2);
var internalInstanceKey = '__reactInternalInstance$' + randomKey;
var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
var internalContainerInstanceKey = '__reactContainere$' + randomKey;
function precacheFiberNode(hostInst, node) {
  node[internalInstanceKey] = hostInst;
}
function markContainerAsRoot(hostRoot, node) {
  node[internalContainerInstanceKey] = hostRoot;
}
function unmarkContainerAsRoot(node) {
  node[internalContainerInstanceKey] = null;
}
function isContainerMarkedAsRoot(node) {
  return !!node[internalContainerInstanceKey];
} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
// If the target node is part of a hydrated or not yet rendered subtree, then
// this may also return a SuspenseComponent or HostRoot to indicate that.
// Conceptually the HostRoot fiber is a child of the Container node. So if you
// pass the Container node as the targetNode, you will not actually get the
// HostRoot back. To get to the HostRoot, you need to pass a child of it.
// The same thing applies to Suspense boundaries.

function getClosestInstanceFromNode(targetNode) {
  var targetInst = targetNode[internalInstanceKey];

  if (targetInst) {
    // Don't return HostRoot or SuspenseComponent here.
    return targetInst;
  } // If the direct event target isn't a React owned DOM node, we need to look
  // to see if one of its parents is a React owned DOM node.


  var parentNode = targetNode.parentNode;

  while (parentNode) {
    // We'll check if this is a container root that could include
    // React nodes in the future. We need to check this first because
    // if we're a child of a dehydrated container, we need to first
    // find that inner container before moving on to finding the parent
    // instance. Note that we don't check this field on  the targetNode
    // itself because the fibers are conceptually between the container
    // node and the first child. It isn't surrounding the container node.
    // If it's not a container, we check if it's an instance.
    targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];

    if (targetInst) {
      // Since this wasn't the direct target of the event, we might have
      // stepped past dehydrated DOM nodes to get here. However they could
      // also have been non-React nodes. We need to answer which one.
      // If we the instance doesn't have any children, then there can't be
      // a nested suspense boundary within it. So we can use this as a fast
      // bailout. Most of the time, when people add non-React children to
      // the tree, it is using a ref to a child-less DOM node.
      // Normally we'd only need to check one of the fibers because if it
      // has ever gone from having children to deleting them or vice versa
      // it would have deleted the dehydrated boundary nested inside already.
      // However, since the HostRoot starts out with an alternate it might
      // have one on the alternate so we need to check in case this was a
      // root.
      var alternate = targetInst.alternate;

      if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
        // Next we need to figure out if the node that skipped past is
        // nested within a dehydrated boundary and if so, which one.
        var suspenseInstance = getParentSuspenseInstance(targetNode);

        while (suspenseInstance !== null) {
          // We found a suspense instance. That means that we haven't
          // hydrated it yet. Even though we leave the comments in the
          // DOM after hydrating, and there are boundaries in the DOM
          // that could already be hydrated, we wouldn't have found them
          // through this pass since if the target is hydrated it would
          // have had an internalInstanceKey on it.
          // Let's get the fiber associated with the SuspenseComponent
          // as the deepest instance.
          var targetSuspenseInst = suspenseInstance[internalInstanceKey];

          if (targetSuspenseInst) {
            return targetSuspenseInst;
          } // If we don't find a Fiber on the comment, it might be because
          // we haven't gotten to hydrate it yet. There might still be a
          // parent boundary that hasn't above this one so we need to find
          // the outer most that is known.


          suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
          // host component also hasn't hydrated yet. We can return it
          // below since it will bail out on the isMounted check later.
        }
      }

      return targetInst;
    }

    targetNode = parentNode;
    parentNode = targetNode.parentNode;
  }

  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] || node[internalContainerInstanceKey];

  if (inst) {
    if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
      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.


  {
    {
      throw Error( "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;
}
/**
 * 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;

  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);
  }
}

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':
    case 'onMouseEnter':
      return !!(props.disabled && isInteractive(type));

    default:
      return false;
  }
}
/**
 * @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; // 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;
  }

  if (!(!listener || typeof listener === 'function')) {
    {
      throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
    }
  }

  return listener;
}

/**
 * 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) {
  {
    if (!inst) {
      error('Dispatching inst must not be null');
    }
  }

  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);
}

/**
 * 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;
  var startValue = startText;
  var startLength = startValue.length;
  var end;
  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;
}

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) {
    {
      error("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);
    }
  }
}

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;

  if (!(event instanceof EventConstructor)) {
    {
      throw Error( "Trying to release an event instance into a pool of a different type." );
    }
  }

  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;
  var fallbackData;

  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;

  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, eventSystemFlags) {
    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];
  }
};

/**
 * @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;
}

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);
}

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 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, eventSystemFlags) {
    var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
    var getTargetInstFunc, handleEventFunc;

    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);
    }
  }
};

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'
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.

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, eventSystemFlags) {
    var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
    var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;

    if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
      // If this is an over event with a target, then we've already dispatched
      // the event in the out event of the other target. If this is replayed,
      // then it's because we couldn't dispatch against this target previously
      // so we have to do it now instead.
      return null;
    }

    if (!isOutEvent && !isOverEvent) {
      // Must not be a mouse or pointer in or out - ignoring.
      return null;
    }

    var win;

    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;
    var to;

    if (isOutEvent) {
      from = targetInst;
      var related = nativeEvent.relatedTarget || nativeEvent.toElement;
      to = related ? getClosestInstanceFromNode(related) : null;

      if (to !== null) {
        var nearestMounted = getNearestMountedFiber(to);

        if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
          to = 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, leaveEventType, enterEventType, eventTypePrefix;

    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); // If we are not processing the first ancestor, then we
    // should not process the same nativeEvent again, as we
    // will have already processed it in the first ancestor.

    if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) {
      return [leave];
    }

    return [leave, enter];
  }
};

/**
 * 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) {
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  ;
}

var objectIs = typeof Object.is === 'function' ? Object.is : is;

var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
/**
 * 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 (objectIs(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$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
      return false;
    }
  }

  return true;
}

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$1(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$1(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, eventSystemFlags, container) {
    var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do
    // not extract events. See #3639.

    if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) {
      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;
  }
};

/**
 * @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;
  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
});

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 = {
  // simpleEventPluginEventTypes gets populated from
  // the DOMEventProperties module.
  eventTypes: simpleEventPluginEventTypes,
  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
    var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType);

    if (!dispatchConfig) {
      return null;
    }

    var EventConstructor;

    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) {
            error('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;
  }
};

/**
 * 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'];
/**
 * Inject modules for resolving DOM hierarchy and plugin ordering.
 */

injectEventPluginOrder(DOMEventPluginOrder);
setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
/**
 * Some important event plugins included by default (without having to require
 * them).
 */

injectEventPluginsByName({
  SimpleEventPlugin: SimpleEventPlugin,
  EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  ChangeEventPlugin: ChangeEventPlugin,
  SelectEventPlugin: SelectEventPlugin,
  BeforeInputEventPlugin: BeforeInputEventPlugin
});

// 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;
// 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() {
  {
    effectCountInCurrentCommit++;
  }
}
function recordScheduleUpdate() {
  {
    if (isCommitting) {
      hasScheduledUpdateInCurrentCommit = true;
    }

    if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
      hasScheduledUpdateInCurrentPhase = true;
    }
  }
}
function startWorkTimer(fiber) {
  {
    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 (!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 (!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 (!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 = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
    endFiberMark(fiber, null, warning);
  }
}
function startPhaseTimer(fiber, phase) {
  {
    if (!supportsUserTiming) {
      return;
    }

    clearPendingPhaseMeasurement();

    if (!beginFiberMark(fiber, phase)) {
      return;
    }

    currentPhaseFiber = fiber;
    currentPhase = phase;
  }
}
function stopPhaseTimer() {
  {
    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) {
  {
    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 (!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 (!supportsUserTiming) {
      return;
    }

    isCommitting = true;
    hasScheduledUpdateInCurrentCommit = false;
    labelsInCurrentCommit.clear();
    beginMark('(Committing Changes)');
  }
}
function stopCommitTimer() {
  {
    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 (!supportsUserTiming) {
      return;
    }

    effectCountInCurrentCommit = 0;
    beginMark('(Committing Snapshot Effects)');
  }
}
function stopCommitSnapshotEffectsTimer() {
  {
    if (!supportsUserTiming) {
      return;
    }

    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null);
  }
}
function startCommitHostEffectsTimer() {
  {
    if (!supportsUserTiming) {
      return;
    }

    effectCountInCurrentCommit = 0;
    beginMark('(Committing Host Effects)');
  }
}
function stopCommitHostEffectsTimer() {
  {
    if (!supportsUserTiming) {
      return;
    }

    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null);
  }
}
function startCommitLifeCyclesTimer() {
  {
    if (!supportsUserTiming) {
      return;
    }

    effectCountInCurrentCommit = 0;
    beginMark('(Calling Lifecycle Methods)');
  }
}
function stopCommitLifeCyclesTimer() {
  {
    if (!supportsUserTiming) {
      return;
    }

    var count = effectCountInCurrentCommit;
    effectCountInCurrentCommit = 0;
    endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null);
  }
}

var valueStack = [];
var fiberStack;

{
  fiberStack = [];
}

var index = -1;

function createCursor(defaultValue) {
  return {
    current: defaultValue
  };
}

function pop(cursor, fiber) {
  if (index < 0) {
    {
      error('Unexpected pop.');
    }

    return;
  }

  {
    if (fiber !== fiberStack[index]) {
      error('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;
}

var warnedAboutMissingGetChildContext;

{
  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) {
  {
    if (!(contextStackCursor.current === emptyContextObject)) {
      {
        throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    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;

          error('%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;
    startPhaseTimer(fiber, 'getChildContext');
    childContext = instance.getChildContext();
    stopPhaseTimer();

    for (var contextKey in childContext) {
      if (!(contextKey in childContextTypes)) {
        {
          throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
        }
      }
    }

    {
      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;

    if (!instance) {
      {
        throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    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
    if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
      {
        throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    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;
          }
      }

      node = node.return;
    } while (node !== null);

    {
      {
        throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  }
}

var LegacyRoot = 0;
var BlockingRoot = 1;
var ConcurrentRoot = 2;

var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
    Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
    Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
    Scheduler_shouldYield = Scheduler.unstable_shouldYield,
    Scheduler_requestPaint = Scheduler.unstable_requestPaint,
    Scheduler_now = Scheduler.unstable_now,
    Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
    Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
    Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
    Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
    Scheduler_LowPriority = Scheduler.unstable_LowPriority,
    Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;

{
  // Provide explicit error message when production+profiling bundle of e.g.
  // react-dom is used with production (non-profiling) bundle of
  // scheduler/tracing
  if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
    {
      throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling" );
    }
  }
}

var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
// ascending numbers so we can compare them like numbers. They start at 90 to
// avoid clashing with Scheduler's priorities.

var ImmediatePriority = 99;
var UserBlockingPriority$1 = 98;
var NormalPriority = 97;
var LowPriority = 96;
var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.

var NoPriority = 90;
var shouldYield = Scheduler_shouldYield;
var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
var syncQueue = null;
var immediateQueueCallbackNode = null;
var isFlushingSyncQueue = false;
var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
// This will be the case for modern browsers that support `performance.now`. In
// older browsers, Scheduler falls back to `Date.now`, which returns a Unix
// timestamp. In that case, subtract the module initialization time to simulate
// the behavior of performance.now and keep our times small enough to fit
// within 32 bits.
// TODO: Consider lifting this into Scheduler.

var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  return Scheduler_now() - initialTimeMs;
};
function getCurrentPriorityLevel() {
  switch (Scheduler_getCurrentPriorityLevel()) {
    case Scheduler_ImmediatePriority:
      return ImmediatePriority;

    case Scheduler_UserBlockingPriority:
      return UserBlockingPriority$1;

    case Scheduler_NormalPriority:
      return NormalPriority;

    case Scheduler_LowPriority:
      return LowPriority;

    case Scheduler_IdlePriority:
      return IdlePriority;

    default:
      {
        {
          throw Error( "Unknown priority level." );
        }
      }

  }
}

function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  switch (reactPriorityLevel) {
    case ImmediatePriority:
      return Scheduler_ImmediatePriority;

    case UserBlockingPriority$1:
      return Scheduler_UserBlockingPriority;

    case NormalPriority:
      return Scheduler_NormalPriority;

    case LowPriority:
      return Scheduler_LowPriority;

    case IdlePriority:
      return Scheduler_IdlePriority;

    default:
      {
        {
          throw Error( "Unknown priority level." );
        }
      }

  }
}

function runWithPriority$1(reactPriorityLevel, fn) {
  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  return Scheduler_runWithPriority(priorityLevel, fn);
}
function scheduleCallback(reactPriorityLevel, callback, options) {
  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  return Scheduler_scheduleCallback(priorityLevel, callback, options);
}
function scheduleSyncCallback(callback) {
  // Push this callback into an internal queue. We'll flush these either in
  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  if (syncQueue === null) {
    syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.

    immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  } else {
    // Push onto existing queue. Don't need to schedule a callback because
    // we already scheduled one when we created the queue.
    syncQueue.push(callback);
  }

  return fakeCallbackNode;
}
function cancelCallback(callbackNode) {
  if (callbackNode !== fakeCallbackNode) {
    Scheduler_cancelCallback(callbackNode);
  }
}
function flushSyncCallbackQueue() {
  if (immediateQueueCallbackNode !== null) {
    var node = immediateQueueCallbackNode;
    immediateQueueCallbackNode = null;
    Scheduler_cancelCallback(node);
  }

  flushSyncCallbackQueueImpl();
}

function flushSyncCallbackQueueImpl() {
  if (!isFlushingSyncQueue && syncQueue !== null) {
    // Prevent re-entrancy.
    isFlushingSyncQueue = true;
    var i = 0;

    try {
      var _isSync = true;
      var queue = syncQueue;
      runWithPriority$1(ImmediatePriority, function () {
        for (; i < queue.length; i++) {
          var callback = queue[i];

          do {
            callback = callback(_isSync);
          } while (callback !== null);
        }
      });
      syncQueue = null;
    } catch (error) {
      // If something throws, leave the remaining callbacks on the queue.
      if (syncQueue !== null) {
        syncQueue = syncQueue.slice(i + 1);
      } // Resume flushing in the next tick


      Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
      throw error;
    } finally {
      isFlushingSyncQueue = false;
    }
  }
}

var NoMode = 0;
var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
// tag instead

var BlockingMode = 2;
var ConcurrentMode = 4;
var ProfileMode = 8;

// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111
var MAX_SIGNED_31_BIT_INT = 1073741823;

var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that
// Never work can be committed in an inconsistent state without tearing the UI.
// The main example is offscreen content, like a hidden subtree. So one possible
// name is Offscreen. However, it also includes dehydrated Suspense boundaries,
// which are inconsistent in the sense that they haven't finished yet, but
// aren't visibly inconsistent because the server rendered HTML matches what the
// hydrated tree would look like.

var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in
// order to be consistent.

var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase
// priority of hover targets.

var ContinuousHydration = 3;
var Sync = MAX_SIGNED_31_BIT_INT;
var Batched = Sync - 1;
var UNIT_SIZE = 10;
var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms.

function msToExpirationTime(ms) {
  // Always subtract from the offset so that we don't clash with the magic number for NoWork.
  return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
}
function expirationTimeToMs(expirationTime) {
  return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
}

function ceiling(num, precision) {
  return ((num / precision | 0) + 1) * precision;
}

function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
} // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
// the names to reflect.


var LOW_PRIORITY_EXPIRATION = 5000;
var LOW_PRIORITY_BATCH_SIZE = 250;
function computeAsyncExpiration(currentTime) {
  return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
}
function computeSuspenseExpiration(currentTime, timeoutMs) {
  // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  return computeExpirationBucket(currentTime, timeoutMs, 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);
}
function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  if (expirationTime === Sync) {
    return ImmediatePriority;
  }

  if (expirationTime === Never || expirationTime === Idle) {
    return IdlePriority;
  }

  var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);

  if (msUntil <= 0) {
    return ImmediatePriority;
  }

  if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
    return UserBlockingPriority$1;
  }

  if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
    return NormalPriority;
  } // TODO: Handle LowPriority
  // Assume anything lower has idle priority


  return IdlePriority;
}

var ReactStrictModeWarnings = {
  recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  flushPendingUnsafeLifecycleWarnings: function () {},
  recordLegacyContextWarning: function (fiber, instance) {},
  flushLegacyContextWarning: function () {},
  discardPendingWarnings: function () {}
};

{
  var findStrictRoot = function (fiber) {
    var maybeStrictRoot = null;
    var node = fiber;

    while (node !== null) {
      if (node.mode & StrictMode) {
        maybeStrictRoot = node;
      }

      node = node.return;
    }

    return maybeStrictRoot;
  };

  var setToSortedString = function (set) {
    var array = [];
    set.forEach(function (value) {
      array.push(value);
    });
    return array.sort().join(', ');
  };

  var pendingComponentWillMountWarnings = [];
  var pendingUNSAFE_ComponentWillMountWarnings = [];
  var pendingComponentWillReceivePropsWarnings = [];
  var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  var pendingComponentWillUpdateWarnings = [];
  var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.

  var didWarnAboutUnsafeLifecycles = new Set();

  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
    // Dedup strategy: Warn once per component.
    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
      return;
    }

    if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
    instance.componentWillMount.__suppressDeprecationWarning !== true) {
      pendingComponentWillMountWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
    }

    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
      pendingComponentWillReceivePropsWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
    }

    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
      pendingComponentWillUpdateWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
    // We do an initial pass to gather component names
    var componentWillMountUniqueNames = new Set();

    if (pendingComponentWillMountWarnings.length > 0) {
      pendingComponentWillMountWarnings.forEach(function (fiber) {
        componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillMountWarnings = [];
    }

    var UNSAFE_componentWillMountUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
        UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillMountWarnings = [];
    }

    var componentWillReceivePropsUniqueNames = new Set();

    if (pendingComponentWillReceivePropsWarnings.length > 0) {
      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
        componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillReceivePropsWarnings = [];
    }

    var UNSAFE_componentWillReceivePropsUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    }

    var componentWillUpdateUniqueNames = new Set();

    if (pendingComponentWillUpdateWarnings.length > 0) {
      pendingComponentWillUpdateWarnings.forEach(function (fiber) {
        componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillUpdateWarnings = [];
    }

    var UNSAFE_componentWillUpdateUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
        UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillUpdateWarnings = [];
    } // Finally, we flush all the warnings
    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'


    if (UNSAFE_componentWillMountUniqueNames.size > 0) {
      var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);

      error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
    }

    if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);

      error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
    }

    if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);

      error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
    }

    if (componentWillMountUniqueNames.size > 0) {
      var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);

      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
    }

    if (componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);

      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
    }

    if (componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);

      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
    }
  };

  var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.

  var didWarnAboutLegacyContext = new Set();

  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
    var strictRoot = findStrictRoot(fiber);

    if (strictRoot === null) {
      error('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) {
      if (fiberArray.length === 0) {
        return;
      }

      var firstFiber = fiberArray[0];
      var uniqueNames = new Set();
      fiberArray.forEach(function (fiber) {
        uniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutLegacyContext.add(fiber.type);
      });
      var sortedNames = setToSortedString(uniqueNames);
      var firstComponentStack = getStackByFiberInDevAndProd(firstFiber);

      error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack);
    });
  };

  ReactStrictModeWarnings.discardPendingWarnings = function () {
    pendingComponentWillMountWarnings = [];
    pendingUNSAFE_ComponentWillMountWarnings = [];
    pendingComponentWillReceivePropsWarnings = [];
    pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    pendingComponentWillUpdateWarnings = [];
    pendingUNSAFE_ComponentWillUpdateWarnings = [];
    pendingLegacyContextWarning = new Map();
  };
}

var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.

var failedBoundaries = null;
var setRefreshHandler = function (handler) {
  {
    resolveFamily = handler;
  }
};
function resolveFunctionForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function resolveClassForHotReloading(type) {
  // No implementation differences.
  return resolveFunctionForHotReloading(type);
}
function resolveForwardRefForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      // Check if we're dealing with a real forwardRef. Don't want to crash early.
      if (type !== null && type !== undefined && typeof type.render === 'function') {
        // ForwardRef is special because its resolved .type is an object,
        // but it's possible that we only have its inner render function in the map.
        // If that inner render function is different, we'll build a new forwardRef type.
        var currentRender = resolveFunctionForHotReloading(type.render);

        if (type.render !== currentRender) {
          var syntheticType = {
            $$typeof: REACT_FORWARD_REF_TYPE,
            render: currentRender
          };

          if (type.displayName !== undefined) {
            syntheticType.displayName = type.displayName;
          }

          return syntheticType;
        }
      }

      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function isCompatibleFamilyForHotReloading(fiber, element) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return false;
    }

    var prevType = fiber.elementType;
    var nextType = element.type; // If we got here, we know types aren't === equal.

    var needsCompareFamilies = false;
    var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;

    switch (fiber.tag) {
      case ClassComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          }

          break;
        }

      case FunctionComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            // We don't know the inner type yet.
            // We're going to assume that the lazy inner type is stable,
            // and so it is sufficient to avoid reconciling it away.
            // We're not going to unwrap or actually use the new lazy type.
            needsCompareFamilies = true;
          }

          break;
        }

      case ForwardRef:
        {
          if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      case MemoComponent:
      case SimpleMemoComponent:
        {
          if ($$typeofNextType === REACT_MEMO_TYPE) {
            // TODO: if it was but can no longer be simple,
            // we shouldn't set this.
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      default:
        return false;
    } // Check if both types have a family and it's the same one.


    if (needsCompareFamilies) {
      // Note: memo() and forwardRef() we'll compare outer rather than inner type.
      // This means both of them need to be registered to preserve state.
      // If we unwrapped and compared the inner types for wrappers instead,
      // then we would risk falsely saying two separate memo(Foo)
      // calls are equivalent because they wrap the same Foo function.
      var prevFamily = resolveFamily(prevType);

      if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
        return true;
      }
    }

    return false;
  }
}
function markFailedErrorBoundaryForHotReloading(fiber) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    if (typeof WeakSet !== 'function') {
      return;
    }

    if (failedBoundaries === null) {
      failedBoundaries = new WeakSet();
    }

    failedBoundaries.add(fiber);
  }
}
var scheduleRefresh = function (root, update) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    var staleFamilies = update.staleFamilies,
        updatedFamilies = update.updatedFamilies;
    flushPassiveEffects();
    flushSync(function () {
      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
    });
  }
};
var scheduleRoot = function (root, element) {
  {
    if (root.context !== emptyContextObject) {
      // Super edge case: root has a legacy _renderSubtree context
      // but we don't know the parentComponent so we can't pass it.
      // Just ignore. We'll delete this with _renderSubtree code path later.
      return;
    }

    flushPassiveEffects();
    syncUpdates(function () {
      updateContainer(element, root, null, null);
    });
  }
};

function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  {
    var alternate = fiber.alternate,
        child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    if (resolveFamily === null) {
      throw new Error('Expected resolveFamily to be set during hot reload.');
    }

    var needsRender = false;
    var needsRemount = false;

    if (candidateType !== null) {
      var family = resolveFamily(candidateType);

      if (family !== undefined) {
        if (staleFamilies.has(family)) {
          needsRemount = true;
        } else if (updatedFamilies.has(family)) {
          if (tag === ClassComponent) {
            needsRemount = true;
          } else {
            needsRender = true;
          }
        }
      }
    }

    if (failedBoundaries !== null) {
      if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
        needsRemount = true;
      }
    }

    if (needsRemount) {
      fiber._debugNeedsRemount = true;
    }

    if (needsRemount || needsRender) {
      scheduleWork(fiber, Sync);
    }

    if (child !== null && !needsRemount) {
      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
    }

    if (sibling !== null) {
      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
    }
  }
}

var findHostInstancesForRefresh = function (root, families) {
  {
    var hostInstances = new Set();
    var types = new Set(families.map(function (family) {
      return family.current;
    }));
    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
    return hostInstances;
  }
};

function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  {
    var child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    var didMatch = false;

    if (candidateType !== null) {
      if (types.has(candidateType)) {
        didMatch = true;
      }
    }

    if (didMatch) {
      // We have a match. This only drills down to the closest host components.
      // There's no need to search deeper because for the purpose of giving
      // visual feedback, "flashing" outermost parent rectangles is sufficient.
      findHostInstancesForFiberShallowly(fiber, hostInstances);
    } else {
      // If there's no match, maybe there will be one further down in the child tree.
      if (child !== null) {
        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
      }
    }

    if (sibling !== null) {
      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
    }
  }
}

function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);

    if (foundHostInstances) {
      return;
    } // If we didn't find any host children, fallback to closest host parent.


    var node = fiber;

    while (true) {
      switch (node.tag) {
        case HostComponent:
          hostInstances.add(node.stateNode);
          return;

        case HostPortal:
          hostInstances.add(node.stateNode.containerInfo);
          return;

        case HostRoot:
          hostInstances.add(node.stateNode.containerInfo);
          return;
      }

      if (node.return === null) {
        throw new Error('Expected to reach root first.');
      }

      node = node.return;
    }
  }
}

function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var node = fiber;
    var foundHostInstances = false;

    while (true) {
      if (node.tag === HostComponent) {
        // We got a match.
        foundHostInstances = true;
        hostInstances.add(node.stateNode); // There may still be more, so keep searching.
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === fiber) {
        return foundHostInstances;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === fiber) {
          return foundHostInstances;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  }

  return false;
}

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 readLazyComponentType(lazyComponent) {
  initializeLazyComponentType(lazyComponent);

  if (lazyComponent._status !== Resolved) {
    throw lazyComponent._result;
  }

  return lazyComponent._result;
}

var valueCursor = createCursor(null);
var rendererSigil;

{
  // Use this to detect multiple renderers using the same context
  rendererSigil = {};
}

var currentlyRenderingFiber = null;
var lastContextDependency = null;
var lastContextWithAllBitsObserved = null;
var isDisallowedContextReadInDEV = false;
function resetContextDependencies() {
  // This is called right before React yields execution, to ensure `readContext`
  // cannot be called outside the render phase.
  currentlyRenderingFiber = null;
  lastContextDependency = null;
  lastContextWithAllBitsObserved = null;

  {
    isDisallowedContextReadInDEV = false;
  }
}
function enterDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = true;
  }
}
function exitDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = false;
  }
}
function pushProvider(providerFiber, nextValue) {
  var context = providerFiber.type._context;

  {
    push(valueCursor, context._currentValue, providerFiber);
    context._currentValue = nextValue;

    {
      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
      }

      context._currentRenderer = rendererSigil;
    }
  }
}
function popProvider(providerFiber) {
  var currentValue = valueCursor.current;
  pop(valueCursor, providerFiber);
  var context = providerFiber.type._context;

  {
    context._currentValue = currentValue;
  }
}
function calculateChangedBits(context, newValue, oldValue) {
  if (objectIs(oldValue, newValue)) {
    // No change
    return 0;
  } else {
    var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;

    {
      if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
        error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
      }
    }

    return changedBits | 0;
  }
}
function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  // Update the child expiration time of all the ancestors, including
  // the alternates.
  var node = parent;

  while (node !== null) {
    var alternate = node.alternate;

    if (node.childExpirationTime < renderExpirationTime) {
      node.childExpirationTime = renderExpirationTime;

      if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
        alternate.childExpirationTime = renderExpirationTime;
      }
    } else if (alternate !== null && 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;
  }
}
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 list = fiber.dependencies;

    if (list !== null) {
      nextFiber = fiber.child;
      var dependency = list.firstContext;

      while (dependency !== null) {
        // Check if the context matches.
        if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
          // Match! Schedule an update on this fiber.
          if (fiber.tag === ClassComponent) {
            // Schedule a force update on the work-in-progress.
            var update = createUpdate(renderExpirationTime, null);
            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 < renderExpirationTime) {
            fiber.expirationTime = renderExpirationTime;
          }

          var alternate = fiber.alternate;

          if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
            alternate.expirationTime = renderExpirationTime;
          }

          scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.

          if (list.expirationTime < renderExpirationTime) {
            list.expirationTime = renderExpirationTime;
          } // Since we already found a match, we can stop traversing the
          // dependency list.


          break;
        }

        dependency = dependency.next;
      }
    } 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;
  var dependencies = workInProgress.dependencies;

  if (dependencies !== null) {
    var firstContext = dependencies.firstContext;

    if (firstContext !== null) {
      if (dependencies.expirationTime >= renderExpirationTime) {
        // Context list has a pending update. Mark that this fiber performed work.
        markWorkInProgressReceivedUpdate();
      } // Reset the work-in-progress list


      dependencies.firstContext = null;
    }
  }
}
function readContext(context, observedBits) {
  {
    // This warning would fire if you read context inside a Hook like useMemo.
    // Unlike the class check below, it's not enforced in production for perf.
    if (isDisallowedContextReadInDEV) {
      error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
    }
  }

  if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
    var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.

    if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
      // Observe all updates.
      lastContextWithAllBitsObserved = context;
      resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
    } else {
      resolvedObservedBits = observedBits;
    }

    var contextItem = {
      context: context,
      observedBits: resolvedObservedBits,
      next: null
    };

    if (lastContextDependency === null) {
      if (!(currentlyRenderingFiber !== null)) {
        {
          throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." );
        }
      } // This is the first dependency for this component. Create a new list.


      lastContextDependency = contextItem;
      currentlyRenderingFiber.dependencies = {
        expirationTime: NoWork,
        firstContext: contextItem,
        responders: null
      };
    } else {
      // Append a new context item.
      lastContextDependency = lastContextDependency.next = contextItem;
    }
  }

  return  context._currentValue ;
}

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;
var currentlyProcessingQueue;

{
  didWarnUpdateInsideUpdate = false;
  currentlyProcessingQueue = null;
}

function initializeUpdateQueue(fiber) {
  var queue = {
    baseState: fiber.memoizedState,
    baseQueue: null,
    shared: {
      pending: null
    },
    effects: null
  };
  fiber.updateQueue = queue;
}
function cloneUpdateQueue(current, workInProgress) {
  // Clone the update queue from current. Unless it's already a clone.
  var queue = workInProgress.updateQueue;
  var currentQueue = current.updateQueue;

  if (queue === currentQueue) {
    var clone = {
      baseState: currentQueue.baseState,
      baseQueue: currentQueue.baseQueue,
      shared: currentQueue.shared,
      effects: currentQueue.effects
    };
    workInProgress.updateQueue = clone;
  }
}
function createUpdate(expirationTime, suspenseConfig) {
  var update = {
    expirationTime: expirationTime,
    suspenseConfig: suspenseConfig,
    tag: UpdateState,
    payload: null,
    callback: null,
    next: null
  };
  update.next = update;

  {
    update.priority = getCurrentPriorityLevel();
  }

  return update;
}
function enqueueUpdate(fiber, update) {
  var updateQueue = fiber.updateQueue;

  if (updateQueue === null) {
    // Only occurs if the fiber has been unmounted.
    return;
  }

  var sharedQueue = updateQueue.shared;
  var pending = sharedQueue.pending;

  if (pending === null) {
    // This is the first update. Create a circular list.
    update.next = update;
  } else {
    update.next = pending.next;
    pending.next = update;
  }

  sharedQueue.pending = update;

  {
    if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
      error('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) {
  var current = workInProgress.alternate;

  if (current !== null) {
    // Ensure the work-in-progress queue is a clone
    cloneUpdateQueue(current, workInProgress);
  } // Captured updates go only on the work-in-progress queue.


  var queue = workInProgress.updateQueue; // Append the update to the end of the list.

  var last = queue.baseQueue;

  if (last === null) {
    queue.baseQueue = update.next = update;
    update.next = update;
  } else {
    update.next = last.next;
    last.next = update;
  }
}

function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  switch (update.tag) {
    case ReplaceState:
      {
        var payload = update.payload;

        if (typeof payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();

            if ( workInProgress.mode & StrictMode) {
              payload.call(instance, prevState, nextProps);
            }
          }

          var nextState = payload.call(instance, prevState, nextProps);

          {
            exitDisallowedContextReadInDEV();
          }

          return nextState;
        } // State object


        return payload;
      }

    case CaptureUpdate:
      {
        workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
      }
    // Intentional fallthrough

    case UpdateState:
      {
        var _payload = update.payload;
        var partialState;

        if (typeof _payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();

            if ( workInProgress.mode & StrictMode) {
              _payload.call(instance, prevState, nextProps);
            }
          }

          partialState = _payload.call(instance, prevState, nextProps);

          {
            exitDisallowedContextReadInDEV();
          }
        } else {
          // Partial state object
          partialState = _payload;
        }

        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, props, instance, renderExpirationTime) {
  // This is always non-null on a ClassComponent or HostRoot
  var queue = workInProgress.updateQueue;
  hasForceUpdate = false;

  {
    currentlyProcessingQueue = queue.shared;
  } // The last rebase update that is NOT part of the base state.


  var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet.

  var pendingQueue = queue.shared.pending;

  if (pendingQueue !== null) {
    // We have new updates that haven't been processed yet.
    // We'll add them to the base queue.
    if (baseQueue !== null) {
      // Merge the pending queue and the base queue.
      var baseFirst = baseQueue.next;
      var pendingFirst = pendingQueue.next;
      baseQueue.next = pendingFirst;
      pendingQueue.next = baseFirst;
    }

    baseQueue = pendingQueue;
    queue.shared.pending = null; // TODO: Pass `current` as argument

    var current = workInProgress.alternate;

    if (current !== null) {
      var currentQueue = current.updateQueue;

      if (currentQueue !== null) {
        currentQueue.baseQueue = pendingQueue;
      }
    }
  } // These values may change as we process the queue.


  if (baseQueue !== null) {
    var first = baseQueue.next; // Iterate through the list of updates to compute the result.

    var newState = queue.baseState;
    var newExpirationTime = NoWork;
    var newBaseState = null;
    var newBaseQueueFirst = null;
    var newBaseQueueLast = null;

    if (first !== null) {
      var update = first;

      do {
        var updateExpirationTime = update.expirationTime;

        if (updateExpirationTime < renderExpirationTime) {
          // Priority is insufficient. Skip this update. If this is the first
          // skipped update, the previous update/state is the new base
          // update/state.
          var clone = {
            expirationTime: update.expirationTime,
            suspenseConfig: update.suspenseConfig,
            tag: update.tag,
            payload: update.payload,
            callback: update.callback,
            next: null
          };

          if (newBaseQueueLast === null) {
            newBaseQueueFirst = newBaseQueueLast = clone;
            newBaseState = newState;
          } else {
            newBaseQueueLast = newBaseQueueLast.next = clone;
          } // Update the remaining priority in the queue.


          if (updateExpirationTime > newExpirationTime) {
            newExpirationTime = updateExpirationTime;
          }
        } else {
          // This update does have sufficient priority.
          if (newBaseQueueLast !== null) {
            var _clone = {
              expirationTime: Sync,
              // This update is going to be committed so we never want uncommit it.
              suspenseConfig: update.suspenseConfig,
              tag: update.tag,
              payload: update.payload,
              callback: update.callback,
              next: null
            };
            newBaseQueueLast = newBaseQueueLast.next = _clone;
          } // Mark the event time of this update as relevant to this render pass.
          // TODO: This should ideally use the true event time of this update rather than
          // its priority which is a derived and not reverseable value.
          // TODO: We should skip this update if it was already committed but currently
          // we have no way of detecting the difference between a committed and suspended
          // update here.


          markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.

          newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
          var callback = update.callback;

          if (callback !== null) {
            workInProgress.effectTag |= Callback;
            var effects = queue.effects;

            if (effects === null) {
              queue.effects = [update];
            } else {
              effects.push(update);
            }
          }
        }

        update = update.next;

        if (update === null || update === first) {
          pendingQueue = queue.shared.pending;

          if (pendingQueue === null) {
            break;
          } else {
            // An update was scheduled from inside a reducer. Add the new
            // pending updates to the end of the list and keep processing.
            update = baseQueue.next = pendingQueue.next;
            pendingQueue.next = first;
            queue.baseQueue = baseQueue = pendingQueue;
            queue.shared.pending = null;
          }
        }
      } while (true);
    }

    if (newBaseQueueLast === null) {
      newBaseState = newState;
    } else {
      newBaseQueueLast.next = newBaseQueueFirst;
    }

    queue.baseState = newBaseState;
    queue.baseQueue = newBaseQueueLast; // 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.

    markUnprocessedUpdateTime(newExpirationTime);
    workInProgress.expirationTime = newExpirationTime;
    workInProgress.memoizedState = newState;
  }

  {
    currentlyProcessingQueue = null;
  }
}

function callCallback(callback, context) {
  if (!(typeof callback === 'function')) {
    {
      throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
    }
  }

  callback.call(context);
}

function resetHasForceUpdateBeforeProcessing() {
  hasForceUpdate = false;
}
function checkHasForceUpdateAfterProcessing() {
  return hasForceUpdate;
}
function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  // Commit the effects
  var effects = finishedQueue.effects;
  finishedQueue.effects = null;

  if (effects !== null) {
    for (var i = 0; i < effects.length; i++) {
      var effect = effects[i];
      var callback = effect.callback;

      if (callback !== null) {
        effect.callback = null;
        callCallback(callback, instance);
      }
    }
  }
}

var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
function requestCurrentSuspenseConfig() {
  return ReactCurrentBatchConfig.suspense;
}

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;
var didWarnAboutUninitializedState;
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
var didWarnAboutLegacyLifecyclesAndDerivedState;
var didWarnAboutUndefinedDerivedState;
var warnOnUndefinedDerivedState;
var warnOnInvalidCallback;
var didWarnAboutDirectlyAssigningPropsToState;
var didWarnAboutContextTypeAndContextTypes;
var didWarnAboutInvalidateContextType;

{
  didWarnAboutStateAssignmentForComponent = new Set();
  didWarnAboutUninitializedState = new Set();
  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  didWarnAboutDirectlyAssigningPropsToState = new Set();
  didWarnAboutUndefinedDerivedState = new Set();
  didWarnAboutContextTypeAndContextTypes = new Set();
  didWarnAboutInvalidateContextType = new Set();
  var didWarnOnInvalidCallback = new Set();

  warnOnInvalidCallback = function (callback, callerName) {
    if (callback === null || typeof callback === 'function') {
      return;
    }

    var key = callerName + "_" + callback;

    if (!didWarnOnInvalidCallback.has(key)) {
      didWarnOnInvalidCallback.add(key);

      error('%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);

        error('%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 () {
      {
        {
          throw Error( "_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 ( 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.

  if (workInProgress.expirationTime === NoWork) {
    // Queue is always non-null for classes
    var updateQueue = workInProgress.updateQueue;
    updateQueue.baseState = memoizedState;
  }
}
var classComponentUpdater = {
  isMounted: isMounted,
  enqueueSetState: function (inst, payload, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTimeForUpdate();
    var suspenseConfig = requestCurrentSuspenseConfig();
    var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
    var update = createUpdate(expirationTime, suspenseConfig);
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'setState');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  },
  enqueueReplaceState: function (inst, payload, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTimeForUpdate();
    var suspenseConfig = requestCurrentSuspenseConfig();
    var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
    var update = createUpdate(expirationTime, suspenseConfig);
    update.tag = ReplaceState;
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'replaceState');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  },
  enqueueForceUpdate: function (inst, callback) {
    var fiber = get(inst);
    var currentTime = requestCurrentTimeForUpdate();
    var suspenseConfig = requestCurrentSuspenseConfig();
    var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
    var update = createUpdate(expirationTime, suspenseConfig);
    update.tag = ForceUpdate;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'forceUpdate');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleWork(fiber, expirationTime);
  }
};

function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  var instance = workInProgress.stateNode;

  if (typeof instance.shouldComponentUpdate === 'function') {
    {
      if ( workInProgress.mode & StrictMode) {
        // Invoke the function an extra time to help detect side-effects.
        instance.shouldComponentUpdate(newProps, newState, nextContext);
      }
    }

    startPhaseTimer(workInProgress, 'shouldComponentUpdate');
    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
    stopPhaseTimer();

    {
      if (shouldUpdate === undefined) {
        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
      }
    }

    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') {
        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
      } else {
        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
      }
    }

    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
      error('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);
    }

    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
      error('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);
    }

    if (instance.propTypes) {
      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
    }

    if (instance.contextType) {
      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
    }

    {
      if (instance.contextTypes) {
        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
      }

      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
        didWarnAboutContextTypeAndContextTypes.add(ctor);

        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
      }
    }

    if (typeof instance.componentShouldUpdate === 'function') {
      error('%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);
    }

    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
      error('%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');
    }

    if (typeof instance.componentDidUnmount === 'function') {
      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
    }

    if (typeof instance.componentDidReceiveProps === 'function') {
      error('%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);
    }

    if (typeof instance.componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
    }

    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
    }

    var hasMutatedProps = instance.props !== newProps;

    if (instance.props !== undefined && hasMutatedProps) {
      error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
    }

    if (instance.defaultProps) {
      error('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);
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);

      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
    }

    if (typeof instance.getDerivedStateFromProps === 'function') {
      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof instance.getDerivedStateFromError === 'function') {
      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
    }

    var _state = instance.state;

    if (_state && (typeof _state !== 'object' || isArray(_state))) {
      error('%s.state: must be set to an object or null', name);
    }

    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
    }
  }
}

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) {
  var isLegacyContextConsumer = false;
  var unmaskedContext = emptyContextObject;
  var context = emptyContextObject;
  var contextType = ctor.contextType;

  {
    if ('contextType' in ctor) {
      var isValid = // Allow null for conditional declaration
      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>

      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
        didWarnAboutInvalidateContextType.add(ctor);
        var addendum = '';

        if (contextType === undefined) {
          addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
        } else if (typeof contextType !== 'object') {
          addendum = ' However, it is set to a ' + typeof contextType + '.';
        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
          addendum = ' Did you accidentally pass the Context.Provider instead?';
        } else if (contextType._context !== undefined) {
          // <Context.Consumer>
          addendum = ' Did you accidentally pass the Context.Consumer instead?';
        } else {
          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
        }

        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
      }
    }
  }

  if (typeof contextType === 'object' && contextType !== null) {
    context = readContext(contextType);
  } else {
    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    var contextTypes = ctor.contextTypes;
    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  } // Instantiate twice to help detect side-effects.


  {
    if ( 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);

        error('`%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);

          error('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-unsafe-component-lifecycles', _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 (isLegacyContextConsumer) {
    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) {
    {
      error('%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, nextContext) {
  var oldState = instance.state;
  startPhaseTimer(workInProgress, 'componentWillReceiveProps');

  if (typeof instance.componentWillReceiveProps === 'function') {
    instance.componentWillReceiveProps(newProps, nextContext);
  }

  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  }

  stopPhaseTimer();

  if (instance.state !== oldState) {
    {
      var componentName = getComponentName(workInProgress.type) || 'Component';

      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
        didWarnAboutStateAssignmentForComponent.add(componentName);

        error('%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;
  instance.props = newProps;
  instance.state = workInProgress.memoizedState;
  instance.refs = emptyRefsObject;
  initializeUpdateQueue(workInProgress);
  var contextType = ctor.contextType;

  if (typeof contextType === 'object' && contextType !== null) {
    instance.context = readContext(contextType);
  } else {
    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    instance.context = getMaskedContext(workInProgress, unmaskedContext);
  }

  {
    if (instance.state === newProps) {
      var componentName = getComponentName(ctor) || 'Component';

      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
        didWarnAboutDirectlyAssigningPropsToState.add(componentName);

        error('%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.recordLegacyContextWarning(workInProgress, instance);
    }

    {
      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
    }
  }

  processUpdateQueue(workInProgress, 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.

    processUpdateQueue(workInProgress, 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 contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = 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 !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, 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, nextContext);

  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 = nextContext;
  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;
  cloneUpdateQueue(current, workInProgress);
  var oldProps = workInProgress.memoizedProps;
  instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  }

  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 !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, 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, nextContext);

  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, nextContext);
      }

      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
      }

      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 = nextContext;
  return shouldUpdate;
}

var didWarnAboutMaps;
var didWarnAboutGenerators;
var didWarnAboutStringRefs;
var ownerHasKeyUseWarning;
var ownerHasFunctionTypeWarning;

var warnForMissingKey = function (child) {};

{
  didWarnAboutMaps = false;
  didWarnAboutGenerators = false;
  didWarnAboutStringRefs = {};
  /**
   * 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;
    }

    if (!(typeof child._store === 'object')) {
      {
        throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    child._store.validated = true;
    var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();

    if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
      return;
    }

    ownerHasKeyUseWarning[currentComponentErrorInfo] = true;

    error('Each child in a list 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, element) {
  var mixedRef = element.ref;

  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
    {
      // TODO: Clean this up once we turn on the string ref warning for
      // everyone, because the strict mode case will no longer be relevant
      if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
      // because these cannot be automatically converted to an arrow function
      // using a codemod. Therefore, we don't have to warn about string refs again.
      !(element._owner && element._self && element._owner.stateNode !== element._self)) {
        var componentName = getComponentName(returnFiber.type) || 'Component';

        if (!didWarnAboutStringRefs[componentName]) {
          {
            error('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 useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber));
          }

          didWarnAboutStringRefs[componentName] = true;
        }
      }
    }

    if (element._owner) {
      var owner = element._owner;
      var inst;

      if (owner) {
        var ownerFiber = owner;

        if (!(ownerFiber.tag === ClassComponent)) {
          {
            throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref" );
          }
        }

        inst = ownerFiber.stateNode;
      }

      if (!inst) {
        {
          throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
        }
      }

      var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref

      if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
        return current.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 {
      if (!(typeof mixedRef === 'string')) {
        {
          throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
        }
      }

      if (!element._owner) {
        {
          throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function 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." );
        }
      }
    }
  }

  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();
    }

    {
      {
        throw Error( "Objects are not valid as a React child (found: " + (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;

    error('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
    // instead.
    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) {
    // 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);
    clone.index = 0;
    clone.sibling = null;
    return clone;
  }

  function placeChild(newFiber, lastPlacedIndex, newIndex) {
    newFiber.index = newIndex;

    if (!shouldTrackSideEffects) {
      // Noop.
      return lastPlacedIndex;
    }

    var current = newFiber.alternate;

    if (current !== null) {
      var oldIndex = current.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, textContent, expirationTime) {
    if (current === null || current.tag !== HostText) {
      // Insert
      var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, textContent);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateElement(returnFiber, current, element, expirationTime) {
    if (current !== null) {
      if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
       isCompatibleFamilyForHotReloading(current, element) )) {
        // Move based on index
        var existing = useFiber(current, element.props);
        existing.ref = coerceRef(returnFiber, current, element);
        existing.return = returnFiber;

        {
          existing._debugSource = element._source;
          existing._debugOwner = element._owner;
        }

        return existing;
      }
    } // Insert


    var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
    created.ref = coerceRef(returnFiber, current, element);
    created.return = returnFiber;
    return created;
  }

  function updatePortal(returnFiber, current, portal, expirationTime) {
    if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
      // Insert
      var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, portal.children || []);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateFragment(returnFiber, current, fragment, expirationTime, key) {
    if (current === null || current.tag !== Fragment) {
      // Insert
      var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, fragment);
      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;
          }

          error('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;
      }
    }

    return knownKeys;
  }

  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
    // This algorithm can't optimize by searching from both 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 === null) {
          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 !== null) {
        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);

    if (!(typeof iteratorFn === 'function')) {
      {
        throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    {
      // 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') {
        if (!didWarnAboutGenerators) {
          error('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.');
        }

        didWarnAboutGenerators = true;
      } // Warn about using Maps as children


      if (newChildrenIterable.entries === iteratorFn) {
        if (!didWarnAboutMaps) {
          error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');
        }

        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);

    if (!(newChildren != null)) {
      {
        throw Error( "An iterable object provided no iterator." );
      }
    }

    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 === 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 (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);
      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) {
        switch (child.tag) {
          case Fragment:
            {
              if (element.type === REACT_FRAGMENT_TYPE) {
                deleteRemainingChildren(returnFiber, child.sibling);
                var existing = useFiber(child, element.props.children);
                existing.return = returnFiber;

                {
                  existing._debugSource = element._source;
                  existing._debugOwner = element._owner;
                }

                return existing;
              }

              break;
            }

          case Block:

          // We intentionally fallthrough here if enableBlocksAPI is not on.
          // eslint-disable-next-lined no-fallthrough

          default:
            {
              if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
               isCompatibleFamilyForHotReloading(child, element) )) {
                deleteRemainingChildren(returnFiber, child.sibling);

                var _existing3 = useFiber(child, element.props);

                _existing3.ref = coerceRef(returnFiber, child, element);
                _existing3.return = returnFiber;

                {
                  _existing3._debugSource = element._source;
                  _existing3._debugOwner = element._owner;
                }

                return _existing3;
              }

              break;
            }
        } // Didn't match.


        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 || []);
          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:
          {
            {
              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 FunctionComponent:
          {
            var Component = returnFiber.type;

            {
              {
                throw Error( (Component.displayName || Component.name || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." );
              }
            }
          }
      }
    } // Remaining cases are all treated as empty.


    return deleteRemainingChildren(returnFiber, currentFirstChild);
  }

  return reconcileChildFibers;
}

var reconcileChildFibers = ChildReconciler(true);
var mountChildFibers = ChildReconciler(false);
function cloneChildFibers(current, workInProgress) {
  if (!(current === null || workInProgress.child === current.child)) {
    {
      throw Error( "Resuming work not yet implemented." );
    }
  }

  if (workInProgress.child === null) {
    return;
  }

  var currentChild = workInProgress.child;
  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  workInProgress.child = newChild;
  newChild.return = workInProgress;

  while (currentChild.sibling !== null) {
    currentChild = currentChild.sibling;
    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
    newChild.return = workInProgress;
  }

  newChild.sibling = null;
} // Reset a workInProgress child set to prepare it for a second pass.

function resetChildFibers(workInProgress, renderExpirationTime) {
  var child = workInProgress.child;

  while (child !== null) {
    resetWorkInProgress(child, renderExpirationTime);
    child = child.sibling;
  }
}

var NO_CONTEXT = {};
var contextStackCursor$1 = createCursor(NO_CONTEXT);
var contextFiberStackCursor = createCursor(NO_CONTEXT);
var rootInstanceStackCursor = createCursor(NO_CONTEXT);

function requiredContext(c) {
  if (!(c !== NO_CONTEXT)) {
    {
      throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  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); // 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 DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
// inherited deeply down the subtree. The upper bits only affect
// this immediate suspense boundary and gets reset each new
// boundary or suspense list.

var SubtreeSuspenseContextMask = 1; // Subtree Flags:
// InvisibleParentSuspenseContext indicates that one of our parent Suspense
// boundaries is not currently showing visible main content.
// Either because it is already showing a fallback or is not mounted at all.
// We can use this to determine if it is desirable to trigger a fallback at
// the parent. If not, then we might need to trigger undesirable boundaries
// and/or suspend the commit to avoid hiding the parent content.

var InvisibleParentSuspenseContext = 1; // Shallow Flags:
// ForceSuspenseFallback can be used by SuspenseList to force newly added
// items into their fallback state during one of the render passes.

var ForceSuspenseFallback = 2;
var suspenseStackCursor = createCursor(DefaultSuspenseContext);
function hasSuspenseContext(parentContext, flag) {
  return (parentContext & flag) !== 0;
}
function setDefaultShallowSuspenseContext(parentContext) {
  return parentContext & SubtreeSuspenseContextMask;
}
function setShallowSuspenseContext(parentContext, shallowContext) {
  return parentContext & SubtreeSuspenseContextMask | shallowContext;
}
function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  return parentContext | subtreeContext;
}
function pushSuspenseContext(fiber, newContext) {
  push(suspenseStackCursor, newContext, fiber);
}
function popSuspenseContext(fiber) {
  pop(suspenseStackCursor, fiber);
}

function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  // If it was the primary children that just suspended, capture and render the
  // fallback. Otherwise, don't capture and bubble to the next boundary.
  var nextState = workInProgress.memoizedState;

  if (nextState !== null) {
    if (nextState.dehydrated !== null) {
      // A dehydrated boundary always captures.
      return true;
    }

    return false;
  }

  var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.

  if (props.fallback === undefined) {
    return false;
  } // Regular boundaries always capture.


  if (props.unstable_avoidThisFallback !== true) {
    return true;
  } // If it's a boundary we should avoid, then we prefer to bubble up to the
  // parent boundary if it is currently invisible.


  if (hasInvisibleParent) {
    return false;
  } // If the parent is not able to handle it, we must handle it.


  return true;
}
function findFirstSuspended(row) {
  var node = row;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        var dehydrated = state.dehydrated;

        if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
          return node;
        }
      }
    } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
    // keep track of whether it suspended or not.
    node.memoizedProps.revealOrder !== undefined) {
      var didSuspend = (node.effectTag & DidCapture) !== NoEffect;

      if (didSuspend) {
        return node;
      }
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === row) {
      return null;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === row) {
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }

  return null;
}

function createDeprecatedResponderListener(responder, props) {
  var eventResponderListener = {
    responder: responder,
    props: props
  };

  {
    Object.freeze(eventResponderListener);
  }

  return eventResponderListener;
}

var HasEffect =
/* */
1; // Represents the phase in which the effect (not the clean-up) fires.

var Layout =
/*    */
2;
var Passive$1 =
/*   */
4;

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
var didWarnAboutMismatchedHooksForComponent;

{
  didWarnAboutMismatchedHooksForComponent = new Set();
}

// These are set right before calling the component.
var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from
// the work-in-progress hook.

var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
// current hook list is the list that belongs to the current fiber. The
// work-in-progress hook list is a new list that will be added to the
// work-in-progress fiber.

var currentHook = null;
var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
// does not get reset if we do another render pass; only when we're completely
// finished evaluating this component. This is an optimization so we know
// whether we need to clear render phase updates after a throw.

var didScheduleRenderPhaseUpdate = false;
var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook

var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
// The list stores the order of hooks used during the initial render (mount).
// Subsequent renders (updates) reference this list.

var hookTypesDev = null;
var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
// the dependencies for Hooks that need them (e.g. useEffect or useMemo).
// When true, such Hooks will always be "remounted". Only used during hot reload.

var ignorePreviousDependencies = false;

function mountHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev === null) {
      hookTypesDev = [hookName];
    } else {
      hookTypesDev.push(hookName);
    }
  }
}

function updateHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev !== null) {
      hookTypesUpdateIndexDev++;

      if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
        warnOnHookMismatchInDev(hookName);
      }
    }
  }
}

function checkDepsAreArrayDev(deps) {
  {
    if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
      // Verify deps, but only on mount to avoid extra checks.
      // It's unlikely their type would change as usually you define them inline.
      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
    }
  }
}

function warnOnHookMismatchInDev(currentHookName) {
  {
    var componentName = getComponentName(currentlyRenderingFiber$1.type);

    if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
      didWarnAboutMismatchedHooksForComponent.add(componentName);

      if (hookTypesDev !== null) {
        var table = '';
        var secondColumnStart = 30;

        for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
          var oldHookName = hookTypesDev[i];
          var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
          var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
          // lol @ IE not supporting String#repeat

          while (row.length < secondColumnStart) {
            row += ' ';
          }

          row += newHookName + '\n';
          table += row;
        }

        error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + '   Previous render            Next render\n' + '   ------------------------------------------------------\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
      }
    }
  }
}

function throwInvalidHookError() {
  {
    {
      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
    }
  }
}

function areHookInputsEqual(nextDeps, prevDeps) {
  {
    if (ignorePreviousDependencies) {
      // Only true when this component is being hot reloaded.
      return false;
    }
  }

  if (prevDeps === null) {
    {
      error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
    }

    return false;
  }

  {
    // Don't bother comparing lengths in prod because these arrays should be
    // passed inline.
    if (nextDeps.length !== prevDeps.length) {
      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
    }
  }

  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
    if (objectIs(nextDeps[i], prevDeps[i])) {
      continue;
    }

    return false;
  }

  return true;
}

function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) {
  renderExpirationTime = nextRenderExpirationTime;
  currentlyRenderingFiber$1 = workInProgress;

  {
    hookTypesDev = current !== null ? current._debugHookTypes : null;
    hookTypesUpdateIndexDev = -1; // Used for hot reloading:

    ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  }

  workInProgress.memoizedState = null;
  workInProgress.updateQueue = null;
  workInProgress.expirationTime = NoWork; // The following should have already been reset
  // currentHook = null;
  // workInProgressHook = null;
  // didScheduleRenderPhaseUpdate = false;
  // TODO Warn if no hooks are used at all during mount, then some are used during update.
  // Currently we will identify the update render as a mount because memoizedState === null.
  // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  // so memoizedState would be null during updates and mounts.

  {
    if (current !== null && current.memoizedState !== null) {
      ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV;
    } else if (hookTypesDev !== null) {
      // This dispatcher handles an edge case where a component is updating,
      // but no stateful hooks have been used.
      // We want to match the production code behavior (which will use HooksDispatcherOnMount),
      // but with the extra DEV validation to ensure hooks ordering hasn't changed.
      // This dispatcher does that.
      ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV;
    } else {
      ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV;
    }
  }

  var children = Component(props, secondArg); // Check if there was a render phase update

  if (workInProgress.expirationTime === renderExpirationTime) {
    // Keep rendering in a loop for as long as render phase updates continue to
    // be scheduled. Use a counter to prevent infinite loops.
    var numberOfReRenders = 0;

    do {
      workInProgress.expirationTime = NoWork;

      if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
        {
          throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
        }
      }

      numberOfReRenders += 1;

      {
        // Even when hot reloading, allow dependencies to stabilize
        // after first render to prevent infinite render phase updates.
        ignorePreviousDependencies = false;
      } // Start over from the beginning of the list


      currentHook = null;
      workInProgressHook = null;
      workInProgress.updateQueue = null;

      {
        // Also validate hook order for cascading updates.
        hookTypesUpdateIndexDev = -1;
      }

      ReactCurrentDispatcher.current =  HooksDispatcherOnRerenderInDEV ;
      children = Component(props, secondArg);
    } while (workInProgress.expirationTime === renderExpirationTime);
  } // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrancy.


  ReactCurrentDispatcher.current = ContextOnlyDispatcher;

  {
    workInProgress._debugHookTypes = hookTypesDev;
  } // This check uses currentHook so that it works the same in DEV and prod bundles.
  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.


  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  renderExpirationTime = NoWork;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    currentHookNameInDev = null;
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1;
  }

  didScheduleRenderPhaseUpdate = false;

  if (!!didRenderTooFewHooks) {
    {
      throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
    }
  }

  return children;
}
function bailoutHooks(current, workInProgress, expirationTime) {
  workInProgress.updateQueue = current.updateQueue;
  workInProgress.effectTag &= ~(Passive | Update);

  if (current.expirationTime <= expirationTime) {
    current.expirationTime = NoWork;
  }
}
function resetHooksAfterThrow() {
  // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrancy.
  ReactCurrentDispatcher.current = ContextOnlyDispatcher;

  if (didScheduleRenderPhaseUpdate) {
    // There were render phase updates. These are only valid for this render
    // phase, which we are now aborting. Remove the updates from the queues so
    // they do not persist to the next render. Do not remove updates from hooks
    // that weren't processed.
    //
    // Only reset the updates from the queue if it has a clone. If it does
    // not have a clone, that means it wasn't processed, and the updates were
    // scheduled before we entered the render phase.
    var hook = currentlyRenderingFiber$1.memoizedState;

    while (hook !== null) {
      var queue = hook.queue;

      if (queue !== null) {
        queue.pending = null;
      }

      hook = hook.next;
    }
  }

  renderExpirationTime = NoWork;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1;
    currentHookNameInDev = null;
  }

  didScheduleRenderPhaseUpdate = false;
}

function mountWorkInProgressHook() {
  var hook = {
    memoizedState: null,
    baseState: null,
    baseQueue: null,
    queue: null,
    next: null
  };

  if (workInProgressHook === null) {
    // This is the first hook in the list
    currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  } else {
    // Append to the end of the list
    workInProgressHook = workInProgressHook.next = hook;
  }

  return workInProgressHook;
}

function updateWorkInProgressHook() {
  // This function is used both for updates and for re-renders triggered by a
  // render phase update. It assumes there is either a current hook we can
  // clone, or a work-in-progress hook from a previous render pass that we can
  // use as a base. When we reach the end of the base list, we must switch to
  // the dispatcher used for mounts.
  var nextCurrentHook;

  if (currentHook === null) {
    var current = currentlyRenderingFiber$1.alternate;

    if (current !== null) {
      nextCurrentHook = current.memoizedState;
    } else {
      nextCurrentHook = null;
    }
  } else {
    nextCurrentHook = currentHook.next;
  }

  var nextWorkInProgressHook;

  if (workInProgressHook === null) {
    nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  } else {
    nextWorkInProgressHook = workInProgressHook.next;
  }

  if (nextWorkInProgressHook !== null) {
    // There's already a work-in-progress. Reuse it.
    workInProgressHook = nextWorkInProgressHook;
    nextWorkInProgressHook = workInProgressHook.next;
    currentHook = nextCurrentHook;
  } else {
    // Clone from the current hook.
    if (!(nextCurrentHook !== null)) {
      {
        throw Error( "Rendered more hooks than during the previous render." );
      }
    }

    currentHook = nextCurrentHook;
    var newHook = {
      memoizedState: currentHook.memoizedState,
      baseState: currentHook.baseState,
      baseQueue: currentHook.baseQueue,
      queue: currentHook.queue,
      next: null
    };

    if (workInProgressHook === null) {
      // This is the first hook in the list.
      currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
    } else {
      // Append to the end of the list.
      workInProgressHook = workInProgressHook.next = newHook;
    }
  }

  return workInProgressHook;
}

function createFunctionComponentUpdateQueue() {
  return {
    lastEffect: null
  };
}

function basicStateReducer(state, action) {
  // $FlowFixMe: Flow doesn't like mixed types
  return typeof action === 'function' ? action(state) : action;
}

function mountReducer(reducer, initialArg, init) {
  var hook = mountWorkInProgressHook();
  var initialState;

  if (init !== undefined) {
    initialState = init(initialArg);
  } else {
    initialState = initialArg;
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = hook.queue = {
    pending: null,
    dispatch: null,
    lastRenderedReducer: reducer,
    lastRenderedState: initialState
  };
  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (!(queue !== null)) {
    {
      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
    }
  }

  queue.lastRenderedReducer = reducer;
  var current = currentHook; // The last rebase update that is NOT part of the base state.

  var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.

  var pendingQueue = queue.pending;

  if (pendingQueue !== null) {
    // We have new updates that haven't been processed yet.
    // We'll add them to the base queue.
    if (baseQueue !== null) {
      // Merge the pending queue and the base queue.
      var baseFirst = baseQueue.next;
      var pendingFirst = pendingQueue.next;
      baseQueue.next = pendingFirst;
      pendingQueue.next = baseFirst;
    }

    current.baseQueue = baseQueue = pendingQueue;
    queue.pending = null;
  }

  if (baseQueue !== null) {
    // We have a queue to process.
    var first = baseQueue.next;
    var newState = current.baseState;
    var newBaseState = null;
    var newBaseQueueFirst = null;
    var newBaseQueueLast = null;
    var update = first;

    do {
      var updateExpirationTime = update.expirationTime;

      if (updateExpirationTime < renderExpirationTime) {
        // Priority is insufficient. Skip this update. If this is the first
        // skipped update, the previous update/state is the new base
        // update/state.
        var clone = {
          expirationTime: update.expirationTime,
          suspenseConfig: update.suspenseConfig,
          action: update.action,
          eagerReducer: update.eagerReducer,
          eagerState: update.eagerState,
          next: null
        };

        if (newBaseQueueLast === null) {
          newBaseQueueFirst = newBaseQueueLast = clone;
          newBaseState = newState;
        } else {
          newBaseQueueLast = newBaseQueueLast.next = clone;
        } // Update the remaining priority in the queue.


        if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) {
          currentlyRenderingFiber$1.expirationTime = updateExpirationTime;
          markUnprocessedUpdateTime(updateExpirationTime);
        }
      } else {
        // This update does have sufficient priority.
        if (newBaseQueueLast !== null) {
          var _clone = {
            expirationTime: Sync,
            // This update is going to be committed so we never want uncommit it.
            suspenseConfig: update.suspenseConfig,
            action: update.action,
            eagerReducer: update.eagerReducer,
            eagerState: update.eagerState,
            next: null
          };
          newBaseQueueLast = newBaseQueueLast.next = _clone;
        } // Mark the event time of this update as relevant to this render pass.
        // TODO: This should ideally use the true event time of this update rather than
        // its priority which is a derived and not reverseable value.
        // TODO: We should skip this update if it was already committed but currently
        // we have no way of detecting the difference between a committed and suspended
        // update here.


        markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.

        if (update.eagerReducer === reducer) {
          // If this update was processed eagerly, and its reducer matches the
          // current reducer, we can use the eagerly computed state.
          newState = update.eagerState;
        } else {
          var action = update.action;
          newState = reducer(newState, action);
        }
      }

      update = update.next;
    } while (update !== null && update !== first);

    if (newBaseQueueLast === null) {
      newBaseState = newState;
    } else {
      newBaseQueueLast.next = newBaseQueueFirst;
    } // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState;
    hook.baseState = newBaseState;
    hook.baseQueue = newBaseQueueLast;
    queue.lastRenderedState = newState;
  }

  var dispatch = queue.dispatch;
  return [hook.memoizedState, dispatch];
}

function rerenderReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (!(queue !== null)) {
    {
      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
    }
  }

  queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  // work-in-progress hook.

  var dispatch = queue.dispatch;
  var lastRenderPhaseUpdate = queue.pending;
  var newState = hook.memoizedState;

  if (lastRenderPhaseUpdate !== null) {
    // The queue doesn't persist past this render pass.
    queue.pending = null;
    var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
    var update = firstRenderPhaseUpdate;

    do {
      // Process this render phase update. We don't have to check the
      // priority because it will always be the same as the current
      // render's.
      var action = update.action;
      newState = reducer(newState, action);
      update = update.next;
    } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
    // the base state unless the queue is empty.
    // TODO: Not sure if this is the desired semantics, but it's what we
    // do for gDSFP. I can't remember why.

    if (hook.baseQueue === null) {
      hook.baseState = newState;
    }

    queue.lastRenderedState = newState;
  }

  return [newState, dispatch];
}

function mountState(initialState) {
  var hook = mountWorkInProgressHook();

  if (typeof initialState === 'function') {
    // $FlowFixMe: Flow doesn't like mixed types
    initialState = initialState();
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = hook.queue = {
    pending: null,
    dispatch: null,
    lastRenderedReducer: basicStateReducer,
    lastRenderedState: initialState
  };
  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateState(initialState) {
  return updateReducer(basicStateReducer);
}

function rerenderState(initialState) {
  return rerenderReducer(basicStateReducer);
}

function pushEffect(tag, create, destroy, deps) {
  var effect = {
    tag: tag,
    create: create,
    destroy: destroy,
    deps: deps,
    // Circular
    next: null
  };
  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;

  if (componentUpdateQueue === null) {
    componentUpdateQueue = createFunctionComponentUpdateQueue();
    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
    componentUpdateQueue.lastEffect = effect.next = effect;
  } else {
    var lastEffect = componentUpdateQueue.lastEffect;

    if (lastEffect === null) {
      componentUpdateQueue.lastEffect = effect.next = effect;
    } else {
      var firstEffect = lastEffect.next;
      lastEffect.next = effect;
      effect.next = firstEffect;
      componentUpdateQueue.lastEffect = effect;
    }
  }

  return effect;
}

function mountRef(initialValue) {
  var hook = mountWorkInProgressHook();
  var ref = {
    current: initialValue
  };

  {
    Object.seal(ref);
  }

  hook.memoizedState = ref;
  return ref;
}

function updateRef(initialValue) {
  var hook = updateWorkInProgressHook();
  return hook.memoizedState;
}

function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
}

function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var destroy = undefined;

  if (currentHook !== null) {
    var prevEffect = currentHook.memoizedState;
    destroy = prevEffect.destroy;

    if (nextDeps !== null) {
      var prevDeps = prevEffect.deps;

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        pushEffect(hookEffectTag, create, destroy, nextDeps);
        return;
      }
    }
  }

  currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
  hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);
}

function mountEffect(create, deps) {
  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
    }
  }

  return mountEffectImpl(Update | Passive, Passive$1, create, deps);
}

function updateEffect(create, deps) {
  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
    }
  }

  return updateEffectImpl(Update | Passive, Passive$1, create, deps);
}

function mountLayoutEffect(create, deps) {
  return mountEffectImpl(Update, Layout, create, deps);
}

function updateLayoutEffect(create, deps) {
  return updateEffectImpl(Update, Layout, create, deps);
}

function imperativeHandleEffect(create, ref) {
  if (typeof ref === 'function') {
    var refCallback = ref;

    var _inst = create();

    refCallback(_inst);
    return function () {
      refCallback(null);
    };
  } else if (ref !== null && ref !== undefined) {
    var refObject = ref;

    {
      if (!refObject.hasOwnProperty('current')) {
        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
      }
    }

    var _inst2 = create();

    refObject.current = _inst2;
    return function () {
      refObject.current = null;
    };
  }
}

function mountImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function updateImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  // The react-debug-hooks package injects its own implementation
  // so that e.g. DevTools can display custom hook values.
}

var updateDebugValue = mountDebugValue;

function mountCallback(callback, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function updateCallback(callback, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function mountMemo(nextCreate, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function updateMemo(nextCreate, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    // Assume these are defined. If they're not, areHookInputsEqual will warn.
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function mountDeferredValue(value, config) {
  var _mountState = mountState(value),
      prevValue = _mountState[0],
      setValue = _mountState[1];

  mountEffect(function () {
    var previousConfig = ReactCurrentBatchConfig$1.suspense;
    ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.suspense = previousConfig;
    }
  }, [value, config]);
  return prevValue;
}

function updateDeferredValue(value, config) {
  var _updateState = updateState(),
      prevValue = _updateState[0],
      setValue = _updateState[1];

  updateEffect(function () {
    var previousConfig = ReactCurrentBatchConfig$1.suspense;
    ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.suspense = previousConfig;
    }
  }, [value, config]);
  return prevValue;
}

function rerenderDeferredValue(value, config) {
  var _rerenderState = rerenderState(),
      prevValue = _rerenderState[0],
      setValue = _rerenderState[1];

  updateEffect(function () {
    var previousConfig = ReactCurrentBatchConfig$1.suspense;
    ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.suspense = previousConfig;
    }
  }, [value, config]);
  return prevValue;
}

function startTransition(setPending, config, callback) {
  var priorityLevel = getCurrentPriorityLevel();
  runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
    setPending(true);
  });
  runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
    var previousConfig = ReactCurrentBatchConfig$1.suspense;
    ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;

    try {
      setPending(false);
      callback();
    } finally {
      ReactCurrentBatchConfig$1.suspense = previousConfig;
    }
  });
}

function mountTransition(config) {
  var _mountState2 = mountState(false),
      isPending = _mountState2[0],
      setPending = _mountState2[1];

  var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  return [start, isPending];
}

function updateTransition(config) {
  var _updateState2 = updateState(),
      isPending = _updateState2[0],
      setPending = _updateState2[1];

  var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  return [start, isPending];
}

function rerenderTransition(config) {
  var _rerenderState2 = rerenderState(),
      isPending = _rerenderState2[0],
      setPending = _rerenderState2[1];

  var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
  return [start, isPending];
}

function dispatchAction(fiber, queue, action) {
  {
    if (typeof arguments[3] === 'function') {
      error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
    }
  }

  var currentTime = requestCurrentTimeForUpdate();
  var suspenseConfig = requestCurrentSuspenseConfig();
  var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  var update = {
    expirationTime: expirationTime,
    suspenseConfig: suspenseConfig,
    action: action,
    eagerReducer: null,
    eagerState: null,
    next: null
  };

  {
    update.priority = getCurrentPriorityLevel();
  } // Append the update to the end of the list.


  var pending = queue.pending;

  if (pending === null) {
    // This is the first update. Create a circular list.
    update.next = update;
  } else {
    update.next = pending.next;
    pending.next = update;
  }

  queue.pending = update;
  var alternate = fiber.alternate;

  if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
    // This is a render phase update. Stash it in a lazily-created map of
    // queue -> linked list of updates. After this render pass, we'll restart
    // and apply the stashed updates on top of the work-in-progress hook.
    didScheduleRenderPhaseUpdate = true;
    update.expirationTime = renderExpirationTime;
    currentlyRenderingFiber$1.expirationTime = renderExpirationTime;
  } else {
    if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
      // The queue is currently empty, which means we can eagerly compute the
      // next state before entering the render phase. If the new state is the
      // same as the current state, we may be able to bail out entirely.
      var lastRenderedReducer = queue.lastRenderedReducer;

      if (lastRenderedReducer !== null) {
        var prevDispatcher;

        {
          prevDispatcher = ReactCurrentDispatcher.current;
          ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
        }

        try {
          var currentState = queue.lastRenderedState;
          var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
          // it, on the update object. If the reducer hasn't changed by the
          // time we enter the render phase, then the eager state can be used
          // without calling the reducer again.

          update.eagerReducer = lastRenderedReducer;
          update.eagerState = eagerState;

          if (objectIs(eagerState, currentState)) {
            // Fast path. We can bail out without scheduling React to re-render.
            // It's still possible that we'll need to rebase this update later,
            // if the component re-renders for a different reason and by that
            // time the reducer has changed.
            return;
          }
        } catch (error) {// Suppress the error. It will throw again in the render phase.
        } finally {
          {
            ReactCurrentDispatcher.current = prevDispatcher;
          }
        }
      }
    }

    {
      // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
      if ('undefined' !== typeof jest) {
        warnIfNotScopedWithMatchingAct(fiber);
        warnIfNotCurrentlyActingUpdatesInDev(fiber);
      }
    }

    scheduleWork(fiber, expirationTime);
  }
}

var ContextOnlyDispatcher = {
  readContext: readContext,
  useCallback: throwInvalidHookError,
  useContext: throwInvalidHookError,
  useEffect: throwInvalidHookError,
  useImperativeHandle: throwInvalidHookError,
  useLayoutEffect: throwInvalidHookError,
  useMemo: throwInvalidHookError,
  useReducer: throwInvalidHookError,
  useRef: throwInvalidHookError,
  useState: throwInvalidHookError,
  useDebugValue: throwInvalidHookError,
  useResponder: throwInvalidHookError,
  useDeferredValue: throwInvalidHookError,
  useTransition: throwInvalidHookError
};
var HooksDispatcherOnMountInDEV = null;
var HooksDispatcherOnMountWithHookTypesInDEV = null;
var HooksDispatcherOnUpdateInDEV = null;
var HooksDispatcherOnRerenderInDEV = null;
var InvalidNestedHooksDispatcherOnMountInDEV = null;
var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
var InvalidNestedHooksDispatcherOnRerenderInDEV = null;

{
  var warnInvalidContextAccess = function () {
    error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  };

  var warnInvalidHookAccess = function () {
    error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');
  };

  HooksDispatcherOnMountInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      mountHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      mountHookTypesDev();
      return mountDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      mountHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      mountHookTypesDev();
      return mountDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      mountHookTypesDev();
      return mountTransition(config);
    }
  };
  HooksDispatcherOnMountWithHookTypesInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return mountDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      updateHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return mountDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return mountTransition(config);
    }
  };
  HooksDispatcherOnUpdateInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      updateHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return updateDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return updateTransition(config);
    }
  };
  HooksDispatcherOnRerenderInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      updateHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return rerenderDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return rerenderTransition(config);
    }
  };
  InvalidNestedHooksDispatcherOnMountInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountTransition(config);
    }
  };
  InvalidNestedHooksDispatcherOnUpdateInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateTransition(config);
    }
  };
  InvalidNestedHooksDispatcherOnRerenderInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher.current;
      ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useResponder: function (responder, props) {
      currentHookNameInDev = 'useResponder';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return createDeprecatedResponderListener(responder, props);
    },
    useDeferredValue: function (value, config) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderDeferredValue(value, config);
    },
    useTransition: function (config) {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderTransition(config);
    }
  };
}

var now$1 = Scheduler.unstable_now;
var commitTime = 0;
var profilerStartTime = -1;

function getCommitTime() {
  return commitTime;
}

function recordCommitTime() {

  commitTime = now$1();
}

function startProfilerTimer(fiber) {

  profilerStartTime = now$1();

  if (fiber.actualStartTime < 0) {
    fiber.actualStartTime = now$1();
  }
}

function stopProfilerTimerIfRunning(fiber) {

  profilerStartTime = -1;
}

function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {

  if (profilerStartTime >= 0) {
    var elapsedTime = now$1() - profilerStartTime;
    fiber.actualDuration += elapsedTime;

    if (overrideBaseTime) {
      fiber.selfBaseDuration = elapsedTime;
    }

    profilerStartTime = -1;
  }
}

// This may have been an insertion or a hydration.

var hydrationParentFiber = null;
var nextHydratableInstance = null;
var isHydrating = false;

function enterHydrationState(fiber) {

  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 = fiber.effectTag & ~Hydrating | 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);
              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);
              break;

            case HostText:
              var _text = fiber.pendingProps;
              didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
              break;

            case SuspenseComponent:
              didNotFindHydratableSuspenseInstance(parentType, parentProps);
              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);

        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;
      }

    case SuspenseComponent:
      {

        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) {

  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) {

  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 skipPastDehydratedSuspenseInstance(fiber) {

  var suspenseState = fiber.memoizedState;
  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;

  if (!suspenseInstance) {
    {
      throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
}

function popToNextHostParent(fiber) {
  var parent = fiber.return;

  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
    parent = parent.return;
  }

  hydrationParentFiber = parent;
}

function popHydrationState(fiber) {

  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);

  if (fiber.tag === SuspenseComponent) {
    nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  } else {
    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  }

  return true;
}

function resetHydrationState() {

  hydrationParentFiber = null;
  nextHydratableInstance = null;
  isHydrating = false;
}

var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
var didReceiveUpdate = false;
var didWarnAboutBadClass;
var didWarnAboutModulePatternComponent;
var didWarnAboutContextTypeOnFunctionComponent;
var didWarnAboutGetDerivedStateOnFunctionComponent;
var didWarnAboutFunctionRefs;
var didWarnAboutReassigningProps;
var didWarnAboutRevealOrder;
var didWarnAboutTailOptions;

{
  didWarnAboutBadClass = {};
  didWarnAboutModulePatternComponent = {};
  didWarnAboutContextTypeOnFunctionComponent = {};
  didWarnAboutGetDerivedStateOnFunctionComponent = {};
  didWarnAboutFunctionRefs = {};
  didWarnAboutReassigningProps = false;
  didWarnAboutRevealOrder = {};
  didWarnAboutTailOptions = {};
}

function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) {
  if (current === 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.child, nextChildren, renderExpirationTime);
  }
}

function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) {
  // This function is fork of reconcileChildren. It's used in cases where we
  // want to reconcile without matching against the existing set. This has the
  // effect of all current children being unmounted; even if the type and key
  // are the same, the old child is unmounted and a new child is created.
  //
  // To do this, we're going to go through the reconcile algorithm twice. In
  // the first pass, we schedule a deletion for all the current children by
  // passing null.
  workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we
  // pass null in place of where we usually pass the current child set. This has
  // the effect of remounting all children regardless of whether their
  // identities match.

  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
}

function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens after the first render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component), getCurrentFiberStackInDev);
      }
    }
  }

  var render = Component.render;
  var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent

  var nextChildren;
  prepareToReadContext(workInProgress, renderExpirationTime);

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);

    if ( workInProgress.mode & StrictMode) {
      // Only double-render components with Hooks
      if (workInProgress.memoizedState !== null) {
        nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
      }
    }

    setIsRendering(false);
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderExpirationTime);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  if (current === null) {
    var type = Component.type;

    if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
    Component.defaultProps === undefined) {
      var resolvedType = type;

      {
        resolvedType = resolveFunctionForHotReloading(type);
      } // If this is a plain function component without default props,
      // and with only the default shallow comparison, we upgrade it
      // to a SimpleMemoComponent to allow fast path updates.


      workInProgress.tag = SimpleMemoComponent;
      workInProgress.type = resolvedType;

      {
        validateFunctionComponentInDev(workInProgress, type);
      }

      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
    }

    {
      var innerPropTypes = type.propTypes;

      if (innerPropTypes) {
        // Inner memo component props aren't currently validated in createElement.
        // We could move it there, but we'd still need this for lazy code path.
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(type), getCurrentFiberStackInDev);
      }
    }

    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
    child.ref = workInProgress.ref;
    child.return = workInProgress;
    workInProgress.child = child;
    return child;
  }

  {
    var _type = Component.type;
    var _innerPropTypes = _type.propTypes;

    if (_innerPropTypes) {
      // Inner memo component props aren't currently validated in createElement.
      // We could move it there, but we'd still need this for lazy code path.
      checkPropTypes(_innerPropTypes, nextProps, // Resolved props
      'prop', getComponentName(_type), getCurrentFiberStackInDev);
    }
  }

  var currentChild = current.child; // This is always exactly one child

  if (updateExpirationTime < renderExpirationTime) {
    // This will be the props with resolved defaultProps,
    // unlike current.memoizedProps which will be the unresolved ones.
    var prevProps = currentChild.memoizedProps; // Default to shallow comparison

    var compare = Component.compare;
    compare = compare !== null ? compare : shallowEqual;

    if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
    }
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;
  var newChild = createWorkInProgress(currentChild, nextProps);
  newChild.ref = workInProgress.ref;
  newChild.return = workInProgress;
  workInProgress.child = newChild;
  return newChild;
}

function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens when the inner render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var outerMemoType = workInProgress.elementType;

      if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
        // We warn when you define propTypes on lazy()
        // so let's just skip over it to find memo() outer wrapper.
        // Inner props for memo are validated later.
        outerMemoType = refineResolvedLazyComponent(outerMemoType);
      }

      var outerPropTypes = outerMemoType && outerMemoType.propTypes;

      if (outerPropTypes) {
        checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
        'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
      } // Inner propTypes will be validated in the function component path.

    }
  }

  if (current !== null) {
    var prevProps = current.memoizedProps;

    if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
     workInProgress.type === current.type )) {
      didReceiveUpdate = false;

      if (updateExpirationTime < renderExpirationTime) {
        // The pending update priority was cleared at the beginning of
        // beginWork. We're about to bail out, but there might be additional
        // updates at a lower priority. Usually, the priority level of the
        // remaining updates is accumlated during the evaluation of the
        // component (i.e. when processing the update queue). But since since
        // we're bailing out early *without* evaluating the component, we need
        // to account for it here, too. Reset to the value of the current fiber.
        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
        // because a MemoComponent fiber does not have hooks or an update queue;
        // rather, it wraps around an inner component, which may or may not
        // contains hooks.
        // TODO: Move the reset at in beginWork out of the common path so that
        // this is no longer necessary.
        workInProgress.expirationTime = current.expirationTime;
        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
      }
    }
  }

  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);
}

function updateFragment(current, workInProgress, renderExpirationTime) {
  var nextChildren = workInProgress.pendingProps;
  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateMode(current, workInProgress, renderExpirationTime) {
  var nextChildren = workInProgress.pendingProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateProfiler(current, workInProgress, renderExpirationTime) {
  {
    workInProgress.effectTag |= Update;
  }

  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function markRef(current, workInProgress) {
  var ref = workInProgress.ref;

  if (current === null && ref !== null || current !== null && current.ref !== ref) {
    // Schedule a Ref effect
    workInProgress.effectTag |= Ref;
  }
}

function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component), getCurrentFiberStackInDev);
      }
    }
  }

  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  var nextChildren;
  prepareToReadContext(workInProgress, renderExpirationTime);

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);

    if ( workInProgress.mode & StrictMode) {
      // Only double-render components with Hooks
      if (workInProgress.memoizedState !== null) {
        nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
      }
    }

    setIsRendering(false);
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderExpirationTime);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component), getCurrentFiberStackInDev);
      }
    }
  } // 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;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderExpirationTime);
  var instance = workInProgress.stateNode;
  var shouldUpdate;

  if (instance === null) {
    if (current !== null) {
      // A class component without an instance only mounts if it suspended
      // inside a non-concurrent tree, in an inconsistent state. We want to
      // treat it like a new mount, even though an empty version of it already
      // committed. Disconnect the alternate pointers.
      current.alternate = null;
      workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

      workInProgress.effectTag |= Placement;
    } // In the initial pass we might need to construct the instance.


    constructClassInstance(workInProgress, Component, nextProps);
    mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
    shouldUpdate = true;
  } else if (current === null) {
    // In a resume, we'll already have an instance we can reuse.
    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  } else {
    shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);
  }

  var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);

  {
    var inst = workInProgress.stateNode;

    if (inst.props !== nextProps) {
      if (!didWarnAboutReassigningProps) {
        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component');
      }

      didWarnAboutReassigningProps = true;
    }
  }

  return nextUnitOfWork;
}

function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  // Refs should update even if shouldComponentUpdate returns false
  markRef(current, 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, workInProgress, renderExpirationTime);
  }

  var instance = workInProgress.stateNode; // Rerender

  ReactCurrentOwner$1.current = workInProgress;
  var nextChildren;

  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
    // If we captured an error, but getDerivedStateFromError 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;

    {
      stopProfilerTimerIfRunning();
    }
  } else {
    {
      setIsRendering(true);
      nextChildren = instance.render();

      if ( workInProgress.mode & StrictMode) {
        instance.render();
      }

      setIsRendering(false);
    }
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;

  if (current !== null && didCaptureError) {
    // If we're recovering from an error, reconcile without reusing any of
    // the existing children. Conceptually, the normal children and the children
    // that are shown on error are two different sets, so we shouldn't reuse
    // normal children even if their identities match.
    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  } // Memoize state using the values we just used to render.
  // TODO: Restructure so we never read values from the instance.


  workInProgress.memoizedState = instance.state; // 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, workInProgress, renderExpirationTime) {
  pushHostRootContext(workInProgress);
  var updateQueue = workInProgress.updateQueue;

  if (!(current !== null && updateQueue !== null)) {
    {
      throw Error( "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." );
    }
  }

  var nextProps = workInProgress.pendingProps;
  var prevState = workInProgress.memoizedState;
  var prevChildren = prevState !== null ? prevState.element : null;
  cloneUpdateQueue(current, workInProgress);
  processUpdateQueue(workInProgress, 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, workInProgress, renderExpirationTime);
  }

  var root = workInProgress.stateNode;

  if (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.
    var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
    workInProgress.child = child;
    var node = child;

    while (node) {
      // Mark each child as hydrating. This is a fast path to know whether this
      // tree is part of a hydrating tree. This is used to determine if a child
      // node has fully mounted yet, and for scheduling event replaying.
      // Conceptually this is similar to Placement in that a new subtree is
      // inserted into the React tree here. It just happens to not need DOM
      // mutations because it already exists.
      node.effectTag = node.effectTag & ~Placement | Hydrating;
      node = node.sibling;
    }
  } else {
    // Otherwise reset hydration state in case we aborted and resumed another
    // root.
    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
    resetHydrationState();
  }

  return workInProgress.child;
}

function updateHostComponent(current, workInProgress, renderExpirationTime) {
  pushHostContext(workInProgress);

  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  }

  var type = workInProgress.type;
  var nextProps = workInProgress.pendingProps;
  var prevProps = current !== null ? current.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 has 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, workInProgress); // Check the host config to see if the children are offscreen/hidden.

  if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
    {
      markSpawnedWork(Never);
    } // Schedule this fiber to re-render at offscreen priority. Then bailout.


    workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
    return null;
  }

  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  return workInProgress.child;
}

function updateHostText(current, workInProgress) {
  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  } // Nothing to do here. This is terminal. We'll do the completion step
  // immediately after.


  return null;
}

function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  if (_current !== null) {
    // A lazy component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.effectTag |= Placement;
  }

  var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.
  // Cancel and resume right after we know the tag.

  cancelWorkTimer(workInProgress);
  var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type.

  workInProgress.type = Component;
  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  startWorkTimer(workInProgress);
  var resolvedProps = resolveDefaultProps(Component, props);
  var child;

  switch (resolvedTag) {
    case FunctionComponent:
      {
        {
          validateFunctionComponentInDev(workInProgress, Component);
          workInProgress.type = Component = resolveFunctionForHotReloading(Component);
        }

        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        return child;
      }

    case ClassComponent:
      {
        {
          workInProgress.type = Component = resolveClassForHotReloading(Component);
        }

        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        return child;
      }

    case ForwardRef:
      {
        {
          workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
        }

        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
        return child;
      }

    case MemoComponent:
      {
        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = Component.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
              'prop', getComponentName(Component), getCurrentFiberStackInDev);
            }
          }
        }

        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
        updateExpirationTime, renderExpirationTime);
        return child;
      }
  }

  var hint = '';

  {
    if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
      hint = ' Did you wrap a component in React.lazy() more than once?';
    }
  } // This message intentionally doesn't mention ForwardRef or MemoComponent
  // because the fact that it's a separate type of work is an
  // implementation detail.


  {
    {
      throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
    }
  }
}

function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  if (_current !== null) {
    // An incomplete component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.effectTag |= Placement;
  } // Promote the fiber to a class and try rendering again.


  workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  // 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;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderExpirationTime);
  constructClassInstance(workInProgress, Component, nextProps);
  mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
}

function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  if (_current !== null) {
    // An indeterminate component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.effectTag |= Placement;
  }

  var props = workInProgress.pendingProps;
  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  prepareToReadContext(workInProgress, renderExpirationTime);
  var value;

  {
    if (Component.prototype && typeof Component.prototype.render === 'function') {
      var componentName = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutBadClass[componentName]) {
        error("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);
    }

    setIsRendering(true);
    ReactCurrentOwner$1.current = workInProgress;
    value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
    setIsRendering(false);
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;

  if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
    {
      var _componentName = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutModulePatternComponent[_componentName]) {
        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);

        didWarnAboutModulePatternComponent[_componentName] = true;
      }
    } // Proceed under the assumption that this is a class instance


    workInProgress.tag = ClassComponent; // Throw out any hooks that were used.

    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null; // 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;
    initializeUpdateQueue(workInProgress);
    var getDerivedStateFromProps = Component.getDerivedStateFromProps;

    if (typeof getDerivedStateFromProps === 'function') {
      applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
    }

    adoptClassInstance(workInProgress, value);
    mountClassInstance(workInProgress, Component, props, renderExpirationTime);
    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  } else {
    // Proceed under the assumption that this is a function component
    workInProgress.tag = FunctionComponent;

    {

      if ( workInProgress.mode & StrictMode) {
        // Only double-render components with Hooks
        if (workInProgress.memoizedState !== null) {
          value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
        }
      }
    }

    reconcileChildren(null, workInProgress, value, renderExpirationTime);

    {
      validateFunctionComponentInDev(workInProgress, Component);
    }

    return workInProgress.child;
  }
}

function validateFunctionComponentInDev(workInProgress, Component) {
  {
    if (Component) {
      if (Component.childContextTypes) {
        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
      }
    }

    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 (!didWarnAboutFunctionRefs[warningKey]) {
        didWarnAboutFunctionRefs[warningKey] = true;

        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
      }
    }

    if (typeof Component.getDerivedStateFromProps === 'function') {
      var _componentName2 = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
        error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);

        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
      }
    }

    if (typeof Component.contextType === 'object' && Component.contextType !== null) {
      var _componentName3 = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
        error('%s: Function components do not support contextType.', _componentName3);

        didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
      }
    }
  }
}

var SUSPENDED_MARKER = {
  dehydrated: null,
  retryTime: NoWork
};

function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
  // If the context is telling us that we should show a fallback, and we're not
  // already showing content, then we should show the fallback instead.
  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
}

function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
  var mode = workInProgress.mode;
  var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.

  {
    if (shouldSuspend(workInProgress)) {
      workInProgress.effectTag |= DidCapture;
    }
  }

  var suspenseContext = suspenseStackCursor.current;
  var nextDidTimeout = false;
  var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect;

  if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
    // Something in this boundary's subtree already suspended. Switch to
    // rendering the fallback children.
    nextDidTimeout = true;
    workInProgress.effectTag &= ~DidCapture;
  } else {
    // Attempting the main content
    if (current === null || current.memoizedState !== null) {
      // This is a new mount or this boundary is already showing a fallback state.
      // Mark this subtree context as having at least one invisible parent that could
      // handle the fallback state.
      // Boundaries without fallbacks or should be avoided are not considered since
      // they cannot handle preferred fallback states.
      if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
        suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
      }
    }
  }

  suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to
  // showing the fallback children in place of the "primary" children.
  // However, we don't want to delete the primary children because then their
  // state will be lost (both the React state and the host state, e.g.
  // uncontrolled form inputs). Instead we keep them mounted and hide them.
  // Both the fallback children AND the primary children are rendered at the
  // same time. Once the primary children are un-suspended, we can delete
  // the fallback children — don't need to preserve their state.
  //
  // The two sets of children are siblings in the host environment, but
  // semantically, for purposes of reconciliation, they are two separate sets.
  // So we store them using two fragment fibers.
  //
  // However, we want to avoid allocating extra fibers for every placeholder.
  // They're only necessary when the children time out, because that's the
  // only time when both sets are mounted.
  //
  // So, the extra fragment fibers are only used if the children time out.
  // Otherwise, we render the primary children directly. This requires some
  // custom reconciliation logic to preserve the state of the primary
  // children. It's essentially a very basic form of re-parenting.

  if (current === null) {
    // If we're currently hydrating, try to hydrate this boundary.
    // But only if this has a fallback.
    if (nextProps.fallback !== undefined) {
      tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
    } // This is the initial mount. This branch is pretty simple because there's
    // no previous state that needs to be preserved.


    if (nextDidTimeout) {
      // Mount separate fragments for primary and fallback children.
      var nextFallbackChildren = nextProps.fallback;
      var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
      primaryChildFragment.return = workInProgress;

      if ((workInProgress.mode & BlockingMode) === NoMode) {
        // Outside of blocking mode, we commit the effects from the
        // partially completed, timed-out tree, too.
        var progressedState = workInProgress.memoizedState;
        var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
        primaryChildFragment.child = progressedPrimaryChild;
        var progressedChild = progressedPrimaryChild;

        while (progressedChild !== null) {
          progressedChild.return = primaryChildFragment;
          progressedChild = progressedChild.sibling;
        }
      }

      var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
      fallbackChildFragment.return = workInProgress;
      primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the
      // fallback children.

      workInProgress.memoizedState = SUSPENDED_MARKER;
      workInProgress.child = primaryChildFragment;
      return fallbackChildFragment;
    } else {
      // Mount the primary children without an intermediate fragment fiber.
      var nextPrimaryChildren = nextProps.children;
      workInProgress.memoizedState = null;
      return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
    }
  } else {
    // This is an update. This branch is more complicated because we need to
    // ensure the state of the primary children is preserved.
    var prevState = current.memoizedState;

    if (prevState !== null) {
      // wrapped in a fragment fiber.


      var currentPrimaryChildFragment = current.child;
      var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;

      if (nextDidTimeout) {
        // Still timed out. Reuse the current primary children by cloning
        // its fragment. We're going to skip over these entirely.
        var _nextFallbackChildren2 = nextProps.fallback;

        var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);

        _primaryChildFragment2.return = workInProgress;

        if ((workInProgress.mode & BlockingMode) === NoMode) {
          // Outside of blocking mode, we commit the effects from the
          // partially completed, timed-out tree, too.
          var _progressedState = workInProgress.memoizedState;

          var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;

          if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
            _primaryChildFragment2.child = _progressedPrimaryChild;
            var _progressedChild2 = _progressedPrimaryChild;

            while (_progressedChild2 !== null) {
              _progressedChild2.return = _primaryChildFragment2;
              _progressedChild2 = _progressedChild2.sibling;
            }
          }
        } // Because primaryChildFragment is a new fiber that we're inserting as the
        // parent of a new tree, we need to set its treeBaseDuration.


        if ( workInProgress.mode & ProfileMode) {
          // treeBaseDuration is the sum of all the child tree base durations.
          var _treeBaseDuration = 0;
          var _hiddenChild = _primaryChildFragment2.child;

          while (_hiddenChild !== null) {
            _treeBaseDuration += _hiddenChild.treeBaseDuration;
            _hiddenChild = _hiddenChild.sibling;
          }

          _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
        } // Clone the fallback child fragment, too. These we'll continue
        // working on.


        var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);

        _fallbackChildFragment2.return = workInProgress;
        _primaryChildFragment2.sibling = _fallbackChildFragment2;
        _primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
        // fallback children.

        workInProgress.memoizedState = SUSPENDED_MARKER;
        workInProgress.child = _primaryChildFragment2;
        return _fallbackChildFragment2;
      } else {
        // No longer suspended. Switch back to showing the primary children,
        // and remove the intermediate fragment fiber.
        var _nextPrimaryChildren = nextProps.children;
        var currentPrimaryChild = currentPrimaryChildFragment.child;
        var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback
        // children. Wait until the complete phase, after we've confirmed the
        // fallback is no longer needed.
        // TODO: Would it be better to store the fallback fragment on
        // the stateNode?
        // Continue rendering the children, like we normally do.

        workInProgress.memoizedState = null;
        return workInProgress.child = primaryChild;
      }
    } else {
      // The current tree has not already timed out. That means the primary
      // children are not wrapped in a fragment fiber.
      var _currentPrimaryChild = current.child;

      if (nextDidTimeout) {
        // Timed out. Wrap the children in a fragment fiber to keep them
        // separate from the fallback children.
        var _nextFallbackChildren3 = nextProps.fallback;

        var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't
        // going to render this fragment.
        null, mode, NoWork, null);

        _primaryChildFragment3.return = workInProgress;
        _primaryChildFragment3.child = _currentPrimaryChild;

        if (_currentPrimaryChild !== null) {
          _currentPrimaryChild.return = _primaryChildFragment3;
        } // Even though we're creating a new fiber, there are no new children,
        // because we're reusing an already mounted tree. So we don't need to
        // schedule a placement.
        // primaryChildFragment.effectTag |= Placement;


        if ((workInProgress.mode & BlockingMode) === NoMode) {
          // Outside of blocking mode, we commit the effects from the
          // partially completed, timed-out tree, too.
          var _progressedState2 = workInProgress.memoizedState;

          var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;

          _primaryChildFragment3.child = _progressedPrimaryChild2;
          var _progressedChild3 = _progressedPrimaryChild2;

          while (_progressedChild3 !== null) {
            _progressedChild3.return = _primaryChildFragment3;
            _progressedChild3 = _progressedChild3.sibling;
          }
        } // Because primaryChildFragment is a new fiber that we're inserting as the
        // parent of a new tree, we need to set its treeBaseDuration.


        if ( workInProgress.mode & ProfileMode) {
          // treeBaseDuration is the sum of all the child tree base durations.
          var _treeBaseDuration2 = 0;
          var _hiddenChild2 = _primaryChildFragment3.child;

          while (_hiddenChild2 !== null) {
            _treeBaseDuration2 += _hiddenChild2.treeBaseDuration;
            _hiddenChild2 = _hiddenChild2.sibling;
          }

          _primaryChildFragment3.treeBaseDuration = _treeBaseDuration2;
        } // Create a fragment from the fallback children, too.


        var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);

        _fallbackChildFragment3.return = workInProgress;
        _primaryChildFragment3.sibling = _fallbackChildFragment3;
        _fallbackChildFragment3.effectTag |= Placement;
        _primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
        // fallback children.

        workInProgress.memoizedState = SUSPENDED_MARKER;
        workInProgress.child = _primaryChildFragment3;
        return _fallbackChildFragment3;
      } else {
        // Still haven't timed out. Continue rendering the children, like we
        // normally do.
        workInProgress.memoizedState = null;
        var _nextPrimaryChildren2 = nextProps.children;
        return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
      }
    }
  }
}

function scheduleWorkOnFiber(fiber, renderExpirationTime) {
  if (fiber.expirationTime < renderExpirationTime) {
    fiber.expirationTime = renderExpirationTime;
  }

  var alternate = fiber.alternate;

  if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
    alternate.expirationTime = renderExpirationTime;
  }

  scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
}

function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  // Mark any Suspense boundaries with fallbacks as having work to do.
  // If they were previously forced into fallbacks, they may now be able
  // to unblock.
  var node = firstChild;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        scheduleWorkOnFiber(node, renderExpirationTime);
      }
    } else if (node.tag === SuspenseListComponent) {
      // If the tail is hidden there might not be an Suspense boundaries
      // to schedule work on. In this case we have to schedule it on the
      // list itself.
      // We don't have to traverse to the children of the list since
      // the list will propagate the change when it rerenders.
      scheduleWorkOnFiber(node, renderExpirationTime);
    } 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;
  }
}

function findLastContentRow(firstChild) {
  // This is going to find the last row among these children that is already
  // showing content on the screen, as opposed to being in fallback state or
  // new. If a row has multiple Suspense boundaries, any of them being in the
  // fallback state, counts as the whole row being in a fallback state.
  // Note that the "rows" will be workInProgress, but any nested children
  // will still be current since we haven't rendered them yet. The mounted
  // order may not be the same as the new order. We use the new order.
  var row = firstChild;
  var lastContentRow = null;

  while (row !== null) {
    var currentRow = row.alternate; // New rows can't be content rows.

    if (currentRow !== null && findFirstSuspended(currentRow) === null) {
      lastContentRow = row;
    }

    row = row.sibling;
  }

  return lastContentRow;
}

function validateRevealOrder(revealOrder) {
  {
    if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
      didWarnAboutRevealOrder[revealOrder] = true;

      if (typeof revealOrder === 'string') {
        switch (revealOrder.toLowerCase()) {
          case 'together':
          case 'forwards':
          case 'backwards':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          case 'forward':
          case 'backward':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          default:
            error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);

            break;
        }
      } else {
        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
      }
    }
  }
}

function validateTailOptions(tailMode, revealOrder) {
  {
    if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
      if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
        didWarnAboutTailOptions[tailMode] = true;

        error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
      } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
        didWarnAboutTailOptions[tailMode] = true;

        error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
      }
    }
  }
}

function validateSuspenseListNestedChild(childSlot, index) {
  {
    var isArray = Array.isArray(childSlot);
    var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';

    if (isArray || isIterable) {
      var type = isArray ? 'array' : 'iterable';

      error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);

      return false;
    }
  }

  return true;
}

function validateSuspenseListChildren(children, revealOrder) {
  {
    if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
      if (Array.isArray(children)) {
        for (var i = 0; i < children.length; i++) {
          if (!validateSuspenseListNestedChild(children[i], i)) {
            return;
          }
        }
      } else {
        var iteratorFn = getIteratorFn(children);

        if (typeof iteratorFn === 'function') {
          var childrenIterator = iteratorFn.call(children);

          if (childrenIterator) {
            var step = childrenIterator.next();
            var _i = 0;

            for (; !step.done; step = childrenIterator.next()) {
              if (!validateSuspenseListNestedChild(step.value, _i)) {
                return;
              }

              _i++;
            }
          }
        } else {
          error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
        }
      }
    }
  }
}

function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
  var renderState = workInProgress.memoizedState;

  if (renderState === null) {
    workInProgress.memoizedState = {
      isBackwards: isBackwards,
      rendering: null,
      renderingStartTime: 0,
      last: lastContentRow,
      tail: tail,
      tailExpiration: 0,
      tailMode: tailMode,
      lastEffect: lastEffectBeforeRendering
    };
  } else {
    // We can reuse the existing object from previous renders.
    renderState.isBackwards = isBackwards;
    renderState.rendering = null;
    renderState.renderingStartTime = 0;
    renderState.last = lastContentRow;
    renderState.tail = tail;
    renderState.tailExpiration = 0;
    renderState.tailMode = tailMode;
    renderState.lastEffect = lastEffectBeforeRendering;
  }
} // This can end up rendering this component multiple passes.
// The first pass splits the children fibers into two sets. A head and tail.
// We first render the head. If anything is in fallback state, we do another
// pass through beginWork to rerender all children (including the tail) with
// the force suspend context. If the first render didn't have anything in
// in fallback state. Then we render each row in the tail one-by-one.
// That happens in the completeWork phase without going back to beginWork.


function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) {
  var nextProps = workInProgress.pendingProps;
  var revealOrder = nextProps.revealOrder;
  var tailMode = nextProps.tail;
  var newChildren = nextProps.children;
  validateRevealOrder(revealOrder);
  validateTailOptions(tailMode, revealOrder);
  validateSuspenseListChildren(newChildren, revealOrder);
  reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  var suspenseContext = suspenseStackCursor.current;
  var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);

  if (shouldForceFallback) {
    suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
    workInProgress.effectTag |= DidCapture;
  } else {
    var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect;

    if (didSuspendBefore) {
      // If we previously forced a fallback, we need to schedule work
      // on any nested boundaries to let them know to try to render
      // again. This is the same as context updating.
      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
    }

    suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  }

  pushSuspenseContext(workInProgress, suspenseContext);

  if ((workInProgress.mode & BlockingMode) === NoMode) {
    // Outside of blocking mode, SuspenseList doesn't work so we just
    // use make it a noop by treating it as the default revealOrder.
    workInProgress.memoizedState = null;
  } else {
    switch (revealOrder) {
      case 'forwards':
        {
          var lastContentRow = findLastContentRow(workInProgress.child);
          var tail;

          if (lastContentRow === null) {
            // The whole list is part of the tail.
            // TODO: We could fast path by just rendering the tail now.
            tail = workInProgress.child;
            workInProgress.child = null;
          } else {
            // Disconnect the tail rows after the content row.
            // We're going to render them separately later.
            tail = lastContentRow.sibling;
            lastContentRow.sibling = null;
          }

          initSuspenseListRenderState(workInProgress, false, // isBackwards
          tail, lastContentRow, tailMode, workInProgress.lastEffect);
          break;
        }

      case 'backwards':
        {
          // We're going to find the first row that has existing content.
          // At the same time we're going to reverse the list of everything
          // we pass in the meantime. That's going to be our tail in reverse
          // order.
          var _tail = null;
          var row = workInProgress.child;
          workInProgress.child = null;

          while (row !== null) {
            var currentRow = row.alternate; // New rows can't be content rows.

            if (currentRow !== null && findFirstSuspended(currentRow) === null) {
              // This is the beginning of the main content.
              workInProgress.child = row;
              break;
            }

            var nextRow = row.sibling;
            row.sibling = _tail;
            _tail = row;
            row = nextRow;
          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.


          initSuspenseListRenderState(workInProgress, true, // isBackwards
          _tail, null, // last
          tailMode, workInProgress.lastEffect);
          break;
        }

      case 'together':
        {
          initSuspenseListRenderState(workInProgress, false, // isBackwards
          null, // tail
          null, // last
          undefined, workInProgress.lastEffect);
          break;
        }

      default:
        {
          // The default reveal order is the same as not having
          // a boundary.
          workInProgress.memoizedState = null;
        }
    }
  }

  return workInProgress.child;
}

function updatePortalComponent(current, workInProgress, renderExpirationTime) {
  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  var nextChildren = workInProgress.pendingProps;

  if (current === 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);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
  }

  return workInProgress.child;
}

function updateContextProvider(current, workInProgress, renderExpirationTime) {
  var providerType = workInProgress.type;
  var context = providerType._context;
  var newProps = workInProgress.pendingProps;
  var oldProps = workInProgress.memoizedProps;
  var newValue = newProps.value;

  {
    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, 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, workInProgress, newChildren, renderExpirationTime);
  return workInProgress.child;
}

var hasWarnedAboutUsingContextAsConsumer = false;

function updateContextConsumer(current, workInProgress, renderExpirationTime) {
  var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  // DEV mode, we create a separate object for Context.Consumer that acts
  // like a proxy to Context. This proxy object adds unnecessary code in PROD
  // so we use the old behaviour (Context.Consumer references Context) to
  // reduce size and overhead. The separate object references context via
  // a property called "_context", which also gives us the ability to check
  // in DEV mode if this property exists or not and warn if it does not.

  {
    if (context._context === undefined) {
      // This may be because it's a Context (rather than a Consumer).
      // Or it may be because it's older React where they're the same thing.
      // We only want to warn if we're sure it's a new React.
      if (context !== context.Consumer) {
        if (!hasWarnedAboutUsingContextAsConsumer) {
          hasWarnedAboutUsingContextAsConsumer = true;

          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
        }
      }
    } else {
      context = context._context;
    }
  }

  var newProps = workInProgress.pendingProps;
  var render = newProps.children;

  {
    if (typeof render !== 'function') {
      error('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.');
    }
  }

  prepareToReadContext(workInProgress, renderExpirationTime);
  var newValue = readContext(context, newProps.unstable_observedBits);
  var newChildren;

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    newChildren = render(newValue);
    setIsRendering(false);
  } // React DevTools reads this flag.


  workInProgress.effectTag |= PerformedWork;
  reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
  return workInProgress.child;
}

function markWorkInProgressReceivedUpdate() {
  didReceiveUpdate = true;
}

function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) {
  cancelWorkTimer(workInProgress);

  if (current !== null) {
    // Reuse previous dependencies
    workInProgress.dependencies = current.dependencies;
  }

  {
    // Don't update "base" render times for bailouts.
    stopProfilerTimerIfRunning();
  }

  var updateExpirationTime = workInProgress.expirationTime;

  if (updateExpirationTime !== NoWork) {
    markUnprocessedUpdateTime(updateExpirationTime);
  } // Check if the children have any pending work.


  var childExpirationTime = workInProgress.childExpirationTime;

  if (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, workInProgress);
    return workInProgress.child;
  }
}

function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  {
    var returnFiber = oldWorkInProgress.return;

    if (returnFiber === null) {
      throw new Error('Cannot swap the root fiber.');
    } // Disconnect from the old current.
    // It will get deleted.


    current.alternate = null;
    oldWorkInProgress.alternate = null; // Connect to the new tree.

    newWorkInProgress.index = oldWorkInProgress.index;
    newWorkInProgress.sibling = oldWorkInProgress.sibling;
    newWorkInProgress.return = oldWorkInProgress.return;
    newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.

    if (oldWorkInProgress === returnFiber.child) {
      returnFiber.child = newWorkInProgress;
    } else {
      var prevSibling = returnFiber.child;

      if (prevSibling === null) {
        throw new Error('Expected parent to have a child.');
      }

      while (prevSibling.sibling !== oldWorkInProgress) {
        prevSibling = prevSibling.sibling;

        if (prevSibling === null) {
          throw new Error('Expected to find the previous sibling.');
        }
      }

      prevSibling.sibling = newWorkInProgress;
    } // Delete the old fiber and place the new one.
    // Since the old fiber is disconnected, we have to schedule it manually.


    var last = returnFiber.lastEffect;

    if (last !== null) {
      last.nextEffect = current;
      returnFiber.lastEffect = current;
    } else {
      returnFiber.firstEffect = returnFiber.lastEffect = current;
    }

    current.nextEffect = null;
    current.effectTag = Deletion;
    newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber.

    return newWorkInProgress;
  }
}

function beginWork(current, workInProgress, renderExpirationTime) {
  var updateExpirationTime = workInProgress.expirationTime;

  {
    if (workInProgress._debugNeedsRemount && current !== null) {
      // This will restart the begin phase with a new fiber.
      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
    }
  }

  if (current !== null) {
    var oldProps = current.memoizedProps;
    var newProps = workInProgress.pendingProps;

    if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
     workInProgress.type !== current.type )) {
      // If props or context changed, mark the fiber as having performed work.
      // This may be unset if the props are determined to be equal later (memo).
      didReceiveUpdate = true;
    } else if (updateExpirationTime < renderExpirationTime) {
      didReceiveUpdate = false; // 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);

          if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
            {
              markSpawnedWork(Never);
            } // Schedule this fiber to re-render at offscreen priority. Then bailout.


            workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
            return null;
          }

          break;

        case ClassComponent:
          {
            var Component = workInProgress.type;

            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:
          {
            // Profiler should only call onRender when one of its descendants actually rendered.
            var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;

            if (hasChildWork) {
              workInProgress.effectTag |= Update;
            }
          }

          break;

        case SuspenseComponent:
          {
            var state = workInProgress.memoizedState;

            if (state !== null) {
              // whether to retry the primary children, or to skip over it and
              // go straight to the fallback. Check the priority of the primary
              // child fragment.


              var primaryChildFragment = workInProgress.child;
              var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;

              if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
                // The primary children have pending work. Use the normal path
                // to attempt to render the primary children again.
                return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
              } else {
                pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
                // priority. Bailout.

                var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);

                if (child !== null) {
                  // The fallback children have pending work. Skip over the
                  // primary children and work on the fallback.
                  return child.sibling;
                } else {
                  return null;
                }
              }
            } else {
              pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
            }

            break;
          }

        case SuspenseListComponent:
          {
            var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect;

            var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;

            if (didSuspendBefore) {
              if (_hasChildWork) {
                // If something was in fallback state last time, and we have all the
                // same children then we're still in progressive loading state.
                // Something might get unblocked by state updates or retries in the
                // tree which will affect the tail. So we need to use the normal
                // path to compute the correct tail.
                return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
              } // If none of the children had any work, that means that none of
              // them got retried so they'll still be blocked in the same way
              // as before. We can fast bail out.


              workInProgress.effectTag |= DidCapture;
            } // If nothing suspended before and we're rendering the same children,
            // then the tail doesn't matter. Anything new that suspends will work
            // in the "together" mode, so we can continue from the state we had.


            var renderState = workInProgress.memoizedState;

            if (renderState !== null) {
              // Reset to the "together" mode in case we've started a different
              // update in the past but didn't complete it.
              renderState.rendering = null;
              renderState.tail = null;
            }

            pushSuspenseContext(workInProgress, suspenseStackCursor.current);

            if (_hasChildWork) {
              break;
            } else {
              // If none of the children had any work, that means that none of
              // them got retried so they'll still be blocked in the same way
              // as before. We can fast bail out.
              return null;
            }
          }
      }

      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
    } else {
      // An update was scheduled on this fiber, but there are no new props
      // nor legacy context. Set this to false. If an update queue or context
      // consumer produces a changed value, it will set this to true. Otherwise,
      // the component will assume the children have not changed and bail out.
      didReceiveUpdate = false;
    }
  } else {
    didReceiveUpdate = false;
  } // Before entering the begin phase, clear pending update priority.
  // TODO: This assumes that we're about to evaluate the component and process
  // the update queue. However, there's an exception: SimpleMemoComponent
  // sometimes bails out later in the begin phase. This indicates that we should
  // move this assignment out of the common path and into each branch.


  workInProgress.expirationTime = NoWork;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
      {
        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);
      }

    case LazyComponent:
      {
        var elementType = workInProgress.elementType;
        return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
      }

    case FunctionComponent:
      {
        var _Component = workInProgress.type;
        var unresolvedProps = workInProgress.pendingProps;
        var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
        return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);
      }

    case ClassComponent:
      {
        var _Component2 = workInProgress.type;
        var _unresolvedProps = workInProgress.pendingProps;

        var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);

        return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
      }

    case HostRoot:
      return updateHostRoot(current, workInProgress, renderExpirationTime);

    case HostComponent:
      return updateHostComponent(current, workInProgress, renderExpirationTime);

    case HostText:
      return updateHostText(current, workInProgress);

    case SuspenseComponent:
      return updateSuspenseComponent(current, workInProgress, renderExpirationTime);

    case HostPortal:
      return updatePortalComponent(current, workInProgress, renderExpirationTime);

    case ForwardRef:
      {
        var type = workInProgress.type;
        var _unresolvedProps2 = workInProgress.pendingProps;

        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);

        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);
      }

    case Fragment:
      return updateFragment(current, workInProgress, renderExpirationTime);

    case Mode:
      return updateMode(current, workInProgress, renderExpirationTime);

    case Profiler:
      return updateProfiler(current, workInProgress, renderExpirationTime);

    case ContextProvider:
      return updateContextProvider(current, workInProgress, renderExpirationTime);

    case ContextConsumer:
      return updateContextConsumer(current, workInProgress, renderExpirationTime);

    case MemoComponent:
      {
        var _type2 = workInProgress.type;
        var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.

        var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);

        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = _type2.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
              'prop', getComponentName(_type2), getCurrentFiberStackInDev);
            }
          }
        }

        _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
      }

    case SimpleMemoComponent:
      {
        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
      }

    case IncompleteClassComponent:
      {
        var _Component3 = workInProgress.type;
        var _unresolvedProps4 = workInProgress.pendingProps;

        var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);

        return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
      }

    case SuspenseListComponent:
      {
        return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
      }
  }

  {
    {
      throw Error( "Unknown unit of work tag (" + workInProgress.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;
}

var appendAllChildren;
var updateHostContainer;
var updateHostComponent$1;
var updateHostText$1;

{
  // Mutation mode
  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
    // 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) ; 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) {// 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);
    }
  };
}

function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  switch (renderState.tailMode) {
    case 'hidden':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var tailNode = renderState.tail;
        var lastTailNode = null;

        while (tailNode !== null) {
          if (tailNode.alternate !== null) {
            lastTailNode = tailNode;
          }

          tailNode = tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (lastTailNode === null) {
          // All remaining items in the tail are insertions.
          renderState.tail = null;
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          lastTailNode.sibling = null;
        }

        break;
      }

    case 'collapsed':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var _tailNode = renderState.tail;
        var _lastTailNode = null;

        while (_tailNode !== null) {
          if (_tailNode.alternate !== null) {
            _lastTailNode = _tailNode;
          }

          _tailNode = _tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (_lastTailNode === null) {
          // All remaining items in the tail are insertions.
          if (!hasRenderedATailFallback && renderState.tail !== null) {
            // We suspended during the head. We want to show at least one
            // row at the tail. So we'll keep on and cut off the rest.
            renderState.tail.sibling = null;
          } else {
            renderState.tail = null;
          }
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          _lastTailNode.sibling = null;
        }

        break;
      }
  }
}

function completeWork(current, workInProgress, renderExpirationTime) {
  var newProps = workInProgress.pendingProps;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
    case LazyComponent:
    case SimpleMemoComponent:
    case FunctionComponent:
    case ForwardRef:
    case Fragment:
    case Mode:
    case Profiler:
    case ContextConsumer:
    case MemoComponent:
      return null;

    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }

        return null;
      }

    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.
          var wasHydrated = popHydrationState(workInProgress);

          if (wasHydrated) {
            // If we hydrated, then we'll need to schedule an update for
            // the commit side-effects on the root.
            markUpdate(workInProgress);
          }
        }

        updateHostContainer(workInProgress);
        return null;
      }

    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) {
            if (!(workInProgress.stateNode !== null)) {
              {
                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
              }
            } // This can happen when we abort work.


            return null;
          }

          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 whether we want to add them 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 need 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, false, false); // This needs to be set before we mount Flare event listeners

            workInProgress.stateNode = instance;
            // (eg DOM renderer supports auto-focus for certain elements).
            // Make sure such renderers get scheduled for later work.


            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
              markUpdate(workInProgress);
            }
          }

          if (workInProgress.ref !== null) {
            // If there is a ref on a host node we need to schedule a callback
            markRef$1(workInProgress);
          }
        }

        return null;
      }

    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') {
            if (!(workInProgress.stateNode !== null)) {
              {
                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
              }
            } // This can happen when we abort work.

          }

          var _rootContainerInstance = getRootHostContainer();

          var _currentHostContext = getHostContext();

          var _wasHydrated2 = popHydrationState(workInProgress);

          if (_wasHydrated2) {
            if (prepareToHydrateHostTextInstance(workInProgress)) {
              markUpdate(workInProgress);
            }
          } else {
            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
          }
        }

        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);
        var nextState = workInProgress.memoizedState;

        if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
          // Something suspended. Re-render with the fallback children.
          workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list.

          return workInProgress;
        }

        var nextDidTimeout = nextState !== null;
        var prevDidTimeout = false;

        if (current === null) {
          if (workInProgress.memoizedProps.fallback !== undefined) {
            popHydrationState(workInProgress);
          }
        } else {
          var prevState = current.memoizedState;
          prevDidTimeout = prevState !== null;

          if (!nextDidTimeout && prevState !== null) {
            // We just switched from the fallback to the normal children.
            // Delete the fallback.
            // TODO: Would it be better to store the fallback fragment on
            // the stateNode during the begin phase?
            var currentFallbackChild = current.child.sibling;

            if (currentFallbackChild !== null) {
              // Deletions go at the beginning of the return fiber's effect list
              var first = workInProgress.firstEffect;

              if (first !== null) {
                workInProgress.firstEffect = currentFallbackChild;
                currentFallbackChild.nextEffect = first;
              } else {
                workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
                currentFallbackChild.nextEffect = null;
              }

              currentFallbackChild.effectTag = Deletion;
            }
          }
        }

        if (nextDidTimeout && !prevDidTimeout) {
          // If this subtreee is running in blocking mode we can suspend,
          // otherwise we won't suspend.
          // TODO: This will still suspend a synchronous tree if anything
          // in the concurrent tree already suspended during this render.
          // This is a known bug.
          if ((workInProgress.mode & BlockingMode) !== NoMode) {
            // TODO: Move this back to throwException because this is too late
            // if this is a large tree which is common for initial loads. We
            // don't know if we should restart a render or not until we get
            // this marker, and this is too late.
            // If this render already had a ping or lower pri updates,
            // and this is the first time we know we're going to suspend we
            // should be able to immediately restart from within throwException.
            var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;

            if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
              // If this was in an invisible tree or a new render, then showing
              // this boundary is ok.
              renderDidSuspend();
            } else {
              // Otherwise, we're going to have to hide content so we should
              // suspend for longer if possible.
              renderDidSuspendDelayIfPossible();
            }
          }
        }

        {
          // TODO: Only schedule updates if these values are non equal, i.e. it changed.
          if (nextDidTimeout || prevDidTimeout) {
            // If this boundary just timed out, schedule an effect to attach a
            // retry listener to the promise. This flag is also used to hide the
            // primary children. In mutation mode, we also need the flag to
            // *unhide* children that were previously hidden, so check if this
            // is currently timed out, too.
            workInProgress.effectTag |= Update;
          }
        }

        return null;
      }

    case HostPortal:
      popHostContainer(workInProgress);
      updateHostContainer(workInProgress);
      return null;

    case ContextProvider:
      // Pop provider fiber
      popProvider(workInProgress);
      return null;

    case IncompleteClassComponent:
      {
        // Same as class component case. I put it down here so that the tags are
        // sequential to ensure this switch is compiled to a jump table.
        var _Component = workInProgress.type;

        if (isContextProvider(_Component)) {
          popContext(workInProgress);
        }

        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress);
        var renderState = workInProgress.memoizedState;

        if (renderState === null) {
          // We're running in the default, "independent" mode.
          // We don't do anything in this mode.
          return null;
        }

        var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
        var renderedTail = renderState.rendering;

        if (renderedTail === null) {
          // We just rendered the head.
          if (!didSuspendAlready) {
            // This is the first pass. We need to figure out if anything is still
            // suspended in the rendered set.
            // If new content unsuspended, but there's still some content that
            // didn't. Then we need to do a second pass that forces everything
            // to keep showing their fallbacks.
            // We might be suspended if something in this render pass suspended, or
            // something in the previous committed pass suspended. Otherwise,
            // there's no chance so we can skip the expensive call to
            // findFirstSuspended.
            var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);

            if (!cannotBeSuspended) {
              var row = workInProgress.child;

              while (row !== null) {
                var suspended = findFirstSuspended(row);

                if (suspended !== null) {
                  didSuspendAlready = true;
                  workInProgress.effectTag |= DidCapture;
                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
                  // part of the second pass. In that case nothing will subscribe to
                  // its thennables. Instead, we'll transfer its thennables to the
                  // SuspenseList so that it can retry if they resolve.
                  // There might be multiple of these in the list but since we're
                  // going to wait for all of them anyway, it doesn't really matter
                  // which ones gets to ping. In theory we could get clever and keep
                  // track of how many dependencies remain but it gets tricky because
                  // in the meantime, we can add/remove/change items and dependencies.
                  // We might bail out of the loop before finding any but that
                  // doesn't matter since that means that the other boundaries that
                  // we did find already has their listeners attached.

                  var newThennables = suspended.updateQueue;

                  if (newThennables !== null) {
                    workInProgress.updateQueue = newThennables;
                    workInProgress.effectTag |= Update;
                  } // Rerender the whole list, but this time, we'll force fallbacks
                  // to stay in place.
                  // Reset the effect list before doing the second pass since that's now invalid.


                  if (renderState.lastEffect === null) {
                    workInProgress.firstEffect = null;
                  }

                  workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.

                  resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately
                  // rerender the children.

                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
                  return workInProgress.child;
                }

                row = row.sibling;
              }
            }
          } else {
            cutOffTailIfNeeded(renderState, false);
          } // Next we're going to render the tail.

        } else {
          // Append the rendered row to the child list.
          if (!didSuspendAlready) {
            var _suspended = findFirstSuspended(renderedTail);

            if (_suspended !== null) {
              workInProgress.effectTag |= DidCapture;
              didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
              // get lost if this row ends up dropped during a second pass.

              var _newThennables = _suspended.updateQueue;

              if (_newThennables !== null) {
                workInProgress.updateQueue = _newThennables;
                workInProgress.effectTag |= Update;
              }

              cutOffTailIfNeeded(renderState, true); // This might have been modified.

              if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) {
                // We need to delete the row we just rendered.
                // Reset the effect list to what it was before we rendered this
                // child. The nested children have already appended themselves.
                var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.

                if (lastEffect !== null) {
                  lastEffect.nextEffect = null;
                } // We're done.


                return null;
              }
            } else if ( // The time it took to render last row is greater than time until
            // the expiration.
            now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) {
              // We have now passed our CPU deadline and we'll just give up further
              // attempts to render the main content and only render fallbacks.
              // The assumption is that this is usually faster.
              workInProgress.effectTag |= DidCapture;
              didSuspendAlready = true;
              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
              // to get it started back up to attempt the next item. If we can show
              // them, then they really have the same priority as this render.
              // So we'll pick it back up the very next render pass once we've had
              // an opportunity to yield for paint.

              var nextPriority = renderExpirationTime - 1;
              workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;

              {
                markSpawnedWork(nextPriority);
              }
            }
          }

          if (renderState.isBackwards) {
            // The effect list of the backwards tail will have been added
            // to the end. This breaks the guarantee that life-cycles fire in
            // sibling order but that isn't a strong guarantee promised by React.
            // Especially since these might also just pop in during future commits.
            // Append to the beginning of the list.
            renderedTail.sibling = workInProgress.child;
            workInProgress.child = renderedTail;
          } else {
            var previousSibling = renderState.last;

            if (previousSibling !== null) {
              previousSibling.sibling = renderedTail;
            } else {
              workInProgress.child = renderedTail;
            }

            renderState.last = renderedTail;
          }
        }

        if (renderState.tail !== null) {
          // We still have tail rows to render.
          if (renderState.tailExpiration === 0) {
            // Heuristic for how long we're willing to spend rendering rows
            // until we just give up and show what we have so far.
            var TAIL_EXPIRATION_TIMEOUT_MS = 500;
            renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this
            // is a per component value. It should really be since the start
            // of the total render or last commit. Consider using something like
            // globalMostRecentFallbackTime. That doesn't account for being
            // suspended for part of the time or when it's a new render.
            // It should probably use a global start time value instead.
          } // Pop a row.


          var next = renderState.tail;
          renderState.rendering = next;
          renderState.tail = next.sibling;
          renderState.lastEffect = workInProgress.lastEffect;
          renderState.renderingStartTime = now();
          next.sibling = null; // Restore the context.
          // TODO: We can probably just avoid popping it instead and only
          // setting it the first time we go from not suspended to suspended.

          var suspenseContext = suspenseStackCursor.current;

          if (didSuspendAlready) {
            suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
          } else {
            suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
          }

          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.

          return next;
        }

        return null;
      }
  }

  {
    {
      throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

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 HostRoot:
      {
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        var _effectTag = workInProgress.effectTag;

        if (!((_effectTag & DidCapture) === NoEffect)) {
          {
            throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
          }
        }

        workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
        return workInProgress;
      }

    case HostComponent:
      {
        // TODO: popHydrationState
        popHostContext(workInProgress);
        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);

        var _effectTag2 = workInProgress.effectTag;

        if (_effectTag2 & ShouldCapture) {
          workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.

          return workInProgress;
        }

        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
        // caught by a nested boundary. If not, it should bubble through.

        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 HostRoot:
      {
        popHostContainer(interruptedWork);
        popTopLevelContextObject(interruptedWork);
        break;
      }

    case HostComponent:
      {
        popHostContext(interruptedWork);
        break;
      }

    case HostPortal:
      popHostContainer(interruptedWork);
      break;

    case SuspenseComponent:
      popSuspenseContext(interruptedWork);
      break;

    case SuspenseListComponent:
      popSuspenseContext(interruptedWork);
      break;

    case ContextProvider:
      popProvider(interruptedWork);
      break;
  }
}

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)
  };
}

function logCapturedError(capturedError) {

  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); // Don't transform to our wrapper
      // 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; // 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); // Don't transform to our wrapper
  }
}

var didWarnAboutUndefinedSnapshotBeforeUpdate = null;

{
  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
}

var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : 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, instance) {
  startPhaseTimer(current, 'componentWillUnmount');
  instance.props = current.memoizedProps;
  instance.state = current.memoizedState;
  instance.componentWillUnmount();
  stopPhaseTimer();
}; // Capture errors so they don't interrupt unmounting.


function safelyCallComponentWillUnmount(current, instance) {
  {
    invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);

    if (hasCaughtError()) {
      var unmountError = clearCaughtError();
      captureCommitPhaseError(current, unmountError);
    }
  }
}

function safelyDetachRef(current) {
  var ref = current.ref;

  if (ref !== null) {
    if (typeof ref === 'function') {
      {
        invokeGuardedCallback(null, ref, null, null);

        if (hasCaughtError()) {
          var refError = clearCaughtError();
          captureCommitPhaseError(current, refError);
        }
      }
    } else {
      ref.current = null;
    }
  }
}

function safelyCallDestroy(current, destroy) {
  {
    invokeGuardedCallback(null, destroy, null);

    if (hasCaughtError()) {
      var error = clearCaughtError();
      captureCommitPhaseError(current, error);
    }
  }
}

function commitBeforeMutationLifeCycles(current, finishedWork) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
    case Block:
      {
        return;
      }

    case ClassComponent:
      {
        if (finishedWork.effectTag & Snapshot) {
          if (current !== null) {
            var prevProps = current.memoizedProps;
            var prevState = current.memoizedState;
            startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
            var instance = finishedWork.stateNode; // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);

            {
              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;

              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
                didWarnSet.add(finishedWork.type);

                error('%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:
    case IncompleteClassComponent:
      // Nothing to do for these component types
      return;
  }

  {
    {
      throw Error( "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 commitHookEffectListUnmount(tag, finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & tag) === tag) {
        // Unmount
        var destroy = effect.destroy;
        effect.destroy = undefined;

        if (destroy !== undefined) {
          destroy();
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitHookEffectListMount(tag, finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & tag) === tag) {
        // Mount
        var create = effect.create;
        effect.destroy = create();

        {
          var destroy = effect.destroy;

          if (destroy !== undefined && typeof destroy !== 'function') {
            var addendum = void 0;

            if (destroy === null) {
              addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
            } else if (typeof destroy.then === 'function') {
              addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + '  async function fetchData() {\n' + '    // You can await here\n' + '    const response = await MyAPI.getData(someId);\n' + '    // ...\n' + '  }\n' + '  fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';
            } else {
              addendum = ' You returned: ' + destroy;
            }

            error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
          }
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitPassiveHookEffects(finishedWork) {
  if ((finishedWork.effectTag & Passive) !== NoEffect) {
    switch (finishedWork.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
      case Block:
        {
          // TODO (#17945) We should call all passive destroy functions (for all fibers)
          // before calling any create functions. The current approach only serializes
          // these for a single fiber.
          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
          commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
          break;
        }
    }
  }
}

function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
    case Block:
      {
        // At this point layout effects have already been destroyed (during mutation phase).
        // This is done to prevent sibling component effects from interfering with each other,
        // e.g. a destroy function in one component should never override a ref set
        // by a create function in another component during the same commit.
        commitHookEffectListMount(Layout | HasEffect, finishedWork);

        return;
      }

    case ClassComponent:
      {
        var instance = finishedWork.stateNode;

        if (finishedWork.effectTag & Update) {
          if (current === null) {
            startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            instance.componentDidMount();
            stopPhaseTimer();
          } else {
            var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
            var prevState = current.memoizedState;
            startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
            stopPhaseTimer();
          }
        }

        var updateQueue = finishedWork.updateQueue;

        if (updateQueue !== null) {
          {
            if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
              if (instance.props !== finishedWork.memoizedProps) {
                error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
              }

              if (instance.state !== finishedWork.memoizedState) {
                error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
              }
            }
          } // We could update instance props and state here,
          // but instead we rely on them being set during last render.
          // TODO: revisit this when we implement resuming.


          commitUpdateQueue(finishedWork, updateQueue, instance);
        }

        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:
                _instance = finishedWork.child.stateNode;
                break;
            }
          }

          commitUpdateQueue(finishedWork, _updateQueue, _instance);
        }

        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 === null && finishedWork.effectTag & Update) {
          var type = finishedWork.type;
          var props = finishedWork.memoizedProps;
          commitMount(_instance2, type, props);
        }

        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:
      {
        {
          var onRender = finishedWork.memoizedProps.onRender;

          if (typeof onRender === 'function') {
            {
              onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
            }
          }
        }

        return;
      }

    case SuspenseComponent:
      {
        commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
        return;
      }

    case SuspenseListComponent:
    case IncompleteClassComponent:
    case FundamentalComponent:
    case ScopeComponent:
      return;
  }

  {
    {
      throw Error( "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 hideOrUnhideAllChildren(finishedWork, isHidden) {
  {
    // We only have the top Fiber that was inserted but we need to recurse down its
    // children to find all the terminal nodes.
    var node = finishedWork;

    while (true) {
      if (node.tag === HostComponent) {
        var instance = node.stateNode;

        if (isHidden) {
          hideInstance(instance);
        } else {
          unhideInstance(node.stateNode, node.memoizedProps);
        }
      } else if (node.tag === HostText) {
        var _instance3 = node.stateNode;

        if (isHidden) {
          hideTextInstance(_instance3);
        } else {
          unhideTextInstance(_instance3, node.memoizedProps);
        }
      } else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) {
        // Found a nested Suspense component that timed out. Skip over the
        // primary child fragment, which should remain hidden.
        var fallbackChildFragment = node.child.sibling;
        fallbackChildFragment.return = node;
        node = fallbackChildFragment;
        continue;
      } 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 commitAttachRef(finishedWork) {
  var ref = finishedWork.ref;

  if (ref !== null) {
    var instance = finishedWork.stateNode;
    var instanceToUse;

    switch (finishedWork.tag) {
      case HostComponent:
        instanceToUse = getPublicInstance(instance);
        break;

      default:
        instanceToUse = instance;
    } // Moved outside to ensure DCE works with this flag

    if (typeof ref === 'function') {
      ref(instanceToUse);
    } else {
      {
        if (!ref.hasOwnProperty('current')) {
          error('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) {
  var currentRef = current.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(finishedRoot, current, renderPriorityLevel) {
  onCommitUnmount(current);

  switch (current.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
    case Block:
      {
        var updateQueue = current.updateQueue;

        if (updateQueue !== null) {
          var lastEffect = updateQueue.lastEffect;

          if (lastEffect !== null) {
            var firstEffect = lastEffect.next;

            {
              // When the owner fiber is deleted, the destroy function of a passive
              // effect hook is called during the synchronous commit phase. This is
              // a concession to implementation complexity. Calling it in the
              // passive effect phase (like they usually are, when dependencies
              // change during an update) would require either traversing the
              // children of the deleted fiber again, or including unmount effects
              // as part of the fiber effect list.
              //
              // Because this is during the sync commit phase, we need to change
              // the priority.
              //
              // TODO: Reconsider this implementation trade off.
              var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
              runWithPriority$1(priorityLevel, function () {
                var effect = firstEffect;

                do {
                  var _destroy = effect.destroy;

                  if (_destroy !== undefined) {
                    safelyCallDestroy(current, _destroy);
                  }

                  effect = effect.next;
                } while (effect !== firstEffect);
              });
            }
          }
        }

        return;
      }

    case ClassComponent:
      {
        safelyDetachRef(current);
        var instance = current.stateNode;

        if (typeof instance.componentWillUnmount === 'function') {
          safelyCallComponentWillUnmount(current, instance);
        }

        return;
      }

    case HostComponent:
      {

        safelyDetachRef(current);
        return;
      }

    case HostPortal:
      {
        // TODO: this is recursive.
        // We are also not using this parent because
        // the portal will get pushed immediately.
        {
          unmountHostComponents(finishedRoot, current, renderPriorityLevel);
        }

        return;
      }

    case FundamentalComponent:
      {

        return;
      }

    case DehydratedFragment:
      {

        return;
      }

    case ScopeComponent:
      {

        return;
      }
  }
}

function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
  // 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
  // we do an inner loop while we're still inside the host node.
  var node = root;

  while (true) {
    commitUnmount(finishedRoot, node, renderPriorityLevel); // 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.
     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) {
  var alternate = current.alternate; // 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.return = null;
  current.child = null;
  current.memoizedState = null;
  current.updateQueue = null;
  current.dependencies = null;
  current.alternate = null;
  current.firstEffect = null;
  current.lastEffect = null;
  current.pendingProps = null;
  current.memoizedProps = null;
  current.stateNode = null;

  if (alternate !== null) {
    detachFiber(alternate);
  }
}

function getHostParentFiber(fiber) {
  var parent = fiber.return;

  while (parent !== null) {
    if (isHostParent(parent)) {
      return parent;
    }

    parent = parent.return;
  }

  {
    {
      throw Error( "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.
  // TODO: Find a more efficient way to do this.
  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 && node.tag !== DehydratedFragment) {
      // 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) {


  var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.

  var parent;
  var isContainer;
  var parentStateNode = parentFiber.stateNode;

  switch (parentFiber.tag) {
    case HostComponent:
      parent = parentStateNode;
      isContainer = false;
      break;

    case HostRoot:
      parent = parentStateNode.containerInfo;
      isContainer = true;
      break;

    case HostPortal:
      parent = parentStateNode.containerInfo;
      isContainer = true;
      break;

    case FundamentalComponent:

    // eslint-disable-next-line-no-fallthrough

    default:
      {
        {
          throw Error( "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 to recurse down its
  // children to find all the terminal nodes.

  if (isContainer) {
    insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
  } else {
    insertOrAppendPlacementNode(finishedWork, before, parent);
  }
}

function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost || enableFundamentalAPI ) {
    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

    if (before) {
      insertInContainerBefore(parent, stateNode, before);
    } else {
      appendChildToContainer(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNodeIntoContainer(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
}

function insertOrAppendPlacementNode(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost || enableFundamentalAPI ) {
    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

    if (before) {
      insertBefore(parent, stateNode, before);
    } else {
      appendChild(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNode(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNode(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
}

function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
  // We only have the top Fiber that was deleted but we need to recurse down its
  // children to find all the terminal nodes.
  var node = current; // 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;
  var currentParentIsContainer;

  while (true) {
    if (!currentParentIsValid) {
      var parent = node.return;

      findParent: while (true) {
        if (!(parent !== null)) {
          {
            throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
          }
        }

        var parentStateNode = parent.stateNode;

        switch (parent.tag) {
          case HostComponent:
            currentParent = parentStateNode;
            currentParentIsContainer = false;
            break findParent;

          case HostRoot:
            currentParent = parentStateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;

          case HostPortal:
            currentParent = parentStateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;

        }

        parent = parent.return;
      }

      currentParentIsValid = true;
    }

    if (node.tag === HostComponent || node.tag === HostText) {
      commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // 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) {
      if (node.child !== null) {
        // 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.

        node.child.return = node;
        node = node.child;
        continue;
      }
    } else {
      commitUnmount(finishedRoot, node, renderPriorityLevel); // 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) {
      return;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === current) {
        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(finishedRoot, current, renderPriorityLevel) {
  {
    // Recursively delete all host nodes from the parent.
    // Detach refs and call componentWillUnmount() on the whole subtree.
    unmountHostComponents(finishedRoot, current, renderPriorityLevel);
  }

  detachFiber(current);
}

function commitWork(current, finishedWork) {

  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
    case Block:
      {
        // Layout effects are destroyed during the mutation phase so that all
        // destroy functions for all fibers are called before any create functions.
        // This prevents sibling component effects from interfering with each other,
        // e.g. a destroy function in one component should never override a ref set
        // by a create function in another component during the same commit.
        commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
        return;
      }

    case ClassComponent:
      {
        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 !== null ? current.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);
          }
        }

        return;
      }

    case HostText:
      {
        if (!(finishedWork.stateNode !== null)) {
          {
            throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
          }
        }

        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 !== null ? current.memoizedProps : newText;
        commitTextUpdate(textInstance, oldText, newText);
        return;
      }

    case HostRoot:
      {
        {
          var _root = finishedWork.stateNode;

          if (_root.hydrate) {
            // We've just hydrated. No need to hydrate again.
            _root.hydrate = false;
            commitHydratedContainer(_root.containerInfo);
          }
        }

        return;
      }

    case Profiler:
      {
        return;
      }

    case SuspenseComponent:
      {
        commitSuspenseComponent(finishedWork);
        attachSuspenseRetryListeners(finishedWork);
        return;
      }

    case SuspenseListComponent:
      {
        attachSuspenseRetryListeners(finishedWork);
        return;
      }

    case IncompleteClassComponent:
      {
        return;
      }
  }

  {
    {
      throw Error( "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 commitSuspenseComponent(finishedWork) {
  var newState = finishedWork.memoizedState;
  var newDidTimeout;
  var primaryChildParent = finishedWork;

  if (newState === null) {
    newDidTimeout = false;
  } else {
    newDidTimeout = true;
    primaryChildParent = finishedWork.child;
    markCommitTimeOfFallback();
  }

  if ( primaryChildParent !== null) {
    hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  }
}

function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {

  var newState = finishedWork.memoizedState;

  if (newState === null) {
    var current = finishedWork.alternate;

    if (current !== null) {
      var prevState = current.memoizedState;

      if (prevState !== null) {
        var suspenseInstance = prevState.dehydrated;

        if (suspenseInstance !== null) {
          commitHydratedSuspenseInstance(suspenseInstance);
        }
      }
    }
  }
}

function attachSuspenseRetryListeners(finishedWork) {
  // If this boundary just timed out, then it will have a set of thenables.
  // For each thenable, attach a listener so that when it resolves, React
  // attempts to re-render the boundary in the primary (pre-timeout) state.
  var thenables = finishedWork.updateQueue;

  if (thenables !== null) {
    finishedWork.updateQueue = null;
    var retryCache = finishedWork.stateNode;

    if (retryCache === null) {
      retryCache = finishedWork.stateNode = new PossiblyWeakSet();
    }

    thenables.forEach(function (thenable) {
      // Memoize using the boundary fiber to prevent redundant listeners.
      var retry = resolveRetryThenable.bind(null, finishedWork, thenable);

      if (!retryCache.has(thenable)) {
        {
          if (thenable.__reactDoNotTraceInteractions !== true) {
            retry = tracing.unstable_wrap(retry);
          }
        }

        retryCache.add(thenable);
        thenable.then(retry, retry);
      }
    });
  }
}

function commitResetTextContent(current) {

  resetTextContent(current.stateNode);
}

var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;

function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  var update = createUpdate(expirationTime, null); // 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, null);
  update.tag = CaptureUpdate;
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;

  if (typeof getDerivedStateFromError === 'function') {
    var error$1 = errorInfo.value;

    update.payload = function () {
      logError(fiber, errorInfo);
      return getDerivedStateFromError(error$1);
    };
  }

  var inst = fiber.stateNode;

  if (inst !== null && typeof inst.componentDidCatch === 'function') {
    update.callback = function callback() {
      {
        markFailedErrorBoundaryForHotReloading(fiber);
      }

      if (typeof getDerivedStateFromError !== '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 getDerivedStateFromError is
        // not defined.
        markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined

        logError(fiber, errorInfo);
      }

      var error$1 = errorInfo.value;
      var stack = errorInfo.stack;
      this.componentDidCatch(error$1, {
        componentStack: stack !== null ? stack : ''
      });

      {
        if (typeof getDerivedStateFromError !== 'function') {
          // If componentDidCatch is the only error boundary method defined,
          // then it needs to call setState to recover from errors.
          // If no state update is scheduled then the boundary will swallow the error.
          if (fiber.expirationTime !== Sync) {
            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown');
          }
        }
      }
    };
  } else {
    update.callback = function () {
      markFailedErrorBoundaryForHotReloading(fiber);
    };
  }

  return update;
}

function attachPingListener(root, renderExpirationTime, thenable) {
  // Attach a listener to the promise to "ping" the root and retry. But
  // only if one does not already exist for the current render expiration
  // time (which acts like a "thread ID" here).
  var pingCache = root.pingCache;
  var threadIDs;

  if (pingCache === null) {
    pingCache = root.pingCache = new PossiblyWeakMap$1();
    threadIDs = new Set();
    pingCache.set(thenable, threadIDs);
  } else {
    threadIDs = pingCache.get(thenable);

    if (threadIDs === undefined) {
      threadIDs = new Set();
      pingCache.set(thenable, threadIDs);
    }
  }

  if (!threadIDs.has(renderExpirationTime)) {
    // Memoize using the thread ID to prevent redundant listeners.
    threadIDs.add(renderExpirationTime);
    var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
    thenable.then(ping, ping);
  }
}

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 (value !== null && typeof value === 'object' && typeof value.then === 'function') {
    // This is a thenable.
    var thenable = value;

    if ((sourceFiber.mode & BlockingMode) === NoMode) {
      // Reset the memoizedState to what it was before we attempted
      // to render it.
      var currentSource = sourceFiber.alternate;

      if (currentSource) {
        sourceFiber.updateQueue = currentSource.updateQueue;
        sourceFiber.memoizedState = currentSource.memoizedState;
        sourceFiber.expirationTime = currentSource.expirationTime;
      } else {
        sourceFiber.updateQueue = null;
        sourceFiber.memoizedState = null;
      }
    }

    var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.

    var _workInProgress = returnFiber;

    do {
      if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
        // Found the nearest boundary.
        // Stash the promise on the boundary fiber. If the boundary times out, we'll
        // attach another listener to flip the boundary back to its normal state.
        var thenables = _workInProgress.updateQueue;

        if (thenables === null) {
          var updateQueue = new Set();
          updateQueue.add(thenable);
          _workInProgress.updateQueue = updateQueue;
        } else {
          thenables.add(thenable);
        } // If the boundary is outside of blocking 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 Suspense.
        //
        // Note: It doesn't matter whether the component that suspended was
        // inside a blocking mode tree. If the Suspense is outside of it, we
        // should *not* suspend the commit.


        if ((_workInProgress.mode & BlockingMode) === NoMode) {
          _workInProgress.effectTag |= DidCapture; // 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 | Incomplete);

          if (sourceFiber.tag === ClassComponent) {
            var currentSourceFiber = sourceFiber.alternate;

            if (currentSourceFiber === null) {
              // This is a new mount. Change the tag so it's not mistaken for a
              // completed class component. For example, we should not call
              // componentWillUnmount if it is deleted.
              sourceFiber.tag = IncompleteClassComponent;
            } else {
              // When we try rendering again, we should not reuse the current fiber,
              // since it's known to be in an inconsistent state. Use a force update to
              // prevent a bail out.
              var update = createUpdate(Sync, null);
              update.tag = ForceUpdate;
              enqueueUpdate(sourceFiber, update);
            }
          } // The source fiber did not complete. Mark it with Sync priority to
          // indicate that it still has pending work.


          sourceFiber.expirationTime = Sync; // Exit without suspending.

          return;
        } // Confirmed that the boundary is in a concurrent mode tree. Continue
        // with the normal suspend path.
        //
        // After this we'll use a set of heuristics to determine whether this
        // render pass will run to completion or restart or "suspend" the commit.
        // The actual logic for this is spread out in different places.
        //
        // This first principle is that if we're going to suspend when we complete
        // a root, then we should also restart if we get an update or ping that
        // might unsuspend it, and vice versa. The only reason to suspend is
        // because you think you might want to restart before committing. However,
        // it doesn't make sense to restart only while in the period we're suspended.
        //
        // Restarting too aggressively is also not good because it starves out any
        // intermediate loading state. So we use heuristics to determine when.
        // Suspense Heuristics
        //
        // If nothing threw a Promise or all the same fallbacks are already showing,
        // then don't suspend/restart.
        //
        // If this is an initial render of a new tree of Suspense boundaries and
        // those trigger a fallback, then don't suspend/restart. We want to ensure
        // that we can show the initial loading state as quickly as possible.
        //
        // If we hit a "Delayed" case, such as when we'd switch from content back into
        // a fallback, then we should always suspend/restart. SuspenseConfig applies to
        // this case. If none is defined, JND is used instead.
        //
        // If we're already showing a fallback and it gets "retried", allowing us to show
        // another level, but there's still an inner boundary that would show a fallback,
        // then we suspend/restart for 500ms since the last time we showed a fallback
        // anywhere in the tree. This effectively throttles progressive loading into a
        // consistent train of commits. This also gives us an opportunity to restart to
        // get to the completed state slightly earlier.
        //
        // If there's ambiguity due to batching it's resolved in preference of:
        // 1) "delayed", 2) "initial render", 3) "retry".
        //
        // We want to ensure that a "busy" state doesn't get force committed. We want to
        // ensure that new initial loading states can commit as soon as possible.


        attachPingListener(root, renderExpirationTime, thenable);
        _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.
    // TODO: Use invariant so the message is stripped in prod?


    value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
  } // 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:
        // Capture and retry
        var errorInfo = value;
        var ctor = workInProgress.type;
        var instance = workInProgress.stateNode;

        if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || 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 _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);

          enqueueCapturedUpdate(workInProgress, _update2);
          return;
        }

        break;
    }

    workInProgress = workInProgress.return;
  } while (workInProgress !== null);
}

var ceil = Math.ceil;
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
    IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
var NoContext =
/*                    */
0;
var BatchedContext =
/*               */
1;
var EventContext =
/*                 */
2;
var DiscreteEventContext =
/*         */
4;
var LegacyUnbatchedContext =
/*       */
8;
var RenderContext =
/*                */
16;
var CommitContext =
/*                */
32;
var RootIncomplete = 0;
var RootFatalErrored = 1;
var RootErrored = 2;
var RootSuspended = 3;
var RootSuspendedWithDelay = 4;
var RootCompleted = 5;
// Describes where we are in the React execution stack
var executionContext = NoContext; // The root we're working on

var workInProgressRoot = null; // The fiber we're working on

var workInProgress = null; // The expiration time we're rendering

var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc.

var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown

var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render.
// This is conceptually a time stamp but expressed in terms of an ExpirationTime
// because we deal mostly with expiration times in the hot path, so this avoids
// the conversion happening in the hot path.

var workInProgressRootLatestProcessedExpirationTime = Sync;
var workInProgressRootLatestSuspenseTimeout = Sync;
var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only
// includes unprocessed updates, not work in bailed out children.

var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately.
// This flag determines if it might be worthwhile to restart if an opportunity
// happens latere.

var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train
// model where we don't commit new loading states in too quick succession.

var globalMostRecentFallbackTime = 0;
var FALLBACK_THROTTLE_MS = 500;
var nextEffect = null;
var hasUncaughtError = false;
var firstUncaughtError = null;
var legacyErrorBoundariesThatAlreadyFailed = null;
var rootDoesHavePassiveEffects = false;
var rootWithPendingPassiveEffects = null;
var pendingPassiveEffectsRenderPriority = NoPriority;
var pendingPassiveEffectsExpirationTime = NoWork;
var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates

var NESTED_UPDATE_LIMIT = 50;
var nestedUpdateCount = 0;
var rootWithNestedUpdates = null;
var NESTED_PASSIVE_UPDATE_LIMIT = 50;
var nestedPassiveUpdateCount = 0;
var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times
// during the commit phase. This enables them to be traced across components
// that spawn new work during render. E.g. hidden boundaries, suspended SSR
// hydration or SuspenseList.

var spawnedWorkDuringRender = null; // 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.

var currentEventTime = NoWork;
function requestCurrentTimeForUpdate() {
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    // We're inside React, so it's fine to read the actual time.
    return msToExpirationTime(now());
  } // We're not inside React, so we may be in the middle of a browser event.


  if (currentEventTime !== NoWork) {
    // Use the same start time for all updates until we enter React again.
    return currentEventTime;
  } // This is the first update since React yielded. Compute a new start time.


  currentEventTime = msToExpirationTime(now());
  return currentEventTime;
}
function getCurrentTime() {
  return msToExpirationTime(now());
}
function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  var mode = fiber.mode;

  if ((mode & BlockingMode) === NoMode) {
    return Sync;
  }

  var priorityLevel = getCurrentPriorityLevel();

  if ((mode & ConcurrentMode) === NoMode) {
    return priorityLevel === ImmediatePriority ? Sync : Batched;
  }

  if ((executionContext & RenderContext) !== NoContext) {
    // Use whatever time we're already rendering
    // TODO: Should there be a way to opt out, like with `runWithPriority`?
    return renderExpirationTime$1;
  }

  var expirationTime;

  if (suspenseConfig !== null) {
    // Compute an expiration time based on the Suspense timeout.
    expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  } else {
    // Compute an expiration time based on the Scheduler priority.
    switch (priorityLevel) {
      case ImmediatePriority:
        expirationTime = Sync;
        break;

      case UserBlockingPriority$1:
        // TODO: Rename this to computeUserBlockingExpiration
        expirationTime = computeInteractiveExpiration(currentTime);
        break;

      case NormalPriority:
      case LowPriority:
        // TODO: Handle LowPriority
        // TODO: Rename this to... something better.
        expirationTime = computeAsyncExpiration(currentTime);
        break;

      case IdlePriority:
        expirationTime = Idle;
        break;

      default:
        {
          {
            throw Error( "Expected a valid priority level" );
          }
        }

    }
  } // If we're in the middle of rendering a tree, do not update at the same
  // expiration time that is already rendering.
  // TODO: We shouldn't have to do this if the update is on a different root.
  // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  // the root when we check for this condition.


  if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) {
    // This is a trick to move this update into a separate batch
    expirationTime -= 1;
  }

  return expirationTime;
}
function scheduleUpdateOnFiber(fiber, expirationTime) {
  checkForNestedUpdates();
  warnAboutRenderPhaseUpdatesInDEV(fiber);
  var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);

  if (root === null) {
    warnAboutUpdateOnUnmountedFiberInDEV(fiber);
    return;
  }

  checkForInterruption(fiber, expirationTime);
  recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the
  // priority as an argument to that function and this one.

  var priorityLevel = getCurrentPriorityLevel();

  if (expirationTime === Sync) {
    if ( // Check if we're inside unbatchedUpdates
    (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
    (executionContext & (RenderContext | CommitContext)) === NoContext) {
      // Register pending interactions on the root to avoid losing traced interaction data.
      schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
      // root inside of batchedUpdates should be synchronous, but layout updates
      // should be deferred until the end of the batch.

      performSyncWorkOnRoot(root);
    } else {
      ensureRootIsScheduled(root);
      schedulePendingInteractions(root, expirationTime);

      if (executionContext === NoContext) {
        // Flush the synchronous work now, unless we're already working or inside
        // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
        // scheduleCallbackForFiber to preserve the ability to schedule a callback
        // without immediately flushing it. We only do this for user-initiated
        // updates, to preserve historical behavior of legacy mode.
        flushSyncCallbackQueue();
      }
    }
  } else {
    ensureRootIsScheduled(root);
    schedulePendingInteractions(root, expirationTime);
  }

  if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
  // discrete, even inside a discrete event.
  priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) {
    // This is the result of a discrete event. Track the lowest priority
    // discrete update per root so we can flush them early, if needed.
    if (rootsWithPendingDiscreteUpdates === null) {
      rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
    } else {
      var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);

      if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
        rootsWithPendingDiscreteUpdates.set(root, expirationTime);
      }
    }
  }
}
var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending
// work without treating it as a typical update that originates from an event;
// e.g. retrying a Suspense boundary isn't an update, but it does schedule work
// on a fiber.

function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  // Update the source fiber's expiration time
  if (fiber.expirationTime < expirationTime) {
    fiber.expirationTime = expirationTime;
  }

  var alternate = fiber.alternate;

  if (alternate !== null && alternate.expirationTime < expirationTime) {
    alternate.expirationTime = expirationTime;
  } // Walk the parent path to the root and update the child expiration time.


  var node = fiber.return;
  var root = null;

  if (node === null && fiber.tag === HostRoot) {
    root = fiber.stateNode;
  } else {
    while (node !== null) {
      alternate = node.alternate;

      if (node.childExpirationTime < expirationTime) {
        node.childExpirationTime = expirationTime;

        if (alternate !== null && alternate.childExpirationTime < expirationTime) {
          alternate.childExpirationTime = expirationTime;
        }
      } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
        alternate.childExpirationTime = expirationTime;
      }

      if (node.return === null && node.tag === HostRoot) {
        root = node.stateNode;
        break;
      }

      node = node.return;
    }
  }

  if (root !== null) {
    if (workInProgressRoot === root) {
      // Received an update to a tree that's in the middle of rendering. Mark
      // that's unprocessed work on this root.
      markUnprocessedUpdateTime(expirationTime);

      if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
        // The root already suspended with a delay, which means this render
        // definitely won't finish. Since we have a new update, let's mark it as
        // suspended now, right before marking the incoming update. This has the
        // effect of interrupting the current render and switching to the update.
        // TODO: This happens to work when receiving an update during the render
        // phase, because of the trick inside computeExpirationForFiber to
        // subtract 1 from `renderExpirationTime` to move it into a
        // separate bucket. But we should probably model it with an exception,
        // using the same mechanism we use to force hydration of a subtree.
        // TODO: This does not account for low pri updates that were already
        // scheduled before the root started rendering. Need to track the next
        // pending expiration time (perhaps by backtracking the return path) and
        // then trigger a restart in the `renderDidSuspendDelayIfPossible` path.
        markRootSuspendedAtTime(root, renderExpirationTime$1);
      }
    } // Mark that the root has a pending update.


    markRootUpdatedAtTime(root, expirationTime);
  }

  return root;
}

function getNextRootExpirationTimeToWorkOn(root) {
  // Determines the next expiration time that the root should render, taking
  // into account levels that may be suspended, or levels that may have
  // received a ping.
  var lastExpiredTime = root.lastExpiredTime;

  if (lastExpiredTime !== NoWork) {
    return lastExpiredTime;
  } // "Pending" refers to any update that hasn't committed yet, including if it
  // suspended. The "suspended" range is therefore a subset.


  var firstPendingTime = root.firstPendingTime;

  if (!isRootSuspendedAtTime(root, firstPendingTime)) {
    // The highest priority pending time is not suspended. Let's work on that.
    return firstPendingTime;
  } // If the first pending time is suspended, check if there's a lower priority
  // pending level that we know about. Or check if we received a ping. Work
  // on whichever is higher priority.


  var lastPingedTime = root.lastPingedTime;
  var nextKnownPendingLevel = root.nextKnownPendingLevel;
  var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel;

  if ( nextLevel <= Idle && firstPendingTime !== nextLevel) {
    // Don't work on Idle/Never priority unless everything else is committed.
    return NoWork;
  }

  return nextLevel;
} // Use this function to schedule a task for a root. There's only one task per
// root; if a task was already scheduled, we'll check to make sure the
// expiration time of the existing task is the same as the expiration time of
// the next level that the root has work on. This function is called on every
// update, and right before exiting a task.


function ensureRootIsScheduled(root) {
  var lastExpiredTime = root.lastExpiredTime;

  if (lastExpiredTime !== NoWork) {
    // Special case: Expired work should flush synchronously.
    root.callbackExpirationTime = Sync;
    root.callbackPriority = ImmediatePriority;
    root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
    return;
  }

  var expirationTime = getNextRootExpirationTimeToWorkOn(root);
  var existingCallbackNode = root.callbackNode;

  if (expirationTime === NoWork) {
    // There's nothing to work on.
    if (existingCallbackNode !== null) {
      root.callbackNode = null;
      root.callbackExpirationTime = NoWork;
      root.callbackPriority = NoPriority;
    }

    return;
  } // TODO: If this is an update, we already read the current time. Pass the
  // time as an argument.


  var currentTime = requestCurrentTimeForUpdate();
  var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and
  // expiration time. Otherwise, we'll cancel it and schedule a new one.

  if (existingCallbackNode !== null) {
    var existingCallbackPriority = root.callbackPriority;
    var existingCallbackExpirationTime = root.callbackExpirationTime;

    if ( // Callback must have the exact same expiration time.
    existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority.
    existingCallbackPriority >= priorityLevel) {
      // Existing callback is sufficient.
      return;
    } // Need to schedule a new task.
    // TODO: Instead of scheduling a new task, we should be able to change the
    // priority of the existing one.


    cancelCallback(existingCallbackNode);
  }

  root.callbackExpirationTime = expirationTime;
  root.callbackPriority = priorityLevel;
  var callbackNode;

  if (expirationTime === Sync) {
    // Sync React callbacks are scheduled on a special internal queue
    callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  } else {
    callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects
    // ordering because tasks are processed in timeout order.
    {
      timeout: expirationTimeToMs(expirationTime) - now()
    });
  }

  root.callbackNode = callbackNode;
} // This is the entry point for every concurrent task, i.e. anything that
// goes through Scheduler.


function performConcurrentWorkOnRoot(root, didTimeout) {
  // Since we know we're in a React event, we can clear the current
  // event time. The next update will compute a new event time.
  currentEventTime = NoWork;

  if (didTimeout) {
    // The render task took too long to complete. Mark the current time as
    // expired to synchronously render all expired work in a single batch.
    var currentTime = requestCurrentTimeForUpdate();
    markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.

    ensureRootIsScheduled(root);
    return null;
  } // Determine the next expiration time to work on, using the fields stored
  // on the root.


  var expirationTime = getNextRootExpirationTimeToWorkOn(root);

  if (expirationTime !== NoWork) {
    var originalCallbackNode = root.callbackNode;

    if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
      {
        throw Error( "Should not already be working." );
      }
    }

    flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
    // and prepare a fresh one. Otherwise we'll continue where we left off.

    if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
      prepareFreshStack(root, expirationTime);
      startWorkOnPendingInteractions(root, expirationTime);
    } // If we have a work-in-progress fiber, it means there's still work to do
    // in this root.


    if (workInProgress !== null) {
      var prevExecutionContext = executionContext;
      executionContext |= RenderContext;
      var prevDispatcher = pushDispatcher();
      var prevInteractions = pushInteractions(root);
      startWorkLoopTimer(workInProgress);

      do {
        try {
          workLoopConcurrent();
          break;
        } catch (thrownValue) {
          handleError(root, thrownValue);
        }
      } while (true);

      resetContextDependencies();
      executionContext = prevExecutionContext;
      popDispatcher(prevDispatcher);

      {
        popInteractions(prevInteractions);
      }

      if (workInProgressRootExitStatus === RootFatalErrored) {
        var fatalError = workInProgressRootFatalError;
        stopInterruptedWorkLoopTimer();
        prepareFreshStack(root, expirationTime);
        markRootSuspendedAtTime(root, expirationTime);
        ensureRootIsScheduled(root);
        throw fatalError;
      }

      if (workInProgress !== null) {
        // There's still work left over. Exit without committing.
        stopInterruptedWorkLoopTimer();
      } else {
        // We now have a consistent tree. The next step is either to commit it,
        // or, if something suspended, wait to commit it after a timeout.
        stopFinishedWorkLoopTimer();
        var finishedWork = root.finishedWork = root.current.alternate;
        root.finishedExpirationTime = expirationTime;
        finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);
      }

      ensureRootIsScheduled(root);

      if (root.callbackNode === originalCallbackNode) {
        // The task node scheduled for this root is the same one that's
        // currently executed. Need to return a continuation.
        return performConcurrentWorkOnRoot.bind(null, root);
      }
    }
  }

  return null;
}

function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) {
  // Set this to null to indicate there's no in-progress render.
  workInProgressRoot = null;

  switch (exitStatus) {
    case RootIncomplete:
    case RootFatalErrored:
      {
        {
          {
            throw Error( "Root did not complete. This is a bug in React." );
          }
        }
      }
    // Flow knows about invariant, so it complains if I add a break
    // statement, but eslint doesn't know about invariant, so it complains
    // if I do. eslint-disable-next-line no-fallthrough

    case RootErrored:
      {
        // If this was an async render, the error may have happened due to
        // a mutation in a concurrent event. Try rendering one more time,
        // synchronously, to see if the error goes away. If there are
        // lower priority updates, let's include those, too, in case they
        // fix the inconsistency. Render at Idle to include all updates.
        // If it was Idle or Never or some not-yet-invented time, render
        // at that time.
        markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous
        // and therefore not hit this path again.

        break;
      }

    case RootSuspended:
      {
        markRootSuspendedAtTime(root, expirationTime);
        var lastSuspendedTime = root.lastSuspendedTime;

        if (expirationTime === lastSuspendedTime) {
          root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
        } // We have an acceptable loading state. We need to figure out if we
        // should immediately commit it or wait a bit.
        // If we have processed new updates during this render, we may now
        // have a new loading state ready. We want to ensure that we commit
        // that as soon as possible.


        var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;

        if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope
        !( IsThisRendererActing.current)) {
          // If we have not processed any new updates during this pass, then
          // this is either a retry of an existing fallback state or a
          // hidden tree. Hidden trees shouldn't be batched with other work
          // and after that's fixed it can only be a retry. We're going to
          // throttle committing retries so that we don't show too many
          // loading states too quickly.
          var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.

          if (msUntilTimeout > 10) {
            if (workInProgressRootHasPendingPing) {
              var lastPingedTime = root.lastPingedTime;

              if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) {
                // This render was pinged but we didn't get to restart
                // earlier so try restarting now instead.
                root.lastPingedTime = expirationTime;
                prepareFreshStack(root, expirationTime);
                break;
              }
            }

            var nextTime = getNextRootExpirationTimeToWorkOn(root);

            if (nextTime !== NoWork && nextTime !== expirationTime) {
              // There's additional work on this root.
              break;
            }

            if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) {
              // We should prefer to render the fallback of at the last
              // suspended level. Ping the last suspended level to try
              // rendering it again.
              root.lastPingedTime = lastSuspendedTime;
              break;
            } // The render is suspended, it hasn't timed out, and there's no
            // lower priority work to do. Instead of committing the fallback
            // immediately, wait for more data to arrive.


            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
            break;
          }
        } // The work expired. Commit immediately.


        commitRoot(root);
        break;
      }

    case RootSuspendedWithDelay:
      {
        markRootSuspendedAtTime(root, expirationTime);
        var _lastSuspendedTime = root.lastSuspendedTime;

        if (expirationTime === _lastSuspendedTime) {
          root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
        }

        if ( // do not delay if we're inside an act() scope
        !( IsThisRendererActing.current)) {
          // We're suspended in a state that should be avoided. We'll try to
          // avoid committing it for as long as the timeouts let us.
          if (workInProgressRootHasPendingPing) {
            var _lastPingedTime = root.lastPingedTime;

            if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) {
              // This render was pinged but we didn't get to restart earlier
              // so try restarting now instead.
              root.lastPingedTime = expirationTime;
              prepareFreshStack(root, expirationTime);
              break;
            }
          }

          var _nextTime = getNextRootExpirationTimeToWorkOn(root);

          if (_nextTime !== NoWork && _nextTime !== expirationTime) {
            // There's additional work on this root.
            break;
          }

          if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) {
            // We should prefer to render the fallback of at the last
            // suspended level. Ping the last suspended level to try
            // rendering it again.
            root.lastPingedTime = _lastSuspendedTime;
            break;
          }

          var _msUntilTimeout;

          if (workInProgressRootLatestSuspenseTimeout !== Sync) {
            // We have processed a suspense config whose expiration time we
            // can use as the timeout.
            _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
          } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
            // This should never normally happen because only new updates
            // cause delayed states, so we should have processed something.
            // However, this could also happen in an offscreen tree.
            _msUntilTimeout = 0;
          } else {
            // If we don't have a suspense config, we're going to use a
            // heuristic to determine how long we can suspend.
            var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
            var currentTimeMs = now();
            var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
            var timeElapsed = currentTimeMs - eventTimeMs;

            if (timeElapsed < 0) {
              // We get this wrong some time since we estimate the time.
              timeElapsed = 0;
            }

            _msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the
            // event time is exact instead of inferred from expiration time
            // we don't need this.

            if (timeUntilExpirationMs < _msUntilTimeout) {
              _msUntilTimeout = timeUntilExpirationMs;
            }
          } // Don't bother with a very short suspense time.


          if (_msUntilTimeout > 10) {
            // The render is suspended, it hasn't timed out, and there's no
            // lower priority work to do. Instead of committing the fallback
            // immediately, wait for more data to arrive.
            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
            break;
          }
        } // The work expired. Commit immediately.


        commitRoot(root);
        break;
      }

    case RootCompleted:
      {
        // The work completed. Ready to commit.
        if ( // do not delay if we're inside an act() scope
        !( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
          // If we have exceeded the minimum loading delay, which probably
          // means we have shown a spinner already, we might have to suspend
          // a bit longer to ensure that the spinner is shown for
          // enough time.
          var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);

          if (_msUntilTimeout2 > 10) {
            markRootSuspendedAtTime(root, expirationTime);
            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
            break;
          }
        }

        commitRoot(root);
        break;
      }

    default:
      {
        {
          {
            throw Error( "Unknown root exit status." );
          }
        }
      }
  }
} // This is the entry point for synchronous tasks that don't go
// through Scheduler


function performSyncWorkOnRoot(root) {
  // Check if there's expired work on this root. Otherwise, render at Sync.
  var lastExpiredTime = root.lastExpiredTime;
  var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync;

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Should not already be working." );
    }
  }

  flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
  // and prepare a fresh one. Otherwise we'll continue where we left off.

  if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
    prepareFreshStack(root, expirationTime);
    startWorkOnPendingInteractions(root, expirationTime);
  } // If we have a work-in-progress fiber, it means there's still work to do
  // in this root.


  if (workInProgress !== null) {
    var prevExecutionContext = executionContext;
    executionContext |= RenderContext;
    var prevDispatcher = pushDispatcher();
    var prevInteractions = pushInteractions(root);
    startWorkLoopTimer(workInProgress);

    do {
      try {
        workLoopSync();
        break;
      } catch (thrownValue) {
        handleError(root, thrownValue);
      }
    } while (true);

    resetContextDependencies();
    executionContext = prevExecutionContext;
    popDispatcher(prevDispatcher);

    {
      popInteractions(prevInteractions);
    }

    if (workInProgressRootExitStatus === RootFatalErrored) {
      var fatalError = workInProgressRootFatalError;
      stopInterruptedWorkLoopTimer();
      prepareFreshStack(root, expirationTime);
      markRootSuspendedAtTime(root, expirationTime);
      ensureRootIsScheduled(root);
      throw fatalError;
    }

    if (workInProgress !== null) {
      // This is a sync render, so we should have finished the whole tree.
      {
        {
          throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
        }
      }
    } else {
      // We now have a consistent tree. Because this is a sync render, we
      // will commit it even if something suspended.
      stopFinishedWorkLoopTimer();
      root.finishedWork = root.current.alternate;
      root.finishedExpirationTime = expirationTime;
      finishSyncRender(root);
    } // Before exiting, make sure there's a callback scheduled for the next
    // pending level.


    ensureRootIsScheduled(root);
  }

  return null;
}

function finishSyncRender(root) {
  // Set this to null to indicate there's no in-progress render.
  workInProgressRoot = null;
  commitRoot(root);
}
function flushDiscreteUpdates() {
  // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  // those two cases. Need to fix this before exposing flushDiscreteUpdates
  // as a public API.
  if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
    {
      if ((executionContext & RenderContext) !== NoContext) {
        error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
      }
    } // We're already rendering, so we can't synchronously flush pending work.
    // This is probably a nested event dispatch triggered by a lifecycle/effect,
    // like `el.focus()`. Exit.


    return;
  }

  flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
  // they fire before the next serial event.

  flushPassiveEffects();
}
function syncUpdates(fn, a, b, c) {
  return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));
}

function flushPendingDiscreteUpdates() {
  if (rootsWithPendingDiscreteUpdates !== null) {
    // For each root with pending discrete updates, schedule a callback to
    // immediately flush them.
    var roots = rootsWithPendingDiscreteUpdates;
    rootsWithPendingDiscreteUpdates = null;
    roots.forEach(function (expirationTime, root) {
      markRootExpiredAtTime(root, expirationTime);
      ensureRootIsScheduled(root);
    }); // Now flush the immediate queue.

    flushSyncCallbackQueue();
  }
}

function batchedUpdates$1(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext |= BatchedContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      flushSyncCallbackQueue();
    }
  }
}
function batchedEventUpdates$1(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext |= EventContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      flushSyncCallbackQueue();
    }
  }
}
function discreteUpdates$1(fn, a, b, c, d) {
  var prevExecutionContext = executionContext;
  executionContext |= DiscreteEventContext;

  try {
    // Should this
    return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      flushSyncCallbackQueue();
    }
  }
}
function unbatchedUpdates(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext &= ~BatchedContext;
  executionContext |= LegacyUnbatchedContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      flushSyncCallbackQueue();
    }
  }
}
function flushSync(fn, a) {
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    {
      {
        throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." );
      }
    }
  }

  var prevExecutionContext = executionContext;
  executionContext |= BatchedContext;

  try {
    return runWithPriority$1(ImmediatePriority, fn.bind(null, a));
  } finally {
    executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
    // Note that this will happen even if batchedUpdates is higher up
    // the stack.

    flushSyncCallbackQueue();
  }
}

function prepareFreshStack(root, expirationTime) {
  root.finishedWork = null;
  root.finishedExpirationTime = NoWork;
  var timeoutHandle = root.timeoutHandle;

  if (timeoutHandle !== noTimeout) {
    // The root previous suspended and scheduled a timeout to commit a fallback
    // state. Now that we have additional work, cancel the timeout.
    root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above

    cancelTimeout(timeoutHandle);
  }

  if (workInProgress !== null) {
    var interruptedWork = workInProgress.return;

    while (interruptedWork !== null) {
      unwindInterruptedWork(interruptedWork);
      interruptedWork = interruptedWork.return;
    }
  }

  workInProgressRoot = root;
  workInProgress = createWorkInProgress(root.current, null);
  renderExpirationTime$1 = expirationTime;
  workInProgressRootExitStatus = RootIncomplete;
  workInProgressRootFatalError = null;
  workInProgressRootLatestProcessedExpirationTime = Sync;
  workInProgressRootLatestSuspenseTimeout = Sync;
  workInProgressRootCanSuspendUsingConfig = null;
  workInProgressRootNextUnprocessedUpdateTime = NoWork;
  workInProgressRootHasPendingPing = false;

  {
    spawnedWorkDuringRender = null;
  }

  {
    ReactStrictModeWarnings.discardPendingWarnings();
  }
}

function handleError(root, thrownValue) {
  do {
    try {
      // Reset module-level state that was set during the render phase.
      resetContextDependencies();
      resetHooksAfterThrow();
      resetCurrentFiber();

      if (workInProgress === null || workInProgress.return === null) {
        // Expected to be working on a non-root fiber. This is a fatal error
        // because there's no ancestor that can handle it; the root is
        // supposed to capture all errors that weren't caught by an error
        // boundary.
        workInProgressRootExitStatus = RootFatalErrored;
        workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
        // sibling, or the parent if there are no siblings. But since the root
        // has no siblings nor a parent, we set it to null. Usually this is
        // handled by `completeUnitOfWork` or `unwindWork`, but since we're
        // interntionally not calling those, we need set it here.
        // TODO: Consider calling `unwindWork` to pop the contexts.

        workInProgress = null;
        return null;
      }

      if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
        // Record the time spent rendering before an error was thrown. This
        // avoids inaccurate Profiler durations in the case of a
        // suspended render.
        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
      }

      throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);
      workInProgress = completeUnitOfWork(workInProgress);
    } catch (yetAnotherThrownValue) {
      // Something in the return path also threw.
      thrownValue = yetAnotherThrownValue;
      continue;
    } // Return to the normal work loop.


    return;
  } while (true);
}

function pushDispatcher(root) {
  var prevDispatcher = ReactCurrentDispatcher$1.current;
  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

  if (prevDispatcher === null) {
    // The React isomorphic package does not include a default dispatcher.
    // Instead the first renderer will lazily attach one, in order to give
    // nicer error messages.
    return ContextOnlyDispatcher;
  } else {
    return prevDispatcher;
  }
}

function popDispatcher(prevDispatcher) {
  ReactCurrentDispatcher$1.current = prevDispatcher;
}

function pushInteractions(root) {
  {
    var prevInteractions = tracing.__interactionsRef.current;
    tracing.__interactionsRef.current = root.memoizedInteractions;
    return prevInteractions;
  }
}

function popInteractions(prevInteractions) {
  {
    tracing.__interactionsRef.current = prevInteractions;
  }
}

function markCommitTimeOfFallback() {
  globalMostRecentFallbackTime = now();
}
function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) {
    workInProgressRootLatestProcessedExpirationTime = expirationTime;
  }

  if (suspenseConfig !== null) {
    if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) {
      workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad.

      workInProgressRootCanSuspendUsingConfig = suspenseConfig;
    }
  }
}
function markUnprocessedUpdateTime(expirationTime) {
  if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) {
    workInProgressRootNextUnprocessedUpdateTime = expirationTime;
  }
}
function renderDidSuspend() {
  if (workInProgressRootExitStatus === RootIncomplete) {
    workInProgressRootExitStatus = RootSuspended;
  }
}
function renderDidSuspendDelayIfPossible() {
  if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
    workInProgressRootExitStatus = RootSuspendedWithDelay;
  } // Check if there's a lower priority update somewhere else in the tree.


  if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) {
    // Mark the current render as suspended, and then mark that there's a
    // pending update.
    // TODO: This should immediately interrupt the current render, instead
    // of waiting until the next time we yield.
    markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);
    markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);
  }
}
function renderDidError() {
  if (workInProgressRootExitStatus !== RootCompleted) {
    workInProgressRootExitStatus = RootErrored;
  }
} // Called during render to determine if anything has suspended.
// Returns false if we're not sure.

function renderHasNotSuspendedYet() {
  // If something errored or completed, we can't really be sure,
  // so those are false.
  return workInProgressRootExitStatus === RootIncomplete;
}

function inferTimeFromExpirationTime(expirationTime) {
  // We don't know exactly when the update was scheduled, but we can infer an
  // approximate start time from the expiration time.
  var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
}

function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  // We don't know exactly when the update was scheduled, but we can infer an
  // approximate start time from the expiration time by subtracting the timeout
  // that was added to the event time.
  var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
} // The work loop is an extremely hot path. Tell Closure not to inline it.

/** @noinline */


function workLoopSync() {
  // Already timed out, so perform work without checking if we need to yield.
  while (workInProgress !== null) {
    workInProgress = performUnitOfWork(workInProgress);
  }
}
/** @noinline */


function workLoopConcurrent() {
  // Perform work until Scheduler asks us to yield
  while (workInProgress !== null && !shouldYield()) {
    workInProgress = performUnitOfWork(workInProgress);
  }
}

function performUnitOfWork(unitOfWork) {
  // 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 = unitOfWork.alternate;
  startWorkTimer(unitOfWork);
  setCurrentFiber(unitOfWork);
  var next;

  if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
    startProfilerTimer(unitOfWork);
    next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  } else {
    next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
  }

  resetCurrentFiber();
  unitOfWork.memoizedProps = unitOfWork.pendingProps;

  if (next === null) {
    // If this doesn't spawn new work, complete the current work.
    next = completeUnitOfWork(unitOfWork);
  }

  ReactCurrentOwner$2.current = null;
  return next;
}

function completeUnitOfWork(unitOfWork) {
  // 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.
  workInProgress = unitOfWork;

  do {
    // 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 = workInProgress.alternate;
    var returnFiber = workInProgress.return; // Check if the work completed or if something threw.

    if ((workInProgress.effectTag & Incomplete) === NoEffect) {
      setCurrentFiber(workInProgress);
      var next = void 0;

      if ( (workInProgress.mode & ProfileMode) === NoMode) {
        next = completeWork(current, workInProgress, renderExpirationTime$1);
      } else {
        startProfilerTimer(workInProgress);
        next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.

        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
      }

      stopWorkTimer(workInProgress);
      resetCurrentFiber();
      resetChildExpirationTime(workInProgress);

      if (next !== null) {
        // Completing this fiber spawned new work. Work on that next.
        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;
        }
      }
    } else {
      // 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); // Because this fiber did not complete, don't reset its expiration time.


      if ( (workInProgress.mode & ProfileMode) !== NoMode) {
        // Record the render duration for the fiber that errored.
        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.

        var actualDuration = workInProgress.actualDuration;
        var child = workInProgress.child;

        while (child !== null) {
          actualDuration += child.actualDuration;
          child = child.sibling;
        }

        workInProgress.actualDuration = actualDuration;
      }

      if (_next !== null) {
        // 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.
        // TODO: The name stopFailedWorkTimer is misleading because Suspense
        // also captures and restarts.
        stopFailedWorkTimer(workInProgress);
        _next.effectTag &= HostEffectMask;
        return _next;
      }

      stopWorkTimer(workInProgress);

      if (returnFiber !== null) {
        // Mark the parent fiber as incomplete and clear its effect list.
        returnFiber.firstEffect = returnFiber.lastEffect = null;
        returnFiber.effectTag |= Incomplete;
      }
    }

    var siblingFiber = workInProgress.sibling;

    if (siblingFiber !== null) {
      // If there is more work to do in this returnFiber, do that next.
      return siblingFiber;
    } // Otherwise, return to the parent


    workInProgress = returnFiber;
  } while (workInProgress !== null); // We've reached the root.


  if (workInProgressRootExitStatus === RootIncomplete) {
    workInProgressRootExitStatus = RootCompleted;
  }

  return null;
}

function getRemainingExpirationTime(fiber) {
  var updateExpirationTime = fiber.expirationTime;
  var childExpirationTime = fiber.childExpirationTime;
  return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime;
}

function resetChildExpirationTime(completedWork) {
  if (renderExpirationTime$1 !== Never && completedWork.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 ( (completedWork.mode & ProfileMode) !== NoMode) {
    // In profiling mode, resetChildExpirationTime is also used to reset
    // profiler durations.
    var actualDuration = completedWork.actualDuration;
    var treeBaseDuration = completedWork.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 = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
    var child = completedWork.child;

    while (child !== null) {
      var childUpdateExpirationTime = child.expirationTime;
      var childChildExpirationTime = child.childExpirationTime;

      if (childUpdateExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = childUpdateExpirationTime;
      }

      if (childChildExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = childChildExpirationTime;
      }

      if (shouldBubbleActualDurations) {
        actualDuration += child.actualDuration;
      }

      treeBaseDuration += child.treeBaseDuration;
      child = child.sibling;
    }

    completedWork.actualDuration = actualDuration;
    completedWork.treeBaseDuration = treeBaseDuration;
  } else {
    var _child = completedWork.child;

    while (_child !== null) {
      var _childUpdateExpirationTime = _child.expirationTime;
      var _childChildExpirationTime = _child.childExpirationTime;

      if (_childUpdateExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = _childUpdateExpirationTime;
      }

      if (_childChildExpirationTime > newChildExpirationTime) {
        newChildExpirationTime = _childChildExpirationTime;
      }

      _child = _child.sibling;
    }
  }

  completedWork.childExpirationTime = newChildExpirationTime;
}

function commitRoot(root) {
  var renderPriorityLevel = getCurrentPriorityLevel();
  runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  return null;
}

function commitRootImpl(root, renderPriorityLevel) {
  do {
    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
    // means `flushPassiveEffects` will sometimes result in additional
    // passive effects. So we need to keep flushing in a loop until there are
    // no more pending effects.
    // TODO: Might be better if `flushPassiveEffects` did not automatically
    // flush synchronous work at the end, to avoid factoring hazards like this.
    flushPassiveEffects();
  } while (rootWithPendingPassiveEffects !== null);

  flushRenderPhaseStrictModeWarningsInDEV();

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Should not already be working." );
    }
  }

  var finishedWork = root.finishedWork;
  var expirationTime = root.finishedExpirationTime;

  if (finishedWork === null) {
    return null;
  }

  root.finishedWork = null;
  root.finishedExpirationTime = NoWork;

  if (!(finishedWork !== root.current)) {
    {
      throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
    }
  } // commitRoot never returns a continuation; it always finishes synchronously.
  // So we can clear these now to allow a new callback to be scheduled.


  root.callbackNode = null;
  root.callbackExpirationTime = NoWork;
  root.callbackPriority = NoPriority;
  root.nextKnownPendingLevel = NoWork;
  startCommitTimer(); // Update the first and last pending times on this root. The new first
  // pending time is whatever is left on the root fiber.

  var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork);
  markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);

  if (root === workInProgressRoot) {
    // We can reset these now that they are finished.
    workInProgressRoot = null;
    workInProgress = null;
    renderExpirationTime$1 = NoWork;
  } // This indicates that the last root we worked on is not the same one that
  // we're committing now. This most commonly happens when a suspended root
  // times out.
  // Get the list of effects.


  var firstEffect;

  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;
  }

  if (firstEffect !== null) {
    var prevExecutionContext = executionContext;
    executionContext |= CommitContext;
    var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles

    ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
    // of the effect list for each phase: all mutation effects come before all
    // layout effects, and so on.
    // The first phase a "before mutation" phase. We use this phase to read the
    // state of the host tree right before we mutate it. This is where
    // getSnapshotBeforeUpdate is called.

    startCommitSnapshotEffectsTimer();
    prepareForCommit(root.containerInfo);
    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitBeforeMutationEffects, null);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var error = clearCaughtError();
          captureCommitPhaseError(nextEffect, error);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null);

    stopCommitSnapshotEffectsTimer();

    {
      // Mark the current commit time to be shared by all Profilers in this
      // batch. This enables them to be grouped later.
      recordCommitTime();
    } // The next phase is the mutation phase, where we mutate the host tree.


    startCommitHostEffectsTimer();
    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var _error = clearCaughtError();

          captureCommitPhaseError(nextEffect, _error);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null);

    stopCommitHostEffectsTimer();
    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
    // the mutation phase, so that the previous tree is still current during
    // componentWillUnmount, but before the layout phase, so that the finished
    // work is current during componentDidMount/Update.

    root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
    // the host tree after it's been mutated. The idiomatic use case for this is
    // layout, but class component lifecycles also fire here for legacy reasons.

    startCommitLifeCyclesTimer();
    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var _error2 = clearCaughtError();

          captureCommitPhaseError(nextEffect, _error2);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null);

    stopCommitLifeCyclesTimer();
    nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
    // opportunity to paint.

    requestPaint();

    {
      popInteractions(prevInteractions);
    }

    executionContext = prevExecutionContext;
  } else {
    // No effects.
    root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
    // no effects.
    // TODO: Maybe there's a better way to report this.

    startCommitSnapshotEffectsTimer();
    stopCommitSnapshotEffectsTimer();

    {
      recordCommitTime();
    }

    startCommitHostEffectsTimer();
    stopCommitHostEffectsTimer();
    startCommitLifeCyclesTimer();
    stopCommitLifeCyclesTimer();
  }

  stopCommitTimer();
  var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;

  if (rootDoesHavePassiveEffects) {
    // This commit has passive effects. Stash a reference to them. But don't
    // schedule a callback until after flushing layout work.
    rootDoesHavePassiveEffects = false;
    rootWithPendingPassiveEffects = root;
    pendingPassiveEffectsExpirationTime = expirationTime;
    pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  } else {
    // We are done with the effect chain at this point so let's clear the
    // nextEffect pointers to assist with GC. If we have passive effects, we'll
    // clear this in flushPassiveEffects.
    nextEffect = firstEffect;

    while (nextEffect !== null) {
      var nextNextEffect = nextEffect.nextEffect;
      nextEffect.nextEffect = null;
      nextEffect = nextNextEffect;
    }
  } // Check if there's remaining work on this root


  var remainingExpirationTime = root.firstPendingTime;

  if (remainingExpirationTime !== NoWork) {
    {
      if (spawnedWorkDuringRender !== null) {
        var expirationTimes = spawnedWorkDuringRender;
        spawnedWorkDuringRender = null;

        for (var i = 0; i < expirationTimes.length; i++) {
          scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
        }
      }

      schedulePendingInteractions(root, remainingExpirationTime);
    }
  } else {
    // If there's no remaining work, we can clear the set of already failed
    // error boundaries.
    legacyErrorBoundariesThatAlreadyFailed = null;
  }

  {
    if (!rootDidHavePassiveEffects) {
      // If there are no passive effects, then we can complete the pending interactions.
      // Otherwise, we'll wait until after the passive effects are flushed.
      // Wait to do this until after remaining work has been scheduled,
      // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
      finishPendingInteractions(root, expirationTime);
    }
  }

  if (remainingExpirationTime === Sync) {
    // Count the number of times the root synchronously re-renders without
    // finishing. If there are too many, it indicates an infinite update loop.
    if (root === rootWithNestedUpdates) {
      nestedUpdateCount++;
    } else {
      nestedUpdateCount = 0;
      rootWithNestedUpdates = root;
    }
  } else {
    nestedUpdateCount = 0;
  }

  onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any
  // additional work on this root is scheduled.

  ensureRootIsScheduled(root);

  if (hasUncaughtError) {
    hasUncaughtError = false;
    var _error3 = firstUncaughtError;
    firstUncaughtError = null;
    throw _error3;
  }

  if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
    // This is a legacy edge case. We just committed the initial mount of
    // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
    // synchronously, but layout updates should be deferred until the end
    // of the batch.
    return null;
  } // If layout work was scheduled, flush it now.


  flushSyncCallbackQueue();
  return null;
}

function commitBeforeMutationEffects() {
  while (nextEffect !== null) {
    var effectTag = nextEffect.effectTag;

    if ((effectTag & Snapshot) !== NoEffect) {
      setCurrentFiber(nextEffect);
      recordEffect();
      var current = nextEffect.alternate;
      commitBeforeMutationLifeCycles(current, nextEffect);
      resetCurrentFiber();
    }

    if ((effectTag & Passive) !== NoEffect) {
      // If there are passive effects, schedule a callback to flush at
      // the earliest opportunity.
      if (!rootDoesHavePassiveEffects) {
        rootDoesHavePassiveEffects = true;
        scheduleCallback(NormalPriority, function () {
          flushPassiveEffects();
          return null;
        });
      }
    }

    nextEffect = nextEffect.nextEffect;
  }
}

function commitMutationEffects(root, renderPriorityLevel) {
  // TODO: Should probably move the bulk of this function to commitWork.
  while (nextEffect !== null) {
    setCurrentFiber(nextEffect);
    var effectTag = nextEffect.effectTag;

    if (effectTag & ContentReset) {
      commitResetTextContent(nextEffect);
    }

    if (effectTag & Ref) {
      var current = nextEffect.alternate;

      if (current !== null) {
        commitDetachRef(current);
      }
    } // 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 | Hydrating);

    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 Hydrating:
        {
          nextEffect.effectTag &= ~Hydrating;
          break;
        }

      case HydratingAndUpdate:
        {
          nextEffect.effectTag &= ~Hydrating; // Update

          var _current2 = nextEffect.alternate;
          commitWork(_current2, nextEffect);
          break;
        }

      case Update:
        {
          var _current3 = nextEffect.alternate;
          commitWork(_current3, nextEffect);
          break;
        }

      case Deletion:
        {
          commitDeletion(root, nextEffect, renderPriorityLevel);
          break;
        }
    } // TODO: Only record a mutation effect if primaryEffectTag is non-zero.


    recordEffect();
    resetCurrentFiber();
    nextEffect = nextEffect.nextEffect;
  }
}

function commitLayoutEffects(root, committedExpirationTime) {
  // TODO: Should probably move the bulk of this function to commitWork.
  while (nextEffect !== null) {
    setCurrentFiber(nextEffect);
    var effectTag = nextEffect.effectTag;

    if (effectTag & (Update | Callback)) {
      recordEffect();
      var current = nextEffect.alternate;
      commitLifeCycles(root, current, nextEffect);
    }

    if (effectTag & Ref) {
      recordEffect();
      commitAttachRef(nextEffect);
    }

    resetCurrentFiber();
    nextEffect = nextEffect.nextEffect;
  }
}

function flushPassiveEffects() {
  if (pendingPassiveEffectsRenderPriority !== NoPriority) {
    var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority;
    pendingPassiveEffectsRenderPriority = NoPriority;
    return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
  }
}

function flushPassiveEffectsImpl() {
  if (rootWithPendingPassiveEffects === null) {
    return false;
  }

  var root = rootWithPendingPassiveEffects;
  var expirationTime = pendingPassiveEffectsExpirationTime;
  rootWithPendingPassiveEffects = null;
  pendingPassiveEffectsExpirationTime = NoWork;

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Cannot flush passive effects while already rendering." );
    }
  }

  var prevExecutionContext = executionContext;
  executionContext |= CommitContext;
  var prevInteractions = pushInteractions(root);

  {
    // Note: This currently assumes there are no passive effects on the root fiber
    // because the root is not part of its own effect list.
    // This could change in the future.
    var _effect2 = root.current.firstEffect;

    while (_effect2 !== null) {
      {
        setCurrentFiber(_effect2);
        invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);

        if (hasCaughtError()) {
          if (!(_effect2 !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var _error5 = clearCaughtError();

          captureCommitPhaseError(_effect2, _error5);
        }

        resetCurrentFiber();
      }

      var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC

      _effect2.nextEffect = null;
      _effect2 = nextNextEffect;
    }
  }

  {
    popInteractions(prevInteractions);
    finishPendingInteractions(root, expirationTime);
  }

  executionContext = prevExecutionContext;
  flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
  // exceeds the limit, we'll fire a warning.

  nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  return true;
}

function isAlreadyFailedLegacyErrorBoundary(instance) {
  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
}
function markLegacyErrorBoundaryAsFailed(instance) {
  if (legacyErrorBoundariesThatAlreadyFailed === null) {
    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  } else {
    legacyErrorBoundariesThatAlreadyFailed.add(instance);
  }
}

function prepareToThrowUncaughtError(error) {
  if (!hasUncaughtError) {
    hasUncaughtError = true;
    firstUncaughtError = error;
  }
}

var onUncaughtError = prepareToThrowUncaughtError;

function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  var errorInfo = createCapturedValue(error, sourceFiber);
  var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  enqueueUpdate(rootFiber, update);
  var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);

  if (root !== null) {
    ensureRootIsScheduled(root);
    schedulePendingInteractions(root, Sync);
  }
}

function captureCommitPhaseError(sourceFiber, error) {
  if (sourceFiber.tag === HostRoot) {
    // Error was thrown at the root. There is no parent, so the root
    // itself should capture it.
    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
    return;
  }

  var fiber = sourceFiber.return;

  while (fiber !== null) {
    if (fiber.tag === HostRoot) {
      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
      return;
    } else if (fiber.tag === ClassComponent) {
      var ctor = fiber.type;
      var instance = fiber.stateNode;

      if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
        var errorInfo = createCapturedValue(error, sourceFiber);
        var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync
        Sync);
        enqueueUpdate(fiber, update);
        var root = markUpdateTimeFromFiberToRoot(fiber, Sync);

        if (root !== null) {
          ensureRootIsScheduled(root);
          schedulePendingInteractions(root, Sync);
        }

        return;
      }
    }

    fiber = fiber.return;
  }
}
function pingSuspendedRoot(root, thenable, suspendedTime) {
  var pingCache = root.pingCache;

  if (pingCache !== null) {
    // The thenable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    pingCache.delete(thenable);
  }

  if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) {
    // Received a ping at the same priority level at which we're currently
    // rendering. We might want to restart this render. This should mirror
    // the logic of whether or not a root suspends once it completes.
    // TODO: If we're rendering sync either due to Sync, Batched or expired,
    // we should probably never restart.
    // If we're suspended with delay, we'll always suspend so we can always
    // restart. If we're suspended without any updates, it might be a retry.
    // If it's early in the retry we can restart. We can't know for sure
    // whether we'll eventually process an update during this render pass,
    // but it's somewhat unlikely that we get to a ping before that, since
    // getting to the root most update is usually very fast.
    if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
      // Restart from the root. Don't need to schedule a ping because
      // we're already working on this tree.
      prepareFreshStack(root, renderExpirationTime$1);
    } else {
      // Even though we can't restart right now, we might get an
      // opportunity later. So we mark this render as having a ping.
      workInProgressRootHasPendingPing = true;
    }

    return;
  }

  if (!isRootSuspendedAtTime(root, suspendedTime)) {
    // The root is no longer suspended at this time.
    return;
  }

  var lastPingedTime = root.lastPingedTime;

  if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) {
    // There's already a lower priority ping scheduled.
    return;
  } // Mark the time at which this ping was scheduled.


  root.lastPingedTime = suspendedTime;

  ensureRootIsScheduled(root);
  schedulePendingInteractions(root, suspendedTime);
}

function retryTimedOutBoundary(boundaryFiber, retryTime) {
  // The boundary fiber (a Suspense component or SuspenseList component)
  // previously was rendered in its fallback state. One of the promises that
  // suspended it has resolved, which means at least part of the tree was
  // likely unblocked. Try rendering again, at a new expiration time.
  if (retryTime === NoWork) {
    var suspenseConfig = null; // Retries don't carry over the already committed update.

    var currentTime = requestCurrentTimeForUpdate();
    retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  } // TODO: Special case idle priority?


  var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);

  if (root !== null) {
    ensureRootIsScheduled(root);
    schedulePendingInteractions(root, retryTime);
  }
}
function resolveRetryThenable(boundaryFiber, thenable) {
  var retryTime = NoWork; // Default

  var retryCache;

  {
    retryCache = boundaryFiber.stateNode;
  }

  if (retryCache !== null) {
    // The thenable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    retryCache.delete(thenable);
  }

  retryTimedOutBoundary(boundaryFiber, retryTime);
} // Computes the next Just Noticeable Difference (JND) boundary.
// The theory is that a person can't tell the difference between small differences in time.
// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
// difference in the experience. However, waiting for longer might mean that we can avoid
// showing an intermediate loading state. The longer we have already waited, the harder it
// is to tell small differences in time. Therefore, the longer we've already waited,
// the longer we can wait additionally. At some point we have to give up though.
// We pick a train model where the next boundary commits at a consistent schedule.
// These particular numbers are vague estimates. We expect to adjust them based on research.

function jnd(timeElapsed) {
  return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
}

function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;

  if (busyMinDurationMs <= 0) {
    return 0;
  }

  var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.

  var currentTimeMs = now();
  var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  var timeElapsed = currentTimeMs - eventTimeMs;

  if (timeElapsed <= busyDelayMs) {
    // If we haven't yet waited longer than the initial delay, we don't
    // have to wait any additional time.
    return 0;
  }

  var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.

  return msUntilTimeout;
}

function checkForNestedUpdates() {
  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
    nestedUpdateCount = 0;
    rootWithNestedUpdates = null;

    {
      {
        throw Error( "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." );
      }
    }
  }

  {
    if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
      nestedPassiveUpdateCount = 0;

      error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
    }
  }
}

function flushRenderPhaseStrictModeWarningsInDEV() {
  {
    ReactStrictModeWarnings.flushLegacyContextWarning();

    {
      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
    }
  }
}

function stopFinishedWorkLoopTimer() {
  var didCompleteRoot = true;
  stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  interruptedBy = null;
}

function stopInterruptedWorkLoopTimer() {
  // TODO: Track which fiber caused the interruption.
  var didCompleteRoot = false;
  stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  interruptedBy = null;
}

function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) {
    interruptedBy = fiberThatReceivedUpdate;
  }
}

var didWarnStateUpdateForUnmountedComponent = null;

function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  {
    var tag = fiber.tag;

    if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
      // Only warn for user-defined components, not internal ones like Suspense.
      return;
    }
    // the problematic code almost always lies inside that component.


    var componentName = getComponentName(fiber.type) || 'ReactComponent';

    if (didWarnStateUpdateForUnmountedComponent !== null) {
      if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
        return;
      }

      didWarnStateUpdateForUnmountedComponent.add(componentName);
    } else {
      didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
    }

    error("Can't perform a React state update 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 %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  }
}

var beginWork$1;

{
  var dummyFiber = null;

  beginWork$1 = function (current, unitOfWork, expirationTime) {
    // If a component throws an error, we replay it again in a synchronously
    // dispatched event, so that the debugger will treat it as an uncaught
    // error See ReactErrorUtils for more information.
    // Before entering the begin phase, copy the work-in-progress onto a dummy
    // fiber. If beginWork throws, we'll use this to reset the state.
    var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);

    try {
      return beginWork(current, unitOfWork, expirationTime);
    } catch (originalError) {
      if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
        // Don't replay promises. Treat everything else like an error.
        throw originalError;
      } // Keep this code in sync with handleError; any changes here must have
      // corresponding changes there.


      resetContextDependencies();
      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
      // same fiber again.
      // Unwind the failed stack frame

      unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.

      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);

      if ( unitOfWork.mode & ProfileMode) {
        // Reset the profiler timer.
        startProfilerTimer(unitOfWork);
      } // Run beginWork again.


      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);

      if (hasCaughtError()) {
        var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
        // Rethrow this error instead of the original one.

        throw replayError;
      } else {
        // This branch is reachable if the render phase is impure.
        throw originalError;
      }
    }
  };
}

var didWarnAboutUpdateInRender = false;
var didWarnAboutUpdateInRenderForAnotherComponent;

{
  didWarnAboutUpdateInRenderForAnotherComponent = new Set();
}

function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  {
    if (isRendering && (executionContext & RenderContext) !== NoContext) {
      switch (fiber.tag) {
        case FunctionComponent:
        case ForwardRef:
        case SimpleMemoComponent:
          {
            var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.

            var dedupeKey = renderingComponentName;

            if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
              var setStateComponentName = getComponentName(fiber.type) || 'Unknown';

              error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
            }

            break;
          }

        case ClassComponent:
          {
            if (!didWarnAboutUpdateInRender) {
              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');

              didWarnAboutUpdateInRender = true;
            }

            break;
          }
      }
    }
  }
} // a 'shared' variable that changes when act() opens/closes in tests.


var IsThisRendererActing = {
  current: false
};
function warnIfNotScopedWithMatchingAct(fiber) {
  {
    if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
      error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
    }
  }
}
function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  {
    if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
      error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
    }
  }
}

function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  {
    if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
      error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
    }
  }
}

var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.

var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
// scheduler is the actual recommendation. The alternative could be a testing build,
// a new lib, or whatever; we dunno just yet. This message is for early adopters
// to get their tests right.

function warnIfUnmockedScheduler(fiber) {
  {
    if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
      if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
        didWarnAboutUnmockedScheduler = true;

        error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
      }
    }
  }
}

function computeThreadID(root, expirationTime) {
  // Interaction threads are unique per root and expiration time.
  return expirationTime * 1000 + root.interactionThreadID;
}

function markSpawnedWork(expirationTime) {

  if (spawnedWorkDuringRender === null) {
    spawnedWorkDuringRender = [expirationTime];
  } else {
    spawnedWorkDuringRender.push(expirationTime);
  }
}

function scheduleInteractions(root, expirationTime, interactions) {

  if (interactions.size > 0) {
    var pendingInteractionMap = root.pendingInteractionMap;
    var pendingInteractions = pendingInteractionMap.get(expirationTime);

    if (pendingInteractions != null) {
      interactions.forEach(function (interaction) {
        if (!pendingInteractions.has(interaction)) {
          // Update the pending async work count for previously unscheduled interaction.
          interaction.__count++;
        }

        pendingInteractions.add(interaction);
      });
    } else {
      pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.

      interactions.forEach(function (interaction) {
        interaction.__count++;
      });
    }

    var subscriber = tracing.__subscriberRef.current;

    if (subscriber !== null) {
      var threadID = computeThreadID(root, expirationTime);
      subscriber.onWorkScheduled(interactions, threadID);
    }
  }
}

function schedulePendingInteractions(root, expirationTime) {

  scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
}

function startWorkOnPendingInteractions(root, expirationTime) {
  // we can accurately attribute time spent working on it, And so that cascading
  // work triggered during the render phase will be associated with 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 performConcurrentWorkOnRoot()
  // 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(root, expirationTime);

      try {
        subscriber.onWorkStarted(interactions, threadID);
      } catch (error) {
        // If the subscriber throws, rethrow it in a separate task
        scheduleCallback(ImmediatePriority, function () {
          throw error;
        });
      }
    }
  }
}

function finishPendingInteractions(root, committedExpirationTime) {

  var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  var subscriber;

  try {
    subscriber = tracing.__subscriberRef.current;

    if (subscriber !== null && root.memoizedInteractions.size > 0) {
      var threadID = computeThreadID(root, committedExpirationTime);
      subscriber.onWorkStopped(root.memoizedInteractions, threadID);
    }
  } catch (error) {
    // If the subscriber throws, rethrow it in a separate task
    scheduleCallback(ImmediatePriority, function () {
      throw error;
    });
  } finally {
    // Clear completed interactions from the pending Map.
    // Unless the render was suspended or cascading work was scheduled,
    // In which case– leave pending interactions until the subsequent render.
    var pendingInteractionMap = root.pendingInteractionMap;
    pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
      // Only decrement the pending interaction count if we're done.
      // If there's still work at the current priority,
      // That indicates that we are waiting for suspense data.
      if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
        pendingInteractionMap.delete(scheduledExpirationTime);
        scheduledInteractions.forEach(function (interaction) {
          interaction.__count--;

          if (subscriber !== null && interaction.__count === 0) {
            try {
              subscriber.onInteractionScheduledWorkCompleted(interaction);
            } catch (error) {
              // If the subscriber throws, rethrow it in a separate task
              scheduleCallback(ImmediatePriority, function () {
                throw error;
              });
            }
          }
        });
      }
    });
  }
}

var onScheduleFiberRoot = null;
var onCommitFiberRoot = null;
var onCommitFiberUnmount = null;
var hasLoggedError = false;
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) {
    {
      error('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.

    if (true) {
      // Only used by Fast Refresh
      if (typeof hook.onScheduleFiberRoot === 'function') {
        onScheduleFiberRoot = function (root, children) {
          try {
            hook.onScheduleFiberRoot(rendererID, root, children);
          } catch (err) {
            if ( true && !hasLoggedError) {
              hasLoggedError = true;

              error('React instrumentation encountered an error: %s', err);
            }
          }
        };
      }
    }

    onCommitFiberRoot = function (root, expirationTime) {
      try {
        var didError = (root.current.effectTag & DidCapture) === DidCapture;

        if (enableProfilerTimer) {
          var currentTime = getCurrentTime();
          var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
          hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
        } else {
          hook.onCommitFiberRoot(rendererID, root, undefined, didError);
        }
      } catch (err) {
        if (true) {
          if (!hasLoggedError) {
            hasLoggedError = true;

            error('React instrumentation encountered an error: %s', err);
          }
        }
      }
    };

    onCommitFiberUnmount = function (fiber) {
      try {
        hook.onCommitFiberUnmount(rendererID, fiber);
      } catch (err) {
        if (true) {
          if (!hasLoggedError) {
            hasLoggedError = true;

            error('React instrumentation encountered an error: %s', err);
          }
        }
      }
    };
  } catch (err) {
    // Catch all errors because it is unsafe to throw during initialization.
    {
      error('React instrumentation encountered an error: %s.', err);
    }
  } // DevTools exists


  return true;
}
function onScheduleRoot(root, children) {
  if (typeof onScheduleFiberRoot === 'function') {
    onScheduleFiberRoot(root, children);
  }
}
function onCommitRoot(root, expirationTime) {
  if (typeof onCommitFiberRoot === 'function') {
    onCommitFiberRoot(root, expirationTime);
  }
}
function onCommitUnmount(fiber) {
  if (typeof onCommitFiberUnmount === 'function') {
    onCommitFiberUnmount(fiber);
  }
}

var hasBadMapPolyfill;

{
  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;
  }
}

var debugCounter = 1;

function FiberNode(tag, pendingProps, key, mode) {
  // Instance
  this.tag = tag;
  this.key = key;
  this.elementType = null;
  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.dependencies = 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;

  {
    // Note: The following is done to avoid a v8 performance cliff.
    //
    // Initializing the fields below to smis and later updating them with
    // double values will cause Fibers to end up having separate shapes.
    // This behavior/bug has something to do with Object.preventExtension().
    // Fortunately this only impacts DEV builds.
    // Unfortunately it makes React unusably slow for some applications.
    // To work around this, initialize the fields below with doubles.
    //
    // Learn more about this here:
    // https://github.com/facebook/react/issues/14365
    // https://bugs.chromium.org/p/v8/issues/detail?id=8538
    this.actualDuration = Number.NaN;
    this.actualStartTime = Number.NaN;
    this.selfBaseDuration = Number.NaN;
    this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
    // This won't trigger the performance cliff mentioned above,
    // and it simplifies other profiler code (including DevTools).

    this.actualDuration = 0;
    this.actualStartTime = -1;
    this.selfBaseDuration = 0;
    this.treeBaseDuration = 0;
  } // This is normally DEV-only except www when it adds listeners.
  // TODO: remove the User Timing integration in favor of Root Events.


  {
    this._debugID = debugCounter++;
    this._debugIsCurrentlyTiming = false;
  }

  {
    this._debugSource = null;
    this._debugOwner = null;
    this._debugNeedsRemount = false;
    this._debugHookTypes = null;

    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 isSimpleFunctionComponent(type) {
  return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
}
function resolveLazyComponentTag(Component) {
  if (typeof Component === 'function') {
    return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  } else if (Component !== undefined && Component !== null) {
    var $$typeof = Component.$$typeof;

    if ($$typeof === REACT_FORWARD_REF_TYPE) {
      return ForwardRef;
    }

    if ($$typeof === REACT_MEMO_TYPE) {
      return MemoComponent;
    }
  }

  return IndeterminateComponent;
} // This is used to create an alternate fiber to do work on.

function createWorkInProgress(current, pendingProps) {
  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.elementType = current.elementType;
    workInProgress.type = current.type;
    workInProgress.stateNode = current.stateNode;

    {
      // DEV-only fields
      {
        workInProgress._debugID = current._debugID;
      }

      workInProgress._debugSource = current._debugSource;
      workInProgress._debugOwner = current._debugOwner;
      workInProgress._debugHookTypes = current._debugHookTypes;
    }

    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;

    {
      // 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;
    }
  }

  workInProgress.childExpirationTime = current.childExpirationTime;
  workInProgress.expirationTime = current.expirationTime;
  workInProgress.child = current.child;
  workInProgress.memoizedProps = current.memoizedProps;
  workInProgress.memoizedState = current.memoizedState;
  workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  // it cannot be shared with the current fiber.

  var currentDependencies = current.dependencies;
  workInProgress.dependencies = currentDependencies === null ? null : {
    expirationTime: currentDependencies.expirationTime,
    firstContext: currentDependencies.firstContext,
    responders: currentDependencies.responders
  }; // These will be overridden during the parent's reconciliation

  workInProgress.sibling = current.sibling;
  workInProgress.index = current.index;
  workInProgress.ref = current.ref;

  {
    workInProgress.selfBaseDuration = current.selfBaseDuration;
    workInProgress.treeBaseDuration = current.treeBaseDuration;
  }

  {
    workInProgress._debugNeedsRemount = current._debugNeedsRemount;

    switch (workInProgress.tag) {
      case IndeterminateComponent:
      case FunctionComponent:
      case SimpleMemoComponent:
        workInProgress.type = resolveFunctionForHotReloading(current.type);
        break;

      case ClassComponent:
        workInProgress.type = resolveClassForHotReloading(current.type);
        break;

      case ForwardRef:
        workInProgress.type = resolveForwardRefForHotReloading(current.type);
        break;
    }
  }

  return workInProgress;
} // Used to reuse a Fiber for a second pass.

function resetWorkInProgress(workInProgress, renderExpirationTime) {
  // This resets the Fiber to what createFiber or createWorkInProgress would
  // have set the values to before during the first pass. Ideally this wouldn't
  // be necessary but unfortunately many code paths reads from the workInProgress
  // when they should be reading from current and writing to workInProgress.
  // We assume pendingProps, index, key, ref, return are still untouched to
  // avoid doing another reconciliation.
  // Reset the effect tag but keep any Placement tags, since that's something
  // that child fiber is setting, not the reconciliation.
  workInProgress.effectTag &= Placement; // The effect list is no longer valid.

  workInProgress.nextEffect = null;
  workInProgress.firstEffect = null;
  workInProgress.lastEffect = null;
  var current = workInProgress.alternate;

  if (current === null) {
    // Reset to createFiber's initial values.
    workInProgress.childExpirationTime = NoWork;
    workInProgress.expirationTime = renderExpirationTime;
    workInProgress.child = null;
    workInProgress.memoizedProps = null;
    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null;
    workInProgress.dependencies = null;

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = 0;
      workInProgress.treeBaseDuration = 0;
    }
  } else {
    // Reset to the cloned values that createWorkInProgress would've.
    workInProgress.childExpirationTime = current.childExpirationTime;
    workInProgress.expirationTime = current.expirationTime;
    workInProgress.child = current.child;
    workInProgress.memoizedProps = current.memoizedProps;
    workInProgress.memoizedState = current.memoizedState;
    workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
    // it cannot be shared with the current fiber.

    var currentDependencies = current.dependencies;
    workInProgress.dependencies = currentDependencies === null ? null : {
      expirationTime: currentDependencies.expirationTime,
      firstContext: currentDependencies.firstContext,
      responders: currentDependencies.responders
    };

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = current.selfBaseDuration;
      workInProgress.treeBaseDuration = current.treeBaseDuration;
    }
  }

  return workInProgress;
}
function createHostRootFiber(tag) {
  var mode;

  if (tag === ConcurrentRoot) {
    mode = ConcurrentMode | BlockingMode | StrictMode;
  } else if (tag === BlockingRoot) {
    mode = BlockingMode | StrictMode;
  } else {
    mode = NoMode;
  }

  if ( 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 createFiberFromTypeAndProps(type, // React$ElementType
key, pendingProps, owner, mode, expirationTime) {
  var fiber;
  var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.

  var resolvedType = type;

  if (typeof type === 'function') {
    if (shouldConstruct(type)) {
      fiberTag = ClassComponent;

      {
        resolvedType = resolveClassForHotReloading(resolvedType);
      }
    } else {
      {
        resolvedType = resolveFunctionForHotReloading(resolvedType);
      }
    }
  } else if (typeof type === 'string') {
    fiberTag = HostComponent;
  } else {
    getTag: switch (type) {
      case REACT_FRAGMENT_TYPE:
        return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);

      case REACT_CONCURRENT_MODE_TYPE:
        fiberTag = Mode;
        mode |= ConcurrentMode | BlockingMode | StrictMode;
        break;

      case REACT_STRICT_MODE_TYPE:
        fiberTag = Mode;
        mode |= StrictMode;
        break;

      case REACT_PROFILER_TYPE:
        return createFiberFromProfiler(pendingProps, mode, expirationTime, key);

      case REACT_SUSPENSE_TYPE:
        return createFiberFromSuspense(pendingProps, mode, expirationTime, key);

      case REACT_SUSPENSE_LIST_TYPE:
        return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);

      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;

                {
                  resolvedType = resolveForwardRefForHotReloading(resolvedType);
                }

                break getTag;

              case REACT_MEMO_TYPE:
                fiberTag = MemoComponent;
                break getTag;

              case REACT_LAZY_TYPE:
                fiberTag = LazyComponent;
                resolvedType = null;
                break getTag;

              case REACT_BLOCK_TYPE:
                fiberTag = Block;
                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 + '`.';
            }
          }

          {
            {
              throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info );
            }
          }
        }
    }
  }

  fiber = createFiber(fiberTag, pendingProps, key, mode);
  fiber.elementType = type;
  fiber.type = resolvedType;
  fiber.expirationTime = expirationTime;
  return fiber;
}
function createFiberFromElement(element, mode, expirationTime) {
  var owner = null;

  {
    owner = element._owner;
  }

  var type = element.type;
  var key = element.key;
  var pendingProps = element.props;
  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, 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') {
      error('Profiler must specify an "id" string and "onRender" function as props');
    }
  }

  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.

  fiber.elementType = REACT_PROFILER_TYPE;
  fiber.type = REACT_PROFILER_TYPE;
  fiber.expirationTime = expirationTime;
  return fiber;
}

function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  // This needs to be fixed in getComponentName so that it relies on the tag
  // instead.

  fiber.type = REACT_SUSPENSE_TYPE;
  fiber.elementType = REACT_SUSPENSE_TYPE;
  fiber.expirationTime = expirationTime;
  return fiber;
}
function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);

  {
    // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
    // This needs to be fixed in getComponentName so that it relies on the tag
    // instead.
    fiber.type = REACT_SUSPENSE_LIST_TYPE;
  }

  fiber.elementType = REACT_SUSPENSE_LIST_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, NoMode); // TODO: These should not need a type.

  fiber.elementType = 'DELETED';
  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,
    // Used by persistent updates
    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, NoMode);
  } // 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.elementType = source.elementType;
  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.dependencies = source.dependencies;
  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;

  {
    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;
  target._debugNeedsRemount = source._debugNeedsRemount;
  target._debugHookTypes = source._debugHookTypes;
  return target;
}

function FiberRootNode(containerInfo, tag, hydrate) {
  this.tag = tag;
  this.current = null;
  this.containerInfo = containerInfo;
  this.pendingChildren = null;
  this.pingCache = null;
  this.finishedExpirationTime = NoWork;
  this.finishedWork = null;
  this.timeoutHandle = noTimeout;
  this.context = null;
  this.pendingContext = null;
  this.hydrate = hydrate;
  this.callbackNode = null;
  this.callbackPriority = NoPriority;
  this.firstPendingTime = NoWork;
  this.firstSuspendedTime = NoWork;
  this.lastSuspendedTime = NoWork;
  this.nextKnownPendingLevel = NoWork;
  this.lastPingedTime = NoWork;
  this.lastExpiredTime = NoWork;

  {
    this.interactionThreadID = tracing.unstable_getThreadID();
    this.memoizedInteractions = new Set();
    this.pendingInteractionMap = new Map();
  }
}

function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
  var root = new FiberRootNode(containerInfo, tag, hydrate);
  // stateNode is any.


  var uninitializedFiber = createHostRootFiber(tag);
  root.current = uninitializedFiber;
  uninitializedFiber.stateNode = root;
  initializeUpdateQueue(uninitializedFiber);
  return root;
}
function isRootSuspendedAtTime(root, expirationTime) {
  var firstSuspendedTime = root.firstSuspendedTime;
  var lastSuspendedTime = root.lastSuspendedTime;
  return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
}
function markRootSuspendedAtTime(root, expirationTime) {
  var firstSuspendedTime = root.firstSuspendedTime;
  var lastSuspendedTime = root.lastSuspendedTime;

  if (firstSuspendedTime < expirationTime) {
    root.firstSuspendedTime = expirationTime;
  }

  if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
    root.lastSuspendedTime = expirationTime;
  }

  if (expirationTime <= root.lastPingedTime) {
    root.lastPingedTime = NoWork;
  }

  if (expirationTime <= root.lastExpiredTime) {
    root.lastExpiredTime = NoWork;
  }
}
function markRootUpdatedAtTime(root, expirationTime) {
  // Update the range of pending times
  var firstPendingTime = root.firstPendingTime;

  if (expirationTime > firstPendingTime) {
    root.firstPendingTime = expirationTime;
  } // Update the range of suspended times. Treat everything lower priority or
  // equal to this update as unsuspended.


  var firstSuspendedTime = root.firstSuspendedTime;

  if (firstSuspendedTime !== NoWork) {
    if (expirationTime >= firstSuspendedTime) {
      // The entire suspended range is now unsuspended.
      root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
    } else if (expirationTime >= root.lastSuspendedTime) {
      root.lastSuspendedTime = expirationTime + 1;
    } // This is a pending level. Check if it's higher priority than the next
    // known pending level.


    if (expirationTime > root.nextKnownPendingLevel) {
      root.nextKnownPendingLevel = expirationTime;
    }
  }
}
function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
  // Update the range of pending times
  root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
  // equal to this update as unsuspended.

  if (finishedExpirationTime <= root.lastSuspendedTime) {
    // The entire suspended range is now unsuspended.
    root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
  } else if (finishedExpirationTime <= root.firstSuspendedTime) {
    // Part of the suspended range is now unsuspended. Narrow the range to
    // include everything between the unsuspended time (non-inclusive) and the
    // last suspended time.
    root.firstSuspendedTime = finishedExpirationTime - 1;
  }

  if (finishedExpirationTime <= root.lastPingedTime) {
    // Clear the pinged time
    root.lastPingedTime = NoWork;
  }

  if (finishedExpirationTime <= root.lastExpiredTime) {
    // Clear the expired time
    root.lastExpiredTime = NoWork;
  }
}
function markRootExpiredAtTime(root, expirationTime) {
  var lastExpiredTime = root.lastExpiredTime;

  if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) {
    root.lastExpiredTime = expirationTime;
  }
}

var didWarnAboutNestedUpdates;
var didWarnAboutFindNodeInStrictMode;

{
  didWarnAboutNestedUpdates = false;
  didWarnAboutFindNodeInStrictMode = {};
}

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);
    }
  }

  return parentContext;
}

function findHostInstanceWithWarning(component, methodName) {
  {
    var fiber = get(component);

    if (fiber === undefined) {
      if (typeof component.render === 'function') {
        {
          {
            throw Error( "Unable to find node on an unmounted component." );
          }
        }
      } else {
        {
          {
            throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
          }
        }
      }
    }

    var hostFiber = findCurrentHostFiber(fiber);

    if (hostFiber === null) {
      return null;
    }

    if (hostFiber.mode & StrictMode) {
      var componentName = getComponentName(fiber.type) || 'Component';

      if (!didWarnAboutFindNodeInStrictMode[componentName]) {
        didWarnAboutFindNodeInStrictMode[componentName] = true;

        if (fiber.mode & StrictMode) {
          error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
        } else {
          error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
        }
      }
    }

    return hostFiber.stateNode;
  }
}

function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
  return createFiberRoot(containerInfo, tag, hydrate);
}
function updateContainer(element, container, parentComponent, callback) {
  {
    onScheduleRoot(container, element);
  }

  var current$1 = container.current;
  var currentTime = requestCurrentTimeForUpdate();

  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfUnmockedScheduler(current$1);
      warnIfNotScopedWithMatchingAct(current$1);
    }
  }

  var suspenseConfig = requestCurrentSuspenseConfig();
  var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig);
  var context = getContextForSubtree(parentComponent);

  if (container.context === null) {
    container.context = context;
  } else {
    container.pendingContext = context;
  }

  {
    if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
      didWarnAboutNestedUpdates = true;

      error('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, suspenseConfig); // Caution: React DevTools currently depends on this property
  // being called "element".

  update.payload = {
    element: element
  };
  callback = callback === undefined ? null : callback;

  if (callback !== null) {
    {
      if (typeof callback !== 'function') {
        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
      }
    }

    update.callback = callback;
  }

  enqueueUpdate(current$1, update);
  scheduleWork(current$1, expirationTime);
  return expirationTime;
}
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 markRetryTimeImpl(fiber, retryTime) {
  var suspenseState = fiber.memoizedState;

  if (suspenseState !== null && suspenseState.dehydrated !== null) {
    if (suspenseState.retryTime < retryTime) {
      suspenseState.retryTime = retryTime;
    }
  }
} // Increases the priority of thennables when they resolve within this boundary.


function markRetryTimeIfNotHydrated(fiber, retryTime) {
  markRetryTimeImpl(fiber, retryTime);
  var alternate = fiber.alternate;

  if (alternate) {
    markRetryTimeImpl(alternate, retryTime);
  }
}

function attemptUserBlockingHydration$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority and they should not suspend on I/O,
    // since you have to wrap anything that might suspend in
    // Suspense.
    return;
  }

  var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
  scheduleWork(fiber, expTime);
  markRetryTimeIfNotHydrated(fiber, expTime);
}
function attemptContinuousHydration$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority and they should not suspend on I/O,
    // since you have to wrap anything that might suspend in
    // Suspense.
    return;
  }

  scheduleWork(fiber, ContinuousHydration);
  markRetryTimeIfNotHydrated(fiber, ContinuousHydration);
}
function attemptHydrationAtCurrentPriority$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority other than synchronously flush it.
    return;
  }

  var currentTime = requestCurrentTimeForUpdate();
  var expTime = computeExpirationForFiber(currentTime, fiber, null);
  scheduleWork(fiber, expTime);
  markRetryTimeIfNotHydrated(fiber, expTime);
}
function findHostInstanceWithNoPortals(fiber) {
  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);

  if (hostFiber === null) {
    return null;
  }

  if (hostFiber.tag === FundamentalComponent) {
    return hostFiber.stateNode.instance;
  }

  return hostFiber.stateNode;
}

var shouldSuspendImpl = function (fiber) {
  return false;
};

function shouldSuspend(fiber) {
  return shouldSuspendImpl(fiber);
}
var overrideHookState = null;
var overrideProps = null;
var scheduleUpdate = null;
var setSuspenseHandler = null;

{
  var copyWithSetImpl = function (obj, path, idx, value) {
    if (idx >= path.length) {
      return value;
    }

    var key = path[idx];
    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here

    updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
    return updated;
  };

  var copyWithSet = function (obj, path, value) {
    return copyWithSetImpl(obj, path, 0, value);
  }; // Support DevTools editable values for useState and useReducer.


  overrideHookState = function (fiber, id, path, value) {
    // For now, the "id" of stateful hooks is just the stateful hook index.
    // This may change in the future with e.g. nested hooks.
    var currentHook = fiber.memoizedState;

    while (currentHook !== null && id > 0) {
      currentHook = currentHook.next;
      id--;
    }

    if (currentHook !== null) {
      var newState = copyWithSet(currentHook.memoizedState, path, value);
      currentHook.memoizedState = newState;
      currentHook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
      scheduleWork(fiber, Sync);
    }
  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.


  overrideProps = function (fiber, path, value) {
    fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    scheduleWork(fiber, Sync);
  };

  scheduleUpdate = function (fiber) {
    scheduleWork(fiber, Sync);
  };

  setSuspenseHandler = function (newShouldSuspendImpl) {
    shouldSuspendImpl = newShouldSuspendImpl;
  };
}

function injectIntoDevTools(devToolsConfig) {
  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  return injectInternals(_assign({}, devToolsConfig, {
    overrideHookState: overrideHookState,
    overrideProps: overrideProps,
    setSuspenseHandler: setSuspenseHandler,
    scheduleUpdate: scheduleUpdate,
    currentDispatcherRef: ReactCurrentDispatcher,
    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);
    },
    // React Refresh
    findHostInstancesForRefresh:  findHostInstancesForRefresh ,
    scheduleRefresh:  scheduleRefresh ,
    scheduleRoot:  scheduleRoot ,
    setRefreshHandler:  setRefreshHandler ,
    // Enables DevTools to append owner stacks to error messages in DEV mode.
    getCurrentFiber:  function () {
      return current;
    } 
  }));
}
var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;

function ReactDOMRoot(container, options) {
  this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
}

function ReactDOMBlockingRoot(container, tag, options) {
  this._internalRoot = createRootImpl(container, tag, options);
}

ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
  var root = this._internalRoot;

  {
    if (typeof arguments[1] === 'function') {
      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    }

    var container = root.containerInfo;

    if (container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(root.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
        }
      }
    }
  }

  updateContainer(children, root, null, null);
};

ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
  {
    if (typeof arguments[0] === 'function') {
      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    }
  }

  var root = this._internalRoot;
  var container = root.containerInfo;
  updateContainer(null, root, null, function () {
    unmarkContainerAsRoot(container);
  });
};

function createRootImpl(container, tag, options) {
  // Tag is either LegacyRoot or Concurrent Root
  var hydrate = options != null && options.hydrate === true;
  var hydrationCallbacks = options != null && options.hydrationOptions || null;
  var root = createContainer(container, tag, hydrate);
  markContainerAsRoot(root.current, container);

  if (hydrate && tag !== LegacyRoot) {
    var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument;
    eagerlyTrapReplayableEvents(container, doc);
  }

  return root;
}
function createLegacyRoot(container, options) {
  return new ReactDOMBlockingRoot(container, LegacyRoot, options);
}
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 '));
}

var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
var topLevelUpdateWarnings;
var warnedAboutHydrateAPI = false;

{
  topLevelUpdateWarnings = function (container) {
    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('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.');
        }
      }
    }

    var isRootRenderedBySomeReact = !!container._reactRootContainer;
    var rootEl = getReactRootElementInContainer(container);
    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));

    if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
      error('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.');
    }

    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
      error('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.');
    }
  };
}

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));
}

function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.

  if (!shouldHydrate) {
    var warned = false;
    var rootSibling;

    while (rootSibling = container.lastChild) {
      {
        if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
          warned = true;

          error('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;

      warn('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.');
    }
  }

  return createLegacyRoot(container, shouldHydrate ? {
    hydrate: true
  } : undefined);
}

function warnOnInvalidCallback$1(callback, callerName) {
  {
    if (callback !== null && typeof callback !== 'function') {
      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  }
}

function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  {
    topLevelUpdateWarnings(container);
    warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  // member of intersection type." Whyyyyyy.


  var root = container._reactRootContainer;
  var fiberRoot;

  if (!root) {
    // Initial mount
    root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
    fiberRoot = root._internalRoot;

    if (typeof callback === 'function') {
      var originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(fiberRoot);
        originalCallback.call(instance);
      };
    } // Initial mount should not be batched.


    unbatchedUpdates(function () {
      updateContainer(children, fiberRoot, parentComponent, callback);
    });
  } else {
    fiberRoot = root._internalRoot;

    if (typeof callback === 'function') {
      var _originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(fiberRoot);

        _originalCallback.call(instance);
      };
    } // Update


    updateContainer(children, fiberRoot, parentComponent, callback);
  }

  return getPublicRootInstance(fiberRoot);
}

function findDOMNode(componentOrElement) {
  {
    var owner = ReactCurrentOwner$3.current;

    if (owner !== null && owner.stateNode !== null) {
      var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;

      if (!warnedAboutRefsInRender) {
        error('%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');
      }

      owner.stateNode._warnedAboutRefsInRender = true;
    }
  }

  if (componentOrElement == null) {
    return null;
  }

  if (componentOrElement.nodeType === ELEMENT_NODE) {
    return componentOrElement;
  }

  {
    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  }
}
function hydrate(element, container, callback) {
  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
    }
  } // TODO: throw or warn if we couldn't hydrate?


  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
}
function render(element, container, callback) {
  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
    }
  }

  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
}
function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  if (!isValidContainer(containerNode)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  if (!(parentComponent != null && has(parentComponent))) {
    {
      throw Error( "parentComponent must be a valid React Component" );
    }
  }

  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
}
function unmountComponentAtNode(container) {
  if (!isValidContainer(container)) {
    {
      throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
    }
  }

  if (container._reactRootContainer) {
    {
      var rootEl = getReactRootElementInContainer(container);
      var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);

      if (renderedByDifferentReact) {
        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
      }
    } // Unmount should not be batched.


    unbatchedUpdates(function () {
      legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
        // $FlowFixMe This should probably use `delete container._reactRootContainer`
        container._reactRootContainer = null;
        unmarkContainerAsRoot(container);
      });
    }); // 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;

      if (hasNonRootReactChild) {
        error("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.');
      }
    }

    return false;
  }
}

function createPortal(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
  };
}

var ReactVersion = '16.13.1';

setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
setAttemptContinuousHydration(attemptContinuousHydration$1);
setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
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') {
    error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  }
}

setRestoreImplementation(restoreControlledState$3);
setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);

function createPortal$1(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  } // TODO: pass ReactDOM portal implementation as third argument
  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.


  return createPortal(children, container, null, key);
}

function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {

  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
}

function unstable_createPortal(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  {
    if (!didWarnAboutUnstableCreatePortal) {
      didWarnAboutUnstableCreatePortal = true;

      warn('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$1(children, container, key);
}

var Internals = {
  // Keep in sync with ReactDOMUnstableNativeDependencies.js
  // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
};
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)) {
        // eslint-disable-next-line react-internal/no-production-logging
        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');
      }
    }
  }
}

exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal$1;
exports.findDOMNode = findDOMNode;
exports.flushSync = flushSync;
exports.hydrate = hydrate;
exports.render = render;
exports.unmountComponentAtNode = unmountComponentAtNode;
exports.unstable_batchedUpdates = batchedUpdates$1;
exports.unstable_createPortal = unstable_createPortal;
exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
exports.version = ReactVersion;
  })();
}


/***/ }),

/***/ "./node_modules/react-dom/index.js":
/*!*****************************************!*\
  !*** ./node_modules/react-dom/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (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__(/*! ./cjs/react-dom.development.js */ "./node_modules/react-dom/cjs/react-dom.development.js");
}


/***/ }),

/***/ "./node_modules/react-ellipsis-with-tooltip/dist/index.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-ellipsis-with-tooltip/dist/index.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _reactBootstrap = __webpack_require__(/*! react-bootstrap */ "./node_modules/react-bootstrap/esm/index.js");

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _v = _interopRequireDefault(__webpack_require__(/*! uuid/v4 */ "./node_modules/uuid/v4.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var ellipsisDefaultStyle = {
  overflow: 'hidden',
  overflowWrap: 'break-word',
  textOverflow: 'ellipsis',
  whiteSpace: 'nowrap',
  wordBreak: 'break-all'
};

var EllipisWithTooltip =
/*#__PURE__*/
function (_React$Component) {
  _inherits(EllipisWithTooltip, _React$Component);

  function EllipisWithTooltip(props) {
    var _this;

    _classCallCheck(this, EllipisWithTooltip);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(EllipisWithTooltip).call(this, props));
    _this.state = {
      hasOverflowingChildren: false,
      text: undefined,
      prevPropsChildren: props.children
    };
    _this.updateOverflow = _this.updateOverflow.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(EllipisWithTooltip, [{
    key: "updateOverflow",
    value: function updateOverflow(e) {
      var el = e.target;
      var _this$state = this.state,
          hasOverflowingChildren = _this$state.hasOverflowingChildren,
          text = _this$state.text;

      if (!hasOverflowingChildren && el.scrollWidth > el.clientWidth) {
        this.setState({
          hasOverflowingChildren: true
        });

        if (el.textContent !== text) {
          this.setState({
            text: el.textContent
          });
        }
      } else {
        this.setState({
          hasOverflowingChildren: false
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state2 = this.state,
          hasOverflowingChildren = _this$state2.hasOverflowingChildren,
          text = _this$state2.text;
      var _this$props = this.props,
          _this$props$placement = _this$props.placement,
          placement = _this$props$placement === void 0 ? 'top' : _this$props$placement,
          _this$props$style = _this$props.style,
          style = _this$props$style === void 0 ? {} : _this$props$style,
          delayShow = _this$props.delayShow,
          delayHide = _this$props.delayHide,
          children = _this$props.children;

      var tooltip = _react["default"].createElement(_reactBootstrap.Tooltip, {
        id: "tooltip-".concat((0, _v["default"])())
      }, text);

      var ellipsisStyle = _objectSpread({}, ellipsisDefaultStyle, {}, style);

      return hasOverflowingChildren ? _react["default"].createElement(_reactBootstrap.OverlayTrigger, {
        placement: placement,
        overlay: tooltip,
        delayShow: delayShow,
        delayHide: delayHide
      }, _react["default"].createElement("div", {
        style: ellipsisStyle
      }, children)) : _react["default"].createElement("div", {
        style: ellipsisStyle,
        onMouseEnter: this.updateOverflow
      }, children);
    }
  }], [{
    key: "getDerivedStateFromProps",
    value: function getDerivedStateFromProps(props, state) {
      if (props.children === state.prevPropsChildren) return null;
      return {
        hasOverflowingChildren: false,
        prevPropsChildren: props.children
      };
    }
  }]);

  return EllipisWithTooltip;
}(_react["default"].Component);

EllipisWithTooltip.propTypes = {
  placement: _propTypes["default"].string,
  children: _propTypes["default"].node.isRequired,
  style: _propTypes["default"].object,
  delayShow: _propTypes["default"].number,
  delayHide: _propTypes["default"].number
};
EllipisWithTooltip.defaultProps = {
  placement: undefined,
  style: undefined,
  delayHide: undefined,
  delayShow: undefined
};
var _default = EllipisWithTooltip;
exports["default"] = _default;

/***/ }),

/***/ "./node_modules/react-fontawesome/lib/index.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-fontawesome/lib/index.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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; }

/**
 * A React component for the font-awesome icon library.
 *
 * @param {String} [ariaLabel] An extra accessibility label to put on the icon
 * @param {Boolean} [border=false] Whether or not to show a border radius
 * @param {String} [className] An extra set of CSS classes to add to the component
 * @param {Object} [cssModule] Option to pass FontAwesome CSS as a module
 * @param {Boolean} [fixedWidth=false] Make buttons fixed width
 * @param {String} [flip=false] Flip the icon's orientation.
 * @param {Boolean} [inverse=false] Inverse the icon's color
 * @param {String} [name] Name of the icon to use
 * @param {Boolean} [pulse=false] Rotate icon with 8 steps, rather than smoothly
 * @param {Number} [rotate] The degress to rotate the icon by
 * @param {String} [size] The icon scaling size
 * @param {Boolean} [spin=false] Spin the icon
 * @param {String} [stack] Stack an icon on top of another. Arguments specify z-index such as '1x' See documentation for example http://fontawesome.io/examples/#stacked
 * @param {String} [tag=span] The HTML tag to use as a string, eg 'i' or 'em'
 * @module FontAwesome
 * @type {ReactClass}
 */
var FontAwesome = function (_React$Component) {
  _inherits(FontAwesome, _React$Component);

  function FontAwesome() {
    _classCallCheck(this, FontAwesome);

    var _this = _possibleConstructorReturn(this, (FontAwesome.__proto__ || Object.getPrototypeOf(FontAwesome)).call(this));

    _this.displayName = 'FontAwesome';
    return _this;
  }

  _createClass(FontAwesome, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          border = _props.border,
          cssModule = _props.cssModule,
          className = _props.className,
          fixedWidth = _props.fixedWidth,
          flip = _props.flip,
          inverse = _props.inverse,
          name = _props.name,
          pulse = _props.pulse,
          rotate = _props.rotate,
          size = _props.size,
          spin = _props.spin,
          stack = _props.stack,
          _props$tag = _props.tag,
          tag = _props$tag === undefined ? 'span' : _props$tag,
          ariaLabel = _props.ariaLabel,
          props = _objectWithoutProperties(_props, ['border', 'cssModule', 'className', 'fixedWidth', 'flip', 'inverse', 'name', 'pulse', 'rotate', 'size', 'spin', 'stack', 'tag', 'ariaLabel']);

      var ariaProps = ariaLabel ? { 'aria-label': ariaLabel } : { 'aria-hidden': true };
      var classNames = [];

      if (cssModule) {
        classNames.push(cssModule['fa']);
        classNames.push(cssModule['fa-' + name]);
        size && classNames.push(cssModule['fa-' + size]);
        spin && classNames.push(cssModule['fa-spin']);
        pulse && classNames.push(cssModule['fa-pulse']);
        border && classNames.push(cssModule['fa-border']);
        fixedWidth && classNames.push(cssModule['fa-fw']);
        inverse && classNames.push(cssModule['fa-inverse']);
        flip && classNames.push(cssModule['fa-flip-' + flip]);
        rotate && classNames.push(cssModule['fa-rotate-' + rotate]);
        stack && classNames.push(cssModule['fa-stack-' + stack]);
      } else {
        classNames.push('fa');
        classNames.push('fa-' + name);
        size && classNames.push('fa-' + size);
        spin && classNames.push('fa-spin');
        pulse && classNames.push('fa-pulse');
        border && classNames.push('fa-border');
        fixedWidth && classNames.push('fa-fw');
        inverse && classNames.push('fa-inverse');
        flip && classNames.push('fa-flip-' + flip);
        rotate && classNames.push('fa-rotate-' + rotate);
        stack && classNames.push('fa-stack-' + stack);
      }

      // Add any custom class names at the end.
      className && classNames.push(className);
      return _react2.default.createElement(tag, _extends({}, props, ariaProps, {
        className: classNames.join(' ')
      }));
    }
  }]);

  return FontAwesome;
}(_react2.default.Component);

FontAwesome.propTypes = {
  ariaLabel: _propTypes2.default.string,
  border: _propTypes2.default.bool,
  className: _propTypes2.default.string,
  cssModule: _propTypes2.default.object,
  fixedWidth: _propTypes2.default.bool,
  flip: _propTypes2.default.oneOf(['horizontal', 'vertical']),
  inverse: _propTypes2.default.bool,
  name: _propTypes2.default.string.isRequired,
  pulse: _propTypes2.default.bool,
  rotate: _propTypes2.default.oneOf([90, 180, 270]),
  size: _propTypes2.default.oneOf(['lg', '2x', '3x', '4x', '5x']),
  spin: _propTypes2.default.bool,
  stack: _propTypes2.default.oneOf(['1x', '2x']),
  tag: _propTypes2.default.string
};

exports.default = FontAwesome;
module.exports = exports.default;

/***/ }),

/***/ "./node_modules/react-is/cjs/react-is.development.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-is/cjs/react-is.development.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.6.1
 * react-is.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 });

// 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_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;

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_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
}

/**
 * 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;

function typeOf(object) {
  if (typeof object === 'object' && object !== null) {
    var $$typeof = object.$$typeof;

    switch ($$typeof) {
      case REACT_ELEMENT_TYPE:
        var type = object.type;

        switch (type) {
          case REACT_ASYNC_MODE_TYPE:
          case REACT_CONCURRENT_MODE_TYPE:
          case REACT_FRAGMENT_TYPE:
          case REACT_PROFILER_TYPE:
          case REACT_STRICT_MODE_TYPE:
            return type;
          default:
            var $$typeofType = type && type.$$typeof;

            switch ($$typeofType) {
              case REACT_CONTEXT_TYPE:
              case REACT_FORWARD_REF_TYPE:
              case REACT_PROVIDER_TYPE:
                return $$typeofType;
              default:
                return $$typeof;
            }
        }
      case REACT_PORTAL_TYPE:
        return $$typeof;
    }
  }

  return undefined;
}

// AsyncMode is deprecated along with isAsyncMode
var AsyncMode = REACT_ASYNC_MODE_TYPE;
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
var ContextConsumer = REACT_CONTEXT_TYPE;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
var Fragment = REACT_FRAGMENT_TYPE;
var Profiler = REACT_PROFILER_TYPE;
var Portal = REACT_PORTAL_TYPE;
var StrictMode = REACT_STRICT_MODE_TYPE;

var hasWarnedAboutDeprecatedIsAsyncMode = false;

// AsyncMode should be deprecated
function isAsyncMode(object) {
  {
    if (!hasWarnedAboutDeprecatedIsAsyncMode) {
      hasWarnedAboutDeprecatedIsAsyncMode = true;
      lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
    }
  }
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
}
function isConcurrentMode(object) {
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
}
function isContextConsumer(object) {
  return typeOf(object) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object) {
  return typeOf(object) === REACT_PROVIDER_TYPE;
}
function isElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object) {
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object) {
  return typeOf(object) === REACT_FRAGMENT_TYPE;
}
function isProfiler(object) {
  return typeOf(object) === REACT_PROFILER_TYPE;
}
function isPortal(object) {
  return typeOf(object) === REACT_PORTAL_TYPE;
}
function isStrictMode(object) {
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
}

exports.typeOf = typeOf;
exports.AsyncMode = AsyncMode;
exports.ConcurrentMode = ConcurrentMode;
exports.ContextConsumer = ContextConsumer;
exports.ContextProvider = ContextProvider;
exports.Element = Element;
exports.ForwardRef = ForwardRef;
exports.Fragment = Fragment;
exports.Profiler = Profiler;
exports.Portal = Portal;
exports.StrictMode = StrictMode;
exports.isValidElementType = isValidElementType;
exports.isAsyncMode = isAsyncMode;
exports.isConcurrentMode = isConcurrentMode;
exports.isContextConsumer = isContextConsumer;
exports.isContextProvider = isContextProvider;
exports.isElement = isElement;
exports.isForwardRef = isForwardRef;
exports.isFragment = isFragment;
exports.isProfiler = isProfiler;
exports.isPortal = isPortal;
exports.isStrictMode = isStrictMode;
  })();
}


/***/ }),

/***/ "./node_modules/react-is/index.js":
/*!****************************************!*\
  !*** ./node_modules/react-is/index.js ***!
  \****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
}


/***/ }),

/***/ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js":
/*!****************************************************************************!*\
  !*** ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***!
  \****************************************************************************/
/*! exports provided: polyfill */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
/**
 * 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 componentWillMount() {
  // Call this.constructor.gDSFP to support sub-classes.
  var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
  if (state !== null && state !== undefined) {
    this.setState(state);
  }
}

function componentWillReceiveProps(nextProps) {
  // Call this.constructor.gDSFP to support sub-classes.
  // Use the setState() updater to ensure state isn't stale in certain edge cases.
  function updater(prevState) {
    var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
    return state !== null && state !== undefined ? state : null;
  }
  // Binding "this" is important for shallow renderer support.
  this.setState(updater.bind(this));
}

function componentWillUpdate(nextProps, nextState) {
  try {
    var prevProps = this.props;
    var prevState = this.state;
    this.props = nextProps;
    this.state = nextState;
    this.__reactInternalSnapshotFlag = true;
    this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
      prevProps,
      prevState
    );
  } finally {
    this.props = prevProps;
    this.state = prevState;
  }
}

// React may warn about cWM/cWRP/cWU methods being deprecated.
// Add a flag to suppress these warnings for this special case.
componentWillMount.__suppressDeprecationWarning = true;
componentWillReceiveProps.__suppressDeprecationWarning = true;
componentWillUpdate.__suppressDeprecationWarning = true;

function polyfill(Component) {
  var prototype = Component.prototype;

  if (!prototype || !prototype.isReactComponent) {
    throw new Error('Can only polyfill class components');
  }

  if (
    typeof Component.getDerivedStateFromProps !== 'function' &&
    typeof prototype.getSnapshotBeforeUpdate !== 'function'
  ) {
    return Component;
  }

  // If new component APIs are defined, "unsafe" lifecycles won't be called.
  // Error if any of these lifecycles are present,
  // Because they would work differently between older and newer (16.3+) versions of React.
  var foundWillMountName = null;
  var foundWillReceivePropsName = null;
  var foundWillUpdateName = null;
  if (typeof prototype.componentWillMount === 'function') {
    foundWillMountName = 'componentWillMount';
  } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
    foundWillMountName = 'UNSAFE_componentWillMount';
  }
  if (typeof prototype.componentWillReceiveProps === 'function') {
    foundWillReceivePropsName = 'componentWillReceiveProps';
  } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
    foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  }
  if (typeof prototype.componentWillUpdate === 'function') {
    foundWillUpdateName = 'componentWillUpdate';
  } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
    foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  }
  if (
    foundWillMountName !== null ||
    foundWillReceivePropsName !== null ||
    foundWillUpdateName !== null
  ) {
    var componentName = Component.displayName || Component.name;
    var newApiName =
      typeof Component.getDerivedStateFromProps === 'function'
        ? 'getDerivedStateFromProps()'
        : 'getSnapshotBeforeUpdate()';

    throw Error(
      'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
        componentName +
        ' uses ' +
        newApiName +
        ' but also contains the following legacy lifecycles:' +
        (foundWillMountName !== null ? '\n  ' + foundWillMountName : '') +
        (foundWillReceivePropsName !== null
          ? '\n  ' + foundWillReceivePropsName
          : '') +
        (foundWillUpdateName !== null ? '\n  ' + foundWillUpdateName : '') +
        '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
        'https://fb.me/react-async-component-lifecycle-hooks'
    );
  }

  // React <= 16.2 does not support static getDerivedStateFromProps.
  // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
  // Newer versions of React will ignore these lifecycles if gDSFP exists.
  if (typeof Component.getDerivedStateFromProps === 'function') {
    prototype.componentWillMount = componentWillMount;
    prototype.componentWillReceiveProps = componentWillReceiveProps;
  }

  // React <= 16.2 does not support getSnapshotBeforeUpdate.
  // As a workaround, use cWU to invoke the new lifecycle.
  // Newer versions of React will ignore that lifecycle if gSBU exists.
  if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
    if (typeof prototype.componentDidUpdate !== 'function') {
      throw new Error(
        'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
      );
    }

    prototype.componentWillUpdate = componentWillUpdate;

    var componentDidUpdate = prototype.componentDidUpdate;

    prototype.componentDidUpdate = function componentDidUpdatePolyfill(
      prevProps,
      prevState,
      maybeSnapshot
    ) {
      // 16.3+ will not execute our will-update method;
      // It will pass a snapshot value to did-update though.
      // Older versions will require our polyfilled will-update value.
      // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
      // Because for <= 15.x versions this might be a "prevContext" object.
      // We also can't just check "__reactInternalSnapshot",
      // Because get-snapshot might return a falsy value.
      // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
      var snapshot = this.__reactInternalSnapshotFlag
        ? this.__reactInternalSnapshot
        : maybeSnapshot;

      componentDidUpdate.call(this, prevProps, prevState, snapshot);
    };
  }

  return Component;
}




/***/ }),

/***/ "./node_modules/react-motion/lib/Motion.js":
/*!*************************************************!*\
  !*** ./node_modules/react-motion/lib/Motion.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

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 _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

var Motion = (function (_React$Component) {
  _inherits(Motion, _React$Component);

  _createClass(Motion, null, [{
    key: 'propTypes',
    value: {
      // TOOD: warn against putting a config in here
      defaultStyle: _propTypes2['default'].objectOf(_propTypes2['default'].number),
      style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired,
      children: _propTypes2['default'].func.isRequired,
      onRest: _propTypes2['default'].func
    },
    enumerable: true
  }]);

  function Motion(props) {
    var _this = this;

    _classCallCheck(this, Motion);

    _React$Component.call(this, props);
    this.wasAnimating = false;
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyle = null;

    this.clearUnreadPropStyle = function (destStyle) {
      var dirty = false;
      var _state = _this.state;
      var currentStyle = _state.currentStyle;
      var currentVelocity = _state.currentVelocity;
      var lastIdealStyle = _state.lastIdealStyle;
      var lastIdealVelocity = _state.lastIdealVelocity;

      for (var key in destStyle) {
        if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {
          continue;
        }

        var styleValue = destStyle[key];
        if (typeof styleValue === 'number') {
          if (!dirty) {
            dirty = true;
            currentStyle = _extends({}, currentStyle);
            currentVelocity = _extends({}, currentVelocity);
            lastIdealStyle = _extends({}, lastIdealStyle);
            lastIdealVelocity = _extends({}, lastIdealVelocity);
          }

          currentStyle[key] = styleValue;
          currentVelocity[key] = 0;
          lastIdealStyle[key] = styleValue;
          lastIdealVelocity[key] = 0;
        }
      }

      if (dirty) {
        _this.setState({ currentStyle: currentStyle, currentVelocity: currentVelocity, lastIdealStyle: lastIdealStyle, lastIdealVelocity: lastIdealVelocity });
      }
    };

    this.startAnimationIfNecessary = function () {
      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        // check if we need to animate in the first place
        var propsStyle = _this.props.style;
        if (_shouldStopAnimation2['default'](_this.state.currentStyle, propsStyle, _this.state.currentVelocity)) {
          if (_this.wasAnimating && _this.props.onRest) {
            _this.props.onRest();
          }

          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.wasAnimating = false;
          _this.accumulatedTime = 0;
          return;
        }

        _this.wasAnimating = true;

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var newLastIdealStyle = {};
        var newLastIdealVelocity = {};
        var newCurrentStyle = {};
        var newCurrentVelocity = {};

        for (var key in propsStyle) {
          if (!Object.prototype.hasOwnProperty.call(propsStyle, key)) {
            continue;
          }

          var styleValue = propsStyle[key];
          if (typeof styleValue === 'number') {
            newCurrentStyle[key] = styleValue;
            newCurrentVelocity[key] = 0;
            newLastIdealStyle[key] = styleValue;
            newLastIdealVelocity[key] = 0;
          } else {
            var newLastIdealStyleValue = _this.state.lastIdealStyle[key];
            var newLastIdealVelocityValue = _this.state.lastIdealVelocity[key];
            for (var i = 0; i < framesToCatchUp; i++) {
              var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              newLastIdealStyleValue = _stepper[0];
              newLastIdealVelocityValue = _stepper[1];
            }

            var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

            var nextIdealX = _stepper2[0];
            var nextIdealV = _stepper2[1];

            newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
            newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
            newLastIdealStyle[key] = newLastIdealStyleValue;
            newLastIdealVelocity[key] = newLastIdealVelocityValue;
          }
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyle: newCurrentStyle,
          currentVelocity: newCurrentVelocity,
          lastIdealStyle: newLastIdealStyle,
          lastIdealVelocity: newLastIdealVelocity
        });

        _this.unreadPropStyle = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  Motion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyle = _props.defaultStyle;
    var style = _props.style;

    var currentStyle = defaultStyle || _stripStyle2['default'](style);
    var currentVelocity = _mapToZero2['default'](currentStyle);
    return {
      currentStyle: currentStyle,
      currentVelocity: currentVelocity,
      lastIdealStyle: currentStyle,
      lastIdealVelocity: currentVelocity
    };
  };

  // it's possible that currentStyle's value is stale: if props is immediately
  // changed from 0 to 400 to spring(0) again, the async currentStyle is still
  // at 0 (didn't have time to tick and interpolate even once). If we naively
  // compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
  // In reality currentStyle should be 400

  Motion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  Motion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyle != null) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyle);
    }

    this.unreadPropStyle = props.style;
    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  Motion.prototype.componentWillUnmount = function componentWillUnmount() {
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  Motion.prototype.render = function render() {
    var renderedChildren = this.props.children(this.state.currentStyle);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return Motion;
})(_react2['default'].Component);

exports['default'] = Motion;
module.exports = exports['default'];

// after checking for unreadPropStyle != null, we manually go set the
// non-interpolating values (those that are a number, without a spring
// config)

/***/ }),

/***/ "./node_modules/react-motion/lib/StaggeredMotion.js":
/*!**********************************************************!*\
  !*** ./node_modules/react-motion/lib/StaggeredMotion.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

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 _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

function shouldStopAnimationAll(currentStyles, styles, currentVelocities) {
  for (var i = 0; i < currentStyles.length; i++) {
    if (!_shouldStopAnimation2['default'](currentStyles[i], styles[i], currentVelocities[i])) {
      return false;
    }
  }
  return true;
}

var StaggeredMotion = (function (_React$Component) {
  _inherits(StaggeredMotion, _React$Component);

  _createClass(StaggeredMotion, null, [{
    key: 'propTypes',
    value: {
      // TOOD: warn against putting a config in here
      defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].objectOf(_propTypes2['default'].number)),
      styles: _propTypes2['default'].func.isRequired,
      children: _propTypes2['default'].func.isRequired
    },
    enumerable: true
  }]);

  function StaggeredMotion(props) {
    var _this = this;

    _classCallCheck(this, StaggeredMotion);

    _React$Component.call(this, props);
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyles = null;

    this.clearUnreadPropStyle = function (unreadPropStyles) {
      var _state = _this.state;
      var currentStyles = _state.currentStyles;
      var currentVelocities = _state.currentVelocities;
      var lastIdealStyles = _state.lastIdealStyles;
      var lastIdealVelocities = _state.lastIdealVelocities;

      var someDirty = false;
      for (var i = 0; i < unreadPropStyles.length; i++) {
        var unreadPropStyle = unreadPropStyles[i];
        var dirty = false;

        for (var key in unreadPropStyle) {
          if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {
            continue;
          }

          var styleValue = unreadPropStyle[key];
          if (typeof styleValue === 'number') {
            if (!dirty) {
              dirty = true;
              someDirty = true;
              currentStyles[i] = _extends({}, currentStyles[i]);
              currentVelocities[i] = _extends({}, currentVelocities[i]);
              lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);
              lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);
            }
            currentStyles[i][key] = styleValue;
            currentVelocities[i][key] = 0;
            lastIdealStyles[i][key] = styleValue;
            lastIdealVelocities[i][key] = 0;
          }
        }
      }

      if (someDirty) {
        _this.setState({ currentStyles: currentStyles, currentVelocities: currentVelocities, lastIdealStyles: lastIdealStyles, lastIdealVelocities: lastIdealVelocities });
      }
    };

    this.startAnimationIfNecessary = function () {
      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        var destStyles = _this.props.styles(_this.state.lastIdealStyles);

        // check if we need to animate in the first place
        if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities)) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.accumulatedTime = 0;
          return;
        }

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var newLastIdealStyles = [];
        var newLastIdealVelocities = [];
        var newCurrentStyles = [];
        var newCurrentVelocities = [];

        for (var i = 0; i < destStyles.length; i++) {
          var destStyle = destStyles[i];
          var newCurrentStyle = {};
          var newCurrentVelocity = {};
          var newLastIdealStyle = {};
          var newLastIdealVelocity = {};

          for (var key in destStyle) {
            if (!Object.prototype.hasOwnProperty.call(destStyle, key)) {
              continue;
            }

            var styleValue = destStyle[key];
            if (typeof styleValue === 'number') {
              newCurrentStyle[key] = styleValue;
              newCurrentVelocity[key] = 0;
              newLastIdealStyle[key] = styleValue;
              newLastIdealVelocity[key] = 0;
            } else {
              var newLastIdealStyleValue = _this.state.lastIdealStyles[i][key];
              var newLastIdealVelocityValue = _this.state.lastIdealVelocities[i][key];
              for (var j = 0; j < framesToCatchUp; j++) {
                var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

                newLastIdealStyleValue = _stepper[0];
                newLastIdealVelocityValue = _stepper[1];
              }

              var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              var nextIdealX = _stepper2[0];
              var nextIdealV = _stepper2[1];

              newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
              newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
              newLastIdealStyle[key] = newLastIdealStyleValue;
              newLastIdealVelocity[key] = newLastIdealVelocityValue;
            }
          }

          newCurrentStyles[i] = newCurrentStyle;
          newCurrentVelocities[i] = newCurrentVelocity;
          newLastIdealStyles[i] = newLastIdealStyle;
          newLastIdealVelocities[i] = newLastIdealVelocity;
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyles: newCurrentStyles,
          currentVelocities: newCurrentVelocities,
          lastIdealStyles: newLastIdealStyles,
          lastIdealVelocities: newLastIdealVelocities
        });

        _this.unreadPropStyles = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  StaggeredMotion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyles = _props.defaultStyles;
    var styles = _props.styles;

    var currentStyles = defaultStyles || styles().map(_stripStyle2['default']);
    var currentVelocities = currentStyles.map(function (currentStyle) {
      return _mapToZero2['default'](currentStyle);
    });
    return {
      currentStyles: currentStyles,
      currentVelocities: currentVelocities,
      lastIdealStyles: currentStyles,
      lastIdealVelocities: currentVelocities
    };
  };

  StaggeredMotion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  StaggeredMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyles != null) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyles);
    }

    this.unreadPropStyles = props.styles(this.state.lastIdealStyles);
    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  StaggeredMotion.prototype.componentWillUnmount = function componentWillUnmount() {
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  StaggeredMotion.prototype.render = function render() {
    var renderedChildren = this.props.children(this.state.currentStyles);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return StaggeredMotion;
})(_react2['default'].Component);

exports['default'] = StaggeredMotion;
module.exports = exports['default'];

// it's possible that currentStyle's value is stale: if props is immediately
// changed from 0 to 400 to spring(0) again, the async currentStyle is still
// at 0 (didn't have time to tick and interpolate even once). If we naively
// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
// In reality currentStyle should be 400

// after checking for unreadPropStyles != null, we manually go set the
// non-interpolating values (those that are a number, without a spring
// config)

/***/ }),

/***/ "./node_modules/react-motion/lib/TransitionMotion.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-motion/lib/TransitionMotion.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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 _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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

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 _mapToZero = __webpack_require__(/*! ./mapToZero */ "./node_modules/react-motion/lib/mapToZero.js");

var _mapToZero2 = _interopRequireDefault(_mapToZero);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

var _stripStyle2 = _interopRequireDefault(_stripStyle);

var _stepper3 = __webpack_require__(/*! ./stepper */ "./node_modules/react-motion/lib/stepper.js");

var _stepper4 = _interopRequireDefault(_stepper3);

var _mergeDiff = __webpack_require__(/*! ./mergeDiff */ "./node_modules/react-motion/lib/mergeDiff.js");

var _mergeDiff2 = _interopRequireDefault(_mergeDiff);

var _performanceNow = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js");

var _performanceNow2 = _interopRequireDefault(_performanceNow);

var _raf = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");

var _raf2 = _interopRequireDefault(_raf);

var _shouldStopAnimation = __webpack_require__(/*! ./shouldStopAnimation */ "./node_modules/react-motion/lib/shouldStopAnimation.js");

var _shouldStopAnimation2 = _interopRequireDefault(_shouldStopAnimation);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var msPerFrame = 1000 / 60;

// the children function & (potential) styles function asks as param an
// Array<TransitionPlainStyle>, where each TransitionPlainStyle is of the format
// {key: string, data?: any, style: PlainStyle}. However, the way we keep
// internal states doesn't contain such a data structure (check the state and
// TransitionMotionState). So when children function and others ask for such
// data we need to generate them on the fly by combining mergedPropsStyles and
// currentStyles/lastIdealStyles
function rehydrateStyles(mergedPropsStyles, unreadPropStyles, plainStyles) {
  // Copy the value to a `const` so that Flow understands that the const won't
  // change and will be non-nullable in the callback below.
  var cUnreadPropStyles = unreadPropStyles;
  if (cUnreadPropStyles == null) {
    return mergedPropsStyles.map(function (mergedPropsStyle, i) {
      return {
        key: mergedPropsStyle.key,
        data: mergedPropsStyle.data,
        style: plainStyles[i]
      };
    });
  }
  return mergedPropsStyles.map(function (mergedPropsStyle, i) {
    for (var j = 0; j < cUnreadPropStyles.length; j++) {
      if (cUnreadPropStyles[j].key === mergedPropsStyle.key) {
        return {
          key: cUnreadPropStyles[j].key,
          data: cUnreadPropStyles[j].data,
          style: plainStyles[i]
        };
      }
    }
    return { key: mergedPropsStyle.key, data: mergedPropsStyle.data, style: plainStyles[i] };
  });
}

function shouldStopAnimationAll(currentStyles, destStyles, currentVelocities, mergedPropsStyles) {
  if (mergedPropsStyles.length !== destStyles.length) {
    return false;
  }

  for (var i = 0; i < mergedPropsStyles.length; i++) {
    if (mergedPropsStyles[i].key !== destStyles[i].key) {
      return false;
    }
  }

  // we have the invariant that mergedPropsStyles and
  // currentStyles/currentVelocities/last* are synced in terms of cells, see
  // mergeAndSync comment for more info
  for (var i = 0; i < mergedPropsStyles.length; i++) {
    if (!_shouldStopAnimation2['default'](currentStyles[i], destStyles[i].style, currentVelocities[i])) {
      return false;
    }
  }

  return true;
}

// core key merging logic

// things to do: say previously merged style is {a, b}, dest style (prop) is {b,
// c}, previous current (interpolating) style is {a, b}
// **invariant**: current[i] corresponds to merged[i] in terms of key

// steps:
// turn merged style into {a?, b, c}
//    add c, value of c is destStyles.c
//    maybe remove a, aka call willLeave(a), then merged is either {b, c} or {a, b, c}
// turn current (interpolating) style from {a, b} into {a?, b, c}
//    maybe remove a
//    certainly add c, value of c is willEnter(c)
// loop over merged and construct new current
// dest doesn't change, that's owner's
function mergeAndSync(willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldLastIdealStyles, oldLastIdealVelocities) {
  var newMergedPropsStyles = _mergeDiff2['default'](oldMergedPropsStyles, destStyles, function (oldIndex, oldMergedPropsStyle) {
    var leavingStyle = willLeave(oldMergedPropsStyle);
    if (leavingStyle == null) {
      didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });
      return null;
    }
    if (_shouldStopAnimation2['default'](oldCurrentStyles[oldIndex], leavingStyle, oldCurrentVelocities[oldIndex])) {
      didLeave({ key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data });
      return null;
    }
    return { key: oldMergedPropsStyle.key, data: oldMergedPropsStyle.data, style: leavingStyle };
  });

  var newCurrentStyles = [];
  var newCurrentVelocities = [];
  var newLastIdealStyles = [];
  var newLastIdealVelocities = [];
  for (var i = 0; i < newMergedPropsStyles.length; i++) {
    var newMergedPropsStyleCell = newMergedPropsStyles[i];
    var foundOldIndex = null;
    for (var j = 0; j < oldMergedPropsStyles.length; j++) {
      if (oldMergedPropsStyles[j].key === newMergedPropsStyleCell.key) {
        foundOldIndex = j;
        break;
      }
    }
    // TODO: key search code
    if (foundOldIndex == null) {
      var plainStyle = willEnter(newMergedPropsStyleCell);
      newCurrentStyles[i] = plainStyle;
      newLastIdealStyles[i] = plainStyle;

      var velocity = _mapToZero2['default'](newMergedPropsStyleCell.style);
      newCurrentVelocities[i] = velocity;
      newLastIdealVelocities[i] = velocity;
    } else {
      newCurrentStyles[i] = oldCurrentStyles[foundOldIndex];
      newLastIdealStyles[i] = oldLastIdealStyles[foundOldIndex];
      newCurrentVelocities[i] = oldCurrentVelocities[foundOldIndex];
      newLastIdealVelocities[i] = oldLastIdealVelocities[foundOldIndex];
    }
  }

  return [newMergedPropsStyles, newCurrentStyles, newCurrentVelocities, newLastIdealStyles, newLastIdealVelocities];
}

var TransitionMotion = (function (_React$Component) {
  _inherits(TransitionMotion, _React$Component);

  _createClass(TransitionMotion, null, [{
    key: 'propTypes',
    value: {
      defaultStyles: _propTypes2['default'].arrayOf(_propTypes2['default'].shape({
        key: _propTypes2['default'].string.isRequired,
        data: _propTypes2['default'].any,
        style: _propTypes2['default'].objectOf(_propTypes2['default'].number).isRequired
      })),
      styles: _propTypes2['default'].oneOfType([_propTypes2['default'].func, _propTypes2['default'].arrayOf(_propTypes2['default'].shape({
        key: _propTypes2['default'].string.isRequired,
        data: _propTypes2['default'].any,
        style: _propTypes2['default'].objectOf(_propTypes2['default'].oneOfType([_propTypes2['default'].number, _propTypes2['default'].object])).isRequired
      }))]).isRequired,
      children: _propTypes2['default'].func.isRequired,
      willEnter: _propTypes2['default'].func,
      willLeave: _propTypes2['default'].func,
      didLeave: _propTypes2['default'].func
    },
    enumerable: true
  }, {
    key: 'defaultProps',
    value: {
      willEnter: function willEnter(styleThatEntered) {
        return _stripStyle2['default'](styleThatEntered.style);
      },
      // recall: returning null makes the current unmounting TransitionStyle
      // disappear immediately
      willLeave: function willLeave() {
        return null;
      },
      didLeave: function didLeave() {}
    },
    enumerable: true
  }]);

  function TransitionMotion(props) {
    var _this = this;

    _classCallCheck(this, TransitionMotion);

    _React$Component.call(this, props);
    this.unmounting = false;
    this.animationID = null;
    this.prevTime = 0;
    this.accumulatedTime = 0;
    this.unreadPropStyles = null;

    this.clearUnreadPropStyle = function (unreadPropStyles) {
      var _mergeAndSync = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, unreadPropStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);

      var mergedPropsStyles = _mergeAndSync[0];
      var currentStyles = _mergeAndSync[1];
      var currentVelocities = _mergeAndSync[2];
      var lastIdealStyles = _mergeAndSync[3];
      var lastIdealVelocities = _mergeAndSync[4];

      for (var i = 0; i < unreadPropStyles.length; i++) {
        var unreadPropStyle = unreadPropStyles[i].style;
        var dirty = false;

        for (var key in unreadPropStyle) {
          if (!Object.prototype.hasOwnProperty.call(unreadPropStyle, key)) {
            continue;
          }

          var styleValue = unreadPropStyle[key];
          if (typeof styleValue === 'number') {
            if (!dirty) {
              dirty = true;
              currentStyles[i] = _extends({}, currentStyles[i]);
              currentVelocities[i] = _extends({}, currentVelocities[i]);
              lastIdealStyles[i] = _extends({}, lastIdealStyles[i]);
              lastIdealVelocities[i] = _extends({}, lastIdealVelocities[i]);
              mergedPropsStyles[i] = {
                key: mergedPropsStyles[i].key,
                data: mergedPropsStyles[i].data,
                style: _extends({}, mergedPropsStyles[i].style)
              };
            }
            currentStyles[i][key] = styleValue;
            currentVelocities[i][key] = 0;
            lastIdealStyles[i][key] = styleValue;
            lastIdealVelocities[i][key] = 0;
            mergedPropsStyles[i].style[key] = styleValue;
          }
        }
      }

      // unlike the other 2 components, we can't detect staleness and optionally
      // opt out of setState here. each style object's data might contain new
      // stuff we're not/cannot compare
      _this.setState({
        currentStyles: currentStyles,
        currentVelocities: currentVelocities,
        mergedPropsStyles: mergedPropsStyles,
        lastIdealStyles: lastIdealStyles,
        lastIdealVelocities: lastIdealVelocities
      });
    };

    this.startAnimationIfNecessary = function () {
      if (_this.unmounting) {
        return;
      }

      // TODO: when config is {a: 10} and dest is {a: 10} do we raf once and
      // call cb? No, otherwise accidental parent rerender causes cb trigger
      _this.animationID = _raf2['default'](function (timestamp) {
        // https://github.com/chenglou/react-motion/pull/420
        // > if execution passes the conditional if (this.unmounting), then
        // executes async defaultRaf and after that component unmounts and after
        // that the callback of defaultRaf is called, then setState will be called
        // on unmounted component.
        if (_this.unmounting) {
          return;
        }

        var propStyles = _this.props.styles;
        var destStyles = typeof propStyles === 'function' ? propStyles(rehydrateStyles(_this.state.mergedPropsStyles, _this.unreadPropStyles, _this.state.lastIdealStyles)) : propStyles;

        // check if we need to animate in the first place
        if (shouldStopAnimationAll(_this.state.currentStyles, destStyles, _this.state.currentVelocities, _this.state.mergedPropsStyles)) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.accumulatedTime = 0;
          return;
        }

        var currentTime = timestamp || _performanceNow2['default']();
        var timeDelta = currentTime - _this.prevTime;
        _this.prevTime = currentTime;
        _this.accumulatedTime = _this.accumulatedTime + timeDelta;
        // more than 10 frames? prolly switched browser tab. Restart
        if (_this.accumulatedTime > msPerFrame * 10) {
          _this.accumulatedTime = 0;
        }

        if (_this.accumulatedTime === 0) {
          // no need to cancel animationID here; shouldn't have any in flight
          _this.animationID = null;
          _this.startAnimationIfNecessary();
          return;
        }

        var currentFrameCompletion = (_this.accumulatedTime - Math.floor(_this.accumulatedTime / msPerFrame) * msPerFrame) / msPerFrame;
        var framesToCatchUp = Math.floor(_this.accumulatedTime / msPerFrame);

        var _mergeAndSync2 = mergeAndSync(_this.props.willEnter, _this.props.willLeave, _this.props.didLeave, _this.state.mergedPropsStyles, destStyles, _this.state.currentStyles, _this.state.currentVelocities, _this.state.lastIdealStyles, _this.state.lastIdealVelocities);

        var newMergedPropsStyles = _mergeAndSync2[0];
        var newCurrentStyles = _mergeAndSync2[1];
        var newCurrentVelocities = _mergeAndSync2[2];
        var newLastIdealStyles = _mergeAndSync2[3];
        var newLastIdealVelocities = _mergeAndSync2[4];

        for (var i = 0; i < newMergedPropsStyles.length; i++) {
          var newMergedPropsStyle = newMergedPropsStyles[i].style;
          var newCurrentStyle = {};
          var newCurrentVelocity = {};
          var newLastIdealStyle = {};
          var newLastIdealVelocity = {};

          for (var key in newMergedPropsStyle) {
            if (!Object.prototype.hasOwnProperty.call(newMergedPropsStyle, key)) {
              continue;
            }

            var styleValue = newMergedPropsStyle[key];
            if (typeof styleValue === 'number') {
              newCurrentStyle[key] = styleValue;
              newCurrentVelocity[key] = 0;
              newLastIdealStyle[key] = styleValue;
              newLastIdealVelocity[key] = 0;
            } else {
              var newLastIdealStyleValue = newLastIdealStyles[i][key];
              var newLastIdealVelocityValue = newLastIdealVelocities[i][key];
              for (var j = 0; j < framesToCatchUp; j++) {
                var _stepper = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

                newLastIdealStyleValue = _stepper[0];
                newLastIdealVelocityValue = _stepper[1];
              }

              var _stepper2 = _stepper4['default'](msPerFrame / 1000, newLastIdealStyleValue, newLastIdealVelocityValue, styleValue.val, styleValue.stiffness, styleValue.damping, styleValue.precision);

              var nextIdealX = _stepper2[0];
              var nextIdealV = _stepper2[1];

              newCurrentStyle[key] = newLastIdealStyleValue + (nextIdealX - newLastIdealStyleValue) * currentFrameCompletion;
              newCurrentVelocity[key] = newLastIdealVelocityValue + (nextIdealV - newLastIdealVelocityValue) * currentFrameCompletion;
              newLastIdealStyle[key] = newLastIdealStyleValue;
              newLastIdealVelocity[key] = newLastIdealVelocityValue;
            }
          }

          newLastIdealStyles[i] = newLastIdealStyle;
          newLastIdealVelocities[i] = newLastIdealVelocity;
          newCurrentStyles[i] = newCurrentStyle;
          newCurrentVelocities[i] = newCurrentVelocity;
        }

        _this.animationID = null;
        // the amount we're looped over above
        _this.accumulatedTime -= framesToCatchUp * msPerFrame;

        _this.setState({
          currentStyles: newCurrentStyles,
          currentVelocities: newCurrentVelocities,
          lastIdealStyles: newLastIdealStyles,
          lastIdealVelocities: newLastIdealVelocities,
          mergedPropsStyles: newMergedPropsStyles
        });

        _this.unreadPropStyles = null;

        _this.startAnimationIfNecessary();
      });
    };

    this.state = this.defaultState();
  }

  TransitionMotion.prototype.defaultState = function defaultState() {
    var _props = this.props;
    var defaultStyles = _props.defaultStyles;
    var styles = _props.styles;
    var willEnter = _props.willEnter;
    var willLeave = _props.willLeave;
    var didLeave = _props.didLeave;

    var destStyles = typeof styles === 'function' ? styles(defaultStyles) : styles;

    // this is special. for the first time around, we don't have a comparison
    // between last (no last) and current merged props. we'll compute last so:
    // say default is {a, b} and styles (dest style) is {b, c}, we'll
    // fabricate last as {a, b}
    var oldMergedPropsStyles = undefined;
    if (defaultStyles == null) {
      oldMergedPropsStyles = destStyles;
    } else {
      oldMergedPropsStyles = defaultStyles.map(function (defaultStyleCell) {
        // TODO: key search code
        for (var i = 0; i < destStyles.length; i++) {
          if (destStyles[i].key === defaultStyleCell.key) {
            return destStyles[i];
          }
        }
        return defaultStyleCell;
      });
    }
    var oldCurrentStyles = defaultStyles == null ? destStyles.map(function (s) {
      return _stripStyle2['default'](s.style);
    }) : defaultStyles.map(function (s) {
      return _stripStyle2['default'](s.style);
    });
    var oldCurrentVelocities = defaultStyles == null ? destStyles.map(function (s) {
      return _mapToZero2['default'](s.style);
    }) : defaultStyles.map(function (s) {
      return _mapToZero2['default'](s.style);
    });

    var _mergeAndSync3 = mergeAndSync(
    // Because this is an old-style createReactClass component, Flow doesn't
    // understand that the willEnter and willLeave props have default values
    // and will always be present.
    willEnter, willLeave, didLeave, oldMergedPropsStyles, destStyles, oldCurrentStyles, oldCurrentVelocities, oldCurrentStyles, // oldLastIdealStyles really
    oldCurrentVelocities);

    var mergedPropsStyles = _mergeAndSync3[0];
    var currentStyles = _mergeAndSync3[1];
    var currentVelocities = _mergeAndSync3[2];
    var lastIdealStyles = _mergeAndSync3[3];
    var lastIdealVelocities = _mergeAndSync3[4];
    // oldLastIdealVelocities really

    return {
      currentStyles: currentStyles,
      currentVelocities: currentVelocities,
      lastIdealStyles: lastIdealStyles,
      lastIdealVelocities: lastIdealVelocities,
      mergedPropsStyles: mergedPropsStyles
    };
  };

  // after checking for unreadPropStyles != null, we manually go set the
  // non-interpolating values (those that are a number, without a spring
  // config)

  TransitionMotion.prototype.componentDidMount = function componentDidMount() {
    this.prevTime = _performanceNow2['default']();
    this.startAnimationIfNecessary();
  };

  TransitionMotion.prototype.componentWillReceiveProps = function componentWillReceiveProps(props) {
    if (this.unreadPropStyles) {
      // previous props haven't had the chance to be set yet; set them here
      this.clearUnreadPropStyle(this.unreadPropStyles);
    }

    var styles = props.styles;
    if (typeof styles === 'function') {
      this.unreadPropStyles = styles(rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.lastIdealStyles));
    } else {
      this.unreadPropStyles = styles;
    }

    if (this.animationID == null) {
      this.prevTime = _performanceNow2['default']();
      this.startAnimationIfNecessary();
    }
  };

  TransitionMotion.prototype.componentWillUnmount = function componentWillUnmount() {
    this.unmounting = true;
    if (this.animationID != null) {
      _raf2['default'].cancel(this.animationID);
      this.animationID = null;
    }
  };

  TransitionMotion.prototype.render = function render() {
    var hydratedStyles = rehydrateStyles(this.state.mergedPropsStyles, this.unreadPropStyles, this.state.currentStyles);
    var renderedChildren = this.props.children(hydratedStyles);
    return renderedChildren && _react2['default'].Children.only(renderedChildren);
  };

  return TransitionMotion;
})(_react2['default'].Component);

exports['default'] = TransitionMotion;
module.exports = exports['default'];

// list of styles, each containing interpolating values. Part of what's passed
// to children function. Notice that this is
// Array<ActualInterpolatingStyleObject>, without the wrapper that is {key: ...,
// data: ... style: ActualInterpolatingStyleObject}. Only mergedPropsStyles
// contains the key & data info (so that we only have a single source of truth
// for these, and to save space). Check the comment for `rehydrateStyles` to
// see how we regenerate the entirety of what's passed to children function

// the array that keeps track of currently rendered stuff! Including stuff
// that you've unmounted but that's still animating. This is where it lives

// it's possible that currentStyle's value is stale: if props is immediately
// changed from 0 to 400 to spring(0) again, the async currentStyle is still
// at 0 (didn't have time to tick and interpolate even once). If we naively
// compare currentStyle with destVal it'll be 0 === 0 (no animation, stop).
// In reality currentStyle should be 400

/***/ }),

/***/ "./node_modules/react-motion/lib/mapToZero.js":
/*!****************************************************!*\
  !*** ./node_modules/react-motion/lib/mapToZero.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// currently used to initiate the velocity style object to 0


exports.__esModule = true;
exports['default'] = mapToZero;

function mapToZero(obj) {
  var ret = {};
  for (var key in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) {
      ret[key] = 0;
    }
  }
  return ret;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/mergeDiff.js":
/*!****************************************************!*\
  !*** ./node_modules/react-motion/lib/mergeDiff.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// core keys merging algorithm. If previous render's keys are [a, b], and the
// next render's [c, b, d], what's the final merged keys and ordering?

// - c and a must both be before b
// - b before d
// - ordering between a and c ambiguous

// this reduces to merging two partially ordered lists (e.g. lists where not
// every item has a definite ordering, like comparing a and c above). For the
// ambiguous ordering we deterministically choose to place the next render's
// item after the previous'; so c after a

// this is called a topological sorting. Except the existing algorithms don't
// work well with js bc of the amount of allocation, and isn't optimized for our
// current use-case bc the runtime is linear in terms of edges (see wiki for
// meaning), which is huge when two lists have many common elements


exports.__esModule = true;
exports['default'] = mergeDiff;

function mergeDiff(prev, next, onRemove) {
  // bookkeeping for easier access of a key's index below. This is 2 allocations +
  // potentially triggering chrome hash map mode for objs (so it might be faster

  var prevKeyIndex = {};
  for (var i = 0; i < prev.length; i++) {
    prevKeyIndex[prev[i].key] = i;
  }
  var nextKeyIndex = {};
  for (var i = 0; i < next.length; i++) {
    nextKeyIndex[next[i].key] = i;
  }

  // first, an overly elaborate way of merging prev and next, eliminating
  // duplicates (in terms of keys). If there's dupe, keep the item in next).
  // This way of writing it saves allocations
  var ret = [];
  for (var i = 0; i < next.length; i++) {
    ret[i] = next[i];
  }
  for (var i = 0; i < prev.length; i++) {
    if (!Object.prototype.hasOwnProperty.call(nextKeyIndex, prev[i].key)) {
      // this is called my TM's `mergeAndSync`, which calls willLeave. We don't
      // merge in keys that the user desires to kill
      var fill = onRemove(i, prev[i]);
      if (fill != null) {
        ret.push(fill);
      }
    }
  }

  // now all the items all present. Core sorting logic to have the right order
  return ret.sort(function (a, b) {
    var nextOrderA = nextKeyIndex[a.key];
    var nextOrderB = nextKeyIndex[b.key];
    var prevOrderA = prevKeyIndex[a.key];
    var prevOrderB = prevKeyIndex[b.key];

    if (nextOrderA != null && nextOrderB != null) {
      // both keys in next
      return nextKeyIndex[a.key] - nextKeyIndex[b.key];
    } else if (prevOrderA != null && prevOrderB != null) {
      // both keys in prev
      return prevKeyIndex[a.key] - prevKeyIndex[b.key];
    } else if (nextOrderA != null) {
      // key a in next, key b in prev

      // how to determine the order between a and b? We find a "pivot" (term
      // abuse), a key present in both prev and next, that is sandwiched between
      // a and b. In the context of our above example, if we're comparing a and
      // d, b's (the only) pivot
      for (var i = 0; i < next.length; i++) {
        var pivot = next[i].key;
        if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {
          continue;
        }

        if (nextOrderA < nextKeyIndex[pivot] && prevOrderB > prevKeyIndex[pivot]) {
          return -1;
        } else if (nextOrderA > nextKeyIndex[pivot] && prevOrderB < prevKeyIndex[pivot]) {
          return 1;
        }
      }
      // pluggable. default to: next bigger than prev
      return 1;
    }
    // prevOrderA, nextOrderB
    for (var i = 0; i < next.length; i++) {
      var pivot = next[i].key;
      if (!Object.prototype.hasOwnProperty.call(prevKeyIndex, pivot)) {
        continue;
      }
      if (nextOrderB < nextKeyIndex[pivot] && prevOrderA > prevKeyIndex[pivot]) {
        return 1;
      } else if (nextOrderB > nextKeyIndex[pivot] && prevOrderA < prevKeyIndex[pivot]) {
        return -1;
      }
    }
    // pluggable. default to: next bigger than prev
    return -1;
  });
}

module.exports = exports['default'];
// to loop through and find a key's index each time), but I no longer care

/***/ }),

/***/ "./node_modules/react-motion/lib/presets.js":
/*!**************************************************!*\
  !*** ./node_modules/react-motion/lib/presets.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports["default"] = {
  noWobble: { stiffness: 170, damping: 26 }, // the default, if nothing provided
  gentle: { stiffness: 120, damping: 14 },
  wobbly: { stiffness: 180, damping: 12 },
  stiff: { stiffness: 210, damping: 20 }
};
module.exports = exports["default"];

/***/ }),

/***/ "./node_modules/react-motion/lib/react-motion.js":
/*!*******************************************************!*\
  !*** ./node_modules/react-motion/lib/react-motion.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; }

var _Motion = __webpack_require__(/*! ./Motion */ "./node_modules/react-motion/lib/Motion.js");

exports.Motion = _interopRequire(_Motion);

var _StaggeredMotion = __webpack_require__(/*! ./StaggeredMotion */ "./node_modules/react-motion/lib/StaggeredMotion.js");

exports.StaggeredMotion = _interopRequire(_StaggeredMotion);

var _TransitionMotion = __webpack_require__(/*! ./TransitionMotion */ "./node_modules/react-motion/lib/TransitionMotion.js");

exports.TransitionMotion = _interopRequire(_TransitionMotion);

var _spring = __webpack_require__(/*! ./spring */ "./node_modules/react-motion/lib/spring.js");

exports.spring = _interopRequire(_spring);

var _presets = __webpack_require__(/*! ./presets */ "./node_modules/react-motion/lib/presets.js");

exports.presets = _interopRequire(_presets);

var _stripStyle = __webpack_require__(/*! ./stripStyle */ "./node_modules/react-motion/lib/stripStyle.js");

exports.stripStyle = _interopRequire(_stripStyle);

// deprecated, dummy warning function

var _reorderKeys = __webpack_require__(/*! ./reorderKeys */ "./node_modules/react-motion/lib/reorderKeys.js");

exports.reorderKeys = _interopRequire(_reorderKeys);

/***/ }),

/***/ "./node_modules/react-motion/lib/reorderKeys.js":
/*!******************************************************!*\
  !*** ./node_modules/react-motion/lib/reorderKeys.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports['default'] = reorderKeys;

var hasWarned = false;

function reorderKeys() {
  if (true) {
    if (!hasWarned) {
      hasWarned = true;
      console.error('`reorderKeys` has been removed, since it is no longer needed for TransitionMotion\'s new styles array API.');
    }
  }
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/shouldStopAnimation.js":
/*!**************************************************************!*\
  !*** ./node_modules/react-motion/lib/shouldStopAnimation.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// usage assumption: currentStyle values have already been rendered but it says
// nothing of whether currentStyle is stale (see unreadPropStyle)


exports.__esModule = true;
exports['default'] = shouldStopAnimation;

function shouldStopAnimation(currentStyle, style, currentVelocity) {
  for (var key in style) {
    if (!Object.prototype.hasOwnProperty.call(style, key)) {
      continue;
    }

    if (currentVelocity[key] !== 0) {
      return false;
    }

    var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val;
    // stepper will have already taken care of rounding precision errors, so
    // won't have such thing as 0.9999 !=== 1
    if (currentStyle[key] !== styleValue) {
      return false;
    }
  }

  return true;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/spring.js":
/*!*************************************************!*\
  !*** ./node_modules/react-motion/lib/spring.js ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

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; };

exports['default'] = spring;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _presets = __webpack_require__(/*! ./presets */ "./node_modules/react-motion/lib/presets.js");

var _presets2 = _interopRequireDefault(_presets);

var defaultConfig = _extends({}, _presets2['default'].noWobble, {
  precision: 0.01
});

function spring(val, config) {
  return _extends({}, defaultConfig, config, { val: val });
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-motion/lib/stepper.js":
/*!**************************************************!*\
  !*** ./node_modules/react-motion/lib/stepper.js ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


// stepper is used a lot. Saves allocation to return the same array wrapper.
// This is fine and danger-free against mutations because the callsite
// immediately destructures it and gets the numbers inside without passing the


exports.__esModule = true;
exports["default"] = stepper;

var reusedTuple = [0, 0];

function stepper(secondPerFrame, x, v, destX, k, b, precision) {
  // Spring stiffness, in kg / s^2

  // for animations, destX is really spring length (spring at rest). initial
  // position is considered as the stretched/compressed position of a spring
  var Fspring = -k * (x - destX);

  // Damping, in kg / s
  var Fdamper = -b * v;

  // usually we put mass here, but for animation purposes, specifying mass is a
  // bit redundant. you could simply adjust k and b accordingly
  // let a = (Fspring + Fdamper) / mass;
  var a = Fspring + Fdamper;

  var newV = v + a * secondPerFrame;
  var newX = x + newV * secondPerFrame;

  if (Math.abs(newV) < precision && Math.abs(newX - destX) < precision) {
    reusedTuple[0] = destX;
    reusedTuple[1] = 0;
    return reusedTuple;
  }

  reusedTuple[0] = newX;
  reusedTuple[1] = newV;
  return reusedTuple;
}

module.exports = exports["default"];
// array reference around.

/***/ }),

/***/ "./node_modules/react-motion/lib/stripStyle.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-motion/lib/stripStyle.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// turn {x: {val: 1, stiffness: 1, damping: 2}, y: 2} generated by
// `{x: spring(1, {stiffness: 1, damping: 2}), y: 2}` into {x: 1, y: 2}



exports.__esModule = true;
exports['default'] = stripStyle;

function stripStyle(style) {
  var ret = {};
  for (var key in style) {
    if (!Object.prototype.hasOwnProperty.call(style, key)) {
      continue;
    }
    ret[key] = typeof style[key] === 'number' ? style[key] : style[key].val;
  }
  return ret;
}

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js":
/*!***************************************************************************!*\
  !*** ./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js ***!
  \***************************************************************************/
/*! exports provided: IGNORE_CLASS_NAME, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IGNORE_CLASS_NAME", function() { return IGNORE_CLASS_NAME; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);



function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

function _objectWithoutProperties(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];
  }

  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;
}

/**
 * Check whether some DOM node is our Component's node.
 */
function isNodeFound(current, componentNode, ignoreClass) {
  if (current === componentNode) {
    return true;
  } // SVG <use/> elements do not technically reside in the rendered DOM, so
  // they do not have classList directly, but they offer a link to their
  // corresponding element, which can have classList. This extra check is for
  // that case.
  // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement
  // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17


  if (current.correspondingElement) {
    return current.correspondingElement.classList.contains(ignoreClass);
  }

  return current.classList.contains(ignoreClass);
}
/**
 * Try to find our node in a hierarchy of nodes, returning the document
 * node as highest node if our node is not found in the path up.
 */

function findHighest(current, componentNode, ignoreClass) {
  if (current === componentNode) {
    return true;
  } // If source=local then this event came from 'somewhere'
  // inside and should be ignored. We could handle this with
  // a layered approach, too, but that requires going back to
  // thinking in terms of Dom node nesting, running counter
  // to React's 'you shouldn't care about the DOM' philosophy.


  while (current.parentNode) {
    if (isNodeFound(current, componentNode, ignoreClass)) {
      return true;
    }

    current = current.parentNode;
  }

  return current;
}
/**
 * Check if the browser scrollbar was clicked
 */

function clickedScrollbar(evt) {
  return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY;
}

// ideally will get replaced with external dep
// when rafrex/detect-passive-events#4 and rafrex/detect-passive-events#5 get merged in
var testPassiveEventSupport = function testPassiveEventSupport() {
  if (typeof window === 'undefined' || typeof window.addEventListener !== 'function') {
    return;
  }

  var passive = false;
  var options = Object.defineProperty({}, 'passive', {
    get: function get() {
      passive = true;
    }
  });

  var noop = function noop() {};

  window.addEventListener('testPassiveEventSupport', noop, options);
  window.removeEventListener('testPassiveEventSupport', noop, options);
  return passive;
};

function autoInc(seed) {
  if (seed === void 0) {
    seed = 0;
  }

  return function () {
    return ++seed;
  };
}

var uid = autoInc();

var passiveEventSupport;
var handlersMap = {};
var enabledInstances = {};
var touchEvents = ['touchstart', 'touchmove'];
var IGNORE_CLASS_NAME = 'ignore-react-onclickoutside';
/**
 * Options for addEventHandler and removeEventHandler
 */

function getEventHandlerOptions(instance, eventName) {
  var handlerOptions = null;
  var isTouchEvent = touchEvents.indexOf(eventName) !== -1;

  if (isTouchEvent && passiveEventSupport) {
    handlerOptions = {
      passive: !instance.props.preventDefault
    };
  }

  return handlerOptions;
}
/**
 * This function generates the HOC function that you'll use
 * in order to impart onOutsideClick listening to an
 * arbitrary component. It gets called at the end of the
 * bootstrapping code to yield an instance of the
 * onClickOutsideHOC function defined inside setupHOC().
 */


function onClickOutsideHOC(WrappedComponent, config) {
  var _class, _temp;

  return _temp = _class =
  /*#__PURE__*/
  function (_Component) {
    _inheritsLoose(onClickOutside, _Component);

    function onClickOutside(props) {
      var _this;

      _this = _Component.call(this, props) || this;

      _this.__outsideClickHandler = function (event) {
        if (typeof _this.__clickOutsideHandlerProp === 'function') {
          _this.__clickOutsideHandlerProp(event);

          return;
        }

        var instance = _this.getInstance();

        if (typeof instance.props.handleClickOutside === 'function') {
          instance.props.handleClickOutside(event);
          return;
        }

        if (typeof instance.handleClickOutside === 'function') {
          instance.handleClickOutside(event);
          return;
        }

        throw new Error('WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.');
      };

      _this.enableOnClickOutside = function () {
        if (typeof document === 'undefined' || enabledInstances[_this._uid]) {
          return;
        }

        if (typeof passiveEventSupport === 'undefined') {
          passiveEventSupport = testPassiveEventSupport();
        }

        enabledInstances[_this._uid] = true;
        var events = _this.props.eventTypes;

        if (!events.forEach) {
          events = [events];
        }

        handlersMap[_this._uid] = function (event) {
          if (_this.props.disableOnClickOutside) return;
          if (_this.componentNode === null) return;

          if (_this.props.preventDefault) {
            event.preventDefault();
          }

          if (_this.props.stopPropagation) {
            event.stopPropagation();
          }

          if (_this.props.excludeScrollbar && clickedScrollbar(event)) return;
          var current = event.target;

          if (findHighest(current, _this.componentNode, _this.props.outsideClickIgnoreClass) !== document) {
            return;
          }

          _this.__outsideClickHandler(event);
        };

        events.forEach(function (eventName) {
          document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_this, eventName));
        });
      };

      _this.disableOnClickOutside = function () {
        delete enabledInstances[_this._uid];
        var fn = handlersMap[_this._uid];

        if (fn && typeof document !== 'undefined') {
          var events = _this.props.eventTypes;

          if (!events.forEach) {
            events = [events];
          }

          events.forEach(function (eventName) {
            return document.removeEventListener(eventName, fn, getEventHandlerOptions(_this, eventName));
          });
          delete handlersMap[_this._uid];
        }
      };

      _this.getRef = function (ref) {
        return _this.instanceRef = ref;
      };

      _this._uid = uid();
      return _this;
    }
    /**
     * Access the WrappedComponent's instance.
     */


    var _proto = onClickOutside.prototype;

    _proto.getInstance = function getInstance() {
      if (!WrappedComponent.prototype.isReactComponent) {
        return this;
      }

      var ref = this.instanceRef;
      return ref.getInstance ? ref.getInstance() : ref;
    };

    /**
     * Add click listeners to the current document,
     * linked to this component's state.
     */
    _proto.componentDidMount = function componentDidMount() {
      // If we are in an environment without a DOM such
      // as shallow rendering or snapshots then we exit
      // early to prevent any unhandled errors being thrown.
      if (typeof document === 'undefined' || !document.createElement) {
        return;
      }

      var instance = this.getInstance();

      if (config && typeof config.handleClickOutside === 'function') {
        this.__clickOutsideHandlerProp = config.handleClickOutside(instance);

        if (typeof this.__clickOutsideHandlerProp !== 'function') {
          throw new Error('WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.');
        }
      }

      this.componentNode = Object(react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"])(this.getInstance());
      this.enableOnClickOutside();
    };

    _proto.componentDidUpdate = function componentDidUpdate() {
      this.componentNode = Object(react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"])(this.getInstance());
    };
    /**
     * Remove all document's event listeners for this component
     */


    _proto.componentWillUnmount = function componentWillUnmount() {
      this.disableOnClickOutside();
    };
    /**
     * Can be called to explicitly enable event listening
     * for clicks and touches outside of this element.
     */


    /**
     * Pass-through render
     */
    _proto.render = function render() {
      // eslint-disable-next-line no-unused-vars
      var _props = this.props,
          excludeScrollbar = _props.excludeScrollbar,
          props = _objectWithoutProperties(_props, ["excludeScrollbar"]);

      if (WrappedComponent.prototype.isReactComponent) {
        props.ref = this.getRef;
      } else {
        props.wrappedRef = this.getRef;
      }

      props.disableOnClickOutside = this.disableOnClickOutside;
      props.enableOnClickOutside = this.enableOnClickOutside;
      return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(WrappedComponent, props);
    };

    return onClickOutside;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]), _class.displayName = "OnClickOutside(" + (WrappedComponent.displayName || WrappedComponent.name || 'Component') + ")", _class.defaultProps = {
    eventTypes: ['mousedown', 'touchstart'],
    excludeScrollbar: config && config.excludeScrollbar || false,
    outsideClickIgnoreClass: IGNORE_CLASS_NAME,
    preventDefault: false,
    stopPropagation: false
  }, _class.getClass = function () {
    return WrappedComponent.getClass ? WrappedComponent.getClass() : WrappedComponent;
  }, _temp;
}


/* harmony default export */ __webpack_exports__["default"] = (onClickOutsideHOC);


/***/ }),

/***/ "./node_modules/react-overlays/lib/LegacyPortal.js":
/*!*********************************************************!*\
  !*** ./node_modules/react-overlays/lib/LegacyPortal.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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._mountOverlayTarget = function () {
      if (!_this._overlayTarget) {
        _this._overlayTarget = document.createElement('div');
        _this._portalContainerNode = (0, _getContainer2.default)(_this.props.container, (0, _ownerDocument2.default)(_this).body);
        _this._portalContainerNode.appendChild(_this._overlayTarget);
      }
    }, _this._unmountOverlayTarget = function () {
      if (_this._overlayTarget) {
        _this._portalContainerNode.removeChild(_this._overlayTarget);
        _this._overlayTarget = null;
      }
      _this._portalContainerNode = null;
    }, _this._renderOverlay = function () {
      var overlay = !_this.props.children ? null : _react2.default.Children.only(_this.props.children);

      // Save reference for future access.
      if (overlay !== null) {
        _this._mountOverlayTarget();

        var initialRender = !_this._overlayInstance;

        _this._overlayInstance = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this, overlay, _this._overlayTarget, function () {
          if (initialRender && _this.props.onRendered) {
            _this.props.onRendered();
          }
        });
      } else {
        // Unrender if the component is null for transitions to null
        _this._unrenderOverlay();
        _this._unmountOverlayTarget();
      }
    }, _this._unrenderOverlay = function () {
      if (_this._overlayTarget) {
        _reactDom2.default.unmountComponentAtNode(_this._overlayTarget);
        _this._overlayInstance = null;
      }
    }, _this.getMountNode = function () {
      return _this._overlayTarget;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this._isMounted = true;
    this._renderOverlay();
  };

  Portal.prototype.componentDidUpdate = function componentDidUpdate() {
    this._renderOverlay();
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (this._overlayTarget && nextProps.container !== this.props.container) {
      this._portalContainerNode.removeChild(this._overlayTarget);
      this._portalContainerNode = (0, _getContainer2.default)(nextProps.container, (0, _ownerDocument2.default)(this).body);
      this._portalContainerNode.appendChild(this._overlayTarget);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._isMounted = false;
    this._unrenderOverlay();
    this._unmountOverlayTarget();
  };

  Portal.prototype.render = function render() {
    return null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = Portal;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/Portal.js":
/*!***************************************************!*\
  !*** ./node_modules/react-overlays/lib/Portal.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _componentOrElement = __webpack_require__(/*! prop-types-extra/lib/componentOrElement */ "./node_modules/prop-types-extra/lib/componentOrElement.js");

var _componentOrElement2 = _interopRequireDefault(_componentOrElement);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _getContainer = __webpack_require__(/*! ./utils/getContainer */ "./node_modules/react-overlays/lib/utils/getContainer.js");

var _getContainer2 = _interopRequireDefault(_getContainer);

var _ownerDocument = __webpack_require__(/*! ./utils/ownerDocument */ "./node_modules/react-overlays/lib/utils/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

var _LegacyPortal = __webpack_require__(/*! ./LegacyPortal */ "./node_modules/react-overlays/lib/LegacyPortal.js");

var _LegacyPortal2 = _interopRequireDefault(_LegacyPortal);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
 * You can think of it as a declarative `appendChild()`, or jQuery's `$.fn.appendTo()`.
 * The children of `<Portal/>` component will be appended to the `container` specified.
 */
var Portal = function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal() {
    var _temp, _this, _ret;

    _classCallCheck(this, Portal);

    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.setContainer = function () {
      var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this.props;

      _this._portalContainerNode = (0, _getContainer2.default)(props.container, (0, _ownerDocument2.default)(_this).body);
    }, _this.getMountNode = function () {
      return _this._portalContainerNode;
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  Portal.prototype.componentDidMount = function componentDidMount() {
    this.setContainer();
    this.forceUpdate(this.props.onRendered);
  };

  Portal.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
    if (nextProps.container !== this.props.container) {
      this.setContainer(nextProps);
    }
  };

  Portal.prototype.componentWillUnmount = function componentWillUnmount() {
    this._portalContainerNode = null;
  };

  Portal.prototype.render = function render() {
    return this.props.children && this._portalContainerNode ? _reactDom2.default.createPortal(this.props.children, this._portalContainerNode) : null;
  };

  return Portal;
}(_react2.default.Component);

Portal.displayName = 'Portal';
Portal.propTypes = {
  /**
   * A Node, Component instance, or function that returns either. The `container` will have the Portal children
   * appended to it.
   */
  container: _propTypes2.default.oneOfType([_componentOrElement2.default, _propTypes2.default.func]),

  onRendered: _propTypes2.default.func
};
exports.default = _reactDom2.default.createPortal ? Portal : _LegacyPortal2.default;
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/getContainer.js":
/*!***************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/getContainer.js ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = getContainer;

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function getContainer(container, defaultContainer) {
  container = typeof container === 'function' ? container() : container;
  return _reactDom2.default.findDOMNode(container) || defaultContainer;
}
module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-overlays/lib/utils/ownerDocument.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-overlays/lib/utils/ownerDocument.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

exports.default = function (componentOrElement) {
  return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
};

var _reactDom = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");

var _reactDom2 = _interopRequireDefault(_reactDom);

var _ownerDocument = __webpack_require__(/*! dom-helpers/ownerDocument */ "./node_modules/dom-helpers/ownerDocument.js");

var _ownerDocument2 = _interopRequireDefault(_ownerDocument);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports['default'];

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/Manager.js":
/*!******************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/Manager.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ManagerContext = undefined;

var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");

var _extends3 = _interopRequireDefault(_extends2);

var _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js");

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ "./node_modules/babel-runtime/helpers/inherits.js");

var _inherits3 = _interopRequireDefault(_inherits2);

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var React = _interopRequireWildcard(_react);

var _createReactContext = __webpack_require__(/*! create-react-context */ "./node_modules/create-react-context/lib/index.js");

var _createReactContext2 = _interopRequireDefault(_createReactContext);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ManagerContext = exports.ManagerContext = (0, _createReactContext2.default)({ getReferenceRef: undefined, referenceNode: undefined });

var Manager = function (_React$Component) {
  (0, _inherits3.default)(Manager, _React$Component);

  function Manager() {
    (0, _classCallCheck3.default)(this, Manager);

    var _this = (0, _possibleConstructorReturn3.default)(this, _React$Component.call(this));

    _this.getReferenceRef = function (referenceNode) {
      return _this.setState(function (_ref) {
        var context = _ref.context;
        return {
          context: (0, _extends3.default)({}, context, { referenceNode: referenceNode })
        };
      });
    };

    _this.state = {
      context: {
        getReferenceRef: _this.getReferenceRef,
        referenceNode: undefined
      }
    };
    return _this;
  }

  Manager.prototype.render = function render() {
    return React.createElement(
      ManagerContext.Provider,
      { value: this.state.context },
      this.props.children
    );
  };

  return Manager;
}(React.Component);

exports.default = Manager;

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/Popper.js":
/*!*****************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/Popper.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.placements = exports.InnerPopper = undefined;

var _extends2 = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");

var _extends3 = _interopRequireDefault(_extends2);

var _classCallCheck2 = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _possibleConstructorReturn2 = __webpack_require__(/*! babel-runtime/helpers/possibleConstructorReturn */ "./node_modules/babel-runtime/helpers/possibleConstructorReturn.js");

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = __webpack_require__(/*! babel-runtime/helpers/inherits */ "./node_modules/babel-runtime/helpers/inherits.js");

var _inherits3 = _interopRequireDefault(_inherits2);

exports.default = Popper;

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var React = _interopRequireWildcard(_react);

var _popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js");

var _popper2 = _interopRequireDefault(_popper);

var _Manager = __webpack_require__(/*! ./Manager */ "./node_modules/react-popper/lib/cjs/Manager.js");

var _utils = __webpack_require__(/*! ./utils */ "./node_modules/react-popper/lib/cjs/utils.js");

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var initialStyle = {
  position: 'absolute',
  top: 0,
  left: 0,
  opacity: 0,
  pointerEvents: 'none'
};

var initialArrowStyle = {};

var InnerPopper = exports.InnerPopper = function (_React$Component) {
  (0, _inherits3.default)(InnerPopper, _React$Component);

  function InnerPopper() {
    var _temp, _this, _ret;

    (0, _classCallCheck3.default)(this, InnerPopper);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
      data: undefined,
      placement: undefined
    }, _this.popperNode = null, _this.arrowNode = null, _this.setPopperNode = function (popperNode) {
      if (_this.popperNode === popperNode) return;

      (0, _utils.safeInvoke)(_this.props.innerRef, popperNode);
      _this.popperNode = popperNode;

      _this.updatePopperInstance();
    }, _this.setArrowNode = function (arrowNode) {
      if (_this.arrowNode === arrowNode) return;
      _this.arrowNode = arrowNode;

      if (!_this.popperInstance) _this.updatePopperInstance();
    }, _this.updateStateModifier = {
      enabled: true,
      order: 900,
      fn: function fn(data) {
        var placement = data.placement;

        _this.setState({ data: data, placement: placement }, placement !== _this.state.placement ? _this.scheduleUpdate : undefined);
        return data;
      }
    }, _this.getOptions = function () {
      return {
        placement: _this.props.placement,
        eventsEnabled: _this.props.eventsEnabled,
        positionFixed: _this.props.positionFixed,
        modifiers: (0, _extends3.default)({}, _this.props.modifiers, {
          arrow: (0, _extends3.default)({}, _this.props.modifiers && _this.props.modifiers.arrow, {
            enabled: !!_this.arrowNode,
            element: _this.arrowNode
          }),
          applyStyle: { enabled: false },
          updateStateModifier: _this.updateStateModifier
        })
      };
    }, _this.getPopperStyle = function () {
      return !_this.popperNode || !_this.state.data ? initialStyle : (0, _extends3.default)({
        position: _this.state.data.offsets.popper.position
      }, _this.state.data.styles);
    }, _this.getPopperPlacement = function () {
      return !_this.state.data ? undefined : _this.state.placement;
    }, _this.getArrowStyle = function () {
      return !_this.arrowNode || !_this.state.data ? initialArrowStyle : _this.state.data.arrowStyles;
    }, _this.getOutOfBoundariesState = function () {
      return _this.state.data ? _this.state.data.hide : undefined;
    }, _this.destroyPopperInstance = function () {
      if (!_this.popperInstance) return;

      _this.popperInstance.destroy();
      _this.popperInstance = null;
    }, _this.updatePopperInstance = function () {
      _this.destroyPopperInstance();

      var _this2 = _this,
          popperNode = _this2.popperNode;
      var referenceElement = _this.props.referenceElement;


      if (!referenceElement || !popperNode) return;

      _this.popperInstance = new _popper2.default(referenceElement, popperNode, _this.getOptions());
    }, _this.scheduleUpdate = function () {
      if (_this.popperInstance) {
        _this.popperInstance.scheduleUpdate();
      }
    }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
  }

  InnerPopper.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
    // If the Popper.js options have changed, update the instance (destroy + create)
    if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed) {
      this.updatePopperInstance();
    } else if (this.props.eventsEnabled !== prevProps.eventsEnabled && this.popperInstance) {
      this.props.eventsEnabled ? this.popperInstance.enableEventListeners() : this.popperInstance.disableEventListeners();
    }

    // A placement difference in state means popper determined a new placement
    // apart from the props value. By the time the popper element is rendered with
    // the new position Popper has already measured it, if the place change triggers
    // a size change it will result in a misaligned popper. So we schedule an update to be sure.
    if (prevState.placement !== this.state.placement) {
      this.scheduleUpdate();
    }
  };

  InnerPopper.prototype.componentWillUnmount = function componentWillUnmount() {
    this.destroyPopperInstance();
  };

  InnerPopper.prototype.render = function render() {
    return (0, _utils.unwrapArray)(this.props.children)({
      ref: this.setPopperNode,
      style: this.getPopperStyle(),
      placement: this.getPopperPlacement(),
      outOfBoundaries: this.getOutOfBoundariesState(),
      scheduleUpdate: this.scheduleUpdate,
      arrowProps: {
        ref: this.setArrowNode,
        style: this.getArrowStyle()
      }
    });
  };

  return InnerPopper;
}(React.Component);

InnerPopper.defaultProps = {
  placement: 'bottom',
  eventsEnabled: true,
  referenceElement: undefined,
  positionFixed: false
};


var placements = _popper2.default.placements;
exports.placements = placements;
function Popper(props) {
  return React.createElement(
    _Manager.ManagerContext.Consumer,
    null,
    function (_ref) {
      var referenceNode = _ref.referenceNode;
      return React.createElement(InnerPopper, (0, _extends3.default)({ referenceElement: referenceNode }, props));
    }
  );
}

/***/ }),

/***/ "./node_modules/react-popper/lib/cjs/utils.js":
/*!****************************************************!*\
  !*** ./node_modules/react-popper/lib/cjs/utils.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});


/**
 * Takes an argument and if it's an array, returns the first item in the array,
 * otherwise returns the argument. Used for Preact compatibility.
 */
var unwrapArray = exports.unwrapArray = function unwrapArray(arg) {
  return Array.isArray(arg) ? arg[0] : arg;
};

/**
 * Takes a maybe-undefined function and arbitrary args and invokes the function
 * only if it is defined.
 */
var safeInvoke = exports.safeInvoke = function safeInvoke(fn) {
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }

  if (typeof fn === "function") {
    return fn.apply(undefined, args);
  }
};

/***/ }),

/***/ "./node_modules/react-switch/dist/react-switch.dev.js":
/*!************************************************************!*\
  !*** ./node_modules/react-switch/dist/react-switch.dev.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

Object.defineProperty(exports, '__esModule', { value: true });

var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
var PropTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];

      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }

    return target;
  };

  return _extends.apply(this, arguments);
}

/*
The MIT License (MIT)

Copyright (c) 2015 instructure-react

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 uncheckedIcon = React.createElement('svg', {
  viewBox: "-2 -5 14 20",
  height: "100%",
  width: "100%",
  style: {
    position: "absolute",
    top: 0
  }
}, React.createElement('path', {
  d: "M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",
  fill: "#fff",
  fillRule: "evenodd"
}));
var checkedIcon = React.createElement('svg', {
  height: "100%",
  width: "100%",
  viewBox: "-2 -5 17 21",
  style: {
    position: "absolute",
    top: 0
  }
}, React.createElement('path', {
  d: "M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",
  fill: "#fff",
  fillRule: "evenodd"
}));

function createBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
  var relativePos = (pos - uncheckedPos) / (checkedPos - uncheckedPos);

  if (relativePos === 0) {
    return offColor;
  }

  if (relativePos === 1) {
    return onColor;
  }

  var newColor = "#";

  for (var i = 1; i < 6; i += 2) {
    var offComponent = parseInt(offColor.substr(i, 2), 16);
    var onComponent = parseInt(onColor.substr(i, 2), 16);
    var weightedValue = Math.round((1 - relativePos) * offComponent + relativePos * onComponent);
    var newComponent = weightedValue.toString(16);

    if (newComponent.length === 1) {
      newComponent = "0" + newComponent;
    }

    newColor += newComponent;
  }

  return newColor;
}

function convertShorthandColor(color) {
  if (color.length === 7) {
    return color;
  }

  var sixDigitColor = "#";

  for (var i = 1; i < 4; i += 1) {
    sixDigitColor += color[i] + color[i];
  }

  return sixDigitColor;
}

function getBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
  var sixDigitOffColor = convertShorthandColor(offColor);
  var sixDigitOnColor = convertShorthandColor(onColor);
  return createBackgroundColor(pos, checkedPos, uncheckedPos, sixDigitOffColor, sixDigitOnColor);
}

// Make sure color props are strings that start with "#" since other ways to write colors are not supported.
var hexColorPropType = function (props, propName, componentName) {
  var prop = props[propName];

  if (typeof prop !== "string" || prop[0] !== "#" || prop.length !== 4 && prop.length !== 7) {
    return new Error("Invalid prop '" + propName + "' supplied to '" + componentName + "'. '" + propName + "' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'");
  }

  return null;
};

function objectWithoutProperties(obj, exclude) {
  var target = {};

  for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k];

  return target;
}

var ReactSwitch =
/*@__PURE__*/
function (Component) {
  function ReactSwitch(props) {
    Component.call(this, props);
    var height = props.height;
    var width = props.width;
    var handleDiameter = props.handleDiameter;
    var checked = props.checked;
    this.$handleDiameter = handleDiameter || height - 2;
    this.$checkedPos = Math.max(width - height, width - (height + this.$handleDiameter) / 2);
    this.$uncheckedPos = Math.max(0, (height - this.$handleDiameter) / 2);
    this.state = {
      $pos: checked ? this.$checkedPos : this.$uncheckedPos
    };
    this.$lastDragAt = 0;
    this.$lastKeyUpAt = 0;
    this.$onMouseDown = this.$onMouseDown.bind(this);
    this.$onMouseMove = this.$onMouseMove.bind(this);
    this.$onMouseUp = this.$onMouseUp.bind(this);
    this.$onTouchStart = this.$onTouchStart.bind(this);
    this.$onTouchMove = this.$onTouchMove.bind(this);
    this.$onTouchEnd = this.$onTouchEnd.bind(this);
    this.$onClick = this.$onClick.bind(this);
    this.$onInputChange = this.$onInputChange.bind(this);
    this.$onKeyUp = this.$onKeyUp.bind(this);
    this.$setHasOutline = this.$setHasOutline.bind(this);
    this.$unsetHasOutline = this.$unsetHasOutline.bind(this);
    this.$getInputRef = this.$getInputRef.bind(this);
  }

  if (Component) ReactSwitch.__proto__ = Component;
  ReactSwitch.prototype = Object.create(Component && Component.prototype);
  ReactSwitch.prototype.constructor = ReactSwitch;

  ReactSwitch.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
    if (prevProps.checked === this.props.checked) {
      return;
    }

    var $pos = this.props.checked ? this.$checkedPos : this.$uncheckedPos;
    this.setState({
      $pos: $pos
    });
  };

  ReactSwitch.prototype.$onDragStart = function $onDragStart(clientX) {
    this.$inputRef.focus();
    this.setState({
      $startX: clientX,
      $hasOutline: true,
      $dragStartingTime: Date.now()
    });
  };

  ReactSwitch.prototype.$onDrag = function $onDrag(clientX) {
    var ref = this.state;
    var $startX = ref.$startX;
    var $isDragging = ref.$isDragging;
    var $pos = ref.$pos;
    var ref$1 = this.props;
    var checked = ref$1.checked;
    var startPos = checked ? this.$checkedPos : this.$uncheckedPos;
    var mousePos = startPos + clientX - $startX; // We need this check to fix a windows glitch where onDrag is triggered onMouseDown in some cases

    if (!$isDragging && clientX !== $startX) {
      this.setState({
        $isDragging: true
      });
    }

    var newPos = Math.min(this.$checkedPos, Math.max(this.$uncheckedPos, mousePos)); // Prevent unnecessary rerenders

    if (newPos !== $pos) {
      this.setState({
        $pos: newPos
      });
    }
  };

  ReactSwitch.prototype.$onDragStop = function $onDragStop(event) {
    var ref = this.state;
    var $pos = ref.$pos;
    var $isDragging = ref.$isDragging;
    var $dragStartingTime = ref.$dragStartingTime;
    var ref$1 = this.props;
    var checked = ref$1.checked;
    var halfwayCheckpoint = (this.$checkedPos + this.$uncheckedPos) / 2; // Simulate clicking the handle

    var timeSinceStart = Date.now() - $dragStartingTime;

    if (!$isDragging || timeSinceStart < 250) {
      this.$onChange(event); // Handle dragging from checked position
    } else if (checked) {
      if ($pos > halfwayCheckpoint) {
        this.setState({
          $pos: this.$checkedPos
        });
      } else {
        this.$onChange(event);
      } // Handle dragging from unchecked position

    } else if ($pos < halfwayCheckpoint) {
      this.setState({
        $pos: this.$uncheckedPos
      });
    } else {
      this.$onChange(event);
    }

    this.setState({
      $isDragging: false,
      $hasOutline: false
    });
    this.$lastDragAt = Date.now();
  };

  ReactSwitch.prototype.$onMouseDown = function $onMouseDown(event) {
    event.preventDefault(); // Ignore right click and scroll

    if (typeof event.button === "number" && event.button !== 0) {
      return;
    }

    this.$onDragStart(event.clientX);
    window.addEventListener("mousemove", this.$onMouseMove);
    window.addEventListener("mouseup", this.$onMouseUp);
  };

  ReactSwitch.prototype.$onMouseMove = function $onMouseMove(event) {
    event.preventDefault();
    this.$onDrag(event.clientX);
  };

  ReactSwitch.prototype.$onMouseUp = function $onMouseUp(event) {
    this.$onDragStop(event);
    window.removeEventListener("mousemove", this.$onMouseMove);
    window.removeEventListener("mouseup", this.$onMouseUp);
  };

  ReactSwitch.prototype.$onTouchStart = function $onTouchStart(event) {
    this.$checkedStateFromDragging = null;
    this.$onDragStart(event.touches[0].clientX);
  };

  ReactSwitch.prototype.$onTouchMove = function $onTouchMove(event) {
    this.$onDrag(event.touches[0].clientX);
  };

  ReactSwitch.prototype.$onTouchEnd = function $onTouchEnd(event) {
    event.preventDefault();
    this.$onDragStop(event);
  };

  ReactSwitch.prototype.$onInputChange = function $onInputChange(event) {
    // This condition is unfortunately needed in some browsers where the input's change event might get triggered
    // right after the dragstop event is triggered (occurs when dropping over a label element)
    if (Date.now() - this.$lastDragAt > 50) {
      this.$onChange(event); // Prevent clicking label, but not key activation from setting outline to true - yes, this is absurd

      if (Date.now() - this.$lastKeyUpAt > 50) {
        this.setState({
          $hasOutline: false
        });
      }
    }
  };

  ReactSwitch.prototype.$onKeyUp = function $onKeyUp() {
    this.$lastKeyUpAt = Date.now();
  };

  ReactSwitch.prototype.$setHasOutline = function $setHasOutline() {
    this.setState({
      $hasOutline: true
    });
  };

  ReactSwitch.prototype.$unsetHasOutline = function $unsetHasOutline() {
    this.setState({
      $hasOutline: false
    });
  };

  ReactSwitch.prototype.$getInputRef = function $getInputRef(el) {
    this.$inputRef = el;
  };

  ReactSwitch.prototype.$onClick = function $onClick(event) {
    event.preventDefault();
    this.$inputRef.focus();
    this.$onChange(event);
    this.setState({
      $hasOutline: false
    });
  };

  ReactSwitch.prototype.$onChange = function $onChange(event) {
    var ref = this.props;
    var checked = ref.checked;
    var onChange = ref.onChange;
    var id = ref.id;
    onChange(!checked, event, id);
  };

  ReactSwitch.prototype.render = function render() {
    var ref = this.props;
    var disabled = ref.disabled;
    var className = ref.className;
    var offColor = ref.offColor;
    var onColor = ref.onColor;
    var offHandleColor = ref.offHandleColor;
    var onHandleColor = ref.onHandleColor;
    var checkedIcon$$1 = ref.checkedIcon;
    var uncheckedIcon$$1 = ref.uncheckedIcon;
    var boxShadow = ref.boxShadow;
    var activeBoxShadow = ref.activeBoxShadow;
    var height = ref.height;
    var width = ref.width;
    var handleDiameter = ref.handleDiameter;
    var rest$1 = objectWithoutProperties(ref, ["disabled", "className", "offColor", "onColor", "offHandleColor", "onHandleColor", "checkedIcon", "uncheckedIcon", "boxShadow", "activeBoxShadow", "height", "width", "handleDiameter"]);
    var rest = rest$1;
    var ref$1 = this.state;
    var $pos = ref$1.$pos;
    var $isDragging = ref$1.$isDragging;
    var $hasOutline = ref$1.$hasOutline;
    var rootStyle = {
      position: "relative",
      display: "inline-block",
      textAlign: "left",
      opacity: disabled ? 0.5 : 1,
      direction: "ltr",
      borderRadius: height / 2,
      WebkitTransition: "opacity 0.25s",
      MozTransition: "opacity 0.25s",
      transition: "opacity 0.25s",
      touchAction: "none",
      WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
      WebkitUserSelect: "none",
      MozUserSelect: "none",
      msUserSelect: "none",
      userSelect: "none"
    };
    var backgroundStyle = {
      height: height,
      width: width,
      margin: Math.max(0, (this.$handleDiameter - height) / 2),
      position: "relative",
      background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offColor, onColor),
      borderRadius: height / 2,
      cursor: disabled ? "default" : "pointer",
      WebkitTransition: $isDragging ? null : "background 0.25s",
      MozTransition: $isDragging ? null : "background 0.25s",
      transition: $isDragging ? null : "background 0.25s"
    };
    var checkedIconStyle = {
      height: height,
      width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
      position: "relative",
      opacity: ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
      pointerEvents: "none",
      WebkitTransition: $isDragging ? null : "opacity 0.25s",
      MozTransition: $isDragging ? null : "opacity 0.25s",
      transition: $isDragging ? null : "opacity 0.25s"
    };
    var uncheckedIconStyle = {
      height: height,
      width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
      position: "absolute",
      opacity: 1 - ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
      right: 0,
      top: 0,
      pointerEvents: "none",
      WebkitTransition: $isDragging ? null : "opacity 0.25s",
      MozTransition: $isDragging ? null : "opacity 0.25s",
      transition: $isDragging ? null : "opacity 0.25s"
    };
    var handleStyle = {
      height: this.$handleDiameter,
      width: this.$handleDiameter,
      background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offHandleColor, onHandleColor),
      display: "inline-block",
      cursor: disabled ? "default" : "pointer",
      borderRadius: "50%",
      position: "absolute",
      transform: "translateX(" + $pos + "px)",
      top: Math.max(0, (height - this.$handleDiameter) / 2),
      outline: 0,
      boxShadow: $hasOutline ? activeBoxShadow : boxShadow,
      border: 0,
      WebkitTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
      MozTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
      transition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s"
    };
    var inputStyle = {
      border: 0,
      clip: "rect(0 0 0 0)",
      height: 1,
      margin: -1,
      overflow: "hidden",
      padding: 0,
      position: "absolute",
      width: 1
    };
    return React.createElement('div', {
      className: className,
      style: rootStyle
    }, React.createElement('div', {
      className: "react-switch-bg",
      style: backgroundStyle,
      onClick: disabled ? null : this.$onClick,
      onMouseDown: function (e) {
        return e.preventDefault();
      }
    }, checkedIcon$$1 && React.createElement('div', {
      style: checkedIconStyle
    }, checkedIcon$$1), uncheckedIcon$$1 && React.createElement('div', {
      style: uncheckedIconStyle
    }, uncheckedIcon$$1)), React.createElement('div', {
      className: "react-switch-handle",
      style: handleStyle,
      onClick: function (e) {
        return e.preventDefault();
      },
      onMouseDown: disabled ? null : this.$onMouseDown,
      onTouchStart: disabled ? null : this.$onTouchStart,
      onTouchMove: disabled ? null : this.$onTouchMove,
      onTouchEnd: disabled ? null : this.$onTouchEnd,
      onTouchCancel: disabled ? null : this.$unsetHasOutline
    }), React.createElement('input', _extends({}, {
      type: "checkbox",
      role: "switch",
      disabled: disabled,
      style: inputStyle
    }, rest, {
      ref: this.$getInputRef,
      onFocus: this.$setHasOutline,
      onBlur: this.$unsetHasOutline,
      onKeyUp: this.$onKeyUp,
      onChange: this.$onInputChange
    })));
  };

  return ReactSwitch;
}(React.Component);

ReactSwitch.propTypes = {
  checked: PropTypes.bool.isRequired,
  onChange: PropTypes.func.isRequired,
  disabled: PropTypes.bool,
  offColor: hexColorPropType,
  onColor: hexColorPropType,
  offHandleColor: hexColorPropType,
  onHandleColor: hexColorPropType,
  handleDiameter: PropTypes.number,
  uncheckedIcon: PropTypes.oneOfType([PropTypes.bool, PropTypes.element]),
  checkedIcon: PropTypes.oneOfType([PropTypes.bool, PropTypes.element]),
  boxShadow: PropTypes.string,
  activeBoxShadow: PropTypes.string,
  height: PropTypes.number,
  width: PropTypes.number,
  id: PropTypes.string,
  className: PropTypes.string
};
ReactSwitch.defaultProps = {
  disabled: false,
  offColor: "#888",
  onColor: "#080",
  offHandleColor: "#fff",
  onHandleColor: "#fff",
  uncheckedIcon: uncheckedIcon,
  checkedIcon: checkedIcon,
  boxShadow: null,
  activeBoxShadow: "0 0 2px 3px #3bf",
  height: 28,
  width: 56
};

exports.default = ReactSwitch;


/***/ }),

/***/ "./node_modules/react-switch/index.js":
/*!********************************************!*\
  !*** ./node_modules/react-switch/index.js ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

if (false) {} else {
  module.exports = __webpack_require__(/*! ./dist/react-switch.dev.js */ "./node_modules/react-switch/dist/react-switch.dev.js");
}


/***/ }),

/***/ "./node_modules/react-transition-group/Transition.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-transition-group/Transition.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;

var PropTypes = _interopRequireWildcard(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));

var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"));

var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js");

var _PropTypes = __webpack_require__(/*! ./utils/PropTypes */ "./node_modules/react-transition-group/utils/PropTypes.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

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; }

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

var UNMOUNTED = 'unmounted';
exports.UNMOUNTED = UNMOUNTED;
var EXITED = 'exited';
exports.EXITED = EXITED;
var ENTERING = 'entering';
exports.ENTERING = ENTERING;
var ENTERED = 'entered';
exports.ENTERED = ENTERED;
var EXITING = 'exiting';
/**
 * The Transition component lets you describe a transition from one component
 * state to another _over time_ with a simple declarative API. Most commonly
 * it's used to animate the mounting and unmounting of a component, but can also
 * be used to describe in-place transition states as well.
 *
 * By default the `Transition` component does not alter the behavior of the
 * component it renders, it only tracks "enter" and "exit" states for the components.
 * It's up to you to give meaning and effect to those states. For example we can
 * add styles to a component when it enters or exits:
 *
 * ```jsx
 * import Transition from 'react-transition-group/Transition';
 *
 * const duration = 300;
 *
 * const defaultStyle = {
 *   transition: `opacity ${duration}ms ease-in-out`,
 *   opacity: 0,
 * }
 *
 * const transitionStyles = {
 *   entering: { opacity: 0 },
 *   entered:  { opacity: 1 },
 * };
 *
 * const Fade = ({ in: inProp }) => (
 *   <Transition in={inProp} timeout={duration}>
 *     {(state) => (
 *       <div style={{
 *         ...defaultStyle,
 *         ...transitionStyles[state]
 *       }}>
 *         I'm a fade Transition!
 *       </div>
 *     )}
 *   </Transition>
 * );
 * ```
 *
 * As noted the `Transition` component doesn't _do_ anything by itself to its child component.
 * What it does do is track transition states over time so you can update the
 * component (such as by adding styles or classes) when it changes states.
 *
 * There are 4 main states a Transition can be in:
 *  - `'entering'`
 *  - `'entered'`
 *  - `'exiting'`
 *  - `'exited'`
 *
 * Transition state is toggled via the `in` prop. When `true` the component begins the
 * "Enter" stage. During this stage, the component will shift from its current transition state,
 * to `'entering'` for the duration of the transition and then to the `'entered'` stage once
 * it's complete. Let's take the following example:
 *
 * ```jsx
 * state = { in: false };
 *
 * toggleEnterState = () => {
 *   this.setState({ in: true });
 * }
 *
 * render() {
 *   return (
 *     <div>
 *       <Transition in={this.state.in} timeout={500} />
 *       <button onClick={this.toggleEnterState}>Click to Enter</button>
 *     </div>
 *   );
 * }
 * ```
 *
 * When the button is clicked the component will shift to the `'entering'` state and
 * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`.
 *
 * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`.
 *
 * ## Timing
 *
 * Timing is often the trickiest part of animation, mistakes can result in slight delays
 * that are hard to pin down. A common example is when you want to add an exit transition,
 * you should set the desired final styles when the state is `'exiting'`. That's when the
 * transition to those styles will start and, if you matched the `timeout` prop with the
 * CSS Transition duration, it will end exactly when the state changes to `'exited'`.
 *
 * > **Note**: For simpler transitions the `Transition` component might be enough, but
 * > take into account that it's platform-agnostic, while the `CSSTransition` component
 * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
 * > in order to make more complex transitions more predictable. For example, even though
 * > classes `example-enter` and `example-enter-active` are applied immediately one after
 * > another, you can still transition from one to the other because of the forced reflow
 * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171)
 * > for more info). Take this into account when choosing between `Transition` and
 * > `CSSTransition`.
 */

exports.EXITING = EXITING;

var Transition =
/*#__PURE__*/
function (_React$Component) {
  _inheritsLoose(Transition, _React$Component);

  function Transition(props, context) {
    var _this;

    _this = _React$Component.call(this, props, context) || this;
    var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears

    var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
    var initialStatus;
    _this.appearStatus = null;

    if (props.in) {
      if (appear) {
        initialStatus = EXITED;
        _this.appearStatus = ENTERING;
      } else {
        initialStatus = ENTERED;
      }
    } else {
      if (props.unmountOnExit || props.mountOnEnter) {
        initialStatus = UNMOUNTED;
      } else {
        initialStatus = EXITED;
      }
    }

    _this.state = {
      status: initialStatus
    };
    _this.nextCallback = null;
    return _this;
  }

  var _proto = Transition.prototype;

  _proto.getChildContext = function getChildContext() {
    return {
      transitionGroup: null // allows for nested Transitions

    };
  };

  Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
    var nextIn = _ref.in;

    if (nextIn && prevState.status === UNMOUNTED) {
      return {
        status: EXITED
      };
    }

    return null;
  }; // getSnapshotBeforeUpdate(prevProps) {
  //   let nextStatus = null
  //   if (prevProps !== this.props) {
  //     const { status } = this.state
  //     if (this.props.in) {
  //       if (status !== ENTERING && status !== ENTERED) {
  //         nextStatus = ENTERING
  //       }
  //     } else {
  //       if (status === ENTERING || status === ENTERED) {
  //         nextStatus = EXITING
  //       }
  //     }
  //   }
  //   return { nextStatus }
  // }


  _proto.componentDidMount = function componentDidMount() {
    this.updateStatus(true, this.appearStatus);
  };

  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
    var nextStatus = null;

    if (prevProps !== this.props) {
      var status = this.state.status;

      if (this.props.in) {
        if (status !== ENTERING && status !== ENTERED) {
          nextStatus = ENTERING;
        }
      } else {
        if (status === ENTERING || status === ENTERED) {
          nextStatus = EXITING;
        }
      }
    }

    this.updateStatus(false, nextStatus);
  };

  _proto.componentWillUnmount = function componentWillUnmount() {
    this.cancelNextCallback();
  };

  _proto.getTimeouts = function getTimeouts() {
    var timeout = this.props.timeout;
    var exit, enter, appear;
    exit = enter = appear = timeout;

    if (timeout != null && typeof timeout !== 'number') {
      exit = timeout.exit;
      enter = timeout.enter;
      appear = timeout.appear;
    }

    return {
      exit: exit,
      enter: enter,
      appear: appear
    };
  };

  _proto.updateStatus = function updateStatus(mounting, nextStatus) {
    if (mounting === void 0) {
      mounting = false;
    }

    if (nextStatus !== null) {
      // nextStatus will always be ENTERING or EXITING.
      this.cancelNextCallback();

      var node = _reactDom.default.findDOMNode(this);

      if (nextStatus === ENTERING) {
        this.performEnter(node, mounting);
      } else {
        this.performExit(node);
      }
    } else if (this.props.unmountOnExit && this.state.status === EXITED) {
      this.setState({
        status: UNMOUNTED
      });
    }
  };

  _proto.performEnter = function performEnter(node, mounting) {
    var _this2 = this;

    var enter = this.props.enter;
    var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
    var timeouts = this.getTimeouts(); // no enter animation skip right to ENTERED
    // if we are mounting and running this it means appear _must_ be set

    if (!mounting && !enter) {
      this.safeSetState({
        status: ENTERED
      }, function () {
        _this2.props.onEntered(node);
      });
      return;
    }

    this.props.onEnter(node, appearing);
    this.safeSetState({
      status: ENTERING
    }, function () {
      _this2.props.onEntering(node, appearing); // FIXME: appear timeout?


      _this2.onTransitionEnd(node, timeouts.enter, function () {
        _this2.safeSetState({
          status: ENTERED
        }, function () {
          _this2.props.onEntered(node, appearing);
        });
      });
    });
  };

  _proto.performExit = function performExit(node) {
    var _this3 = this;

    var exit = this.props.exit;
    var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED

    if (!exit) {
      this.safeSetState({
        status: EXITED
      }, function () {
        _this3.props.onExited(node);
      });
      return;
    }

    this.props.onExit(node);
    this.safeSetState({
      status: EXITING
    }, function () {
      _this3.props.onExiting(node);

      _this3.onTransitionEnd(node, timeouts.exit, function () {
        _this3.safeSetState({
          status: EXITED
        }, function () {
          _this3.props.onExited(node);
        });
      });
    });
  };

  _proto.cancelNextCallback = function cancelNextCallback() {
    if (this.nextCallback !== null) {
      this.nextCallback.cancel();
      this.nextCallback = null;
    }
  };

  _proto.safeSetState = function safeSetState(nextState, callback) {
    // This shouldn't be necessary, but there are weird race conditions with
    // setState callbacks and unmounting in testing, so always make sure that
    // we can cancel any pending setState callbacks after we unmount.
    callback = this.setNextCallback(callback);
    this.setState(nextState, callback);
  };

  _proto.setNextCallback = function setNextCallback(callback) {
    var _this4 = this;

    var active = true;

    this.nextCallback = function (event) {
      if (active) {
        active = false;
        _this4.nextCallback = null;
        callback(event);
      }
    };

    this.nextCallback.cancel = function () {
      active = false;
    };

    return this.nextCallback;
  };

  _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
    this.setNextCallback(handler);

    if (node) {
      if (this.props.addEndListener) {
        this.props.addEndListener(node, this.nextCallback);
      }

      if (timeout != null) {
        setTimeout(this.nextCallback, timeout);
      }
    } else {
      setTimeout(this.nextCallback, 0);
    }
  };

  _proto.render = function render() {
    var status = this.state.status;

    if (status === UNMOUNTED) {
      return null;
    }

    var _this$props = this.props,
        children = _this$props.children,
        childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition


    delete childProps.in;
    delete childProps.mountOnEnter;
    delete childProps.unmountOnExit;
    delete childProps.appear;
    delete childProps.enter;
    delete childProps.exit;
    delete childProps.timeout;
    delete childProps.addEndListener;
    delete childProps.onEnter;
    delete childProps.onEntering;
    delete childProps.onEntered;
    delete childProps.onExit;
    delete childProps.onExiting;
    delete childProps.onExited;

    if (typeof children === 'function') {
      return children(status, childProps);
    }

    var child = _react.default.Children.only(children);

    return _react.default.cloneElement(child, childProps);
  };

  return Transition;
}(_react.default.Component);

Transition.contextTypes = {
  transitionGroup: PropTypes.object
};
Transition.childContextTypes = {
  transitionGroup: function transitionGroup() {}
};
Transition.propTypes =  true ? {
  /**
   * A `function` child can be used instead of a React element.
   * This function is called with the current transition status
   * ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can be used
   * to apply context specific props to a component.
   *
   * ```jsx
   * <Transition timeout={150}>
   *   {(status) => (
   *     <MyComponent className={`fade fade-${status}`} />
   *   )}
   * </Transition>
   * ```
   */
  children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,

  /**
   * Show the component; triggers the enter or exit states
   */
  in: PropTypes.bool,

  /**
   * By default the child component is mounted immediately along with
   * the parent `Transition` component. If you want to "lazy mount" the component on the
   * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
   * mounted, even on "exited", unless you also specify `unmountOnExit`.
   */
  mountOnEnter: PropTypes.bool,

  /**
   * By default the child component stays mounted after it reaches the `'exited'` state.
   * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
   */
  unmountOnExit: PropTypes.bool,

  /**
   * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.
   * If you want to transition on the first mount set `appear` to `true`, and the
   * component will transition in as soon as the `<Transition>` mounts.
   *
   * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
   */
  appear: PropTypes.bool,

  /**
   * Enable or disable enter transitions.
   */
  enter: PropTypes.bool,

  /**
   * Enable or disable exit transitions.
   */
  exit: PropTypes.bool,

  /**
   * The duration of the transition, in milliseconds.
   * Required unless `addEndListener` is provided
   *
   * You may specify a single timeout for all transitions like: `timeout={500}`,
   * or individually like:
   *
   * ```jsx
   * timeout={{
   *  enter: 300,
   *  exit: 500,
   * }}
   * ```
   *
   * @type {number | { enter?: number, exit?: number }}
   */
  timeout: function timeout(props) {
    var pt =  true ? _PropTypes.timeoutsShape : undefined;;
    if (!props.addEndListener) pt = pt.isRequired;

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },

  /**
   * Add a custom transition end trigger. Called with the transitioning
   * DOM node and a `done` callback. Allows for more fine grained transition end
   * logic. **Note:** Timeouts are still used as a fallback if provided.
   *
   * ```jsx
   * addEndListener={(node, done) => {
   *   // use the css transitionend event to mark the finish of a transition
   *   node.addEventListener('transitionend', done, false);
   * }}
   * ```
   */
  addEndListener: PropTypes.func,

  /**
   * Callback fired before the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEnter: PropTypes.func,

  /**
   * Callback fired after the "entering" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool)
   */
  onEntering: PropTypes.func,

  /**
   * Callback fired after the "entered" status is applied. An extra parameter
   * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
   *
   * @type Function(node: HtmlElement, isAppearing: bool) -> void
   */
  onEntered: PropTypes.func,

  /**
   * Callback fired before the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExit: PropTypes.func,

  /**
   * Callback fired after the "exiting" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExiting: PropTypes.func,

  /**
   * Callback fired after the "exited" status is applied.
   *
   * @type Function(node: HtmlElement) -> void
   */
  onExited: PropTypes.func // Name the function so it is clearer in the documentation

} : undefined;

function noop() {}

Transition.defaultProps = {
  in: false,
  mountOnEnter: false,
  unmountOnExit: false,
  appear: false,
  enter: true,
  exit: true,
  onEnter: noop,
  onEntering: noop,
  onEntered: noop,
  onExit: noop,
  onExiting: noop,
  onExited: noop
};
Transition.UNMOUNTED = 0;
Transition.EXITED = 1;
Transition.ENTERING = 2;
Transition.ENTERED = 3;
Transition.EXITING = 4;

var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);

exports.default = _default;

/***/ }),

/***/ "./node_modules/react-transition-group/utils/PropTypes.js":
/*!****************************************************************!*\
  !*** ./node_modules/react-transition-group/utils/PropTypes.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.transitionTimeout = transitionTimeout;
exports.classNamesShape = exports.timeoutsShape = void 0;

var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function transitionTimeout(transitionType) {
  var timeoutPropName = 'transition' + transitionType + 'Timeout';
  var enabledPropName = 'transition' + transitionType;
  return function (props) {
    // If the transition is enabled
    if (props[enabledPropName]) {
      // If no timeout duration is provided
      if (props[timeoutPropName] == null) {
        return new Error(timeoutPropName + ' wasn\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.'); // If the duration isn't a number
      } else if (typeof props[timeoutPropName] !== 'number') {
        return new Error(timeoutPropName + ' must be a number (in milliseconds)');
      }
    }

    return null;
  };
}

var timeoutsShape = _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
  enter: _propTypes.default.number,
  exit: _propTypes.default.number
}).isRequired]);

exports.timeoutsShape = timeoutsShape;

var classNamesShape = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
  enter: _propTypes.default.string,
  exit: _propTypes.default.string,
  active: _propTypes.default.string
}), _propTypes.default.shape({
  enter: _propTypes.default.string,
  enterDone: _propTypes.default.string,
  enterActive: _propTypes.default.string,
  exit: _propTypes.default.string,
  exitDone: _propTypes.default.string,
  exitActive: _propTypes.default.string
})]);

exports.classNamesShape = classNamesShape;

/***/ }),

/***/ "./node_modules/react/cjs/react.development.js":
/*!*****************************************************!*\
  !*** ./node_modules/react/cjs/react.development.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.13.1
 * 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__(/*! object-assign */ "./node_modules/object-assign/index.js");
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");

var ReactVersion = '16.13.1';

// 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; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
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;
}

/**
 * Keeps track of the current dispatcher.
 */
var ReactCurrentDispatcher = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null
};

/**
 * Keeps track of the current batch's configuration such as how long an update
 * should suspend for if it needs to.
 */
var ReactCurrentBatchConfig = {
  suspense: null
};

/**
 * 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
};

var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
function describeComponentFrame (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 refineResolvedLazyComponent(lazyComponent) {
  return lazyComponent._status === Resolved ? lazyComponent._result : null;
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('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_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_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';
  }

  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:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        return getComponentName(type.type);

      case REACT_BLOCK_TYPE:
        return getComponentName(type.render);

      case REACT_LAZY_TYPE:
        {
          var thenable = type;
          var resolvedThenable = refineResolvedLazyComponent(thenable);

          if (resolvedThenable) {
            return getComponentName(resolvedThenable);
          }

          break;
        }
    }
  }

  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;
  };
}

/**
 * Used by act() to track whether you're inside an act() scope.
 */
var IsSomeRendererActing = {
  current: false
};

var ReactSharedInternals = {
  ReactCurrentDispatcher: ReactCurrentDispatcher,
  ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  ReactCurrentOwner: ReactCurrentOwner,
  IsSomeRendererActing: IsSomeRendererActing,
  // 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: {}
  });
}

// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    printWarning('warn', format, args);
  }
}
function error(format) {
  {
    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    printWarning('error', format, args);
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n    in') === 0;

    if (!hasExistingStack) {
      var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
      var stack = ReactDebugCurrentFrame.getStackAddendum();

      if (stack !== '') {
        format += '%s';
        args = args.concat([stack]);
      }
    }

    var argsWithFormat = args.map(function (item) {
      return '' + item;
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);

    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 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;
    }

    error("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) {
  if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
    {
      throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
    }
  }

  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 () {
        warn('%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;
}

var hasOwnProperty = Object.prototype.hasOwnProperty;
var RESERVED_PROPS = {
  key: true,
  ref: true,
  __self: true,
  __source: true
};
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;

{
  didWarnAboutStringRefs = {};
}

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;

        error('%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;

        error('%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
  });
}

function warnIfStringRefCannotBeAutoConverted(config) {
  {
    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
      var componentName = getComponentName(ReactCurrentOwner.current.type);

      if (!didWarnAboutStringRefs[componentName]) {
        error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);

        didWarnAboutStringRefs[componentName] = 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, instanceof check
 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
 * if something is a React Element.
 *
 * @param {*} type
 * @param {*} props
 * @param {*} key
 * @param {string|object} ref
 * @param {*} owner
 * @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.
 * @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; // 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;

      {
        warnIfStringRefCannotBeAutoConverted(config);
      }
    }

    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);
}
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) {
  if (!!(element === null || element === undefined)) {
    {
      throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
    }
  }

  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://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;
  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 (typeof iteratorFn === 'function') {

      {
        // Warn about using Maps as children
        if (iteratorFn === children.entries) {
          if (!didWarnAboutMaps) {
            warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
          }

          didWarnAboutMaps = true;
        }
      }

      var iterator = iteratorFn.call(children);
      var step;
      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;

      {
        {
          throw Error( "Objects are not valid as a React child (found: " + (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) {
  if (!isValidElement(children)) {
    {
      throw Error( "React.Children.only expected to receive a single React element child." );
    }
  }

  return children;
}

function createContext(defaultValue, calculateChangedBits) {
  if (calculateChangedBits === undefined) {
    calculateChangedBits = null;
  } else {
    {
      if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
        error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
      }
    }
  }

  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,
    // Used to track how many concurrent renderers this context currently
    // supports within in a single renderer. Such as parallel server rendering.
    _threadCount: 0,
    // These are circular
    Provider: null,
    Consumer: null
  };
  context.Provider = {
    $$typeof: REACT_PROVIDER_TYPE,
    _context: context
  };
  var hasWarnedAboutUsingNestedContextConsumers = false;
  var hasWarnedAboutUsingConsumerProvider = false;

  {
    // A separate object, but proxies back to the original context object for
    // backwards compatibility. It has a different $$typeof, so we can properly
    // warn for the incorrect usage of Context as a Consumer.
    var Consumer = {
      $$typeof: REACT_CONTEXT_TYPE,
      _context: context,
      _calculateChangedBits: context._calculateChangedBits
    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here

    Object.defineProperties(Consumer, {
      Provider: {
        get: function () {
          if (!hasWarnedAboutUsingConsumerProvider) {
            hasWarnedAboutUsingConsumerProvider = true;

            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
          }

          return context.Provider;
        },
        set: function (_Provider) {
          context.Provider = _Provider;
        }
      },
      _currentValue: {
        get: function () {
          return context._currentValue;
        },
        set: function (_currentValue) {
          context._currentValue = _currentValue;
        }
      },
      _currentValue2: {
        get: function () {
          return context._currentValue2;
        },
        set: function (_currentValue2) {
          context._currentValue2 = _currentValue2;
        }
      },
      _threadCount: {
        get: function () {
          return context._threadCount;
        },
        set: function (_threadCount) {
          context._threadCount = _threadCount;
        }
      },
      Consumer: {
        get: function () {
          if (!hasWarnedAboutUsingNestedContextConsumers) {
            hasWarnedAboutUsingNestedContextConsumers = true;

            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
          }

          return context.Consumer;
        }
      }
    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty

    context.Consumer = Consumer;
  }

  {
    context._currentRenderer = null;
    context._currentRenderer2 = null;
  }

  return context;
}

function lazy(ctor) {
  var lazyType = {
    $$typeof: REACT_LAZY_TYPE,
    _ctor: ctor,
    // React uses these fields to store the result.
    _status: -1,
    _result: null
  };

  {
    // In production, this would just set it on the object.
    var defaultProps;
    var propTypes;
    Object.defineProperties(lazyType, {
      defaultProps: {
        configurable: true,
        get: function () {
          return defaultProps;
        },
        set: function (newDefaultProps) {
          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          defaultProps = newDefaultProps; // Match production behavior more closely:

          Object.defineProperty(lazyType, 'defaultProps', {
            enumerable: true
          });
        }
      },
      propTypes: {
        configurable: true,
        get: function () {
          return propTypes;
        },
        set: function (newPropTypes) {
          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          propTypes = newPropTypes; // Match production behavior more closely:

          Object.defineProperty(lazyType, 'propTypes', {
            enumerable: true
          });
        }
      }
    });
  }

  return lazyType;
}

function forwardRef(render) {
  {
    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
    } else if (typeof render !== 'function') {
      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
    } else {
      if (render.length !== 0 && render.length !== 2) {
        error('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.');
      }
    }

    if (render != null) {
      if (render.defaultProps != null || render.propTypes != null) {
        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
      }
    }
  }

  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_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
}

function memo(type, compare) {
  {
    if (!isValidElementType(type)) {
      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
    }
  }

  return {
    $$typeof: REACT_MEMO_TYPE,
    type: type,
    compare: compare === undefined ? null : compare
  };
}

function resolveDispatcher() {
  var dispatcher = ReactCurrentDispatcher.current;

  if (!(dispatcher !== null)) {
    {
      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
    }
  }

  return dispatcher;
}

function useContext(Context, unstable_observedBits) {
  var dispatcher = resolveDispatcher();

  {
    if (unstable_observedBits !== undefined) {
      error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
    } // TODO: add a more generic warning for invalid values.


    if (Context._context !== undefined) {
      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
      // and nobody should be using this in existing code.

      if (realContext.Consumer === Context) {
        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
      } else if (realContext.Provider === Context) {
        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
      }
    }
  }

  return dispatcher.useContext(Context, unstable_observedBits);
}
function useState(initialState) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useState(initialState);
}
function useReducer(reducer, initialArg, init) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useReducer(reducer, initialArg, init);
}
function useRef(initialValue) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useRef(initialValue);
}
function useEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useEffect(create, deps);
}
function useLayoutEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useLayoutEffect(create, deps);
}
function useCallback(callback, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useCallback(callback, deps);
}
function useMemo(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useMemo(create, deps);
}
function useImperativeHandle(ref, create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useImperativeHandle(ref, create, deps);
}
function useDebugValue(value, formatterFn) {
  {
    var dispatcher = resolveDispatcher();
    return dispatcher.useDebugValue(value, formatterFn);
  }
}

var propTypesMisspellWarningShown;

{
  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(source) {
  if (source !== undefined) {
    var fileName = source.fileName.replace(/^.*[\\\/]/, '');
    var lineNumber = source.lineNumber;
    return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  }

  return '';
}

function getSourceInfoErrorAddendumForProps(elementProps) {
  if (elementProps !== null && elementProps !== undefined) {
    return getSourceInfoErrorAddendum(elementProps.__source);
  }

  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);

  {
    error('Each child in a list 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;

        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;

    if (type === null || type === undefined || typeof type === 'string') {
      return;
    }

    var name = getComponentName(type);
    var propTypes;

    if (typeof type === 'function') {
      propTypes = type.propTypes;
    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
    // Inner props are checked in the reconciler.
    type.$$typeof === REACT_MEMO_TYPE)) {
      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;

      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
    }

    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
    }
  }
}
/**
 * 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') {
        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

        break;
      }
    }

    if (fragment.ref !== null) {
      error('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 = getSourceInfoErrorAddendumForProps(props);

    if (sourceInfo) {
      info += sourceInfo;
    } else {
      info += getDeclarationErrorAddendum();
    }

    var typeString;

    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;
    }

    {
      error('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;
}
var didWarnAboutDeprecatedCreateFactory = false;
function createFactoryWithValidation(type) {
  var validatedFactory = createElementWithValidation.bind(null, type);
  validatedFactory.type = type;

  {
    if (!didWarnAboutDeprecatedCreateFactory) {
      didWarnAboutDeprecatedCreateFactory = true;

      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
    } // Legacy hook: remove it


    Object.defineProperty(validatedFactory, 'type', {
      enumerable: false,
      get: function () {
        warn('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;
}

{

  try {
    var frozenObject = Object.freeze({});
    var testMap = new Map([[frozenObject, null]]);
    var testSet = new Set([frozenObject]); // 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) {
  }
}

var createElement$1 =  createElementWithValidation ;
var cloneElement$1 =  cloneElementWithValidation ;
var createFactory =  createFactoryWithValidation ;
var Children = {
  map: mapChildren,
  forEach: forEachChildren,
  count: countChildren,
  toArray: toArray,
  only: onlyChild
};

exports.Children = Children;
exports.Component = Component;
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.Profiler = REACT_PROFILER_TYPE;
exports.PureComponent = PureComponent;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
exports.cloneElement = cloneElement$1;
exports.createContext = createContext;
exports.createElement = createElement$1;
exports.createFactory = createFactory;
exports.createRef = createRef;
exports.forwardRef = forwardRef;
exports.isValidElement = isValidElement;
exports.lazy = lazy;
exports.memo = memo;
exports.useCallback = useCallback;
exports.useContext = useContext;
exports.useDebugValue = useDebugValue;
exports.useEffect = useEffect;
exports.useImperativeHandle = useImperativeHandle;
exports.useLayoutEffect = useLayoutEffect;
exports.useMemo = useMemo;
exports.useReducer = useReducer;
exports.useRef = useRef;
exports.useState = useState;
exports.version = ReactVersion;
  })();
}


/***/ }),

/***/ "./node_modules/react/index.js":
/*!*************************************!*\
  !*** ./node_modules/react/index.js ***!
  \*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
}


/***/ }),

/***/ "./node_modules/reactabular-table/dist/body-row.js":
/*!*********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/body-row.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _isEqual2 = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual3 = _interopRequireDefault(_isEqual2);

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _columnsAreEqual = __webpack_require__(/*! ./columns-are-equal */ "./node_modules/reactabular-table/dist/columns-are-equal.js");

var _columnsAreEqual2 = _interopRequireDefault(_columnsAreEqual);

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

var _evaluateFormatters2 = _interopRequireDefault(_evaluateFormatters);

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

var _evaluateTransforms2 = _interopRequireDefault(_evaluateTransforms);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 BodyRow = function (_React$Component) {
  _inherits(BodyRow, _React$Component);

  function BodyRow() {
    _classCallCheck(this, BodyRow);

    return _possibleConstructorReturn(this, (BodyRow.__proto__ || Object.getPrototypeOf(BodyRow)).apply(this, arguments));
  }

  _createClass(BodyRow, [{
    key: 'shouldComponentUpdate',
    value: function shouldComponentUpdate(nextProps) {
      // eslint-disable-line no-unused-vars
      var previousProps = this.props;

      // Check for row based override.
      var renderers = nextProps.renderers;


      if (renderers && renderers.row && renderers.row.shouldComponentUpdate) {
        if ((0, _isFunction3.default)(renderers.row.shouldComponentUpdate)) {
          return renderers.row.shouldComponentUpdate.call(this, nextProps);
        }

        return true;
      }

      return !((0, _columnsAreEqual2.default)(previousProps.columns, nextProps.columns) && (0, _isEqual3.default)(previousProps.rowData, nextProps.rowData));
    }
  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          columns = _props.columns,
          renderers = _props.renderers,
          onRow = _props.onRow,
          rowKey = _props.rowKey,
          rowIndex = _props.rowIndex,
          rowData = _props.rowData;


      return _react2.default.createElement(renderers.row, onRow(rowData, { rowIndex: rowIndex, rowKey: rowKey }), columns.map(function (column, columnIndex) {
        var property = column.property,
            cell = column.cell,
            props = column.props;

        var evaluatedProperty = property || cell && cell.property;

        var _ref = cell || {},
            _ref$transforms = _ref.transforms,
            transforms = _ref$transforms === undefined ? [] : _ref$transforms,
            _ref$formatters = _ref.formatters,
            formatters = _ref$formatters === undefined ? [] : _ref$formatters; // TODO: test against this case


        var extraParameters = {
          columnIndex: columnIndex,
          property: evaluatedProperty,
          column: column,
          rowData: rowData,
          rowIndex: rowIndex,
          rowKey: rowKey
        };
        var transformed = (0, _evaluateTransforms2.default)(transforms, rowData[evaluatedProperty], extraParameters);

        if (!transformed) {
          console.warn('Table.Body - Failed to receive a transformed result'); // eslint-disable-line max-len, no-console
        }

        return _react2.default.createElement(renderers.cell, _extends({
          key: columnIndex + '-cell'
        }, (0, _mergeProps2.default)(props, cell && cell.props, transformed)), transformed.children || (0, _evaluateFormatters2.default)(formatters)(rowData['_' + evaluatedProperty] || rowData[evaluatedProperty], extraParameters));
      }));
    }
  }]);

  return BodyRow;
}(_react2.default.Component);

BodyRow.defaultProps = _types.tableBodyRowDefaults;
 true ? BodyRow.propTypes = _types.tableBodyRowTypes : undefined;

exports.default = BodyRow;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/body.js":
/*!*****************************************************!*\
  !*** ./node_modules/reactabular-table/dist/body.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _isEqual2 = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");

var _isEqual3 = _interopRequireDefault(_isEqual2);

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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

var _bodyRow = __webpack_require__(/*! ./body-row */ "./node_modules/reactabular-table/dist/body-row.js");

var _bodyRow2 = _interopRequireDefault(_bodyRow);

var _resolveRowKey = __webpack_require__(/*! ./resolve-row-key */ "./node_modules/reactabular-table/dist/resolve-row-key.js");

var _resolveRowKey2 = _interopRequireDefault(_resolveRowKey);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 Body = function (_React$Component) {
  _inherits(Body, _React$Component);

  function Body(props) {
    _classCallCheck(this, Body);

    var _this = _possibleConstructorReturn(this, (Body.__proto__ || Object.getPrototypeOf(Body)).call(this, props));

    _this.ref = null;
    return _this;
  }

  _createClass(Body, [{
    key: 'shouldComponentUpdate',
    value: function shouldComponentUpdate(nextProps, nextState, nextContext) {
      // eslint-disable-line no-unused-vars
      // Skip checking props against `onRow` since that can be bound at render().
      // That's not particularly good practice but you never know how the users
      // prefer to define the handler.

      // Check for wrapper based override.
      var renderers = nextContext.renderers;


      if (renderers && renderers.body && renderers.body.wrapper.shouldComponentUpdate) {
        if ((0, _isFunction3.default)(renderers.body.wrapper.shouldComponentUpdate)) {
          return renderers.body.wrapper.shouldComponentUpdate.call(this, nextProps, nextState, nextContext);
        }

        return true;
      }

      return !((0, _isEqual3.default)(omitOnRow(this.props), omitOnRow(nextProps)) && (0, _isEqual3.default)(this.context, nextContext));
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          onRow = _props.onRow,
          rows = _props.rows,
          rowKey = _props.rowKey,
          props = _objectWithoutProperties(_props, ['onRow', 'rows', 'rowKey']);

      var _context = this.context,
          columns = _context.columns,
          renderers = _context.renderers;


      props.ref = function (body) {
        _this2.ref = body;
      };

      return _react2.default.createElement(renderers.body.wrapper, props, rows.map(function (rowData, index) {
        var rowIndex = rowData._index || index;
        var key = (0, _resolveRowKey2.default)({ rowData: rowData, rowIndex: rowIndex, rowKey: rowKey });

        return _react2.default.createElement(_bodyRow2.default, {
          key: key,
          renderers: renderers.body,
          onRow: onRow,
          rowKey: key,
          rowIndex: rowIndex,
          rowData: rowData,
          columns: columns
        });
      }));
    }
  }, {
    key: 'getRef',
    value: function getRef() {
      return this.ref;
    }
  }]);

  return Body;
}(_react2.default.Component);

 true ? Body.propTypes = _types.tableBodyTypes : undefined;
Body.defaultProps = _types.tableBodyDefaults;
Body.contextTypes = _types.tableBodyContextTypes;

function omitOnRow(props) {
  var onRow = props.onRow,
      ret = _objectWithoutProperties(props, ['onRow']); // eslint-disable-line no-unused-vars

  return ret;
}

exports.default = Body;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/columns-are-equal.js":
/*!******************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/columns-are-equal.js ***!
  \******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isEqualWith2 = __webpack_require__(/*! lodash/isEqualWith */ "./node_modules/lodash/isEqualWith.js");

var _isEqualWith3 = _interopRequireDefault(_isEqualWith2);

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function columnsAreEqual(oldColumns, newColumns) {
  return (0, _isEqualWith3.default)(oldColumns, newColumns, function (a, b) {
    if ((0, _isFunction3.default)(a) && (0, _isFunction3.default)(b)) {
      return true;
    }

    return undefined;
  });
}

exports.default = columnsAreEqual;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/evaluate-formatters.js":
/*!********************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/evaluate-formatters.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function evaluateFormatters(formatters) {
  return function (value, extra) {
    return formatters.reduce(function (parameters, formatter) {
      return {
        value: formatter(parameters.value, parameters.extra),
        extra: extra
      };
    }, { value: value, extra: extra }).value;
  };
}

exports.default = evaluateFormatters;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/evaluate-transforms.js":
/*!********************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/evaluate-transforms.js ***!
  \********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function evaluateTransforms() {
  var transforms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var value = arguments[1];
  var extraParameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

  if (true) {
    if (!transforms.every(_isFunction3.default)) {
      throw new Error('All transforms weren\'t functions!', transforms);
    }
  }

  if (transforms.length === 0) {
    return {};
  }

  return _mergeProps2.default.apply(undefined, _toConsumableArray(transforms.map(function (transform) {
    return transform(value, extraParameters);
  })));
}

exports.default = evaluateTransforms;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/header-row.js":
/*!***********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/header-row.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

var _evaluateFormatters2 = _interopRequireDefault(_evaluateFormatters);

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

var _evaluateTransforms2 = _interopRequireDefault(_evaluateTransforms);

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

var _mergeProps2 = _interopRequireDefault(_mergeProps);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var HeaderRow = function HeaderRow(_ref) {
  var rowData = _ref.rowData,
      rowIndex = _ref.rowIndex,
      renderers = _ref.renderers,
      onRow = _ref.onRow;
  return _react2.default.createElement(renderers.row, onRow(rowData, { rowIndex: rowIndex }), rowData.map(function (column, columnIndex) {
    var property = column.property,
        _column$header = column.header,
        header = _column$header === undefined ? {} : _column$header,
        _column$props = column.props,
        props = _column$props === undefined ? {} : _column$props;

    var evaluatedProperty = property || header && header.property;
    var label = header.label,
        _header$transforms = header.transforms,
        transforms = _header$transforms === undefined ? [] : _header$transforms,
        _header$formatters = header.formatters,
        formatters = _header$formatters === undefined ? [] : _header$formatters;

    var extraParameters = {
      columnIndex: columnIndex,
      property: evaluatedProperty,
      column: column
    };
    var transformedProps = (0, _evaluateTransforms2.default)(transforms, label, extraParameters);

    if (!transformedProps) {
      console.warn('Table.Header - Failed to receive a transformed result'); // eslint-disable-line max-len, no-console
    }

    return _react2.default.createElement(renderers.cell, _extends({
      key: columnIndex + '-header'
    }, (0, _mergeProps2.default)(props, header && header.props, transformedProps)), transformedProps.children || (0, _evaluateFormatters2.default)(formatters)(label, extraParameters));
  }));
};
HeaderRow.defaultProps = _types.tableHeaderRowDefaults;
 true ? HeaderRow.propTypes = _types.tableHeaderRowTypes : undefined;

exports.default = HeaderRow;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/header.js":
/*!*******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/header.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

var _headerRow = __webpack_require__(/*! ./header-row */ "./node_modules/reactabular-table/dist/header-row.js");

var _headerRow2 = _interopRequireDefault(_headerRow);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 Header = function (_React$Component) {
  _inherits(Header, _React$Component);

  // eslint-disable-line max-len, react/prefer-stateless-function
  function Header(props) {
    _classCallCheck(this, Header);

    var _this = _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).call(this, props));

    _this.ref = null;
    return _this;
  }

  _createClass(Header, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props = this.props,
          children = _props.children,
          headerRows = _props.headerRows,
          onRow = _props.onRow,
          props = _objectWithoutProperties(_props, ['children', 'headerRows', 'onRow']);

      var _context = this.context,
          renderers = _context.renderers,
          columns = _context.columns;


      props.ref = function (header) {
        _this2.ref = header;
      };

      // If headerRows aren't passed, default to bodyColumns as header rows
      return _react2.default.createElement(renderers.header.wrapper, props, [(headerRows || [columns]).map(function (rowData, rowIndex) {
        return _react2.default.createElement(_headerRow2.default, {
          key: rowIndex + '-header-row',
          renderers: renderers.header,
          onRow: onRow,
          rowData: rowData,
          rowIndex: rowIndex
        });
      })].concat(children));
    }
  }, {
    key: 'getRef',
    value: function getRef() {
      return this.ref;
    }
  }]);

  return Header;
}(_react2.default.Component);

 true ? Header.propTypes = _types.tableHeaderTypes : undefined;
Header.contextTypes = _types.tableHeaderContextTypes;

exports.default = Header;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/index.js":
/*!******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/index.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _provider = __webpack_require__(/*! ./provider */ "./node_modules/reactabular-table/dist/provider.js");

Object.defineProperty(exports, 'Provider', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_provider).default;
  }
});

var _header = __webpack_require__(/*! ./header */ "./node_modules/reactabular-table/dist/header.js");

Object.defineProperty(exports, 'Header', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_header).default;
  }
});

var _body = __webpack_require__(/*! ./body */ "./node_modules/reactabular-table/dist/body.js");

Object.defineProperty(exports, 'Body', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_body).default;
  }
});

var _bodyRow = __webpack_require__(/*! ./body-row */ "./node_modules/reactabular-table/dist/body-row.js");

Object.defineProperty(exports, 'BodyRow', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_bodyRow).default;
  }
});

var _evaluateFormatters = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/reactabular-table/dist/evaluate-formatters.js");

Object.defineProperty(exports, 'evaluateFormatters', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_evaluateFormatters).default;
  }
});

var _evaluateTransforms = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/reactabular-table/dist/evaluate-transforms.js");

Object.defineProperty(exports, 'evaluateTransforms', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_evaluateTransforms).default;
  }
});

var _mergeProps = __webpack_require__(/*! ./merge-props */ "./node_modules/reactabular-table/dist/merge-props.js");

Object.defineProperty(exports, 'mergeProps', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_mergeProps).default;
  }
});

var _columnsAreEqual = __webpack_require__(/*! ./columns-are-equal */ "./node_modules/reactabular-table/dist/columns-are-equal.js");

Object.defineProperty(exports, 'columnsAreEqual', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_columnsAreEqual).default;
  }
});

var _resolveRowKey = __webpack_require__(/*! ./resolve-row-key */ "./node_modules/reactabular-table/dist/resolve-row-key.js");

Object.defineProperty(exports, 'resolveRowKey', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_resolveRowKey).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/reactabular-table/dist/merge-props.js":
/*!************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/merge-props.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _mergeWith2 = __webpack_require__(/*! lodash/mergeWith */ "./node_modules/lodash/mergeWith.js");

var _mergeWith3 = _interopRequireDefault(_mergeWith2);

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function mergePropPair() {
  for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
    props[_key] = arguments[_key];
  }

  var firstProps = props[0];
  var restProps = props.slice(1);

  if (!restProps.length) {
    return (0, _mergeWith3.default)({}, firstProps);
  }

  // Avoid mutating the first prop collection
  return _mergeWith3.default.apply(undefined, [(0, _mergeWith3.default)({}, firstProps)].concat(_toConsumableArray(restProps), [function (a, b, key) {
    if (key === 'children') {
      // Children have to be merged in reverse order for Reactabular
      // logic to work.
      return _extends({}, b, a);
    }

    if (key === 'className') {
      // Process class names through classNames to merge properly
      // as a string.
      return (0, _classnames2.default)(a, b);
    }

    return undefined;
  }]));
}

exports.default = mergePropPair;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/provider.js":
/*!*********************************************************!*\
  !*** ./node_modules/reactabular-table/dist/provider.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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; }; }();

var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

var _types = __webpack_require__(/*! ./types */ "./node_modules/reactabular-table/dist/types.js");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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; }

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 componentDefaults = _types.tableDefaults.renderers;

var Provider = function (_React$Component) {
  _inherits(Provider, _React$Component);

  function Provider() {
    _classCallCheck(this, Provider);

    return _possibleConstructorReturn(this, (Provider.__proto__ || Object.getPrototypeOf(Provider)).apply(this, arguments));
  }

  _createClass(Provider, [{
    key: 'getChildContext',
    value: function getChildContext() {
      var _props = this.props,
          columns = _props.columns,
          components = _props.components,
          renderers = _props.renderers;

      var finalRenderers = renderers;

      // XXXXX: Drop in the next major version
      if (components) {
        // eslint-disable-next-line no-console
        console.warn('`components` have been deprecated in favor of `renderers` and will be removed in the next major version, please rename!');

        finalRenderers = components;
      }

      return {
        columns: columns,
        renderers: {
          table: finalRenderers.table || componentDefaults.table,
          header: _extends({}, componentDefaults.header, finalRenderers.header),
          body: _extends({}, componentDefaults.body, finalRenderers.body)
        }
      };
    }
  }, {
    key: 'render',
    value: function render() {
      var _props2 = this.props,
          columns = _props2.columns,
          renderers = _props2.renderers,
          components = _props2.components,
          children = _props2.children,
          props = _objectWithoutProperties(_props2, ['columns', 'renderers', 'components', 'children']);

      return _react2.default.createElement(renderers.table || _types.tableDefaults.renderers.table, props, children);
    }
  }]);

  return Provider;
}(_react2.default.Component);

exports.default = Provider;

 true ? Provider.propTypes = _extends({}, _types.tableTypes, {
  children: _propTypes2.default.any
}) : undefined;
Provider.defaultProps = _extends({}, _types.tableDefaults);
Provider.childContextTypes = _types.tableContextTypes;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/resolve-row-key.js":
/*!****************************************************************!*\
  !*** ./node_modules/reactabular-table/dist/resolve-row-key.js ***!
  \****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isArray2 = __webpack_require__(/*! lodash/isArray */ "./node_modules/lodash/isArray.js");

var _isArray3 = _interopRequireDefault(_isArray2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function resolveRowKey(_ref) {
  var rowData = _ref.rowData,
      rowIndex = _ref.rowIndex,
      rowKey = _ref.rowKey;

  if (typeof rowKey === 'function') {
    return rowKey({ rowData: rowData, rowIndex: rowIndex }) + '-row';
  } else if (true) {
    // Arrays cannot have rowKeys by definition so we have to go by index there.
    if (!(0, _isArray3.default)(rowData) && rowData[rowKey] === undefined) {
      console.warn( // eslint-disable-line no-console
      'Table.Body - Missing valid rowKey!', rowData, rowKey);
    }
  }

  if (rowData[rowKey] === 0) {
    return rowData[rowKey] + '-row';
  }

  return (rowData[rowKey] || rowIndex) + '-row';
}

exports.default = resolveRowKey;

/***/ }),

/***/ "./node_modules/reactabular-table/dist/types.js":
/*!******************************************************!*\
  !*** ./node_modules/reactabular-table/dist/types.js ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tableDefaults = exports.tableHeaderRowDefaults = exports.tableHeaderRowTypes = exports.tableHeaderContextTypes = exports.tableHeaderTypes = exports.tableBodyRowDefaults = exports.tableBodyRowTypes = exports.tableBodyContextTypes = exports.tableBodyDefaults = exports.tableBodyTypes = exports.tableContextTypes = exports.tableTypes = undefined;

var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");

var _propTypes2 = _interopRequireDefault(_propTypes);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var arrayOfObjectColumns = _propTypes2.default.arrayOf(_propTypes2.default.shape({
  header: _propTypes2.default.shape({
    label: _propTypes2.default.string,
    transforms: _propTypes2.default.arrayOf(_propTypes2.default.func),
    formatters: _propTypes2.default.arrayOf(_propTypes2.default.func),
    props: _propTypes2.default.object
  }),
  cell: _propTypes2.default.shape({
    property: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
    transforms: _propTypes2.default.arrayOf(_propTypes2.default.func),
    formatters: _propTypes2.default.arrayOf(_propTypes2.default.func),
    props: _propTypes2.default.object
  })
}));
var arrayOfArrayColumns = _propTypes2.default.arrayOf(_propTypes2.default.array);
var rowsType = _propTypes2.default.oneOfType([arrayOfObjectColumns, arrayOfArrayColumns]);
var rowKeyType = _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string]);
var rowDataType = _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object]);
var tableTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object,
  components: _propTypes2.default.object // XXXXX: Deprecated in favor of renderers, remove in the next major!
};
var tableContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableBodyDefaults = {
  onRow: function onRow() {}
};
var tableBodyTypes = {
  onRow: _propTypes2.default.func,
  rows: rowsType.isRequired,
  rowKey: rowKeyType
};
var tableBodyContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableBodyRowDefaults = {
  onRow: function onRow() {
    return {};
  }
};
var tableBodyRowTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object,
  onRow: _propTypes2.default.func,
  rowIndex: _propTypes2.default.number.isRequired,
  rowData: rowDataType.isRequired,
  rowKey: _propTypes2.default.string.isRequired
};
var tableHeaderTypes = {
  headerRows: _propTypes2.default.arrayOf(arrayOfObjectColumns),
  children: _propTypes2.default.any
};
var tableHeaderContextTypes = {
  columns: _propTypes2.default.array.isRequired,
  renderers: _propTypes2.default.object
};
var tableHeaderRowDefaults = {
  onRow: function onRow() {
    return {};
  }
};
var tableHeaderRowTypes = {
  renderers: _propTypes2.default.object,
  onRow: _propTypes2.default.func,
  rowIndex: _propTypes2.default.number.isRequired,
  rowData: rowDataType.isRequired
};
var tableDefaults = {
  renderers: {
    table: 'table',
    header: {
      wrapper: 'thead',
      row: 'tr',
      cell: 'th'
    },
    body: {
      wrapper: 'tbody',
      row: 'tr',
      cell: 'td'
    }
  }
};

exports.tableTypes = tableTypes;
exports.tableContextTypes = tableContextTypes;
exports.tableBodyTypes = tableBodyTypes;
exports.tableBodyDefaults = tableBodyDefaults;
exports.tableBodyContextTypes = tableBodyContextTypes;
exports.tableBodyRowTypes = tableBodyRowTypes;
exports.tableBodyRowDefaults = tableBodyRowDefaults;
exports.tableHeaderTypes = tableHeaderTypes;
exports.tableHeaderContextTypes = tableHeaderContextTypes;
exports.tableHeaderRowTypes = tableHeaderRowTypes;
exports.tableHeaderRowDefaults = tableHeaderRowDefaults;
exports.tableDefaults = tableDefaults;

/***/ }),

/***/ "./node_modules/recompose/dist/Recompose.esm.js":
/*!******************************************************!*\
  !*** ./node_modules/recompose/dist/Recompose.esm.js ***!
  \******************************************************/
/*! exports provided: mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, toRenderProps, fromRenderProps, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, setObservableConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapProps", function() { return mapProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withProps", function() { return withProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withPropsOnChange", function() { return withPropsOnChange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withHandlers", function() { return withHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProp", function() { return renameProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renameProps", function() { return renameProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenProp", function() { return flattenProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withState", function() { return withState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withStateHandlers", function() { return withStateHandlers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withReducer", function() { return withReducer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "branch", function() { return branch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderComponent", function() { return renderComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderNothing", function() { return renderNothing; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shouldUpdate", function() { return shouldUpdate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pure", function() { return pure; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForKeys", function() { return onlyUpdateForKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onlyUpdateForPropTypes", function() { return onlyUpdateForPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withContext", function() { return withContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContext", function() { return getContext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lifecycle", function() { return lifecycle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toClass", function() { return toClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toRenderProps", function() { return toRenderProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromRenderProps", function() { return fromRenderProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStatic", function() { return setStatic; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPropTypes", function() { return setPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDisplayName", function() { return setDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "compose", function() { return compose; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDisplayName", function() { return getDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapDisplayName", function() { return wrapDisplayName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClassComponent", function() { return isClassComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSink", function() { return createSink; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromProp", function() { return componentFromProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return nest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hoistStatics", function() { return hoistStatics; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStream", function() { return componentFromStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "componentFromStreamWithConfig", function() { return componentFromStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStream", function() { return mapPropsStream; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapPropsStreamWithConfig", function() { return mapPropsStreamWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandler", function() { return createEventHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createEventHandlerWithConfig", function() { return createEventHandlerWithConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setObservableConfig", function() { return configureObservable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fbjs/lib/shallowEqual */ "./node_modules/fbjs/lib/shallowEqual.js");
/* harmony import */ var fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "shallowEqual", function() { return fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default.a; });
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-lifecycles-compat */ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! change-emitter */ "./node_modules/change-emitter/lib/index.js");
/* harmony import */ var change_emitter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(change_emitter__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! symbol-observable */ "./node_modules/symbol-observable/es/index.js");










var setStatic = function setStatic(key, value) {
  return function (BaseComponent) {
    /* eslint-disable no-param-reassign */
    BaseComponent[key] = value;
    /* eslint-enable no-param-reassign */

    return BaseComponent;
  };
};

var setDisplayName = function setDisplayName(displayName) {
  return setStatic('displayName', displayName);
};

var getDisplayName = function getDisplayName(Component$$1) {
  if (typeof Component$$1 === 'string') {
    return Component$$1;
  }

  if (!Component$$1) {
    return undefined;
  }

  return Component$$1.displayName || Component$$1.name || 'Component';
};

var wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {
  return hocName + "(" + getDisplayName(BaseComponent) + ")";
};

var mapProps = function mapProps(propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var MapProps = function MapProps(props) {
      return factory(propsMapper(props));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);
    }

    return MapProps;
  };
};

var withProps = function withProps(input) {
  var hoc = mapProps(function (props) {
    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, typeof input === 'function' ? input(props) : input);
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var pick = function pick(obj, keys) {
  var result = {};

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];

    if (obj.hasOwnProperty(key)) {
      result[key] = obj[key];
    }
  }

  return result;
};

var withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
    var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {
      return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));
    };

    var WithPropsOnChange =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithPropsOnChange, _Component);

      function WithPropsOnChange() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          computedProps: propsMapper(_this.props),
          prevProps: _this.props
        };
        return _this;
      }

      WithPropsOnChange.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
        if (shouldMap(prevState.prevProps, nextProps)) {
          return {
            computedProps: propsMapper(nextProps),
            prevProps: nextProps
          };
        }

        return {
          prevProps: nextProps
        };
      };

      var _proto = WithPropsOnChange.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state.computedProps));
      };

      return WithPropsOnChange;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object(react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__["polyfill"])(WithPropsOnChange);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);
    }

    return WithPropsOnChange;
  };
};

var mapValues = function mapValues(obj, func) {
  var result = {};
  /* eslint-disable no-restricted-syntax */

  for (var key in obj) {
    if (obj.hasOwnProperty(key)) {
      result[key] = func(obj[key], key);
    }
  }
  /* eslint-enable no-restricted-syntax */


  return result;
};

var withHandlers = function withHandlers(handlers) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithHandlers =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithHandlers, _Component);

      function WithHandlers() {
        var _this;

        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
          _args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;
        _this.handlers = mapValues(typeof handlers === 'function' ? handlers(_this.props) : handlers, function (createHandler) {
          return function () {
            var handler = createHandler(_this.props);

            if ( true && typeof handler !== 'function') {
              console.error( // eslint-disable-line no-console
              'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');
            }

            return handler.apply(void 0, arguments);
          };
        });
        return _this;
      }

      var _proto = WithHandlers.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.handlers));
      };

      return WithHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);
    }

    return WithHandlers;
  };
};

var defaultProps = function defaultProps(props) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var DefaultProps = function DefaultProps(ownerProps) {
      return factory(ownerProps);
    };

    DefaultProps.defaultProps = props;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);
    }

    return DefaultProps;
  };
};

var omit = function omit(obj, keys) {
  var rest = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, obj);

  for (var i = 0; i < keys.length; i++) {
    var key = keys[i];

    if (rest.hasOwnProperty(key)) {
      delete rest[key];
    }
  }

  return rest;
};

var renameProp = function renameProp(oldName, newName) {
  var hoc = mapProps(function (props) {
    var _extends2;

    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, omit(props, [oldName]), (_extends2 = {}, _extends2[newName] = props[oldName], _extends2));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var keys = Object.keys;

var mapKeys = function mapKeys(obj, func) {
  return keys(obj).reduce(function (result, key) {
    var val = obj[key];
    /* eslint-disable no-param-reassign */

    result[func(val, key)] = val;
    /* eslint-enable no-param-reassign */

    return result;
  }, {});
};

var renameProps = function renameProps(nameMap) {
  var hoc = mapProps(function (props) {
    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {
      return nameMap[oldName];
    }));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var flattenProp = function flattenProp(propName) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var FlattenProp = function FlattenProp(props) {
      return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, props[propName]));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);
    }

    return FlattenProp;
  };
};

var withState = function withState(stateName, stateUpdaterName, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithState =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithState, _Component);

      function WithState() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState
        };

        _this.updateStateValue = function (updateFn, callback) {
          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn
            };
          }, callback);
        };

        return _this;
      }

      var _proto = WithState.prototype;

      _proto.render = function render() {
        var _extends2;

        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2)));
      };

      return WithState;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);
    }

    return WithState;
  };
};

var withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithStateHandlers =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithStateHandlers, _Component);

      function WithStateHandlers() {
        var _this;

        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
          _args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;
        _this.state = typeof initialState === 'function' ? initialState(_this.props) : initialState;
        _this.stateUpdaters = mapValues(stateUpdaters, function (handler) {
          return function (mayBeEvent) {
            for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
              args[_key2 - 1] = arguments[_key2];
            }

            // Having that functional form of setState can be called async
            // we need to persist SyntheticEvent
            if (mayBeEvent && typeof mayBeEvent.persist === 'function') {
              mayBeEvent.persist();
            }

            _this.setState(function (state, props) {
              return handler(state, props).apply(void 0, [mayBeEvent].concat(args));
            });
          };
        });
        return _this;
      }

      var _proto = WithStateHandlers.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state, this.stateUpdaters));
      };

      return WithStateHandlers;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);
    }

    return WithStateHandlers;
  };
};

var noop = function noop() {};

var withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithReducer =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithReducer, _Component);

      function WithReducer() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;
        _this.state = {
          stateValue: _this.initializeStateValue()
        };

        _this.dispatch = function (action, callback) {
          if (callback === void 0) {
            callback = noop;
          }

          return _this.setState(function (_ref) {
            var stateValue = _ref.stateValue;
            return {
              stateValue: reducer(stateValue, action)
            };
          }, function () {
            return callback(_this.state.stateValue);
          });
        };

        return _this;
      }

      var _proto = WithReducer.prototype;

      _proto.initializeStateValue = function initializeStateValue() {
        if (initialState !== undefined) {
          return typeof initialState === 'function' ? initialState(this.props) : initialState;
        }

        return reducer(undefined, {
          type: '@@recompose/INIT'
        });
      };

      _proto.render = function render() {
        var _extends2;

        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[dispatchName] = this.dispatch, _extends2)));
      };

      return WithReducer;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);
    }

    return WithReducer;
  };
};

var identity = function identity(Component$$1) {
  return Component$$1;
};

var branch = function branch(test, left, right) {
  if (right === void 0) {
    right = identity;
  }

  return function (BaseComponent) {
    var leftFactory;
    var rightFactory;

    var Branch = function Branch(props) {
      if (test(props)) {
        leftFactory = leftFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(left(BaseComponent));
        return leftFactory(props);
      }

      rightFactory = rightFactory || Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(right(BaseComponent));
      return rightFactory(props);
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);
    }

    return Branch;
  };
};

var renderComponent = function renderComponent(Component$$1) {
  return function (_) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(Component$$1);

    var RenderComponent = function RenderComponent(props) {
      return factory(props);
    };

    if (true) {
      RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');
    }

    return RenderComponent;
  };
};

var Nothing =
/*#__PURE__*/
function (_Component) {
  Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Nothing, _Component);

  function Nothing() {
    return _Component.apply(this, arguments) || this;
  }

  var _proto = Nothing.prototype;

  _proto.render = function render() {
    return null;
  };

  return Nothing;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

var renderNothing = function renderNothing(_) {
  return Nothing;
};

var shouldUpdate = function shouldUpdate(test) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var ShouldUpdate =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ShouldUpdate, _Component);

      function ShouldUpdate() {
        return _Component.apply(this, arguments) || this;
      }

      var _proto = ShouldUpdate.prototype;

      _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
        return test(this.props, nextProps);
      };

      _proto.render = function render() {
        return factory(this.props);
      };

      return ShouldUpdate;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);
    }

    return ShouldUpdate;
  };
};

var pure = function pure(BaseComponent) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(props, nextProps);
  });

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));
  }

  return hoc(BaseComponent);
};

var onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {
  var hoc = shouldUpdate(function (props, nextProps) {
    return !fbjs_lib_shallowEqual__WEBPACK_IMPORTED_MODULE_2___default()(pick(nextProps, propKeys), pick(props, propKeys));
  });

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {
  var propTypes = BaseComponent.propTypes;

  if (true) {
    if (!propTypes) {
      /* eslint-disable */
      console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + ("component with display name \"" + getDisplayName(BaseComponent) + "\"."));
      /* eslint-enable */
    }
  }

  var propKeys = Object.keys(propTypes || {});
  var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);

  if (true) {
    return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);
  }

  return OnlyUpdateForPropTypes;
};

var withContext = function withContext(childContextTypes, getChildContext) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var WithContext =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(WithContext, _Component);

      function WithContext() {
        var _this;

        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }

        _this = _Component.call.apply(_Component, [this].concat(args)) || this;

        _this.getChildContext = function () {
          return getChildContext(_this.props);
        };

        return _this;
      }

      var _proto = WithContext.prototype;

      _proto.render = function render() {
        return factory(this.props);
      };

      return WithContext;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    WithContext.childContextTypes = childContextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);
    }

    return WithContext;
  };
};

var getContext = function getContext(contextTypes) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    var GetContext = function GetContext(ownerProps, context) {
      return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, ownerProps, context));
    };

    GetContext.contextTypes = contextTypes;

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);
    }

    return GetContext;
  };
};

var lifecycle = function lifecycle(spec) {
  return function (BaseComponent) {
    var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);

    if ( true && spec.hasOwnProperty('render')) {
      console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');
    }

    var Lifecycle =
    /*#__PURE__*/
    function (_Component) {
      Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Lifecycle, _Component);

      function Lifecycle() {
        return _Component.apply(this, arguments) || this;
      }

      var _proto = Lifecycle.prototype;

      _proto.render = function render() {
        return factory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, this.props, this.state));
      };

      return Lifecycle;
    }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

    Object.keys(spec).forEach(function (hook) {
      return Lifecycle.prototype[hook] = spec[hook];
    });

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);
    }

    return Lifecycle;
  };
};

var isClassComponent = function isClassComponent(Component$$1) {
  return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');
};

var toClass = function toClass(baseComponent) {
  var _class, _temp;

  return isClassComponent(baseComponent) ? baseComponent : (_temp = _class =
  /*#__PURE__*/
  function (_Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ToClass, _Component);

    function ToClass() {
      return _Component.apply(this, arguments) || this;
    }

    var _proto = ToClass.prototype;

    _proto.render = function render() {
      if (typeof baseComponent === 'string') {
        return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(baseComponent, this.props);
      }

      return baseComponent(this.props, this.context);
    };

    return ToClass;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]), _class.displayName = getDisplayName(baseComponent), _class.propTypes = baseComponent.propTypes, _class.contextTypes = baseComponent.contextTypes, _class.defaultProps = baseComponent.defaultProps, _temp);
};

function toRenderProps(hoc) {
  var RenderPropsComponent = function RenderPropsComponent(props) {
    return props.children(props);
  };

  return hoc(RenderPropsComponent);
}

var fromRenderProps = function fromRenderProps(RenderPropsComponent, propsMapper, renderPropName) {
  if (renderPropName === void 0) {
    renderPropName = 'children';
  }

  return function (BaseComponent) {
    var baseFactory = react__WEBPACK_IMPORTED_MODULE_0___default.a.createFactory(BaseComponent);
    var renderPropsFactory = react__WEBPACK_IMPORTED_MODULE_0___default.a.createFactory(RenderPropsComponent);

    var FromRenderProps = function FromRenderProps(ownerProps) {
      var _renderPropsFactory;

      return renderPropsFactory((_renderPropsFactory = {}, _renderPropsFactory[renderPropName] = function () {
        return baseFactory(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, ownerProps, propsMapper.apply(void 0, arguments)));
      }, _renderPropsFactory));
    };

    if (true) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'fromRenderProps'))(FromRenderProps);
    }

    return FromRenderProps;
  };
};

var setPropTypes = function setPropTypes(propTypes) {
  return setStatic('propTypes', propTypes);
};

var compose = function compose() {
  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
    funcs[_key] = arguments[_key];
  }

  return funcs.reduce(function (a, b) {
    return function () {
      return a(b.apply(void 0, arguments));
    };
  }, function (arg) {
    return arg;
  });
};

var createSink = function createSink(callback) {
  var Sink =
  /*#__PURE__*/
  function (_Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(Sink, _Component);

    function Sink() {
      var _this;

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _Component.call.apply(_Component, [this].concat(args)) || this;
      _this.state = {};
      return _this;
    }

    Sink.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {
      callback(nextProps);
      return null;
    };

    var _proto = Sink.prototype;

    _proto.render = function render() {
      return null;
    };

    return Sink;
  }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);

  Object(react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__["polyfill"])(Sink);
  return Sink;
};

var componentFromProp = function componentFromProp(propName) {
  var Component$$1 = function Component$$1(props) {
    return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(props[propName], omit(props, [propName]));
  };

  Component$$1.displayName = "componentFromProp(" + propName + ")";
  return Component$$1;
};

var nest = function nest() {
  for (var _len = arguments.length, Components = new Array(_len), _key = 0; _key < _len; _key++) {
    Components[_key] = arguments[_key];
  }

  var factories = Components.map(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"]);

  var Nest = function Nest(_ref) {
    var children = _ref.children,
        props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__["default"])(_ref, ["children"]);

    return factories.reduceRight(function (child, factory) {
      return factory(props, child);
    }, children);
  };

  if (true) {
    var displayNames = Components.map(getDisplayName);
    Nest.displayName = "nest(" + displayNames.join(', ') + ")";
  }

  return Nest;
};

var hoistStatics = function hoistStatics(higherOrderComponent, blacklist) {
  return function (BaseComponent) {
    var NewComponent = higherOrderComponent(BaseComponent);
    hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(NewComponent, BaseComponent, blacklist);
    return NewComponent;
  };
};

var _config = {
  fromESObservable: null,
  toESObservable: null
};

var configureObservable = function configureObservable(c) {
  _config = c;
};

var config = {
  fromESObservable: function fromESObservable(observable) {
    return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;
  },
  toESObservable: function toESObservable(stream) {
    return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;
  }
};

var componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {
  return function (propsToVdom) {
    return (
      /*#__PURE__*/
      function (_Component) {
        Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_3__["default"])(ComponentFromStream, _Component);

        function ComponentFromStream() {
          var _config$fromESObserva;

          var _this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = _Component.call.apply(_Component, [this].concat(args)) || this;
          _this.state = {
            vdom: null
          };
          _this.propsEmitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_7__["createChangeEmitter"])();
          _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {
            subscribe: function subscribe(observer) {
              var unsubscribe = _this.propsEmitter.listen(function (props) {
                if (props) {
                  observer.next(props);
                } else {
                  observer.complete();
                }
              });

              return {
                unsubscribe: unsubscribe
              };
            }
          }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
            return this;
          }, _config$fromESObserva));
          _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$));
          return _this;
        }

        var _proto = ComponentFromStream.prototype;

        _proto.componentWillMount = function componentWillMount() {
          var _this2 = this;

          // Subscribe to child prop changes so we know when to re-render
          this.subscription = this.vdom$.subscribe({
            next: function next(vdom) {
              _this2.setState({
                vdom: vdom
              });
            }
          });
          this.propsEmitter.emit(this.props);
        };

        _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
          // Receive new props from the owner
          this.propsEmitter.emit(nextProps);
        };

        _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
          return nextState.vdom !== this.state.vdom;
        };

        _proto.componentWillUnmount = function componentWillUnmount() {
          // Call without arguments to complete stream
          this.propsEmitter.emit(); // Clean-up subscription before un-mounting

          this.subscription.unsubscribe();
        };

        _proto.render = function render() {
          return this.state.vdom;
        };

        return ComponentFromStream;
      }(react__WEBPACK_IMPORTED_MODULE_0__["Component"])
    );
  };
};

var componentFromStream = function componentFromStream(propsToVdom) {
  return componentFromStreamWithConfig(config)(propsToVdom);
};

var identity$1 = function identity(t) {
  return t;
};

var mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {
  var componentFromStream$$1 = componentFromStreamWithConfig({
    fromESObservable: identity$1,
    toESObservable: identity$1
  });
  return function (transform) {
    return function (BaseComponent) {
      var factory = Object(react__WEBPACK_IMPORTED_MODULE_0__["createFactory"])(BaseComponent);
      var fromESObservable = config$$1.fromESObservable,
          toESObservable = config$$1.toESObservable;
      return componentFromStream$$1(function (props$) {
        var _ref;

        return _ref = {
          subscribe: function subscribe(observer) {
            var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({
              next: function next(childProps) {
                return observer.next(factory(childProps));
              }
            });
            return {
              unsubscribe: function unsubscribe() {
                return subscription.unsubscribe();
              }
            };
          }
        }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
          return this;
        }, _ref;
      });
    };
  };
};

var mapPropsStream = function mapPropsStream(transform) {
  var hoc = mapPropsStreamWithConfig(config)(transform);

  if (true) {
    return function (BaseComponent) {
      return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));
    };
  }

  return hoc;
};

var createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {
  return function () {
    var _config$fromESObserva;

    var emitter = Object(change_emitter__WEBPACK_IMPORTED_MODULE_7__["createChangeEmitter"])();
    var stream = config$$1.fromESObservable((_config$fromESObserva = {
      subscribe: function subscribe(observer) {
        var unsubscribe = emitter.listen(function (value) {
          return observer.next(value);
        });
        return {
          unsubscribe: unsubscribe
        };
      }
    }, _config$fromESObserva[symbol_observable__WEBPACK_IMPORTED_MODULE_8__["default"]] = function () {
      return this;
    }, _config$fromESObserva));
    return {
      handler: emitter.emit,
      stream: stream
    };
  };
};
var createEventHandler = createEventHandlerWithConfig(config);

// Higher-order component helpers




/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler-tracing.development.js":
/*!*********************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v0.19.1
 * scheduler-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';

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;

{
  exports.__interactionsRef = {
    current: new Set()
  };
  exports.__subscriberRef = {
    current: null
  };
}
function unstable_clear(callback) {

  var prevInteractions = exports.__interactionsRef.current;
  exports.__interactionsRef.current = new Set();

  try {
    return callback();
  } finally {
    exports.__interactionsRef.current = prevInteractions;
  }
}
function unstable_getCurrent() {
  {
    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;

  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;

  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;

  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;

      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;

{
  subscribers = new Set();
}

function unstable_subscribe(subscriber) {
  {
    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) {
  {
    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_subscribe = unstable_subscribe;
exports.unstable_trace = unstable_trace;
exports.unstable_unsubscribe = unstable_unsubscribe;
exports.unstable_wrap = unstable_wrap;
  })();
}


/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v0.19.1
 * scheduler.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 enableSchedulerDebugging = false;
var enableProfiling = true;

var requestHostCallback;
var requestHostTimeout;
var cancelHostTimeout;
var shouldYieldToHost;
var requestPaint;

if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
// implementation using setTimeout.
typeof window === 'undefined' || // Check if MessageChannel is supported, too.
typeof MessageChannel !== 'function') {
  // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  // fallback to a naive implementation.
  var _callback = null;
  var _timeoutID = null;

  var _flushCallback = function () {
    if (_callback !== null) {
      try {
        var currentTime = exports.unstable_now();
        var hasRemainingTime = true;

        _callback(hasRemainingTime, currentTime);

        _callback = null;
      } catch (e) {
        setTimeout(_flushCallback, 0);
        throw e;
      }
    }
  };

  var initialTime = Date.now();

  exports.unstable_now = function () {
    return Date.now() - initialTime;
  };

  requestHostCallback = function (cb) {
    if (_callback !== null) {
      // Protect against re-entrancy.
      setTimeout(requestHostCallback, 0, cb);
    } else {
      _callback = cb;
      setTimeout(_flushCallback, 0);
    }
  };

  requestHostTimeout = function (cb, ms) {
    _timeoutID = setTimeout(cb, ms);
  };

  cancelHostTimeout = function () {
    clearTimeout(_timeoutID);
  };

  shouldYieldToHost = function () {
    return false;
  };

  requestPaint = exports.unstable_forceFrameRate = function () {};
} else {
  // Capture local references to native APIs, in case a polyfill overrides them.
  var performance = window.performance;
  var _Date = window.Date;
  var _setTimeout = window.setTimeout;
  var _clearTimeout = window.clearTimeout;

  if (typeof console !== 'undefined') {
    // TODO: Scheduler no longer requires these methods to be polyfilled. But
    // maybe we want to continue warning if they don't exist, to preserve the
    // option to rely on it in the future?
    var requestAnimationFrame = window.requestAnimationFrame;
    var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link

    if (typeof requestAnimationFrame !== 'function') {
      // Using console['error'] to evade Babel and ESLint
      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 cancelAnimationFrame !== 'function') {
      // Using console['error'] to evade Babel and ESLint
      console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
    }
  }

  if (typeof performance === 'object' && typeof performance.now === 'function') {
    exports.unstable_now = function () {
      return performance.now();
    };
  } else {
    var _initialTime = _Date.now();

    exports.unstable_now = function () {
      return _Date.now() - _initialTime;
    };
  }

  var isMessageLoopRunning = false;
  var scheduledHostCallback = null;
  var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
  // thread, like user events. By default, it yields multiple times per frame.
  // It does not attempt to align with frame boundaries, since most tasks don't
  // need to be frame aligned; for those that do, use requestAnimationFrame.

  var yieldInterval = 5;
  var deadline = 0; // TODO: Make this configurable

  {
    // `isInputPending` is not available. Since we have no way of knowing if
    // there's pending input, always yield at the end of the frame.
    shouldYieldToHost = function () {
      return exports.unstable_now() >= deadline;
    }; // Since we yield every frame regardless, `requestPaint` has no effect.


    requestPaint = function () {};
  }

  exports.unstable_forceFrameRate = function (fps) {
    if (fps < 0 || fps > 125) {
      // Using console['error'] to evade Babel and ESLint
      console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
      return;
    }

    if (fps > 0) {
      yieldInterval = Math.floor(1000 / fps);
    } else {
      // reset the framerate
      yieldInterval = 5;
    }
  };

  var performWorkUntilDeadline = function () {
    if (scheduledHostCallback !== null) {
      var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
      // cycle. This means there's always time remaining at the beginning of
      // the message event.

      deadline = currentTime + yieldInterval;
      var hasTimeRemaining = true;

      try {
        var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);

        if (!hasMoreWork) {
          isMessageLoopRunning = false;
          scheduledHostCallback = null;
        } else {
          // If there's more work, schedule the next message event at the end
          // of the preceding one.
          port.postMessage(null);
        }
      } catch (error) {
        // If a scheduler task throws, exit the current browser task so the
        // error can be observed.
        port.postMessage(null);
        throw error;
      }
    } else {
      isMessageLoopRunning = false;
    } // Yielding to the browser will give it a chance to paint, so we can
  };

  var channel = new MessageChannel();
  var port = channel.port2;
  channel.port1.onmessage = performWorkUntilDeadline;

  requestHostCallback = function (callback) {
    scheduledHostCallback = callback;

    if (!isMessageLoopRunning) {
      isMessageLoopRunning = true;
      port.postMessage(null);
    }
  };

  requestHostTimeout = function (callback, ms) {
    taskTimeoutID = _setTimeout(function () {
      callback(exports.unstable_now());
    }, ms);
  };

  cancelHostTimeout = function () {
    _clearTimeout(taskTimeoutID);

    taskTimeoutID = -1;
  };
}

function push(heap, node) {
  var index = heap.length;
  heap.push(node);
  siftUp(heap, node, index);
}
function peek(heap) {
  var first = heap[0];
  return first === undefined ? null : first;
}
function pop(heap) {
  var first = heap[0];

  if (first !== undefined) {
    var last = heap.pop();

    if (last !== first) {
      heap[0] = last;
      siftDown(heap, last, 0);
    }

    return first;
  } else {
    return null;
  }
}

function siftUp(heap, node, i) {
  var index = i;

  while (true) {
    var parentIndex = index - 1 >>> 1;
    var parent = heap[parentIndex];

    if (parent !== undefined && compare(parent, node) > 0) {
      // The parent is larger. Swap positions.
      heap[parentIndex] = node;
      heap[index] = parent;
      index = parentIndex;
    } else {
      // The parent is smaller. Exit.
      return;
    }
  }
}

function siftDown(heap, node, i) {
  var index = i;
  var length = heap.length;

  while (index < length) {
    var leftIndex = (index + 1) * 2 - 1;
    var left = heap[leftIndex];
    var rightIndex = leftIndex + 1;
    var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.

    if (left !== undefined && compare(left, node) < 0) {
      if (right !== undefined && compare(right, left) < 0) {
        heap[index] = right;
        heap[rightIndex] = node;
        index = rightIndex;
      } else {
        heap[index] = left;
        heap[leftIndex] = node;
        index = leftIndex;
      }
    } else if (right !== undefined && compare(right, node) < 0) {
      heap[index] = right;
      heap[rightIndex] = node;
      index = rightIndex;
    } else {
      // Neither child is smaller. Exit.
      return;
    }
  }
}

function compare(a, b) {
  // Compare sort index first, then task id.
  var diff = a.sortIndex - b.sortIndex;
  return diff !== 0 ? diff : a.id - b.id;
}

// TODO: Use symbols?
var NoPriority = 0;
var ImmediatePriority = 1;
var UserBlockingPriority = 2;
var NormalPriority = 3;
var LowPriority = 4;
var IdlePriority = 5;

var runIdCounter = 0;
var mainThreadIdCounter = 0;
var profilingStateSize = 4;
var sharedProfilingBuffer =  // $FlowFixMe Flow doesn't know about SharedArrayBuffer
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
;
var profilingState =  sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks

var PRIORITY = 0;
var CURRENT_TASK_ID = 1;
var CURRENT_RUN_ID = 2;
var QUEUE_SIZE = 3;

{
  profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
  // array might include canceled tasks.

  profilingState[QUEUE_SIZE] = 0;
  profilingState[CURRENT_TASK_ID] = 0;
} // Bytes per element is 4


var INITIAL_EVENT_LOG_SIZE = 131072;
var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes

var eventLogSize = 0;
var eventLogBuffer = null;
var eventLog = null;
var eventLogIndex = 0;
var TaskStartEvent = 1;
var TaskCompleteEvent = 2;
var TaskErrorEvent = 3;
var TaskCancelEvent = 4;
var TaskRunEvent = 5;
var TaskYieldEvent = 6;
var SchedulerSuspendEvent = 7;
var SchedulerResumeEvent = 8;

function logEvent(entries) {
  if (eventLog !== null) {
    var offset = eventLogIndex;
    eventLogIndex += entries.length;

    if (eventLogIndex + 1 > eventLogSize) {
      eventLogSize *= 2;

      if (eventLogSize > MAX_EVENT_LOG_SIZE) {
        // Using console['error'] to evade Babel and ESLint
        console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
        stopLoggingProfilingEvents();
        return;
      }

      var newEventLog = new Int32Array(eventLogSize * 4);
      newEventLog.set(eventLog);
      eventLogBuffer = newEventLog.buffer;
      eventLog = newEventLog;
    }

    eventLog.set(entries, offset);
  }
}

function startLoggingProfilingEvents() {
  eventLogSize = INITIAL_EVENT_LOG_SIZE;
  eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
  eventLog = new Int32Array(eventLogBuffer);
  eventLogIndex = 0;
}
function stopLoggingProfilingEvents() {
  var buffer = eventLogBuffer;
  eventLogSize = 0;
  eventLogBuffer = null;
  eventLog = null;
  eventLogIndex = 0;
  return buffer;
}
function markTaskStart(task, ms) {
  {
    profilingState[QUEUE_SIZE]++;

    if (eventLog !== null) {
      // performance.now returns a float, representing milliseconds. When the
      // event is logged, it's coerced to an int. Convert to microseconds to
      // maintain extra degrees of precision.
      logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
    }
  }
}
function markTaskCompleted(task, ms) {
  {
    profilingState[PRIORITY] = NoPriority;
    profilingState[CURRENT_TASK_ID] = 0;
    profilingState[QUEUE_SIZE]--;

    if (eventLog !== null) {
      logEvent([TaskCompleteEvent, ms * 1000, task.id]);
    }
  }
}
function markTaskCanceled(task, ms) {
  {
    profilingState[QUEUE_SIZE]--;

    if (eventLog !== null) {
      logEvent([TaskCancelEvent, ms * 1000, task.id]);
    }
  }
}
function markTaskErrored(task, ms) {
  {
    profilingState[PRIORITY] = NoPriority;
    profilingState[CURRENT_TASK_ID] = 0;
    profilingState[QUEUE_SIZE]--;

    if (eventLog !== null) {
      logEvent([TaskErrorEvent, ms * 1000, task.id]);
    }
  }
}
function markTaskRun(task, ms) {
  {
    runIdCounter++;
    profilingState[PRIORITY] = task.priorityLevel;
    profilingState[CURRENT_TASK_ID] = task.id;
    profilingState[CURRENT_RUN_ID] = runIdCounter;

    if (eventLog !== null) {
      logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
    }
  }
}
function markTaskYield(task, ms) {
  {
    profilingState[PRIORITY] = NoPriority;
    profilingState[CURRENT_TASK_ID] = 0;
    profilingState[CURRENT_RUN_ID] = 0;

    if (eventLog !== null) {
      logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
    }
  }
}
function markSchedulerSuspended(ms) {
  {
    mainThreadIdCounter++;

    if (eventLog !== null) {
      logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
    }
  }
}
function markSchedulerUnsuspended(ms) {
  {
    if (eventLog !== null) {
      logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
    }
  }
}

/* eslint-disable no-var */
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111

var maxSigned31BitInt = 1073741823; // Times out immediately

var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out

var USER_BLOCKING_PRIORITY = 250;
var NORMAL_PRIORITY_TIMEOUT = 5000;
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out

var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap

var taskQueue = [];
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.

var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
var currentTask = null;
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.

var isPerformingWork = false;
var isHostCallbackScheduled = false;
var isHostTimeoutScheduled = false;

function advanceTimers(currentTime) {
  // Check for tasks that are no longer delayed and add them to the queue.
  var timer = peek(timerQueue);

  while (timer !== null) {
    if (timer.callback === null) {
      // Timer was cancelled.
      pop(timerQueue);
    } else if (timer.startTime <= currentTime) {
      // Timer fired. Transfer to the task queue.
      pop(timerQueue);
      timer.sortIndex = timer.expirationTime;
      push(taskQueue, timer);

      {
        markTaskStart(timer, currentTime);
        timer.isQueued = true;
      }
    } else {
      // Remaining timers are pending.
      return;
    }

    timer = peek(timerQueue);
  }
}

function handleTimeout(currentTime) {
  isHostTimeoutScheduled = false;
  advanceTimers(currentTime);

  if (!isHostCallbackScheduled) {
    if (peek(taskQueue) !== null) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    } else {
      var firstTimer = peek(timerQueue);

      if (firstTimer !== null) {
        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
      }
    }
  }
}

function flushWork(hasTimeRemaining, initialTime) {
  {
    markSchedulerUnsuspended(initialTime);
  } // We'll need a host callback the next time work is scheduled.


  isHostCallbackScheduled = false;

  if (isHostTimeoutScheduled) {
    // We scheduled a timeout but it's no longer needed. Cancel it.
    isHostTimeoutScheduled = false;
    cancelHostTimeout();
  }

  isPerformingWork = true;
  var previousPriorityLevel = currentPriorityLevel;

  try {
    if (enableProfiling) {
      try {
        return workLoop(hasTimeRemaining, initialTime);
      } catch (error) {
        if (currentTask !== null) {
          var currentTime = exports.unstable_now();
          markTaskErrored(currentTask, currentTime);
          currentTask.isQueued = false;
        }

        throw error;
      }
    } else {
      // No catch in prod codepath.
      return workLoop(hasTimeRemaining, initialTime);
    }
  } finally {
    currentTask = null;
    currentPriorityLevel = previousPriorityLevel;
    isPerformingWork = false;

    {
      var _currentTime = exports.unstable_now();

      markSchedulerSuspended(_currentTime);
    }
  }
}

function workLoop(hasTimeRemaining, initialTime) {
  var currentTime = initialTime;
  advanceTimers(currentTime);
  currentTask = peek(taskQueue);

  while (currentTask !== null && !(enableSchedulerDebugging )) {
    if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
      // This currentTask hasn't expired, and we've reached the deadline.
      break;
    }

    var callback = currentTask.callback;

    if (callback !== null) {
      currentTask.callback = null;
      currentPriorityLevel = currentTask.priorityLevel;
      var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
      markTaskRun(currentTask, currentTime);
      var continuationCallback = callback(didUserCallbackTimeout);
      currentTime = exports.unstable_now();

      if (typeof continuationCallback === 'function') {
        currentTask.callback = continuationCallback;
        markTaskYield(currentTask, currentTime);
      } else {
        {
          markTaskCompleted(currentTask, currentTime);
          currentTask.isQueued = false;
        }

        if (currentTask === peek(taskQueue)) {
          pop(taskQueue);
        }
      }

      advanceTimers(currentTime);
    } else {
      pop(taskQueue);
    }

    currentTask = peek(taskQueue);
  } // Return whether there's additional work


  if (currentTask !== null) {
    return true;
  } else {
    var firstTimer = peek(timerQueue);

    if (firstTimer !== null) {
      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
    }

    return false;
  }
}

function unstable_runWithPriority(priorityLevel, eventHandler) {
  switch (priorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
    case LowPriority:
    case IdlePriority:
      break;

    default:
      priorityLevel = NormalPriority;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_next(eventHandler) {
  var priorityLevel;

  switch (currentPriorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
      // Shift down to normal priority
      priorityLevel = NormalPriority;
      break;

    default:
      // Anything lower than normal priority should remain at the current level.
      priorityLevel = currentPriorityLevel;
      break;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_wrapCallback(callback) {
  var parentPriorityLevel = currentPriorityLevel;
  return function () {
    // This is a fork of runWithPriority, inlined for performance.
    var previousPriorityLevel = currentPriorityLevel;
    currentPriorityLevel = parentPriorityLevel;

    try {
      return callback.apply(this, arguments);
    } finally {
      currentPriorityLevel = previousPriorityLevel;
    }
  };
}

function timeoutForPriorityLevel(priorityLevel) {
  switch (priorityLevel) {
    case ImmediatePriority:
      return IMMEDIATE_PRIORITY_TIMEOUT;

    case UserBlockingPriority:
      return USER_BLOCKING_PRIORITY;

    case IdlePriority:
      return IDLE_PRIORITY;

    case LowPriority:
      return LOW_PRIORITY_TIMEOUT;

    case NormalPriority:
    default:
      return NORMAL_PRIORITY_TIMEOUT;
  }
}

function unstable_scheduleCallback(priorityLevel, callback, options) {
  var currentTime = exports.unstable_now();
  var startTime;
  var timeout;

  if (typeof options === 'object' && options !== null) {
    var delay = options.delay;

    if (typeof delay === 'number' && delay > 0) {
      startTime = currentTime + delay;
    } else {
      startTime = currentTime;
    }

    timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  } else {
    timeout = timeoutForPriorityLevel(priorityLevel);
    startTime = currentTime;
  }

  var expirationTime = startTime + timeout;
  var newTask = {
    id: taskIdCounter++,
    callback: callback,
    priorityLevel: priorityLevel,
    startTime: startTime,
    expirationTime: expirationTime,
    sortIndex: -1
  };

  {
    newTask.isQueued = false;
  }

  if (startTime > currentTime) {
    // This is a delayed task.
    newTask.sortIndex = startTime;
    push(timerQueue, newTask);

    if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
      // All tasks are delayed, and this is the task with the earliest delay.
      if (isHostTimeoutScheduled) {
        // Cancel an existing timeout.
        cancelHostTimeout();
      } else {
        isHostTimeoutScheduled = true;
      } // Schedule a timeout.


      requestHostTimeout(handleTimeout, startTime - currentTime);
    }
  } else {
    newTask.sortIndex = expirationTime;
    push(taskQueue, newTask);

    {
      markTaskStart(newTask, currentTime);
      newTask.isQueued = true;
    } // Schedule a host callback, if needed. If we're already performing work,
    // wait until the next time we yield.


    if (!isHostCallbackScheduled && !isPerformingWork) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    }
  }

  return newTask;
}

function unstable_pauseExecution() {
}

function unstable_continueExecution() {

  if (!isHostCallbackScheduled && !isPerformingWork) {
    isHostCallbackScheduled = true;
    requestHostCallback(flushWork);
  }
}

function unstable_getFirstCallbackNode() {
  return peek(taskQueue);
}

function unstable_cancelCallback(task) {
  {
    if (task.isQueued) {
      var currentTime = exports.unstable_now();
      markTaskCanceled(task, currentTime);
      task.isQueued = false;
    }
  } // Null out the callback to indicate the task has been canceled. (Can't
  // remove from the queue because you can't remove arbitrary nodes from an
  // array based heap, only the first one.)


  task.callback = null;
}

function unstable_getCurrentPriorityLevel() {
  return currentPriorityLevel;
}

function unstable_shouldYield() {
  var currentTime = exports.unstable_now();
  advanceTimers(currentTime);
  var firstTask = peek(taskQueue);
  return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
}

var unstable_requestPaint = requestPaint;
var unstable_Profiling =  {
  startLoggingProfilingEvents: startLoggingProfilingEvents,
  stopLoggingProfilingEvents: stopLoggingProfilingEvents,
  sharedProfilingBuffer: sharedProfilingBuffer
} ;

exports.unstable_IdlePriority = IdlePriority;
exports.unstable_ImmediatePriority = ImmediatePriority;
exports.unstable_LowPriority = LowPriority;
exports.unstable_NormalPriority = NormalPriority;
exports.unstable_Profiling = unstable_Profiling;
exports.unstable_UserBlockingPriority = UserBlockingPriority;
exports.unstable_cancelCallback = unstable_cancelCallback;
exports.unstable_continueExecution = unstable_continueExecution;
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
exports.unstable_next = unstable_next;
exports.unstable_pauseExecution = unstable_pauseExecution;
exports.unstable_requestPaint = unstable_requestPaint;
exports.unstable_runWithPriority = unstable_runWithPriority;
exports.unstable_scheduleCallback = unstable_scheduleCallback;
exports.unstable_shouldYield = unstable_shouldYield;
exports.unstable_wrapCallback = unstable_wrapCallback;
  })();
}


/***/ }),

/***/ "./node_modules/scheduler/index.js":
/*!*****************************************!*\
  !*** ./node_modules/scheduler/index.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/scheduler/cjs/scheduler.development.js");
}


/***/ }),

/***/ "./node_modules/scheduler/tracing.js":
/*!*******************************************!*\
  !*** ./node_modules/scheduler/tracing.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "./node_modules/scheduler/cjs/scheduler-tracing.development.js");
}


/***/ }),

/***/ "./node_modules/sortabular/dist/by-column.js":
/*!***************************************************!*\
  !*** ./node_modules/sortabular/dist/by-column.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

var byColumn = function byColumn(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var sort = sortingOrder.FIRST;

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (sortingColumns && {}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    sort = sortingOrder[sortingColumns[selectedColumn].direction];

    if (!sort) {
      return {};
    }
  }

  return _defineProperty({}, selectedColumn, {
    direction: sort,
    position: 0
  });
};

exports.default = byColumn;

/***/ }),

/***/ "./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js":
/*!***************************************************************************!*\
  !*** ./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");

var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);

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 _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

var byColumnsPrioritizeLastSorted = function byColumnsPrioritizeLastSorted(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var newSortingColumns = {};

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (!sortingColumns) {
    return _defineProperty({}, selectedColumn, {
      direction: sortingOrder.FIRST,
      position: 0
    });
  } else if ({}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    // Clone to avoid mutating the original structure
    newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);

    var newSort = sortingOrder[newSortingColumns[selectedColumn].direction];
    var oldPosition = newSortingColumns[selectedColumn].position;

    if (newSort) {
      // sort direction is being updated
      // demote all previously higher-priority columns by 1
      // by incrementing their position
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position < oldPosition) {
          v.position += 1;
        }
      });
      newSortingColumns[selectedColumn] = {
        direction: newSort,
        position: 0
      };
    } else {
      delete newSortingColumns[selectedColumn];

      // Update position of columns after the deleted one
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position > oldPosition) {
          v.position -= 1;
        }
      });
    }

    return newSortingColumns;
  }

  // clone and insert new column at position 0, increment all others
  newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);
  Object.keys(newSortingColumns).forEach(function (k) {
    var v = newSortingColumns[k];
    v.position += 1;
  });

  return _extends({}, newSortingColumns, _defineProperty({}, selectedColumn, {
    direction: sortingOrder.FIRST,
    position: 0
  }));
};

exports.default = byColumnsPrioritizeLastSorted;

/***/ }),

/***/ "./node_modules/sortabular/dist/by-columns.js":
/*!****************************************************!*\
  !*** ./node_modules/sortabular/dist/by-columns.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cloneDeep2 = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");

var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);

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 _defaultOrder = __webpack_require__(/*! ./default-order */ "./node_modules/sortabular/dist/default-order.js");

var _defaultOrder2 = _interopRequireDefault(_defaultOrder);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

var byColumns = function byColumns(_ref) {
  var sortingColumns = _ref.sortingColumns,
      _ref$sortingOrder = _ref.sortingOrder,
      sortingOrder = _ref$sortingOrder === undefined ? _defaultOrder2.default : _ref$sortingOrder,
      _ref$selectedColumn = _ref.selectedColumn,
      selectedColumn = _ref$selectedColumn === undefined ? -1 : _ref$selectedColumn;

  var newSortingColumns = {};

  if (selectedColumn < 0) {
    return sortingColumns;
  }

  if (!sortingColumns) {
    return _defineProperty({}, selectedColumn, {
      direction: sortingOrder.FIRST,
      position: 0
    });
  } else if ({}.hasOwnProperty.call(sortingColumns, selectedColumn)) {
    // Clone to avoid mutating the original structure
    newSortingColumns = (0, _cloneDeep3.default)(sortingColumns);

    var newSort = sortingOrder[newSortingColumns[selectedColumn].direction];

    if (newSort) {
      newSortingColumns[selectedColumn] = {
        direction: newSort,
        position: newSortingColumns[selectedColumn].position
      };
    } else {
      var oldPosition = newSortingColumns[selectedColumn].position;

      delete newSortingColumns[selectedColumn];

      // Update position of columns after the deleted one
      Object.keys(newSortingColumns).forEach(function (k) {
        var v = newSortingColumns[k];

        if (v.position > oldPosition) {
          v.position -= 1;
        }
      });
    }

    return newSortingColumns;
  }

  return _extends({}, sortingColumns, _defineProperty({}, selectedColumn, {
    direction: sortingOrder.FIRST,
    position: Object.keys(sortingColumns).length
  }));
};

exports.default = byColumns;

/***/ }),

/***/ "./node_modules/sortabular/dist/default-order.js":
/*!*******************************************************!*\
  !*** ./node_modules/sortabular/dist/default-order.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var defaultOrder = {
  FIRST: 'asc',
  '': 'asc',
  asc: 'desc',
  desc: ''
};

exports.default = defaultOrder;

/***/ }),

/***/ "./node_modules/sortabular/dist/default-strategy.js":
/*!**********************************************************!*\
  !*** ./node_modules/sortabular/dist/default-strategy.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _strategies = __webpack_require__(/*! ./strategies */ "./node_modules/sortabular/dist/strategies.js");

var _strategies2 = _interopRequireDefault(_strategies);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _strategies2.default.byIndex;

/***/ }),

/***/ "./node_modules/sortabular/dist/header.js":
/*!************************************************!*\
  !*** ./node_modules/sortabular/dist/header.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; /* eslint-disable react/prop-types */


var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

var _order = __webpack_require__(/*! ./order */ "./node_modules/sortabular/dist/order.js");

var _order2 = _interopRequireDefault(_order);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var header = function header(_ref) {
  var sortable = _ref.sortable,
      getSortingColumns = _ref.getSortingColumns,
      _ref$props = _ref.props,
      props = _ref$props === undefined ? {
    container: {},
    value: {},
    order: {}
  } : _ref$props,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  if (!getSortingColumns) {
    throw new Error('header - Missing getSortingColumns!');
  }

  return function (value, extra) {
    return _react2.default.createElement(
      'div',
      _extends({
        className: 'sort-container'
      }, props.container),
      _react2.default.createElement(
        'span',
        _extends({
          className: 'sort-value'
        }, props.value),
        value
      ),
      (0, _order2.default)({
        getSortingColumns: getSortingColumns,
        props: props.order,
        strategy: strategy
      })(value, extra),
      sortable ? _react2.default.createElement('span', sortable(value, extra)) : null
    );
  };
};

exports.default = header;

/***/ }),

/***/ "./node_modules/sortabular/dist/index.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/index.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _byColumn = __webpack_require__(/*! ./by-column */ "./node_modules/sortabular/dist/by-column.js");

Object.defineProperty(exports, 'byColumn', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumn).default;
  }
});

var _byColumns = __webpack_require__(/*! ./by-columns */ "./node_modules/sortabular/dist/by-columns.js");

Object.defineProperty(exports, 'byColumns', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumns).default;
  }
});

var _byColumnsPrioritizeLastSorted = __webpack_require__(/*! ./by-columns-prioritize-last-sorted */ "./node_modules/sortabular/dist/by-columns-prioritize-last-sorted.js");

Object.defineProperty(exports, 'byColumnsPrioritizeLastSorted', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byColumnsPrioritizeLastSorted).default;
  }
});

var _header = __webpack_require__(/*! ./header */ "./node_modules/sortabular/dist/header.js");

Object.defineProperty(exports, 'header', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_header).default;
  }
});

var _sorter = __webpack_require__(/*! ./sorter */ "./node_modules/sortabular/dist/sorter.js");

Object.defineProperty(exports, 'sorter', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_sorter).default;
  }
});

var _reset = __webpack_require__(/*! ./reset */ "./node_modules/sortabular/dist/reset.js");

Object.defineProperty(exports, 'reset', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_reset).default;
  }
});

var _sort = __webpack_require__(/*! ./sort */ "./node_modules/sortabular/dist/sort.js");

Object.defineProperty(exports, 'sort', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_sort).default;
  }
});

var _strategies = __webpack_require__(/*! ./strategies */ "./node_modules/sortabular/dist/strategies.js");

Object.defineProperty(exports, 'strategies', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_strategies).default;
  }
});

var _order = __webpack_require__(/*! ./order */ "./node_modules/sortabular/dist/order.js");

Object.defineProperty(exports, 'order', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_order).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/sortabular/dist/order.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/order.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; }; /* eslint-disable react/prop-types */


var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var _react2 = _interopRequireDefault(_react);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var order = function order(_ref) {
  var getSortingColumns = _ref.getSortingColumns,
      _ref$props = _ref.props,
      props = _ref$props === undefined ? {} : _ref$props,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  if (!getSortingColumns) {
    throw new Error('order - Missing getSortingColumns!');
  }

  return function (value, extra) {
    var sortingColumns = getSortingColumns();
    var sortingColumn = sortingColumns && sortingColumns[extra[strategy.fieldName]] || {};
    var sortingPosition = sortingColumn.position;

    return {}.hasOwnProperty.call(sortingColumn, 'position') ? _react2.default.createElement(
      'span',
      _extends({ className: 'sort-order' }, props),
      sortingPosition + 1
    ) : null;
  };
};

exports.default = order;

/***/ }),

/***/ "./node_modules/sortabular/dist/reset.js":
/*!***********************************************!*\
  !*** ./node_modules/sortabular/dist/reset.js ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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; }

var reset = function reset(_ref) {
  var _ref$event = _ref.event,
      event = _ref$event === undefined ? 'onDoubleClick' : _ref$event,
      _ref$getSortingColumn = _ref.getSortingColumns,
      getSortingColumns = _ref$getSortingColumn === undefined ? function () {
    return [];
  } : _ref$getSortingColumn,
      _ref$onReset = _ref.onReset,
      onReset = _ref$onReset === undefined ? function () {} : _ref$onReset,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;
  return function (value, extra) {
    return _defineProperty({}, event, function () {
      var sortingColumns = getSortingColumns();

      if (!sortingColumns || !Object.keys(sortingColumns).length) {
        return;
      }

      var field = extra[strategy.fieldName];

      // If the field doesn't exist, there's nothing to reset
      if (!sortingColumns[field]) {
        return;
      }

      var position = sortingColumns[field].position;
      var newSortingColumns = {};

      delete sortingColumns[field];

      Object.keys(sortingColumns).forEach(function (k) {
        var column = sortingColumns[k];

        if (column.position > position) {
          newSortingColumns[k] = _extends({}, column, {
            position: column.position - 1
          });
        } else {
          newSortingColumns[k] = column;
        }
      });

      onReset({
        sortingColumns: newSortingColumns
      });
    });
  };
};

exports.default = reset;

/***/ }),

/***/ "./node_modules/sortabular/dist/sort.js":
/*!**********************************************!*\
  !*** ./node_modules/sortabular/dist/sort.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");

var _classnames2 = _interopRequireDefault(_classnames);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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 _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; }

var sort = function sort() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$event = _ref.event,
      event = _ref$event === undefined ? 'onClick' : _ref$event,
      _ref$getSortingColumn = _ref.getSortingColumns,
      getSortingColumns = _ref$getSortingColumn === undefined ? function () {
    return [];
  } : _ref$getSortingColumn,
      _ref$onSort = _ref.onSort,
      onSort = _ref$onSort === undefined ? function () {} : _ref$onSort,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  return function (_value, extra) {
    var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

    var className = _ref2.className,
        props = _objectWithoutProperties(_ref2, ['className']);

    var sortingColumns = getSortingColumns();
    var field = extra[strategy.fieldName];
    var headerClass = 'sort sort-none';

    // Check against undefined to allow zero
    if (sortingColumns[field] !== undefined) {
      headerClass = 'sort sort-' + sortingColumns[field].direction;
    }

    return _extends({}, props, _defineProperty({
      className: (0, _classnames2.default)(className, headerClass)
    }, event, function () {
      return onSort(field);
    }));
  };
};

exports.default = sort;

/***/ }),

/***/ "./node_modules/sortabular/dist/sorter.js":
/*!************************************************!*\
  !*** ./node_modules/sortabular/dist/sorter.js ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _result = __webpack_require__(/*! lodash/result */ "./node_modules/lodash/result.js");

var _result2 = _interopRequireDefault(_result);

var _get = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get2 = _interopRequireDefault(_get);

var _defaultStrategy = __webpack_require__(/*! ./default-strategy */ "./node_modules/sortabular/dist/default-strategy.js");

var _defaultStrategy2 = _interopRequireDefault(_defaultStrategy);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// sorter === lodash orderBy
// https://lodash.com/docs#orderBy
var sorter = function sorter() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      columns = _ref.columns,
      sortingColumns = _ref.sortingColumns,
      sort = _ref.sort,
      _ref$strategy = _ref.strategy,
      strategy = _ref$strategy === undefined ? _defaultStrategy2.default : _ref$strategy;

  return function (data) {
    if (!columns) {
      throw new Error('sort.sorter - Missing "columns" argument!');
    }

    if (!sort) {
      throw new Error('sort.sorter - Missing "sort" argument!');
    }

    if (!sortingColumns) {
      return data;
    }

    var columnIndexList = new Array(sortingColumns.length);
    var orderList = new Array(sortingColumns.length);

    Object.keys(sortingColumns).forEach(function (sortingColumnKey) {
      var realColumn = strategy.getColumn(columns, sortingColumnKey) || {};
      var sortingColumn = sortingColumns[sortingColumnKey];

      columnIndexList[sortingColumn.position] = function (row) {
        var property = realColumn.property;
        var value = row[property];
        // Pick resolved value by convention
        var resolvedValue = (0, _get2.default)(row, '_' + property, value);

        return (0, _result2.default)(resolvedValue, 'toLowerCase', resolvedValue);
      };

      orderList[sortingColumn.position] = sortingColumn.direction;
    });

    return sort(data, columnIndexList, orderList);
  };
};

exports.default = sorter;

/***/ }),

/***/ "./node_modules/sortabular/dist/strategies.js":
/*!****************************************************!*\
  !*** ./node_modules/sortabular/dist/strategies.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _find2 = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");

var _find3 = _interopRequireDefault(_find2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var byIndex = {
  fieldName: 'columnIndex',
  getColumn: function getColumn(columns, sortingColumnKey) {
    return columns[sortingColumnKey];
  }
};

var byProperty = {
  fieldName: 'property',
  getColumn: function getColumn(columns, property) {
    return (0, _find3.default)(columns, { property: property });
  }
};

exports.default = {
  byIndex: byIndex,
  byProperty: byProperty
};

/***/ }),

/***/ "./node_modules/symbol-observable/es/index.js":
/*!****************************************************!*\
  !*** ./node_modules/symbol-observable/es/index.js ***!
  \****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ponyfill.js */ "./node_modules/symbol-observable/es/ponyfill.js");
/* global window */


var root;

if (typeof self !== 'undefined') {
  root = self;
} else if (typeof window !== 'undefined') {
  root = window;
} else if (typeof global !== 'undefined') {
  root = global;
} else if (true) {
  root = module;
} else {}

var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__["default"])(root);
/* harmony default export */ __webpack_exports__["default"] = (result);

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../webpack/buildin/harmony-module.js */ "./node_modules/webpack/buildin/harmony-module.js")(module)))

/***/ }),

/***/ "./node_modules/symbol-observable/es/ponyfill.js":
/*!*******************************************************!*\
  !*** ./node_modules/symbol-observable/es/ponyfill.js ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return symbolObservablePonyfill; });
function symbolObservablePonyfill(root) {
	var result;
	var Symbol = root.Symbol;

	if (typeof Symbol === 'function') {
		if (Symbol.observable) {
			result = Symbol.observable;
		} else {
			result = Symbol('observable');
			Symbol.observable = result;
		}
	} else {
		result = '@@observable';
	}

	return result;
};


/***/ }),

/***/ "./node_modules/table-resolver/dist/by-function.js":
/*!*********************************************************!*\
  !*** ./node_modules/table-resolver/dist/by-function.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _get2 = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get3 = _interopRequireDefault(_get2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function byFunction(path) {
  /* eslint no-param-reassign: "off" */

  return function (_ref) {
    var _ref$column = _ref.column,
        column = _ref$column === undefined ? {} : _ref$column;
    return function (rowData) {
      var property = column.property;

      var resolver = (0, _get3.default)(column, path);

      if (!property || !resolver) {
        return rowData;
      }

      var value = rowData[property];

      rowData['_' + property] = resolver(value, {
        property: property,
        rowData: rowData
      });

      return rowData;
    };
  };
}

exports.default = byFunction;

/***/ }),

/***/ "./node_modules/table-resolver/dist/column-children.js":
/*!*************************************************************!*\
  !*** ./node_modules/table-resolver/dist/column-children.js ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function columnChildren(_ref) {
  var columns = _ref.columns,
      _ref$childrenField = _ref.childrenField,
      childrenField = _ref$childrenField === undefined ? 'children' : _ref$childrenField;

  if (!columns) {
    throw new Error('resolve.columnChildren - Missing columns!');
  }

  var ret = [];

  columns.forEach(function (column) {
    // If a column has children, skip cell specific configuration
    if (column[childrenField] && column[childrenField].length) {
      ret = ret.concat(columnChildren({
        columns: column[childrenField],
        childrenField: childrenField
      }));
    } else {
      ret.push(column);
    }
  });

  return ret;
}

exports.default = columnChildren;

/***/ }),

/***/ "./node_modules/table-resolver/dist/count-col-span.js":
/*!************************************************************!*\
  !*** ./node_modules/table-resolver/dist/count-col-span.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function countColSpan(columns, returnCount) {
  var count = returnCount;
  if (columns && columns.length > 0) {
    columns.forEach(function (column) {
      if (column.children && column.children.length > 0) {
        count = countColSpan(column.children, count);
      } else {
        count += 1;
      }
    });
  }
  return count;
}

exports.default = countColSpan;

/***/ }),

/***/ "./node_modules/table-resolver/dist/count-row-span.js":
/*!************************************************************!*\
  !*** ./node_modules/table-resolver/dist/count-row-span.js ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
function countRowSpan(columns) {
  var maximumCount = 0;

  columns.forEach(function (column) {
    if (column.children && column.children.length) {
      maximumCount = Math.max(maximumCount, countRowSpan(column.children));
    }
  });

  return maximumCount + 1;
}

exports.default = countRowSpan;

/***/ }),

/***/ "./node_modules/table-resolver/dist/header-rows.js":
/*!*********************************************************!*\
  !*** ./node_modules/table-resolver/dist/header-rows.js ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _omit2 = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");

var _omit3 = _interopRequireDefault(_omit2);

var _countRowSpan = __webpack_require__(/*! ./count-row-span */ "./node_modules/table-resolver/dist/count-row-span.js");

var _countRowSpan2 = _interopRequireDefault(_countRowSpan);

var _countColSpan = __webpack_require__(/*! ./count-col-span */ "./node_modules/table-resolver/dist/count-col-span.js");

var _countColSpan2 = _interopRequireDefault(_countColSpan);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function resolveHeaderRows(_ref) {
  var columns = _ref.columns,
      _ref$childrenField = _ref.childrenField,
      childrenField = _ref$childrenField === undefined ? 'children' : _ref$childrenField;

  var resolvedChildren = [];

  var ret = columns.map(function (column) {
    var children = column[childrenField];
    var col = (0, _omit3.default)(column, [childrenField]);

    if (children && children.length) {
      resolveHeaderRows({ columns: children, childrenField: childrenField }).forEach(function (cells, depth) {
        resolvedChildren[depth] = [].concat(_toConsumableArray(resolvedChildren[depth] || []), _toConsumableArray(cells));
      });

      return Object.assign({}, col, {
        props: Object.assign({
          colSpan: (0, _countColSpan2.default)(children, 0)
        }, col.props)
      });
    }

    return Object.assign({}, col, {
      props: Object.assign({
        rowSpan: (0, _countRowSpan2.default)(columns)
      }, col.props)
    });
  });

  return resolvedChildren.length ? [ret].concat(resolvedChildren) : [ret];
}

exports.default = resolveHeaderRows;

/***/ }),

/***/ "./node_modules/table-resolver/dist/index.js":
/*!***************************************************!*\
  !*** ./node_modules/table-resolver/dist/index.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _resolve = __webpack_require__(/*! ./resolve */ "./node_modules/table-resolver/dist/resolve.js");

Object.defineProperty(exports, 'resolve', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_resolve).default;
  }
});

var _nested = __webpack_require__(/*! ./nested */ "./node_modules/table-resolver/dist/nested.js");

Object.defineProperty(exports, 'nested', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_nested).default;
  }
});

var _byFunction = __webpack_require__(/*! ./by-function */ "./node_modules/table-resolver/dist/by-function.js");

Object.defineProperty(exports, 'byFunction', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_byFunction).default;
  }
});

var _countRowSpan = __webpack_require__(/*! ./count-row-span */ "./node_modules/table-resolver/dist/count-row-span.js");

Object.defineProperty(exports, 'countRowSpan', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_countRowSpan).default;
  }
});

var _columnChildren = __webpack_require__(/*! ./column-children */ "./node_modules/table-resolver/dist/column-children.js");

Object.defineProperty(exports, 'columnChildren', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_columnChildren).default;
  }
});

var _headerRows = __webpack_require__(/*! ./header-rows */ "./node_modules/table-resolver/dist/header-rows.js");

Object.defineProperty(exports, 'headerRows', {
  enumerable: true,
  get: function get() {
    return _interopRequireDefault(_headerRows).default;
  }
});

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/***/ }),

/***/ "./node_modules/table-resolver/dist/nested.js":
/*!****************************************************!*\
  !*** ./node_modules/table-resolver/dist/nested.js ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _isFunction2 = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");

var _isFunction3 = _interopRequireDefault(_isFunction2);

var _has2 = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");

var _has3 = _interopRequireDefault(_has2);

var _get2 = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");

var _get3 = _interopRequireDefault(_get2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var reIsPlainProp = /^\w*$/;

function nested(_ref) {
  var column = _ref.column;

  /* eslint no-param-reassign: "off" */

  var property = column.property;


  if (!property) {
    return function (rowData) {
      return rowData;
    };
  }

  // if users provide a custom getter instead of a
  // path for _.get, use that getter ...
  if ((0, _isFunction3.default)(property)) {
    // TODO: Function as key can't be right?
    return function (rowData) {
      rowData[property] = property(rowData);
      return rowData;
    };
  }

  // Make things simple if the property is simple.  No copy needed.
  if (typeof property === 'string' && reIsPlainProp.test(property)) {
    return function (rowData) {
      return rowData;
    };
  }

  return function (rowData) {
    // ... otherwise, make sure property exists, then _.get it
    if (!(0, _has3.default)(rowData, property)) {
      return rowData;
    }

    rowData[property] = (0, _get3.default)(rowData, property);
    return rowData;
  };
}

exports.default = nested;

/***/ }),

/***/ "./node_modules/table-resolver/dist/resolve.js":
/*!*****************************************************!*\
  !*** ./node_modules/table-resolver/dist/resolve.js ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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 _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 resolve(_ref) {
  var columns = _ref.columns,
      _ref$method = _ref.method,
      method = _ref$method === undefined ? function () {
    return function (rowData) {
      return rowData;
    };
  } : _ref$method,
      _ref$indexKey = _ref.indexKey,
      indexKey = _ref$indexKey === undefined ? '_index' : _ref$indexKey;

  if (!columns) {
    throw new Error('resolve - Missing columns!');
  }

  return function () {
    var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

    var methodsByColumn = columns.map(function (column) {
      return method({ column: column });
    });

    return rows.map(function (rowData, rowIndex) {
      var ret = _extends(_defineProperty({}, indexKey, rowIndex), rowData);

      methodsByColumn.forEach(function (boundMethod) {
        ret = boundMethod(ret);
      });

      return ret;
    });
  };
}

exports.default = resolve;

/***/ }),

/***/ "./node_modules/uncontrollable/esm/hook.js":
/*!*************************************************!*\
  !*** ./node_modules/uncontrollable/esm/hook.js ***!
  \*************************************************/
/*! exports provided: useUncontrolledProp, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useUncontrolledProp", function() { return useUncontrolledProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useUncontrolled; });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./node_modules/uncontrollable/esm/utils.js");



function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }

function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }




function useUncontrolledProp(propValue, defaultValue, handler) {
  var wasPropRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(propValue !== undefined);

  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__["useState"])(defaultValue),
      stateValue = _useState[0],
      setState = _useState[1];

  var isProp = propValue !== undefined;
  var wasProp = wasPropRef.current;
  wasPropRef.current = isProp;
  /**
   * If a prop switches from controlled to Uncontrolled
   * reset its value to the defaultValue
   */

  if (!isProp && wasProp && stateValue !== defaultValue) {
    setState(defaultValue);
  }

  return [isProp ? propValue : stateValue, Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (value) {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    if (handler) handler.apply(void 0, [value].concat(args));
    setState(value);
  }, [handler])];
}


function useUncontrolled(props, config) {
  return Object.keys(config).reduce(function (result, fieldName) {
    var _extends2;

    var _ref = result,
        defaultValue = _ref[_utils__WEBPACK_IMPORTED_MODULE_3__["defaultKey"](fieldName)],
        propsValue = _ref[fieldName],
        rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, [_utils__WEBPACK_IMPORTED_MODULE_3__["defaultKey"](fieldName), fieldName].map(_toPropertyKey));

    var handlerName = config[fieldName];

    var _useUncontrolledProp = useUncontrolledProp(propsValue, defaultValue, props[handlerName]),
        value = _useUncontrolledProp[0],
        handler = _useUncontrolledProp[1];

    return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
  }, props);
}

/***/ }),

/***/ "./node_modules/uncontrollable/esm/index.js":
/*!**************************************************!*\
  !*** ./node_modules/uncontrollable/esm/index.js ***!
  \**************************************************/
/*! exports provided: useUncontrolled, useUncontrolledProp, uncontrollable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _hook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hook */ "./node_modules/uncontrollable/esm/hook.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUncontrolled", function() { return _hook__WEBPACK_IMPORTED_MODULE_0__["default"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useUncontrolledProp", function() { return _hook__WEBPACK_IMPORTED_MODULE_0__["useUncontrolledProp"]; });

/* harmony import */ var _uncontrollable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uncontrollable */ "./node_modules/uncontrollable/esm/uncontrollable.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "uncontrollable", function() { return _uncontrollable__WEBPACK_IMPORTED_MODULE_1__["default"]; });




/***/ }),

/***/ "./node_modules/uncontrollable/esm/uncontrollable.js":
/*!***********************************************************!*\
  !*** ./node_modules/uncontrollable/esm/uncontrollable.js ***!
  \***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uncontrollable; });
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js");
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-lifecycles-compat */ "./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./node_modules/uncontrollable/esm/utils.js");







function uncontrollable(Component, controlledValues, methods) {
  if (methods === void 0) {
    methods = [];
  }

  var displayName = Component.displayName || Component.name || 'Component';
  var canAcceptRef = _utils__WEBPACK_IMPORTED_MODULE_6__["canAcceptRef"](Component);
  var controlledProps = Object.keys(controlledValues);
  var PROPS_TO_OMIT = controlledProps.map(_utils__WEBPACK_IMPORTED_MODULE_6__["defaultKey"]);
  !(canAcceptRef || !methods.length) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_5___default()(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : undefined : void 0;

  var UncontrolledComponent =
  /*#__PURE__*/
  function (_React$Component) {
    Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_2__["default"])(UncontrolledComponent, _React$Component);

    function UncontrolledComponent() {
      var _this;

      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
      _this.handlers = Object.create(null);
      controlledProps.forEach(function (propName) {
        var handlerName = controlledValues[propName];

        var handleChange = function handleChange(value) {
          if (_this.props[handlerName]) {
            var _this$props;

            _this._notifying = true;

            for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
              args[_key2 - 1] = arguments[_key2];
            }

            (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));

            _this._notifying = false;
          }

          if (!_this.unmounted) _this.setState(function (_ref) {
            var _extends2;

            var values = _ref.values;
            return {
              values: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))
            };
          });
        };

        _this.handlers[handlerName] = handleChange;
      });
      if (methods.length) _this.attachRef = function (ref) {
        _this.inner = ref;
      };
      var values = Object.create(null);
      controlledProps.forEach(function (key) {
        values[key] = _this.props[_utils__WEBPACK_IMPORTED_MODULE_6__["defaultKey"](key)];
      });
      _this.state = {
        values: values,
        prevProps: {}
      };
      return _this;
    }

    var _proto = UncontrolledComponent.prototype;

    _proto.shouldComponentUpdate = function shouldComponentUpdate() {
      //let setState trigger the update
      return !this._notifying;
    };

    UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {
      var values = _ref2.values,
          prevProps = _ref2.prevProps;
      var nextState = {
        values: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])(Object.create(null), values),
        prevProps: {}
      };
      controlledProps.forEach(function (key) {
        /**
         * If a prop switches from controlled to Uncontrolled
         * reset its value to the defaultValue
         */
        nextState.prevProps[key] = props[key];

        if (!_utils__WEBPACK_IMPORTED_MODULE_6__["isProp"](props, key) && _utils__WEBPACK_IMPORTED_MODULE_6__["isProp"](prevProps, key)) {
          nextState.values[key] = props[_utils__WEBPACK_IMPORTED_MODULE_6__["defaultKey"](key)];
        }
      });
      return nextState;
    };

    _proto.componentWillUnmount = function componentWillUnmount() {
      this.unmounted = true;
    };

    _proto.render = function render() {
      var _this2 = this;

      var _this$props2 = this.props,
          innerRef = _this$props2.innerRef,
          props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$props2, ["innerRef"]);

      PROPS_TO_OMIT.forEach(function (prop) {
        delete props[prop];
      });
      var newProps = {};
      controlledProps.forEach(function (propName) {
        var propValue = _this2.props[propName];
        newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];
      });
      return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, newProps, this.handlers, {
        ref: innerRef || this.attachRef
      }));
    };

    return UncontrolledComponent;
  }(react__WEBPACK_IMPORTED_MODULE_3___default.a.Component);

  Object(react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__["polyfill"])(UncontrolledComponent);
  UncontrolledComponent.displayName = "Uncontrolled(" + displayName + ")";
  UncontrolledComponent.propTypes = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
    innerRef: function innerRef() {}
  }, _utils__WEBPACK_IMPORTED_MODULE_6__["uncontrolledPropTypes"](controlledValues, displayName));
  methods.forEach(function (method) {
    UncontrolledComponent.prototype[method] = function $proxiedMethod() {
      var _this$inner;

      return (_this$inner = this.inner)[method].apply(_this$inner, arguments);
    };
  });
  var WrappedComponent = UncontrolledComponent;

  if (react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef) {
    WrappedComponent = react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(function (props, ref) {
      return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(UncontrolledComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
        innerRef: ref
      }));
    });
    WrappedComponent.propTypes = UncontrolledComponent.propTypes;
  }

  WrappedComponent.ControlledComponent = Component;
  /**
   * useful when wrapping a Component and you want to control
   * everything
   */

  WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {
    if (additions === void 0) {
      additions = {};
    }

    return uncontrollable(newComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, controlledValues, additions), nextMethods);
  };

  return WrappedComponent;
}

/***/ }),

/***/ "./node_modules/uncontrollable/esm/utils.js":
/*!**************************************************!*\
  !*** ./node_modules/uncontrollable/esm/utils.js ***!
  \**************************************************/
/*! exports provided: uncontrolledPropTypes, isProp, defaultKey, canAcceptRef */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uncontrolledPropTypes", function() { return uncontrolledPropTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isProp", function() { return isProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultKey", function() { return defaultKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canAcceptRef", function() { return canAcceptRef; });
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ "./node_modules/invariant/browser.js");
/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__);


var noop = function noop() {};

function readOnlyPropType(handler, name) {
  return function (props, propName) {
    if (props[propName] !== undefined) {
      if (!props[handler]) {
        return new Error("You have provided a `" + propName + "` prop to `" + name + "` " + ("without an `" + handler + "` handler prop. This will render a read-only field. ") + ("If the field should be mutable use `" + defaultKey(propName) + "`. ") + ("Otherwise, set `" + handler + "`."));
      }
    }
  };
}

function uncontrolledPropTypes(controlledValues, displayName) {
  var propTypes = {};
  Object.keys(controlledValues).forEach(function (prop) {
    // add default propTypes for folks that use runtime checks
    propTypes[defaultKey(prop)] = noop;

    if (true) {
      var handler = controlledValues[prop];
      !(typeof handler === 'string' && handler.trim().length) ?  true ? invariant__WEBPACK_IMPORTED_MODULE_0___default()(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : undefined : void 0;
      propTypes[prop] = readOnlyPropType(handler, displayName);
    }
  });
  return propTypes;
}
function isProp(props, prop) {
  return props[prop] !== undefined;
}
function defaultKey(key) {
  return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
}
/**
 * Copyright (c) 2013-present, 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.
 */

function canAcceptRef(component) {
  return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent);
}

/***/ }),

/***/ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js ***!
  \****************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];

      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }

    return target;
  };

  return _extends.apply(this, arguments);
}

/***/ }),

/***/ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
  \**********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inheritsLoose; });
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  subClass.__proto__ = superClass;
}

/***/ }),

/***/ "./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
  \*************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
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;
}

/***/ }),

/***/ "./node_modules/uuid/lib/bytesToUuid.js":
/*!**********************************************!*\
  !*** ./node_modules/uuid/lib/bytesToUuid.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/**
 * Convert array of 16 byte values to UUID string format of the form:
 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 */
var byteToHex = [];
for (var i = 0; i < 256; ++i) {
  byteToHex[i] = (i + 0x100).toString(16).substr(1);
}

function bytesToUuid(buf, offset) {
  var i = offset || 0;
  var bth = byteToHex;
  // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  return ([bth[buf[i++]], bth[buf[i++]], 
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]], '-',
	bth[buf[i++]], bth[buf[i++]],
	bth[buf[i++]], bth[buf[i++]],
	bth[buf[i++]], bth[buf[i++]]]).join('');
}

module.exports = bytesToUuid;


/***/ }),

/***/ "./node_modules/uuid/lib/rng-browser.js":
/*!**********************************************!*\
  !*** ./node_modules/uuid/lib/rng-browser.js ***!
  \**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// Unique ID creation requires a high quality random # generator.  In the
// browser this is a little complicated due to unknown quality of Math.random()
// and inconsistent support for the `crypto` API.  We do the best we can via
// feature-detection

// getRandomValues needs to be invoked in a context where "this" is a Crypto
// implementation. Also, find the complete implementation of crypto on IE11.
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
                      (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));

if (getRandomValues) {
  // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
  var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef

  module.exports = function whatwgRNG() {
    getRandomValues(rnds8);
    return rnds8;
  };
} else {
  // Math.random()-based (RNG)
  //
  // If all else fails, use Math.random().  It's fast, but is of unspecified
  // quality.
  var rnds = new Array(16);

  module.exports = function mathRNG() {
    for (var i = 0, r; i < 16; i++) {
      if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
      rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
    }

    return rnds;
  };
}


/***/ }),

/***/ "./node_modules/uuid/v1.js":
/*!*********************************!*\
  !*** ./node_modules/uuid/v1.js ***!
  \*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var rng = __webpack_require__(/*! ./lib/rng */ "./node_modules/uuid/lib/rng-browser.js");
var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "./node_modules/uuid/lib/bytesToUuid.js");

// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html

var _nodeId;
var _clockseq;

// Previous uuid creation time
var _lastMSecs = 0;
var _lastNSecs = 0;

// See https://github.com/broofa/node-uuid for API details
function v1(options, buf, offset) {
  var i = buf && offset || 0;
  var b = buf || [];

  options = options || {};
  var node = options.node || _nodeId;
  var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;

  // node and clockseq need to be initialized to random values if they're not
  // specified.  We do this lazily to minimize issues related to insufficient
  // system entropy.  See #189
  if (node == null || clockseq == null) {
    var seedBytes = rng();
    if (node == null) {
      // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
      node = _nodeId = [
        seedBytes[0] | 0x01,
        seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
      ];
    }
    if (clockseq == null) {
      // Per 4.2.2, randomize (14 bit) clockseq
      clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
    }
  }

  // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  // (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so
  // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();

  // Per 4.2.1.2, use count of uuid's generated during the current clock
  // cycle to simulate higher resolution clock
  var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;

  // Time since last uuid creation (in msecs)
  var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;

  // Per 4.2.1.2, Bump clockseq on clock regression
  if (dt < 0 && options.clockseq === undefined) {
    clockseq = clockseq + 1 & 0x3fff;
  }

  // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  // time interval
  if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
    nsecs = 0;
  }

  // Per 4.2.1.2 Throw error if too many uuids are requested
  if (nsecs >= 10000) {
    throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
  }

  _lastMSecs = msecs;
  _lastNSecs = nsecs;
  _clockseq = clockseq;

  // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  msecs += 12219292800000;

  // `time_low`
  var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  b[i++] = tl >>> 24 & 0xff;
  b[i++] = tl >>> 16 & 0xff;
  b[i++] = tl >>> 8 & 0xff;
  b[i++] = tl & 0xff;

  // `time_mid`
  var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
  b[i++] = tmh >>> 8 & 0xff;
  b[i++] = tmh & 0xff;

  // `time_high_and_version`
  b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  b[i++] = tmh >>> 16 & 0xff;

  // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  b[i++] = clockseq >>> 8 | 0x80;

  // `clock_seq_low`
  b[i++] = clockseq & 0xff;

  // `node`
  for (var n = 0; n < 6; ++n) {
    b[i + n] = node[n];
  }

  return buf ? buf : bytesToUuid(b);
}

module.exports = v1;


/***/ }),

/***/ "./node_modules/uuid/v4.js":
/*!*********************************!*\
  !*** ./node_modules/uuid/v4.js ***!
  \*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var rng = __webpack_require__(/*! ./lib/rng */ "./node_modules/uuid/lib/rng-browser.js");
var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "./node_modules/uuid/lib/bytesToUuid.js");

function v4(options, buf, offset) {
  var i = buf && offset || 0;

  if (typeof(options) == 'string') {
    buf = options === 'binary' ? new Array(16) : null;
    options = null;
  }
  options = options || {};

  var rnds = options.random || (options.rng || rng)();

  // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  rnds[6] = (rnds[6] & 0x0f) | 0x40;
  rnds[8] = (rnds[8] & 0x3f) | 0x80;

  // Copy bytes to buffer, if provided
  if (buf) {
    for (var ii = 0; ii < 16; ++ii) {
      buf[i + ii] = rnds[ii];
    }
  }

  return buf || bytesToUuid(rnds);
}

module.exports = v4;


/***/ }),

/***/ "./node_modules/warning/browser.js":
/*!*****************************************!*\
  !*** ./node_modules/warning/browser.js ***!
  \*****************************************/
/*! no static exports found */
/***/ (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;


/***/ }),

/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

var g;

// This works in non-strict mode
g = (function() {
	return this;
})();

try {
	// This works if eval is allowed (see CSP)
	g = g || new Function("return this")();
} catch (e) {
	// This works if the window reference is available
	if (typeof window === "object") g = window;
}

// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}

module.exports = g;


/***/ }),

/***/ "./node_modules/webpack/buildin/harmony-module.js":
/*!*******************************************!*\
  !*** (webpack)/buildin/harmony-module.js ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function(originalModule) {
	if (!originalModule.webpackPolyfill) {
		var module = Object.create(originalModule);
		// 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;
			}
		});
		Object.defineProperty(module, "exports", {
			enumerable: true
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),

/***/ "./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
  !*** (webpack)/buildin/module.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = function(module) {
	if (!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if (!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),

/***/ "./src/css/branding.css":
/*!******************************!*\
  !*** ./src/css/branding.css ***!
  \******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "./src/css/ds.css":
/*!************************!*\
  !*** ./src/css/ds.css ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "./src/database.jsx":
/*!**************************!*\
  !*** ./src/database.jsx ***!
  \**************************/
/*! exports provided: Database */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Database", function() { return Database; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/database/chaining.jsx */ "./src/lib/database/chaining.jsx");
/* harmony import */ var _lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/database/databaseConfig.jsx */ "./src/lib/database/databaseConfig.jsx");
/* harmony import */ var _lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/database/suffix.jsx */ "./src/lib/database/suffix.jsx");
/* harmony import */ var _lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/database/backups.jsx */ "./src/lib/database/backups.jsx");
/* harmony import */ var _lib_database_globalPwp_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/database/globalPwp.jsx */ "./src/lib/database/globalPwp.jsx");
/* harmony import */ var _lib_database_localPwp_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/database/localPwp.jsx */ "./src/lib/database/localPwp.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }












var DB_CONFIG = "dbconfig";
var CHAINING_CONFIG = "chaining-config";
var BACKUP_CONFIG = "backups";
var PWP_CONFIG = "pwpolicy";
var LOCAL_PWP_CONFIG = "localpwpolicy";
var treeViewContainerStyles = {
  width: '295px'
};
var Database = /*#__PURE__*/function (_React$Component) {
  _inherits(Database, _React$Component);

  var _super = _createSuper(Database);

  function Database(props) {
    var _this;

    _classCallCheck(this, Database);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      errObj: {},
      nodes: [],
      node_name: "",
      node_text: "",
      dbtype: "",
      showSuffixModal: false,
      createSuffix: "",
      createBeName: "",
      createSuffixEntry: false,
      createSampleEntries: false,
      noSuffixInit: true,
      disableTree: false,
      // DB config
      globalDBConfig: {},
      configUpdated: 0,
      // Chaining Config
      chainingConfig: {},
      chainingUpdated: 0,
      // Chaining Link
      chainingLoading: false,
      // Suffix
      suffixLoading: false,
      attributes: [],
      // Loaded suffix configurations
      suffix: {},
      // Other
      LDIFRows: [],
      BackupRows: [],
      suffixList: [],
      loaded: false
    }; // General

    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleRadioChange = _this.handleRadioChange.bind(_assertThisInitialized(_this));
    _this.loadGlobalConfig = _this.loadGlobalConfig.bind(_assertThisInitialized(_this));
    _this.loadLDIFs = _this.loadLDIFs.bind(_assertThisInitialized(_this));
    _this.loadBackups = _this.loadBackups.bind(_assertThisInitialized(_this));
    _this.loadSuffixList = _this.loadSuffixList.bind(_assertThisInitialized(_this)); // Suffix

    _this.showSuffixModal = _this.showSuffixModal.bind(_assertThisInitialized(_this));
    _this.closeSuffixModal = _this.closeSuffixModal.bind(_assertThisInitialized(_this));
    _this.createSuffix = _this.createSuffix.bind(_assertThisInitialized(_this));
    _this.loadSuffix = _this.loadSuffix.bind(_assertThisInitialized(_this));
    _this.loadSuffixConfig = _this.loadSuffixConfig.bind(_assertThisInitialized(_this));
    _this.loadIndexes = _this.loadIndexes.bind(_assertThisInitialized(_this));
    _this.loadVLV = _this.loadVLV.bind(_assertThisInitialized(_this));
    _this.loadAttrEncrypt = _this.loadAttrEncrypt.bind(_assertThisInitialized(_this));
    _this.loadReferrals = _this.loadReferrals.bind(_assertThisInitialized(_this));
    _this.getAutoTuning = _this.getAutoTuning.bind(_assertThisInitialized(_this));
    _this.loadAttrs = _this.loadAttrs.bind(_assertThisInitialized(_this)); // ChainingConfig

    _this.loadChainingLink = _this.loadChainingLink.bind(_assertThisInitialized(_this));
    _this.loadChainingConfig = _this.loadChainingConfig.bind(_assertThisInitialized(_this));
    _this.loadAvailableControls = _this.loadAvailableControls.bind(_assertThisInitialized(_this));
    _this.loadDefaultConfig = _this.loadDefaultConfig.bind(_assertThisInitialized(_this)); // Other

    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_this));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Database, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.wasActiveList.includes(2)) {
        if (this.state.firstLoad) {
          if (!this.state.loaded) {
            this.loadGlobalConfig();
            this.loadChainingConfig();
            this.loadLDIFs();
            this.loadBackups();
            this.loadSuffixList();
          }

          this.loadSuffixTree(false);
        } else {
          if (this.props.serverId !== prevProps.serverId) {
            this.loadSuffixTree(false);
          }
        }
      }
    }
  }, {
    key: "loadSuffixList",
    value: function loadSuffixList() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "list", "--suffix"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSuffixList", "Get a list of all the suffixes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var suffixList = JSON.parse(content);

        _this2.setState(function () {
          return {
            suffixList: suffixList.items
          };
        });
      });
    }
  }, {
    key: "loadGlobalConfig",
    value: function loadGlobalConfig() {
      var _this3 = this;

      if (this.state.firstLoad) {
        this.setState({
          firstLoad: false
        });
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadGlobalConfig", "Load the database global configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var db_cache_auto = false;
        var import_cache_auto = false;
        var dbhome = "";

        if ('nsslapd-db-home-directory' in attrs) {
          dbhome = attrs['nsslapd-db-home-directory'];
        }

        if (attrs['nsslapd-cache-autosize'] != "0") {
          db_cache_auto = true;
        }

        if (attrs['nsslapd-import-cache-autosize'] != "0") {
          import_cache_auto = true;
        }

        _this3.setState(function () {
          return {
            globalDBConfig: {
              loading: false,
              db_cache_auto: db_cache_auto,
              import_cache_auto: import_cache_auto,
              looklimit: attrs['nsslapd-lookthroughlimit'],
              idscanlimit: attrs['nsslapd-idlistscanlimit'],
              pagelooklimit: attrs['nsslapd-pagedlookthroughlimit'],
              pagescanlimit: attrs['nsslapd-pagedidlistscanlimit'],
              rangelooklimit: attrs['nsslapd-rangelookthroughlimit'],
              autosize: attrs['nsslapd-cache-autosize'],
              autosizesplit: attrs['nsslapd-cache-autosize-split'],
              dbcachesize: attrs['nsslapd-dbcachesize'],
              txnlogdir: attrs['nsslapd-db-logdirectory'],
              dbhomedir: dbhome,
              dblocks: attrs['nsslapd-db-locks'],
              chxpoint: attrs['nsslapd-db-checkpoint-interval'],
              compactinterval: attrs['nsslapd-db-compactdb-interval'],
              importcacheauto: attrs['nsslapd-import-cache-autosize'],
              importcachesize: attrs['nsslapd-import-cachesize']
            },
            configUpdated: 1
          };
        }, _this3.setState({
          configUpdated: 0
        }));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error loading database configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadAvailableControls",
    value: function loadAvailableControls() {
      var _this4 = this;

      // Get the available control oids from rootdse
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get", "--avail-controls"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadChainingConfig", "Get available controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var availableOids = config.items.filter(function (el) {
          return !_this4.state.chainingConfig.oidList.includes(el);
        });

        _this4.setState(function (prevState) {
          return {
            chainingConfig: _objectSpread(_objectSpread({}, _this4.state.chainingConfig), {}, {
              availableOids: availableOids
            }),
            chainingUpdated: 1
          };
        }, _this4.setState({
          chainingUpdated: 0
        }));
      });
    }
  }, {
    key: "loadDefaultConfig",
    value: function loadDefaultConfig() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get-def"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadChainingConfig", "Load chaining default configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attr = config.attrs;
        var checkAci = false;
        var proxy = false;
        var refOnScope = false;
        var useStartTLS = false;

        if (attr['nschecklocalaci'] == "on") {
          checkAci = true;
        }

        if (attr['nsproxiedauthorization'] == "on") {
          proxy = true;
        }

        if (attr['nsreferralonscopedsearch'] == "on") {
          refOnScope = true;
        }

        if (attr['nsusestarttls'] == "on") {
          useStartTLS = true;
        }

        _this5.setState(function () {
          return {
            chainingConfig: _objectSpread(_objectSpread({}, _this5.state.chainingConfig), {}, {
              defSearchCheck: attr['nsabandonedsearchcheckinterval'],
              defBindConnLimit: attr['nsbindconnectionslimit'],
              defBindTimeout: attr['nsbindtimeout'],
              defBindRetryLimit: attr['nsbindretrylimit'],
              defConcurLimit: attr['nsconcurrentbindlimit'],
              defConcurOpLimit: attr['nsconcurrentoperationslimit'],
              defConnLife: attr['nsconnectionlife'],
              defHopLimit: attr['nshoplimit'],
              defDelay: attr['nsmaxresponsedelay'],
              defTestDelay: attr['nsmaxtestresponsedelay'],
              defOpConnLimit: attr['nsoperationconnectionslimit'],
              defSizeLimit: attr['nsslapd-sizelimit'],
              defTimeLimit: attr['nsslapd-timelimit'],
              defProxy: proxy,
              defRefOnScoped: refOnScope,
              defCheckAci: checkAci,
              defUseStartTLS: useStartTLS
            })
          };
        }, _this5.loadAvailableControls());
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error loading default chaining configuration - ".concat(errMsg.desc));

        _this5.setState({
          loading: false
        });
      });
    }
  }, {
    key: "loadChainingConfig",
    value: function loadChainingConfig() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadChainingConfig", "Load chaining OIDs and Controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var availableComps = config.attrs.nspossiblechainingcomponents;
        var compList = [];
        var oidList = [];

        if ('nsactivechainingcomponents' in config.attrs) {
          availableComps = config.attrs.nspossiblechainingcomponents.filter(function (el) {
            return !config.attrs.nsactivechainingcomponents.includes(el);
          });
          compList = config.attrs.nsactivechainingcomponents;
        }

        if ('nstransmittedcontrols' in config.attrs) {
          oidList = config.attrs.nstransmittedcontrols;
        }

        _this6.setState(function () {
          return {
            chainingConfig: _objectSpread(_objectSpread({}, _this6.state.chainingConfig), {}, {
              oidList: oidList,
              compList: compList,
              availableComps: availableComps
            })
          };
        }, _this6.loadDefaultConfig());
      });
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSuffixTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = [];

        if (content != "") {
          treeData = JSON.parse(content);
        }

        var basicData = [{
          text: "Global Database Configuration",
          selectable: true,
          selected: true,
          icon: "pficon-settings",
          id: "dbconfig"
        }, {
          text: "Chaining Configuration",
          icon: "glyphicon glyphicon-link",
          selectable: true,
          id: "chaining-config"
        }, {
          text: "Backups & LDIFS",
          icon: "glyphicon glyphicon-duplicate",
          selectable: true,
          id: "backups"
        }, {
          text: "Password Policies",
          icon: "pficon-key",
          selectable: false,
          state: {
            "expanded": true
          },
          "nodes": [{
            text: "Global Policy",
            icon: "glyphicon glyphicon-globe",
            selectable: true,
            id: "pwpolicy"
          }, {
            text: "Local Policies",
            icon: "pficon-home",
            selectable: true,
            id: "localpwpolicy"
          }]
        }, {
          text: "Suffixes",
          icon: "pficon-catalog",
          state: {
            "expanded": true
          },
          selectable: false,
          nodes: []
        }];
        var current_node = _this7.state.node_name;

        if (fullReset) {
          current_node = DB_CONFIG;
        }

        basicData[4].nodes = treeData;

        _this7.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node
          };
        }, _this7.update_tree_nodes);
      });
    }
  }, {
    key: "loadChainingLink",
    value: function loadChainingLink(suffix) {
      var _this8 = this;

      this.setState({
        chainingLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadChainingLink", "Load chaining link configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this8$setState;

        var config = JSON.parse(content);
        var attrs = config.attrs;
        var bindmech = "Simple";
        var usestarttls = false;
        var refOnScope = false;
        var proxiedAuth = false;
        var checkLocalAci = false; // Handler checkboxes, need to convert "on" to true

        if (config.attrs.nsreferralonscopedsearch[0] == "on") {
          refOnScope = true;
        }

        if (config.attrs.nsproxiedauthorization[0] == "on") {
          proxiedAuth = true;
        }

        if (config.attrs.nschecklocalaci[0] == "on") {
          checkLocalAci = true;
        }

        if (config.attrs.nsusestarttls[0] == "on") {
          usestarttls = true;
        }

        if (config.attrs.nsbindmechanism !== undefined) {
          bindmech = config.attrs.nsbindmechanism[0];
        }

        _this8.setState((_this8$setState = {}, _defineProperty(_this8$setState, suffix, {
          nsfarmserverurl: attrs.nsfarmserverurl[0],
          nsmultiplexorbinddn: attrs.nsmultiplexorbinddn[0],
          nsmultiplexorcredentials: attrs.nsmultiplexorcredentials[0],
          nsmultiplexorcredentials_confirm: attrs.nsmultiplexorcredentials[0],
          sizelimit: attrs['nsslapd-sizelimit'][0],
          timelimit: attrs['nsslapd-timelimit'][0],
          bindconnlimit: attrs.nsbindconnectionslimit[0],
          opconnlimit: attrs.nsoperationconnectionslimit[0],
          concurrbindlimit: attrs.nsconcurrentbindlimit[0],
          bindtimeout: attrs.nsbindtimeout[0],
          bindretrylimit: attrs.nsbindretrylimit[0],
          concurroplimit: attrs.nsconcurrentoperationslimit[0],
          connlifetime: attrs.nsconnectionlife[0],
          searchcheckinterval: attrs.nsabandonedsearchcheckinterval[0],
          hoplimit: attrs.nshoplimit[0],
          nsbindmechanism: bindmech,
          nsusestarttls: usestarttls,
          nsreferralonscopedsearch: refOnScope,
          nsproxiedauthorization: proxiedAuth,
          nschecklocalaci: checkLocalAci
        }), _defineProperty(_this8$setState, "chainingLoading", false), _this8$setState));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error getting chaining link configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this9 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "dbconfig" || selectedNode.id == "chaining-config" || selectedNode.id == "pwpolicy" || selectedNode.id == "localpwpolicy" || selectedNode.id == "backups") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            dbtype: selectedNode.type,
            bename: ""
          };
        });
      } else {
        if (selectedNode.id in this.state) {
          // This suffix is already cached, just use what we have...
          this.setState(function (prevState) {
            return {
              nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              dbtype: selectedNode.type,
              bename: selectedNode.be
            };
          });
        } else {
          // Load this suffix whatever it is...
          if (selectedNode.type == "dblink") {
            // Chained suffix
            this.loadChainingLink(selectedNode.id);
          } else {
            // Suffix/subsuffix
            this.loadSuffix(selectedNode.id);
          }

          this.setState(function (prevState) {
            return {
              nodes: _this9.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              dbtype: selectedNode.type,
              bename: selectedNode.be
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this10 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread(_objectSpread({}, node), {}, {
            nodes: _this10.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div
      var elements = document.getElementsByClassName('treeitem-row');

      var _iterator = _createForOfIteratorHelper(elements),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var el = _step.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        disableTree: false
      }, this.loadAttrs());
    }
  }, {
    key: "showSuffixModal",
    value: function showSuffixModal() {
      this.setState({
        showSuffixModal: true,
        createSuffixEntry: false,
        createSampleEntries: false,
        noSuffixInit: true,
        errObj: {}
      });
    }
  }, {
    key: "handleRadioChange",
    value: function handleRadioChange(e) {
      // Handle the create suffix init option radio button group
      var noInit = false;
      var addSuffix = false;
      var addSample = false;

      if (e.target.id == "noSuffixInit") {
        noInit = true;
      } else if (e.target.id == "createSuffixEntry") {
        addSuffix = true;
      } else {
        // createSampleEntries
        addSample = true;
      }

      this.setState({
        noSuffixInit: noInit,
        createSuffixEntry: addSuffix,
        createSampleEntries: addSample
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "closeSuffixModal",
    value: function closeSuffixModal() {
      this.setState({
        showSuffixModal: false
      });
    }
  }, {
    key: "createSuffix",
    value: function createSuffix() {
      var _this11 = this;

      // validate
      var errors = false;
      var missingArgs = {
        createSuffix: false,
        createBeName: false
      };

      if (this.state.createSuffix == "") {
        this.props.addNotification("warning", "Missing the suffix DN");
        missingArgs.createSuffix = true;
        errors = true;
      }

      if (this.state.createBeName == "") {
        this.props.addNotification("warning", "Missing the suffix backend name");
        missingArgs.createBeName = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Create a new suffix


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.createBeName, '--suffix', this.state.createSuffix];

      if (this.state.createSampleEntries) {
        cmd.push('--create-entries');
      }

      if (this.state.createSuffixEntry) {
        cmd.push('--create-suffix');
      }

      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("createSuffix", "Create a new backend", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this11.closeSuffixModal();

        _this11.props.addNotification("success", "Successfully create new suffix"); // Refresh tree


        _this11.loadSuffixTree(false);

        _this11.loadSuffixList();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this11.props.addNotification("error", "Error creating suffix - ".concat(errMsg.desc));

        _this11.closeSuffixModal();
      });
    }
  }, {
    key: "getAutoTuning",
    value: function getAutoTuning(suffix) {
      var _this12 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("getAutoTuning", "Check cache auto tuning", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        if ('nsslapd-cache-autosize' in config.attrs && config.attrs['nsslapd-cache-autosize'] != "0") {
          _this12.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this12.state[suffix]), {}, {
            autoTuning: true
          })));
        }
      });
    }
  }, {
    key: "loadSuffixConfig",
    value: function loadSuffixConfig(suffix) {
      var _this13 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSuffixConfig", "Load suffix config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];
        var readonly = false;
        var requireindex = false;

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        if ('nsslapd-readonly' in config.attrs) {
          if (config.attrs['nsslapd-readonly'] == "on") {
            readonly = true;
          }
        }

        if ('nsslapd-require-index' in config.attrs) {
          if (config.attrs['nsslapd-require-index'] == "on") {
            requireindex = true;
          }
        }

        _this13.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this13.state[suffix]), {}, {
          refRows: refs,
          cachememsize: config.attrs['nsslapd-cachememsize'][0],
          cachesize: config.attrs['nsslapd-cachesize'][0],
          dncachememsize: config.attrs['nsslapd-dncachememsize'][0],
          readOnly: readonly,
          requireIndex: requireindex
        })), _this13.getAutoTuning(suffix));
      });
    }
  }, {
    key: "loadVLV",
    value: function loadVLV(suffix) {
      var _this14 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadVLV", "Load VLV indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this14.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this14.state[suffix]), {}, {
          vlvItems: config.items
        })));
      });
    }
  }, {
    key: "loadAttrEncrypt",
    value: function loadAttrEncrypt(suffix) {
      var _this15 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadAttrEncrypt", "Load encrypted attrs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];

        var _iterator2 = _createForOfIteratorHelper(config.items),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var row = _step2.value;
            rows.push({
              "name": row
            });
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        _this15.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this15.state[suffix]), {}, {
          encAttrsRows: rows
        })));
      });
    }
  }, {
    key: "loadIndexes",
    value: function loadIndexes(suffix) {
      var _this16 = this;

      // Load the suffix configurations.  Start with indexes which is the
      // most time consuming (and which controls the spinner), and spawn new
      // commands for the other areas.
      var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "list", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadIndexes", "Load backend indexes", index_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(index_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        // Now do the Indexes
        var config = JSON.parse(content);
        var rows = [];
        var systemRows = [];

        var _iterator3 = _createForOfIteratorHelper(config.items),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var item = _step3.value;
            var index = item.attrs;
            var types = [];
            var mrs = [];

            if (index.nsindextype.length > 1) {
              types = index.nsindextype.join(', ');
            } else {
              types = index.nsindextype[0];
            }

            if ('nsmatchingrule' in index) {
              if (index.nsmatchingrule.length > 1) {
                mrs = index.nsmatchingrule.join(', ');
              } else {
                mrs = index.nsmatchingrule[0];
              }
            }

            if (index.nssystemindex[0] == 'true') {
              systemRows.push({
                'name': index.cn,
                'types': [types],
                'matchingrules': [mrs]
              });
            } else {
              rows.push({
                'name': index.cn,
                'types': [types],
                'matchingrules': [mrs]
              });
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this16.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this16.state[suffix]), {}, {
          indexRows: rows,
          systemIndexRows: systemRows
        })));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this16.props.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "loadReferrals",
    value: function loadReferrals(suffix) {
      var _this17 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReferrals", "get referrals", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        _this17.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this17.state[suffix]), {}, {
          refRows: refs
        })));
      });
    }
  }, {
    key: "loadSuffix",
    value: function loadSuffix(suffix) {
      var _this18 = this;

      // Load everything, we must nest cockpit promise so we can proper set
      // the loading is finished
      this.setState({
        activeKey: 1,
        suffixLoading: true
      }, this.loadAttrs());
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSuffix", "Load suffix config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var refs = [];
        var readonly = false;
        var requireindex = false;

        if ('nsslapd-referral' in config.attrs) {
          refs = config.attrs['nsslapd-referral'];
        }

        if ('nsslapd-readonly' in config.attrs) {
          if (config.attrs['nsslapd-readonly'] == "on") {
            readonly = true;
          }
        }

        if ('nsslapd-require-index' in config.attrs) {
          if (config.attrs['nsslapd-require-index'] == "on") {
            requireindex = true;
          }
        }

        _this18.setState(_defineProperty({}, suffix, {
          refRows: refs,
          cachememsize: config.attrs['nsslapd-cachememsize'][0],
          cachesize: config.attrs['nsslapd-cachesize'][0],
          dncachememsize: config.attrs['nsslapd-dncachememsize'][0],
          readOnly: readonly,
          requireIndex: requireindex
        }), _this18.getAutoTuning(suffix)); // Now load VLV indexes


        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadVLV", "Load VLV indexes", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var config = JSON.parse(content);

          _this18.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this18.state[suffix]), {}, {
            vlvItems: config.items
          })));

          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadAttrEncrypt", "Load encrypted attrs", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var config = JSON.parse(content);
            var rows = [];

            var _iterator4 = _createForOfIteratorHelper(config.items),
                _step4;

            try {
              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                var row = _step4.value;
                rows.push({
                  "name": row
                });
              }
            } catch (err) {
              _iterator4.e(err);
            } finally {
              _iterator4.f();
            }

            _this18.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this18.state[suffix]), {}, {
              encAttrsRows: rows
            })));

            var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this18.props.serverId + ".socket", "backend", "index", "list", suffix];
            Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadIndexes", "Load backend indexes", index_cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(index_cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              var _this18$setState4;

              // Now do the Indexes
              var config = JSON.parse(content);
              var rows = [];
              var systemRows = [];

              var _iterator5 = _createForOfIteratorHelper(config.items),
                  _step5;

              try {
                for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                  var item = _step5.value;
                  var index = item.attrs;
                  var types = [];
                  var mrs = [];

                  if (index.nsindextype.length > 1) {
                    types = index.nsindextype.join(', ');
                  } else {
                    types = index.nsindextype[0];
                  }

                  if ('nsmatchingrule' in index) {
                    if (index.nsmatchingrule.length > 1) {
                      mrs = index.nsmatchingrule.join(', ');
                    } else {
                      mrs = index.nsmatchingrule[0];
                    }
                  }

                  if (index.nssystemindex[0] == 'true') {
                    systemRows.push({
                      'name': index.cn,
                      'types': [types],
                      'matchingrules': [mrs]
                    });
                  } else {
                    rows.push({
                      'name': index.cn,
                      'types': [types],
                      'matchingrules': [mrs]
                    });
                  }
                }
              } catch (err) {
                _iterator5.e(err);
              } finally {
                _iterator5.f();
              }

              _this18.setState((_this18$setState4 = {}, _defineProperty(_this18$setState4, suffix, _objectSpread(_objectSpread({}, _this18.state[suffix]), {}, {
                indexRows: rows,
                systemIndexRows: systemRows
              })), _defineProperty(_this18$setState4, "suffixLoading", false), _this18$setState4));
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              _this18.props.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));

              _this18.setState({
                suffixLoading: false
              });
            });
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this18.props.addNotification("error", "Error attribute encryption for ".concat(suffix, " - ").concat(errMsg.desc));

            _this18.setState({
              suffixLoading: false
            });
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this18.props.addNotification("error", "Error loading VLV indexes for ".concat(suffix, " - ").concat(errMsg.desc));

          _this18.setState({
            suffixLoading: false
          });
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this18.props.addNotification("error", "Error loading config for ".concat(suffix, " - ").concat(errMsg.desc));

        _this18.setState({
          suffixLoading: false
        });
      });
    }
  }, {
    key: "loadLDIFs",
    value: function loadLDIFs() {
      var _this19 = this;

      var cmd = ["dsctl", "-j", this.props.serverId, "ldifs"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadLDIFs", "Load LDIF Files", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];

        var _iterator6 = _createForOfIteratorHelper(config.items),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var row = _step6.value;
            rows.push({
              'name': row[0],
              'date': [row[1]],
              'size': [row[2]],
              'suffix': [row[3]]
            });
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }

        _this19.setState({
          LDIFRows: rows
        });
      });
    }
  }, {
    key: "loadBackups",
    value: function loadBackups() {
      var _this20 = this;

      var cmd = ["dsctl", "-j", this.props.serverId, "backups"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadBackupsDatabase", "Load Backups", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var rows = [];

        var _iterator7 = _createForOfIteratorHelper(config.items),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var row = _step7.value;
            rows.push({
              'name': row[0],
              'date': [row[1]],
              'size': [row[2]]
            });
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        _this20.setState({
          BackupRows: rows
        }, _this20.loadLDIFs());
      });
    }
  }, {
    key: "loadAttrs",
    value: function loadAttrs() {
      var _this21 = this;

      // Now get the schema that various tabs use
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadAttrs", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator8 = _createForOfIteratorHelper(attrContent['items']),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var _content = _step8.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }

        _this21.setState({
          attributes: attrs,
          loaded: true
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this21.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var nodes = this.state.nodes;
      var db_element = "";
      var body = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      if (this.state.loaded) {
        if (this.state.node_name == DB_CONFIG || this.state.node_name == "") {
          db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["GlobalDatabaseConfig"], {
            serverId: this.props.serverId,
            addNotification: this.props.addNotification,
            reload: this.loadGlobalConfig,
            data: this.state.globalDBConfig,
            enableTree: this.enableTree,
            key: this.state.configUpdated
          });
        } else if (this.state.node_name == CHAINING_CONFIG) {
          db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__["ChainingDatabaseConfig"], {
            serverId: this.props.serverId,
            addNotification: this.props.addNotification,
            reload: this.loadChainingConfig,
            data: this.state.chainingConfig,
            enableTree: this.enableTree,
            key: this.state.chainingUpdated
          });
        } else if (this.state.node_name == PWP_CONFIG) {
          db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_globalPwp_jsx__WEBPACK_IMPORTED_MODULE_7__["GlobalPwPolicy"], {
            serverId: this.props.serverId,
            addNotification: this.props.addNotification,
            attrs: this.state.attributes,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == LOCAL_PWP_CONFIG) {
          db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_localPwp_jsx__WEBPACK_IMPORTED_MODULE_8__["LocalPwPolicy"], {
            serverId: this.props.serverId,
            addNotification: this.props.addNotification,
            attrs: this.state.attributes,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == BACKUP_CONFIG) {
          db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_6__["Backups"], {
            serverId: this.props.serverId,
            addNotification: this.props.addNotification,
            backups: this.state.BackupRows,
            suffixes: this.state.suffixList,
            ldifs: this.state.LDIFRows,
            enableTree: this.enableTree,
            reload: this.loadBackups
          });
        } else if (this.state.node_name != "") {
          // We have a suffix, or database link
          if (this.state.dbtype == "suffix" || this.state.dbtype == "subsuffix") {
            if (this.state.suffixLoading) {
              db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top ds-loading-spinner ds-center"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading suffix configuration for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
                className: "ds-margin-top-lg",
                loading: true,
                size: "md"
              }));
            } else {
              db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_5__["Suffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_text,
                bename: this.state.bename,
                loadSuffixTree: this.loadSuffixTree,
                reload: this.loadSuffix,
                reloadRefs: this.loadReferrals,
                reloadIndexes: this.loadIndexes,
                reloadVLV: this.loadVLV,
                reloadAttrEnc: this.loadAttrEncrypt,
                addNotification: this.props.addNotification,
                reloadLDIFs: this.loadLDIFs,
                LDIFRows: this.state.LDIFRows,
                dbtype: this.state.dbtype,
                data: this.state[this.state.node_text],
                attrs: this.state.attributes,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            }
          } else {
            // Chaining
            if (this.state.chainingLoading) {
              db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top ds-loading-spinner ds-center"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading chaining configuration for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
                className: "ds-margin-top-lg",
                loading: true,
                size: "md"
              }));
            } else {
              db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__["ChainingConfig"], {
                serverId: this.props.serverId,
                suffix: this.state.node_text,
                bename: this.state.bename,
                loadSuffixTree: this.loadSuffixTree,
                addNotification: this.props.addNotification,
                data: this.state[this.state.node_text],
                enableTree: this.enableTree,
                reload: this.loadChainingLink
              });
            }
          }
        }

        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "db-tree",
          style: treeViewContainerStyles
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
          className: "btn btn-primary save-button",
          onClick: this.showSuffixModal
        }, "Create Suffix"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, db_element));
      } else {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading database configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "container-fluid"
      }, body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(CreateSuffixModal, {
        showModal: this.state.showSuffixModal,
        closeHandler: this.closeSuffixModal,
        handleChange: this.handleChange,
        handleRadioChange: this.handleRadioChange,
        saveHandler: this.createSuffix,
        noInit: this.state.noSuffixInit,
        addSuffix: this.state.createSuffixEntry,
        addSample: this.state.createSampleEntries,
        error: this.state.errObj
      }));
    }
  }]);

  return Database;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var CreateSuffixModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(CreateSuffixModal, _React$Component2);

  var _super2 = _createSuper(CreateSuffixModal);

  function CreateSuffixModal() {
    _classCallCheck(this, CreateSuffixModal);

    return _super2.apply(this, arguments);
  }

  _createClass(CreateSuffixModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          handleRadioChange = _this$props.handleRadioChange,
          saveHandler = _this$props.saveHandler,
          noInit = _this$props.noInit,
          addSuffix = _this$props.addSuffix,
          addSample = _this$props.addSample,
          error = _this$props.error;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Modal"].Title, null, "Create New Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
        title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"], null, "Suffix DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createSuffix ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createSuffix",
        size: "40"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
        className: "ds-margin-top",
        title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"], null, "Database Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createBeName ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createBeName",
        size: "40"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Radio"], {
        name: "radioGroup",
        id: "noSuffixInit",
        onChange: handleRadioChange,
        checked: noInit,
        inline: true
      }, "Do Not Initialize Database")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Radio"], {
        name: "radioGroup",
        id: "createSuffixEntry",
        onChange: handleRadioChange,
        checked: addSuffix,
        inline: true
      }, "Create The Top Suffix Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Radio"], {
        name: "radioGroup",
        id: "createSampleEntries",
        onChange: handleRadioChange,
        checked: addSample,
        inline: true
      }, "Add Sample Entries"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Suffix"))));
    }
  }]);

  return CreateSuffixModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


Database.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string
};
Database.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  serverId: ""
};
CreateSuffixModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  handleRadioChange: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  noInit: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
  addSuffix: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
  addSample: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.object
};
CreateSuffixModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  handleRadioChange: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  noInit: true,
  addSuffix: false,
  addSample: false,
  error: {}
};

/***/ }),

/***/ "./src/ds.jsx":
/*!********************!*\
  !*** ./src/ds.jsx ***!
  \********************/
/*! exports provided: DSInstance, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DSInstance", function() { return DSInstance; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _plugins_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins.jsx */ "./src/plugins.jsx");
/* harmony import */ var _database_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./database.jsx */ "./src/database.jsx");
/* harmony import */ var _monitor_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor.jsx */ "./src/monitor.jsx");
/* harmony import */ var _schema_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./schema.jsx */ "./src/schema.jsx");
/* harmony import */ var _replication_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replication.jsx */ "./src/replication.jsx");
/* harmony import */ var _server_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./server.jsx */ "./src/server.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dsModals.jsx */ "./src/dsModals.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }













var staticStates = {
  noPackage: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "There is no ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "389-ds-base"), " package installed on this system. Sorry there is nothing to manage..."),
  noInsts: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "There are no Directory Server instances to manage"),
  notRunning: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "This server instance is not running, either start it from the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Actions"), " dropdown menu, or choose a different instance"),
  notConnecting: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "This server instance is running, but we can not connect to it. Check LDAPI is properly configured on this instance.")
};
var DSInstance = /*#__PURE__*/function (_React$Component) {
  _inherits(DSInstance, _React$Component);

  var _super = _createSuper(DSInstance);

  _createClass(DSInstance, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadInstanceList();
      this.updateProgress(25);
    }
  }]);

  function DSInstance(props) {
    var _this;

    _classCallCheck(this, DSInstance);

    _this = _super.call(this, props);
    _this.state = {
      pageLoadingState: {
        state: "loading",
        jsx: ""
      },
      serverId: "",
      instList: [],
      backupRows: [],
      notifications: [],
      activeKey: 1,
      wasActiveList: [1],
      progressValue: 0,
      loadingOperate: false,
      showDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false,
      showSchemaReloadModal: false,
      showManageBackupsModal: false,
      showCreateInstanceModal: false
    };
    _this.handleServerIdChange = _this.handleServerIdChange.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.addNotification = _this.addNotification.bind(_assertThisInitialized(_this));
    _this.removeNotification = _this.removeNotification.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.loadInstanceList = _this.loadInstanceList.bind(_assertThisInitialized(_this));
    _this.loadBackups = _this.loadBackups.bind(_assertThisInitialized(_this));
    _this.setServerId = _this.setServerId.bind(_assertThisInitialized(_this));
    _this.updateProgress = _this.updateProgress.bind(_assertThisInitialized(_this));
    _this.openCreateInstanceModal = _this.openCreateInstanceModal.bind(_assertThisInitialized(_this));
    _this.closeCreateInstanceModal = _this.closeCreateInstanceModal.bind(_assertThisInitialized(_this));
    _this.operateInstance = _this.operateInstance.bind(_assertThisInitialized(_this));
    _this.openManageBackupsModal = _this.openManageBackupsModal.bind(_assertThisInitialized(_this));
    _this.closeManageBackupsModal = _this.closeManageBackupsModal.bind(_assertThisInitialized(_this));
    _this.openSchemaReloadModal = _this.openSchemaReloadModal.bind(_assertThisInitialized(_this));
    _this.closeSchemaReloadModal = _this.closeSchemaReloadModal.bind(_assertThisInitialized(_this));
    _this.removeInstance = _this.removeInstance.bind(_assertThisInitialized(_this));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.closeDeleteConfirm = _this.closeDeleteConfirm.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(DSInstance, [{
    key: "updateProgress",
    value: function updateProgress(value) {
      var _this2 = this;

      this.setState(function (prevState) {
        return {
          progressValue: prevState.progressValue + value
        };
      }, function () {
        if (_this2.state.progressValue > 100) {
          _this2.setState(function (prevState) {
            return {
              pageLoadingState: _objectSpread(_objectSpread({}, prevState.pageLoadingState), {}, {
                state: "success"
              })
            };
          });
        }
      });
    }
  }, {
    key: "setServerId",
    value: function setServerId(serverId, action) {
      var _this3 = this;

      // First we need to check if the instance is alive and well
      var cmd = ["dsctl", "-j", serverId, "status"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])("setServerId", "Test if instance is running ", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (status_data) {
        var status_json = JSON.parse(status_data);

        if (status_json.running) {
          _this3.updateProgress(25);

          var _cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "backend", "suffix", "list", "--suffix"];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])("setServerId", "Test if instance is alive ", _cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(_cmd, {
            superuser: true,
            err: "message"
          }).done(function (_) {
            _this3.updateProgress(25);

            _this3.setState({
              serverId: serverId
            }, function () {
              _this3.loadBackups();
            });

            if (action === "restart") {
              _this3.setState({
                serverId: ""
              }, function () {
                _this3.setState({
                  serverId: serverId
                });
              });
            }
          }).fail(function (err) {
            var errMsg = JSON.parse(err);
            console.log("setServerId failed: ", errMsg.desc);

            _this3.setState({
              pageLoadingState: {
                state: "notConnecting",
                jsx: staticStates["notConnecting"]
              }
            }, function () {
              _this3.setState({
                serverId: serverId
              });
            });
          });
        } else {
          _this3.setState({
            pageLoadingState: {
              state: "notRunning",
              jsx: staticStates["notRunning"]
            }
          }, function () {
            _this3.setState({
              serverId: serverId
            });
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        console.log("setServerId failed: ", errMsg.desc);

        _this3.setState({
          pageLoadingState: {
            state: "notConnecting",
            jsx: staticStates["notConnecting"]
          }
        }, function () {
          _this3.setState({
            serverId: serverId
          });
        });
      });
    }
  }, {
    key: "loadInstanceList",
    value: function loadInstanceList(serverId, action) {
      var _this4 = this;

      if (serverId === undefined) {
        this.setState(function (prevState) {
          return {
            pageLoadingState: _objectSpread(_objectSpread({}, prevState.pageLoadingState), {}, {
              state: "loading"
            })
          };
        });
      }

      var cmd = ["dsctl", "-l", "-j"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])("loadInstanceList", "Load the instance list select", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true
      }).done(function (data) {
        _this4.updateProgress(25);

        var myObject = JSON.parse(data);

        _this4.setState({
          instList: myObject.insts,
          loadingOperate: false
        }); // Set default value for the inst select


        if (serverId !== undefined && serverId !== "") {
          _this4.setState({
            wasActiveList: [_this4.state.activeKey]
          });

          _this4.setServerId(serverId, action);
        } else {
          if (myObject.insts.length > 0) {
            _this4.setState({
              wasActiveList: [_this4.state.activeKey]
            });

            _this4.setServerId(myObject.insts[0].replace("slapd-", ""), action);
          } else {
            _this4.setState({
              serverId: "",
              pageLoadingState: {
                state: "noInsts",
                jsx: staticStates["noInsts"]
              }
            });
          }
        }
      }).fail(function (_) {
        _this4.setState({
          instList: [],
          serverId: "",
          loadingOperate: false,
          pageLoadingState: {
            state: "noInsts",
            jsx: staticStates["noInsts"]
          }
        });
      });
    }
  }, {
    key: "loadBackups",
    value: function loadBackups() {
      var _this5 = this;

      var cmd = ["dsctl", "-j", this.state.serverId, "backups"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])("loadBackupsDSInstance", "Load Backups", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.updateProgress(25);

        var config = JSON.parse(content);
        var rows = [];

        var _iterator = _createForOfIteratorHelper(config.items),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var row = _step.value;
            rows.push({
              name: row[0],
              date: [row[1]],
              size: [row[2]]
            });
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this5.setState({
          backupRows: rows
        });
      });
    }
  }, {
    key: "addNotification",
    value: function addNotification(type, message, timerdelay, persistent) {
      this.setState(function (prevState) {
        return {
          notifications: [].concat(_toConsumableArray(prevState.notifications), [{
            key: prevState.notifications.length + 1,
            type: type,
            persistent: persistent,
            timerdelay: timerdelay,
            message: message
          }])
        };
      });
    }
  }, {
    key: "removeNotification",
    value: function removeNotification(notificationToRemove) {
      this.setState({
        notifications: this.state.notifications.filter(function (notification) {
          return notificationToRemove.key !== notification.key;
        })
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
      var wasActiveList = this.state.wasActiveList;

      if (!wasActiveList.includes(key)) {
        var newList = wasActiveList.concat(key);
        this.setState({
          wasActiveList: newList
        });
      }
    }
  }, {
    key: "handleServerIdChange",
    value: function handleServerIdChange(e) {
      this.setState({
        pageLoadingState: {
          state: "loading",
          jsx: ""
        },
        progressValue: 25,
        serverId: e.target.value
      });
      this.loadInstanceList(e.target.value);
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;

      if (e.target.type === "number") {
        if (e.target.value) {
          value = parseInt(e.target.value);
        } else {
          value = 1;
        }
      }

      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "removeInstance",
    value: function removeInstance() {
      this.operateInstance();
      this.closeDeleteConfirm();
    }
  }, {
    key: "operateInstance",
    value: function operateInstance(e) {
      var _this6 = this;

      this.setState({
        loadingOperate: true
      });
      var action = "remove";

      if (e !== undefined) {
        action = e.target.id.split("-")[0];
      }

      var cmd = ["dsctl", "-j", this.state.serverId, action];

      if (action === "remove") {
        cmd = [].concat(_toConsumableArray(cmd), ["--do-it"]);
      }

      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])("operateInstance", "Do ".concat(action, " the instance"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (_) {
        if (action === "remove") {
          _this6.loadInstanceList();
        } else {
          _this6.loadInstanceList(_this6.state.serverId, action);
        }

        if (action === "remove") {
          _this6.addNotification("success", "Instance was successfully removed");
        } else {
          _this6.addNotification("success", "Instance was successfully ".concat(action, "ed"));
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.addNotification("error", "Error during instance ".concat(action, " operation - ").concat(errMsg.desc));

        _this6.loadInstanceList(_this6.state.serverId, action);
      });
    }
  }, {
    key: "openCreateInstanceModal",
    value: function openCreateInstanceModal() {
      this.setState({
        showCreateInstanceModal: true
      });
    }
  }, {
    key: "closeCreateInstanceModal",
    value: function closeCreateInstanceModal() {
      this.setState({
        showCreateInstanceModal: false
      });
    }
  }, {
    key: "openManageBackupsModal",
    value: function openManageBackupsModal() {
      this.setState({
        showManageBackupsModal: true
      });
    }
  }, {
    key: "closeManageBackupsModal",
    value: function closeManageBackupsModal() {
      this.setState({
        showManageBackupsModal: false
      });
    }
  }, {
    key: "openSchemaReloadModal",
    value: function openSchemaReloadModal() {
      this.setState({
        showSchemaReloadModal: true
      });
    }
  }, {
    key: "closeSchemaReloadModal",
    value: function closeSchemaReloadModal() {
      this.setState({
        showSchemaReloadModal: false
      });
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm() {
      this.setState({
        showDeleteConfirm: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          instList = _this$state.instList,
          serverId = _this$state.serverId,
          progressValue = _this$state.progressValue,
          notifications = _this$state.notifications,
          pageLoadingState = _this$state.pageLoadingState,
          loadingOperate = _this$state.loadingOperate;
      var mainContent = "";

      if (pageLoadingState.state === "loading") {
        mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "loading-instances",
          className: "all-pages ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "loading-page",
          className: "ds-center ds-loading"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
          id: "loading-msg"
        }, "Loading Directory Server Configuration..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", {
          className: "spinner spinner-lg spinner-inline"
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "progress ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["ProgressBar"], {
          active: true,
          now: progressValue,
          label: "".concat(progressValue, "%")
        }))));
      } else if (pageLoadingState.state === "noInsts") {
        mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "noInsts",
          className: "all-pages ds-center"
        }, pageLoadingState.jsx, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["Button"], {
          id: "no-inst-create-btn",
          bsStyle: "primary",
          onClick: this.openCreateInstanceModal
        }, "Create New Instance")));
      } else {
        mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: pageLoadingState.state,
          className: "all-pages ds-center"
        }, pageLoadingState.jsx);
      }

      var operateSpinner = "";

      if (loadingOperate) {
        operateSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["Spinner"], {
          className: "ds-operate-spinner",
          loading: true,
          inline: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_8__["NotificationController"], {
        notifications: notifications,
        removeNotificationAction: this.removeNotification
      }), pageLoadingState.state !== "loading" && pageLoadingState.state !== "noInsts" && pageLoadingState.state !== "noPackage" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-logo",
        hidden: pageLoadingState.state === "loading"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h2", {
        className: "ds-logo-style",
        id: "main-banner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "dropdown ds-server-action"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        title: "Directory Server Instance List",
        id: "serverId",
        value: serverId,
        onChange: this.handleServerIdChange
      }, Object.entries(instList).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            _ = _ref2[0],
            inst = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: inst,
          value: inst.replace("slapd-", "")
        }, inst);
      }))), operateSpinner, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "dropdown ds-float-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["DropdownButton"], {
        pullRight: true,
        id: "ds-action",
        className: "ds-action-button",
        bsStyle: "primary",
        title: "Actions"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "start-ds",
        eventKey: "1",
        onClick: this.operateInstance
      }, "Start Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "stop-ds",
        eventKey: "2",
        onClick: this.operateInstance
      }, "Stop Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "restart-ds",
        eventKey: "3",
        onClick: this.operateInstance
      }, "Restart Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "manage-backup-ds",
        eventKey: "4",
        onClick: this.openManageBackupsModal
      }, "Manage Backups"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "reload-schema-ds",
        eventKey: "5",
        onClick: this.openSchemaReloadModal
      }, "Reload Schema Files"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "remove-ds",
        eventKey: "6",
        onClick: this.showDeleteConfirm
      }, "Remove Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["MenuItem"], {
        id: "create-ds",
        eventKey: "7",
        onClick: this.openCreateInstanceModal
      }, "Create Instance"))))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null), serverId !== "" && (pageLoadingState.state === "success" || pageLoadingState.state === "loading") ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        hidden: pageLoadingState.state === "loading"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["Nav"], {
        className: "nav nav-tabs nav-tabs-pf collapse navbar-collapse navbar-collapse-5 ds-nav navbar navbar-default"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 1
      }, "Server Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 2
      }, "Database"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 3
      }, "Replication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 4
      }, "Schema"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 5
      }, "Plugins"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["NavItem"], {
        className: "ds-tab-main",
        eventKey: 6
      }, "Monitoring")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_server_jsx__WEBPACK_IMPORTED_MODULE_7__["Server"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_database_jsx__WEBPACK_IMPORTED_MODULE_3__["Database"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replication_jsx__WEBPACK_IMPORTED_MODULE_6__["Replication"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_schema_jsx__WEBPACK_IMPORTED_MODULE_5__["Schema"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_plugins_jsx__WEBPACK_IMPORTED_MODULE_2__["Plugins"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_11__["TabPane"], {
        eventKey: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_monitor_jsx__WEBPACK_IMPORTED_MODULE_4__["Monitor"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        hidden: pageLoadingState.state !== "loading"
      }, mainContent)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, mainContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__["CreateInstanceModal"], {
        showModal: this.state.showCreateInstanceModal,
        closeHandler: this.closeCreateInstanceModal,
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        loadInstanceList: this.loadInstanceList
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__["SchemaReloadModal"], {
        showModal: this.state.showSchemaReloadModal,
        closeHandler: this.closeSchemaReloadModal,
        addNotification: this.addNotification,
        serverId: this.state.serverId
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__["ManageBackupsModal"], {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        showModal: this.state.showManageBackupsModal,
        closeHandler: this.closeManageBackupsModal,
        handleChange: this.handleFieldChange,
        backups: this.state.backupRows,
        reload: this.loadBackups
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_8__["DoubleConfirmModal"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        handleChange: this.handleFieldChange,
        actionHandler: this.removeInstance,
        spinning: this.state.modalSpinning,
        item: this.state.serverId,
        checked: this.state.modalChecked,
        mTitle: "Remove Instance",
        mMsg: "Are you really sure you want to delete this instance?",
        mSpinningMsg: "Removing Instance...",
        mBtnName: "Remove Instance"
      }));
    }
  }]);

  return DSInstance;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
/* harmony default export */ __webpack_exports__["default"] = (DSInstance);

/***/ }),

/***/ "./src/dsModals.jsx":
/*!**************************!*\
  !*** ./src/dsModals.jsx ***!
  \**************************/
/*! exports provided: CreateInstanceModal, SchemaReloadModal, ManageBackupsModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateInstanceModal", function() { return CreateInstanceModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaReloadModal", function() { return SchemaReloadModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageBackupsModal", function() { return ManageBackupsModal; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_database_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/database/databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/database/backups.jsx */ "./src/lib/database/backups.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var CreateInstanceModal = /*#__PURE__*/function (_React$Component) {
  _inherits(CreateInstanceModal, _React$Component);

  var _super = _createSuper(CreateInstanceModal);

  function CreateInstanceModal(props) {
    var _this;

    _classCallCheck(this, CreateInstanceModal);

    _this = _super.call(this, props);
    _this.state = {
      createServerId: "",
      createPort: 389,
      createSecurePort: 636,
      createDM: "cn=Directory Manager",
      createDMPassword: "",
      createDMPasswordConfirm: "",
      createDBCheckbox: false,
      createDBSuffix: "",
      createDBName: "",
      createTLSCert: true,
      createInitDB: "noInit",
      loadingCreate: false,
      createOK: false,
      modalMsg: "",
      errObj: {}
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.createInstance = _this.createInstance.bind(_assertThisInitialized(_this));
    _this.validInstName = _this.validInstName.bind(_assertThisInitialized(_this));
    _this.validRootDN = _this.validRootDN.bind(_assertThisInitialized(_this));
    _this.resetModal = _this.resetModal.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(CreateInstanceModal, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.resetModal();
    }
  }, {
    key: "resetModal",
    value: function resetModal() {
      this.setState({
        createServerId: "",
        createPort: 389,
        createSecurePort: 636,
        createDM: "cn=Directory Manager",
        createDMPassword: "",
        createDMPasswordConfirm: "",
        createDBCheckbox: false,
        createDBSuffix: "",
        createDBName: "",
        createTLSCert: true,
        createInitDB: "noInit",
        loadingCreate: false,
        createOK: false,
        modalMsg: "",
        errObj: {
          createServerId: true,
          createDMPassword: true,
          createDMPasswordConfirm: true,
          createDBSuffix: false,
          createDBName: false
        }
      });
    }
  }, {
    key: "validInstName",
    value: function validInstName(name) {
      return /^[\w@_:-]*$/.test(name);
    }
  }, {
    key: "validRootDN",
    value: function validRootDN(dn) {
      // Validate a DN for Directory Manager.  We have to be stricter than
      // valid_dn() and only allow stand ascii characters for the value
      if (dn.endsWith(",")) {
        return false;
      } // Check that the attr is only letters  [A-Za-z]+  and the value is standard
      // ascii  [ -~]+  that it does not start with a space  \\S


      var dn_regex = new RegExp("^([A-Za-z]+=\\S[ -~]+$)");
      var result = dn_regex.test(dn);
      return result;
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      var _this$setState;

      var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
      var target_id = e.target.id;
      var valueErr = false;
      var errObj = this.state.errObj;
      var all_good = true;
      var modal_msg = "";
      errObj[target_id] = valueErr;

      if (target_id == 'createServerId') {
        if (value == "") {
          all_good = false;
          errObj['createServerId'] = true;
        } else if (value > 80) {
          all_good = false;
          errObj['createServerId'] = true;
          modal_msg = "Instance name must be less than 80 characters";
        } else if (!this.validInstName(value)) {
          all_good = false;
          errObj['createServerId'] = true;
          modal_msg = "Instance name can only contain letters, numbers, and these 4 characters:  - @ : _";
        }
      } else if (this.state.createServerId == "") {
        all_good = false;
        errObj['createServerId'] = true;
      } else if (!this.validInstName(this.state.createServerId)) {
        all_good = false;
        errObj['createServerId'] = true;
        modal_msg = "Not all required fields have values";
      }

      if (target_id == 'createPort') {
        if (value == "") {
          all_good = false;
          errObj['createPort'] = true;
        } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_port"])(value)) {
          all_good = false;
          errObj['createPort'] = true;
          modal_msg = "Invalid Port number.  The port must be between 1 and 65534";
        }
      } else if (this.state.createPort == "") {
        all_good = false;
        errObj['createPort'] = true;
      } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_port"])(this.state.createPort)) {
        all_good = false;
        errObj['createPort'] = true;
        modal_msg = "Invalid Port number.  The port must be between 1 and 65534";
      }

      if (target_id == 'createSecurePort') {
        if (value == "") {
          all_good = false;
          errObj['createSecurePort'] = true;
        } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_port"])(value)) {
          all_good = false;
          errObj['createSecurePort'] = true;
          modal_msg = "Invalid Secure Port number.  Port must be between 1 and 65534";
        }
      } else if (this.state.createSecurePort == "") {
        all_good = false;
        errObj['createSecurePort'] = true;
      }

      if (target_id == 'createDM') {
        if (value == "") {
          all_good = false;
          errObj['createDM'] = true;
        }

        if (!this.validRootDN(value)) {
          all_good = false;
          errObj['createDM'] = true;
          modal_msg = "Invalid DN for Directory Manager";
        }
      } else if (this.state.createDM == "") {
        all_good = false;
        errObj['createDM'] = true;
      } else if (!this.validRootDN(this.state.createDM)) {
        all_good = false;
        errObj['createDM'] = true;
        modal_msg = "Invalid DN for Directory Manager";
      }

      if (e.target.id == 'createDMPassword') {
        if (value == "") {
          all_good = false;
          errObj['createDMPassword'] = true;
        } else if (value != this.state.createDMPasswordConfirm) {
          all_good = false;
          errObj['createDMPassword'] = true;
          errObj['createDMPasswordConfirm'] = true;
          modal_msg = "Passwords Do Not Match";
        } else if (value.length < 8) {
          all_good = false;
          errObj['createDMPassword'] = true;
          modal_msg = "Directory Manager password must be at least 8 characters long";
        } else {
          errObj['createDMPassword'] = false;
          errObj['createDMPasswordConfirm'] = false;
        }
      } else if (this.state.createDMPassword == "") {
        all_good = false;
        errObj['createDMPasswordConfirm'] = true;
      }

      if (e.target.id == 'createDMPasswordConfirm') {
        if (value == "") {
          all_good = false;
          errObj['createDMPasswordConfirm'] = true;
        } else if (value != this.state.createDMPassword) {
          all_good = false;
          errObj['createDMPassword'] = true;
          errObj['createDMPasswordConfirm'] = true;
          modal_msg = "Passwords Do Not Match";
        } else if (value.length < 8) {
          all_good = false;
          errObj['createDMPasswordConfirm'] = true;
          modal_msg = "Directory Manager password must be at least 8 characters long";
        } else {
          errObj['createDMPassword'] = false;
          errObj['createDMPasswordConfirm'] = false;
        }
      } else if (this.state.createDMPasswordConfirm == "") {
        all_good = false;
        errObj['createDMPasswordConfirm'] = true;
      } // Optional settings


      if (target_id == 'createDBCheckbox') {
        if (!value) {
          errObj['createDBSuffix'] = false;
          errObj['createDBName'] = false;
        } else {
          if (this.state.createDBSuffix == "") {
            all_good = false;
            errObj['createDBSuffix'] = true;
          } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_dn"])(this.state.createDBSuffix)) {
            all_good = false;
            errObj['createDBSuffix'] = true;
            modal_msg = "Invalid DN for suffix";
          }

          if (this.state.createDBName == "") {
            all_good = false;
            errObj['createDBName'] = true;
          } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_dn"])(this.state.createDBName)) {
            all_good = false;
            errObj['createDBName'] = true;
            modal_msg = "Invalid name for database";
          }
        }
      } else if (this.state.createDBCheckbox) {
        if (target_id == 'createDBSuffix') {
          if (value == "") {
            all_good = false;
            errObj['createDBSuffix'] = true;
          } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_dn"])(value)) {
            all_good = false;
            errObj['createDBSuffix'] = true;
            modal_msg = "Invalid DN for suffix";
          }
        } else if (this.state.createDBSuffix == "") {
          all_good = false;
          errObj['createDBSuffix'] = true;
        } else if (!Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["valid_dn"])(this.state.createDBSuffix)) {
          all_good = false;
          errObj['createDBSuffix'] = true;
          modal_msg = "Invalid DN for suffix";
        }

        if (target_id == 'createDBName') {
          if (value == "") {
            all_good = false;
            errObj['createDBName'] = true;
          } else if (/\s/.test(value)) {
            // name has some kind of white space character
            all_good = false;
            errObj['createDBName'] = true;
            modal_msg = "Database name can not contain any spaces";
          }
        } else if (this.state.createDBName == "") {
          all_good = false;
          errObj['createDBName'] = true;
        } else if (/\s/.test(this.state.createDBName)) {
          all_good = false;
          errObj['createDBName'] = true;
          modal_msg = "Invalid database name";
        }
      } else {
        errObj['createDBSuffix'] = false;
        errObj['createDBName'] = false;
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, target_id, value), _defineProperty(_this$setState, "errObj", errObj), _defineProperty(_this$setState, "createOK", all_good), _defineProperty(_this$setState, "modalMsg", modal_msg), _this$setState));
    }
  }, {
    key: "createInstance",
    value: function createInstance() {
      var _this2 = this;

      var _this$state = this.state,
          createServerId = _this$state.createServerId,
          createPort = _this$state.createPort,
          createSecurePort = _this$state.createSecurePort,
          createDM = _this$state.createDM,
          createDMPassword = _this$state.createDMPassword,
          createDBSuffix = _this$state.createDBSuffix,
          createDBName = _this$state.createDBName,
          createTLSCert = _this$state.createTLSCert,
          createInitDB = _this$state.createInitDB,
          createDBCheckbox = _this$state.createDBCheckbox;
      var _this$props = this.props,
          closeHandler = _this$props.closeHandler,
          addNotification = _this$props.addNotification,
          loadInstanceList = _this$props.loadInstanceList;
      var setup_inf = "[general]\n" + "config_version = 2\n" + "full_machine_name = FQDN\n\n" + "[slapd]\n" + "user = dirsrv\n" + "group = dirsrv\n" + "instance_name = INST_NAME\n" + "port = PORT\n" + "root_dn = ROOTDN\n" + "root_password = ROOTPW\n" + "secure_port = SECURE_PORT\n" + "self_sign_cert = SELF_SIGN\n"; // Server ID

      var newServerId = createServerId;
      newServerId = newServerId.replace(/^slapd-/i, ""); // strip "slapd-"

      setup_inf = setup_inf.replace("INST_NAME", newServerId);
      setup_inf = setup_inf.replace("PORT", createPort);
      setup_inf = setup_inf.replace("SECURE_PORT", createSecurePort);
      setup_inf = setup_inf.replace("ROOTDN", createDM);
      setup_inf = setup_inf.replace("ROOTPW", createDMPassword); // Setup Self-Signed Certs

      if (createTLSCert) {
        setup_inf = setup_inf.replace("SELF_SIGN", "True");
      } else {
        setup_inf = setup_inf.replace("SELF_SIGN", "False");
      }

      if (createDBCheckbox) {
        setup_inf += "\n[backend-" + createDBName + "]\nsuffix = " + createDBSuffix + "\n";

        if (createInitDB === "createSample") {
          setup_inf += "sample_entries = yes\n";
        }

        if (createInitDB === "createSuffix") {
          setup_inf += "create_suffix_entry = yes\n";
        }
      }
      /*
       * Here are steps we take to create the instance
       *
       * [1] Get FQDN Name for nsslapd-localhost setting in setup file
       * [2] Create a file for the inf setup parameters
       * [3] Set strict permissions on that file
       * [4] Populate the new setup file with settings (including cleartext password)
       * [5] Create the instance
       * [6] Remove setup file
       */


      this.setState({
        loadingCreate: true
      });
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(["hostnamectl", "status", "--static"], {
        superuser: true,
        err: "message"
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.setState({
          loadingCreate: false
        });

        addNotification("error", "Failed to get hostname!\", ".concat(errMsg.desc));
      }).done(function (data) {
        /*
         * We have FQDN, so set the hostname in inf file, and create the setup file
         */
        setup_inf = setup_inf.replace("FQDN", data);
        var setup_file = "/tmp/389-setup-" + new Date().getTime() + ".inf";
        var rm_cmd = ["rm", setup_file];
        var create_file_cmd = ["touch", setup_file];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("createInstance", "Setting FQDN...", create_file_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(create_file_cmd, {
          superuser: true,
          err: "message"
        }).fail(function (err) {
          _this2.setState({
            loadingCreate: false
          });

          addNotification("error", "Failed to create installation file!\" ".concat(err.message));
        }).done(function (_) {
          /*
           * We have our new setup file, now set permissions on that setup file before we add sensitive data
           */
          var chmod_cmd = ["chmod", "600", setup_file];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("createInstance", "Setting initial INF file permissions...", chmod_cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(chmod_cmd, {
            superuser: true,
            err: "message"
          }).fail(function (err) {
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(rm_cmd, {
              superuser: true,
              err: "message"
            }); // Remove Inf file with clear text password

            _this2.setState({
              loadingCreate: false
            });

            addNotification("error", "Failed to set permissions on setup file ".concat(setup_file, ": ").concat(err.message));
          }).done(function (_) {
            /*
             * Success we have our setup file and it has the correct permissions.
             * Now populate the setup file...
             */
            var cmd = ["/bin/sh", "-c", '/usr/bin/echo -e "' + setup_inf + '" >> ' + setup_file]; // Do not log inf file as it contains the DM password

            Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("createInstance", "Apply changes to INF file...", "");
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
              superuser: true,
              err: "message"
            }).fail(function (err) {
              _this2.setState({
                loadingCreate: false
              });

              addNotification("error", "Failed to populate installation file! ".concat(err.message));
            }).done(function (_) {
              /*
               * Next, create the instance...
               */
              var cmd = ["dscreate", "-j", "from-file", setup_file];
              Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("createInstance", "Creating instance...", cmd);
              cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
                superuser: true,
                err: "message"
              }).fail(function (err) {
                var errMsg = JSON.parse(err);
                cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(rm_cmd, {
                  superuser: true
                }); // Remove Inf file with clear text password

                _this2.setState({
                  loadingCreate: false
                });

                addNotification("error", "".concat(errMsg.desc));
              }).done(function (_) {
                // Success!!!  Now cleanup everything up...
                Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("createInstance", "Instance creation compelete, clean everything up...", rm_cmd);
                cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(rm_cmd, {
                  superuser: true
                }); // Remove Inf file with clear text password

                _this2.setState({
                  loadingCreate: false
                });

                loadInstanceList(createServerId);
                addNotification("success", "Successfully created instance: slapd-".concat(createServerId));
                closeHandler();

                _this2.resetModal();
              });
            });
          });
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler;
      var _this$state2 = this.state,
          loadingCreate = _this$state2.loadingCreate,
          createServerId = _this$state2.createServerId,
          createPort = _this$state2.createPort,
          createSecurePort = _this$state2.createSecurePort,
          createDM = _this$state2.createDM,
          createDMPassword = _this$state2.createDMPassword,
          createDMPasswordConfirm = _this$state2.createDMPasswordConfirm,
          createDBCheckbox = _this$state2.createDBCheckbox,
          createDBSuffix = _this$state2.createDBSuffix,
          createDBName = _this$state2.createDBName,
          createTLSCert = _this$state2.createTLSCert,
          createInitDB = _this$state2.createInitDB,
          createOK = _this$state2.createOK,
          modalMsg = _this$state2.modalMsg,
          errObj = _this$state2.errObj;
      var errMsgClass = "";
      var errMsg = "";
      var createSpinner = "";

      if (loadingCreate) {
        createSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Creating instance..."));
      }

      if (modalMsg == "") {
        // No errors, but to keep the modal nice and stable during input
        // field validation we need "invisible" text to keep the modal form
        // from jumping up and down.
        errMsgClass = "ds-clear-text";
        errMsg = "no errors";
      } else {
        // We have error text to report
        errMsgClass = "ds-modal-error";
        errMsg = modalMsg;
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Title, {
        className: "ds-center"
      }, "Create New Server Instance")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        className: "ds-center",
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: errMsgClass
      }, errMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createServerId",
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "The instance name, this is what gets appended to 'slapi-'. The instance name can only contain letters, numbers, and:  # @ : - _"
      }, "Instance Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        id: "createServerId",
        type: "text",
        placeholder: "Your_Instance_Name",
        value: createServerId,
        onChange: this.handleFieldChange,
        className: errObj.createServerId ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createPort"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "The server port number"
      }, "Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        id: "createPort",
        type: "number",
        min: "0",
        max: "65535",
        value: createPort,
        onChange: this.handleFieldChange,
        className: errObj.createPort ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createSecurePort"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "The secure port number for TLS connections"
      }, "Secure Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        id: "createSecurePort",
        type: "number",
        min: "0",
        max: "65535",
        value: createSecurePort,
        onChange: this.handleFieldChange,
        className: errObj.createSecurePort ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createTLSCert"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "Create a self-signed certificate database"
      }, "Create Self-Signed TLS Certificate"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Checkbox"], {
        id: "createTLSCert",
        checked: createTLSCert,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createDM"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "The DN for the unrestricted  user"
      }, "Directory Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        type: "text",
        id: "createDM",
        onChange: this.handleFieldChange,
        value: createDM,
        className: errObj.createDM ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createDMPassword"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "Directory Manager password."
      }, "Directory Manager Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        id: "createDMPassword",
        type: "password",
        placeholder: "Enter password",
        onChange: this.handleFieldChange,
        value: createDMPassword,
        className: errObj.createDMPassword ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createDMPasswordConfirm"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "Confirm password."
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        id: "createDMPasswordConfirm",
        type: "password",
        placeholder: "Confirm password",
        onChange: this.handleFieldChange,
        value: createDMPasswordConfirm,
        className: errObj.createDMPasswordConfirm ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createDBCheckbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "Confirm password."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Checkbox"], {
        id: "createDBCheckbox",
        checked: createDBCheckbox,
        onChange: this.handleFieldChange
      }, "Create Database"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        className: "ds-margin-top-lg",
        controlId: "createDBSuffix"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "Database suffix, like 'dc=example,dc=com'. The suffix must be a valid LDAP Distiguished Name (DN)"
      }, "Database Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        type: "text",
        id: "createDBSuffix",
        placeholder: "e.g. dc=example,dc=com",
        onChange: this.handleFieldChange,
        value: createDBSuffix,
        disabled: !createDBCheckbox,
        className: errObj.createDBSuffix ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        controlId: "createDBName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5,
        title: "The name for the backend database, like 'userroot'. The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
      }, "Database Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        type: "text",
        id: "createDBName",
        placeholder: "e.g. userRoot",
        onChange: this.handleFieldChange,
        value: createDBName,
        disabled: !createDBCheckbox,
        className: errObj.createDBName ? "ds-input-bad" : ""
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormGroup"], {
        key: "createInitDB",
        controlId: "createInitDB"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
        sm: 5
      }, "Database Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "createInitDB",
        onChange: this.handleFieldChange,
        disabled: !createDBCheckbox,
        value: createInitDB
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
        value: "noInit"
      }, "Do Not Initialize Database"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
        value: "createSuffix"
      }, "Create Suffix Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
        value: "createSample"
      }, "Create Sample Entries"))))), createSpinner), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.createInstance,
        disabled: !createOK
      }, "Create Instance"))));
    }
  }]);

  return CreateInstanceModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var SchemaReloadModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(SchemaReloadModal, _React$Component2);

  var _super2 = _createSuper(SchemaReloadModal);

  function SchemaReloadModal(props) {
    var _this3;

    _classCallCheck(this, SchemaReloadModal);

    _this3 = _super2.call(this, props);
    _this3.state = {
      reloadSchemaDir: "",
      loadingSchemaTask: false
    };
    _this3.reloadSchema = _this3.reloadSchema.bind(_assertThisInitialized(_this3));
    _this3.handleFieldChange = _this3.handleFieldChange.bind(_assertThisInitialized(_this3));
    return _this3;
  }

  _createClass(SchemaReloadModal, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "reloadSchema",
    value: function reloadSchema(e) {
      var _this4 = this;

      var _this$props3 = this.props,
          addNotification = _this$props3.addNotification,
          serverId = _this$props3.serverId,
          closeHandler = _this$props3.closeHandler;
      var reloadSchemaDir = this.state.reloadSchemaDir;
      this.setState({
        loadingSchemaTask: true
      });
      var cmd = ["dsconf", "-j", serverId, "schema", "reload", "--wait"];

      if (reloadSchemaDir !== "") {
        cmd = [].concat(_toConsumableArray(cmd), ["--schemadir", reloadSchemaDir]);
      }

      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("reloadSchemaDir", "Reload schema files", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (data) {
        addNotification("success", "Successfully reloaded schema");

        _this4.setState({
          loadingSchemaTask: false
        });

        closeHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        addNotification("error", "Failed to reload schema files - ".concat(errMsg.desc));
        closeHandler();
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state3 = this.state,
          loadingSchemaTask = _this$state3.loadingSchemaTask,
          reloadSchemaDir = _this$state3.reloadSchemaDir;
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler;
      var spinner = "";

      if (loadingSchemaTask) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Reloading schema files..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Title, null, "Reload Schema Files")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
        title: "The name of the database link."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Schema File Directory:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
        type: "text",
        id: "reloadSchemaDir",
        value: reloadSchemaDir,
        onChange: this.handleFieldChange
      }))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.reloadSchema
      }, "Reload Schema"))));
    }
  }]);

  return SchemaReloadModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var ManageBackupsModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(ManageBackupsModal, _React$Component3);

  var _super3 = _createSuper(ManageBackupsModal);

  function ManageBackupsModal(props) {
    var _this5;

    _classCallCheck(this, ManageBackupsModal);

    _this5 = _super3.call(this, props);
    _this5.state = {
      activeKey: 1,
      showConfirmBackupDelete: false,
      showConfirmBackup: false,
      showConfirmRestore: false,
      showConfirmRestoreReplace: false,
      showConfirmLDIFReplace: false,
      showRestoreSpinningModal: false,
      showDelBackupSpinningModal: false,
      showBackupModal: false,
      backupSpinning: false,
      backupName: "",
      deleteBackup: "",
      errObj: {}
    };
    _this5.handleNavSelect = _this5.handleNavSelect.bind(_assertThisInitialized(_this5));
    _this5.handleChange = _this5.handleChange.bind(_assertThisInitialized(_this5)); // Backups

    _this5.doBackup = _this5.doBackup.bind(_assertThisInitialized(_this5));
    _this5.deleteBackup = _this5.deleteBackup.bind(_assertThisInitialized(_this5));
    _this5.restoreBackup = _this5.restoreBackup.bind(_assertThisInitialized(_this5));
    _this5.showConfirmRestore = _this5.showConfirmRestore.bind(_assertThisInitialized(_this5));
    _this5.closeConfirmRestore = _this5.closeConfirmRestore.bind(_assertThisInitialized(_this5));
    _this5.showConfirmBackup = _this5.showConfirmBackup.bind(_assertThisInitialized(_this5));
    _this5.closeConfirmBackup = _this5.closeConfirmBackup.bind(_assertThisInitialized(_this5));
    _this5.showConfirmBackupDelete = _this5.showConfirmBackupDelete.bind(_assertThisInitialized(_this5));
    _this5.closeConfirmBackupDelete = _this5.closeConfirmBackupDelete.bind(_assertThisInitialized(_this5));
    _this5.showBackupModal = _this5.showBackupModal.bind(_assertThisInitialized(_this5));
    _this5.closeBackupModal = _this5.closeBackupModal.bind(_assertThisInitialized(_this5));
    _this5.showRestoreSpinningModal = _this5.showRestoreSpinningModal.bind(_assertThisInitialized(_this5));
    _this5.closeRestoreSpinningModal = _this5.closeRestoreSpinningModal.bind(_assertThisInitialized(_this5));
    _this5.showDelBackupSpinningModal = _this5.showDelBackupSpinningModal.bind(_assertThisInitialized(_this5));
    _this5.closeDelBackupSpinningModal = _this5.closeDelBackupSpinningModal.bind(_assertThisInitialized(_this5));
    _this5.validateBackup = _this5.validateBackup.bind(_assertThisInitialized(_this5));
    _this5.closeConfirmRestoreReplace = _this5.closeConfirmRestoreReplace.bind(_assertThisInitialized(_this5));
    return _this5;
  }

  _createClass(ManageBackupsModal, [{
    key: "closeExportModal",
    value: function closeExportModal() {
      this.setState({
        showExportModal: false
      });
    }
  }, {
    key: "showDelBackupSpinningModal",
    value: function showDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: true
      });
    }
  }, {
    key: "closeDelBackupSpinningModal",
    value: function closeDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: false
      });
    }
  }, {
    key: "showRestoreSpinningModal",
    value: function showRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: true
      });
    }
  }, {
    key: "closeRestoreSpinningModal",
    value: function closeRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: false
      });
    }
  }, {
    key: "showBackupModal",
    value: function showBackupModal() {
      this.setState({
        showBackupModal: true,
        backupSpinning: false,
        backupName: ""
      });
    }
  }, {
    key: "closeBackupModal",
    value: function closeBackupModal() {
      this.setState({
        showBackupModal: false
      });
    }
  }, {
    key: "showConfirmBackup",
    value: function showConfirmBackup(item) {
      // call deleteLDIF
      this.setState({
        showConfirmBackup: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackup",
    value: function closeConfirmBackup() {
      // call importLDIF
      this.setState({
        showConfirmBackup: false
      });
    }
  }, {
    key: "showConfirmRestore",
    value: function showConfirmRestore(item) {
      this.setState({
        showConfirmRestore: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmRestore",
    value: function closeConfirmRestore() {
      // call importLDIF
      this.setState({
        showConfirmRestore: false
      });
    }
  }, {
    key: "showConfirmBackupDelete",
    value: function showConfirmBackupDelete(item) {
      // calls deleteBackup
      this.setState({
        showConfirmBackupDelete: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackupDelete",
    value: function closeConfirmBackupDelete() {
      // call importLDIF
      this.setState({
        showConfirmBackupDelete: false
      });
    }
  }, {
    key: "closeConfirmRestoreReplace",
    value: function closeConfirmRestoreReplace() {
      this.setState({
        showConfirmRestoreReplace: false
      });
    }
  }, {
    key: "validateBackup",
    value: function validateBackup() {
      for (var i = 0; i < this.props.backups.length; i++) {
        if (this.state.backupName == this.props.backups[i]["name"]) {
          this.setState({
            showConfirmRestoreReplace: true
          });
          return;
        }
      }

      this.doBackup();
    }
  }, {
    key: "doBackup",
    value: function doBackup() {
      var _this6 = this;

      this.setState({
        backupSpinning: true
      });
      var cmd = ["dsctl", "-j", this.props.serverId, "status"];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true
      }).done(function (status_data) {
        var status_json = JSON.parse(status_data);

        if (status_json.running == true) {
          var _cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this6.props.serverId + ".socket", "backup", "create"];

          if (_this6.state.backupName != "") {
            if (Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["bad_file_name"])(_this6.state.backupName)) {
              _this6.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");

              return;
            }

            _cmd.push(_this6.state.backupName);
          }

          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("doBackup", "Add backup task online", _cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(_cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            _this6.props.reload();

            _this6.closeBackupModal();

            _this6.props.addNotification("success", "Server has been backed up");
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.reload();

            _this6.closeBackupModal();

            _this6.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
          });
        } else {
          var _cmd2 = ["dsctl", "-j", _this6.props.serverId, "db2bak"];

          if (_this6.state.backupName != "") {
            if (Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["bad_file_name"])(_this6.state.backupName)) {
              _this6.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");

              return;
            }

            _cmd2.push(_this6.state.backupName);
          }

          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("doBackup", "Doing backup of the server offline", _cmd2);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(_cmd2, {
            superuser: true
          }).done(function (content) {
            _this6.props.reload();

            _this6.closeBackupModal();

            _this6.props.addNotification("success", "Server has been backed up");
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.reload();

            _this6.closeBackupModal();

            _this6.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        console.log("Failed to check the server status", errMsg.desc);
      });
    }
  }, {
    key: "restoreBackup",
    value: function restoreBackup() {
      var _this7 = this;

      this.showRestoreSpinningModal();
      var cmd = ["dsctl", "-j", this.props.serverId, "status"];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true
      }).done(function (status_data) {
        var status_json = JSON.parse(status_data);

        if (status_json.running == true) {
          var _cmd3 = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this7.props.serverId + ".socket", "backup", "restore", _this7.state.backupName];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("restoreBackup", "Restoring server online", _cmd3);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(_cmd3, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            _this7.closeRestoreSpinningModal();

            _this7.props.addNotification("success", "Server has been restored");
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this7.closeRestoreSpinningModal();

            _this7.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
          });
        } else {
          var _cmd4 = ["dsctl", "-j", _this7.props.serverId, "bak2db", _this7.state.backupName];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("restoreBackup", "Restoring server offline", _cmd4);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(_cmd4, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            _this7.closeRestoreSpinningModal();

            _this7.props.addNotification("success", "Server has been restored");
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this7.closeRestoreSpinningModal();

            _this7.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        console.log("Failed to check the server status", errMsg.desc);
      });
    }
  }, {
    key: "deleteBackup",
    value: function deleteBackup(e) {
      var _this8 = this;

      // Show confirmation
      this.showDelBackupSpinningModal();
      var cmd = ["dsctl", "-j", this.props.serverId, "backups", "--delete", this.state.backupName];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteBackup", "Deleting backup", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this8.props.reload();

        _this8.closeDelBackupSpinningModal();

        _this8.props.addNotification("success", "Backup was successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.reload();

        _this8.closeDelBackupSpinningModal();

        _this8.props.addNotification("error", "Failure deleting backup - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState3;

      var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState3 = {}, _defineProperty(_this$setState3, e.target.id, value), _defineProperty(_this$setState3, "errObj", errObj), _this$setState3));
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          backups = _this$props5.backups,
          reload = _this$props5.reload,
          loadingBackup = _this$props5.loadingBackup;
      var backupSpinner = "";

      if (loadingBackup) {
        backupSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Creating instance..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Title, null, "Manage Backups")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_4__["BackupTable"], {
        rows: backups,
        confirmRestore: this.showConfirmRestore,
        confirmDelete: this.showConfirmBackupDelete
      })), backupSpinner), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showBackupModal,
        className: "ds-margin-top"
      }, "Create Backup"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "default",
        onClick: reload,
        className: "ds-left-margin ds-margin-top"
      }, "Refresh Backups")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_5__["BackupModal"], {
        showModal: this.state.showBackupModal,
        closeHandler: this.closeBackupModal,
        handleChange: this.handleChange,
        saveHandler: this.validateBackup,
        spinning: this.state.backupSpinning,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_5__["RestoreModal"], {
        showModal: this.state.showRestoreSpinningModal,
        closeHandler: this.closeRestoreSpinningModal,
        msg: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_5__["DeleteBackupModal"], {
        showModal: this.state.showDelBackupSpinningModal,
        closeHandler: this.closeDelBackupSpinningModal,
        msg: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestore,
        closeHandler: this.closeConfirmRestore,
        actionFunc: this.restoreBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to restore this backup?",
        msgContent: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmBackupDelete,
        closeHandler: this.closeConfirmBackupDelete,
        actionFunc: this.deleteBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to delete this backup?",
        msgContent: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestoreReplace,
        closeHandler: this.closeConfirmRestoreReplace,
        actionFunc: this.doBackup,
        msg: "Replace Existing Backup",
        msgContent: "A backup already eixsts with the same name, do you want to replace it?"
      }));
    }
  }]);

  return ManageBackupsModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Proptyes and defaults

CreateInstanceModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  loadInstanceList: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
CreateInstanceModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  loadInstanceList: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};
SchemaReloadModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
SchemaReloadModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  serverId: ""
};
ManageBackupsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ManageBackupsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  serverId: ""
};

/***/ }),

/***/ "./src/index.es6":
/*!***********************!*\
  !*** ./src/index.es6 ***!
  \***********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _patternfly_patternfly_cockpit_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./patternfly/patternfly-cockpit.scss */ "./src/patternfly/patternfly-cockpit.scss");
/* harmony import */ var _patternfly_patternfly_cockpit_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_patternfly_patternfly_cockpit_scss__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_css_ds_css__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _css_branding_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./css/branding.css */ "./src/css/branding.css");
/* harmony import */ var _css_branding_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_css_branding_css__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ds_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ds.jsx */ "./src/ds.jsx");






document.addEventListener("DOMContentLoaded", function () {
  react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ds_jsx__WEBPACK_IMPORTED_MODULE_5__["DSInstance"], {}), document.getElementById('dsinstance'));
});

/***/ }),

/***/ "./src/lib/customCollapse.jsx":
/*!************************************!*\
  !*** ./src/lib/customCollapse.jsx ***!
  \************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var CustomCollapse = /*#__PURE__*/function (_React$Component) {
  _inherits(CustomCollapse, _React$Component);

  var _super = _createSuper(CustomCollapse);

  function CustomCollapse(props) {
    var _this;

    _classCallCheck(this, CustomCollapse);

    _this = _super.call(this, props);
    _this.state = {
      open: false
    };
    return _this;
  }

  _createClass(CustomCollapse, [{
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props = this.props,
          children = _this$props.children,
          className = _this$props.className,
          textOpened = _this$props.textOpened,
          textClosed = _this$props.textClosed;
      var open = this.state.open;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("ds-accordion", className),
        onClick: function onClick() {
          _this2.setState({
            open: !open
          });
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        type: "fa",
        name: open ? "caret-down" : "caret-right"
      }), " ", open ? textOpened : textClosed), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top"
      }, open && children));
    }
  }]);

  return CustomCollapse;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CustomCollapse.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any.isRequired,

  /** Top-level custom class */
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in opened state */
  textOpened: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,

  /** Text for the link in closed state */
  textClosed: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
CustomCollapse.defaultProps = {
  className: "",
  textClosed: "Show Advanced Settings",
  textOpened: "Hide Advanced Settings"
};
/* harmony default export */ __webpack_exports__["default"] = (CustomCollapse);

/***/ }),

/***/ "./src/lib/customTableToolbar.jsx":
/*!****************************************!*\
  !*** ./src/lib/customTableToolbar.jsx ***!
  \****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var CustomTableToolbar = /*#__PURE__*/function (_React$Component) {
  _inherits(CustomTableToolbar, _React$Component);

  var _super = _createSuper(CustomTableToolbar);

  function CustomTableToolbar() {
    _classCallCheck(this, CustomTableToolbar);

    return _super.apply(this, arguments);
  }

  _createClass(CustomTableToolbar, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          children = _this$props.children,
          className = _this$props.className,
          placeholder = _this$props.placeholder,
          modelToSearch = _this$props.modelToSearch,
          searchFilterValue = _this$props.searchFilterValue,
          handleValueChange = _this$props.handleValueChange,
          disableLoadingSpinner = _this$props.disableLoadingSpinner,
          loading = _this$props.loading;
      var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()("form-group toolbar-pf-find ds-toolbar", className);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: classes
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        inline: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-float-left ds-right-indent"
      }, "Filter ", modelToSearch), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        type: "text",
        placeholder: placeholder,
        value: searchFilterValue,
        onChange: handleValueChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "toolbar-pf-action-right"
      }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "toolbar-pf-action-right ds-right-indent"
      }, !disableLoadingSpinner && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
        loading: loading,
        size: "md"
      }))));
    }
  }]);

  return CustomTableToolbar;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

CustomTableToolbar.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.any,
  className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  modelToSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  searchFilterValue: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleValueChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  disableLoadingSpinner: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool
};
CustomTableToolbar.defaultProps = {
  className: "",
  placeholder: "",
  modelToSearch: "",
  searchFilterValue: "",
  handleValueChange: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  loading: false,
  disableLoadingSpinner: false
};
/* harmony default export */ __webpack_exports__["default"] = (CustomTableToolbar);

/***/ }),

/***/ "./src/lib/database/attrEncryption.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/attrEncryption.jsx ***!
  \*********************************************/
/*! exports provided: AttrEncryption */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttrEncryption", function() { return AttrEncryption; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var AttrEncryption = /*#__PURE__*/function (_React$Component) {
  _inherits(AttrEncryption, _React$Component);

  var _super = _createSuper(AttrEncryption);

  function AttrEncryption(props) {
    var _this;

    _classCallCheck(this, AttrEncryption);

    _this = _super.call(this, props);
    _this.state = {
      showConfirmAttrDelete: false,
      typeahead: "",
      addAttr: "",
      delAttr: ""
    }; // Delete referral and confirmation

    _this.showConfirmAttrDelete = _this.showConfirmAttrDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmAttrDelete = _this.closeConfirmAttrDelete.bind(_assertThisInitialized(_this));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_this));
    _this.addEncryptedAttr = _this.addEncryptedAttr.bind(_assertThisInitialized(_this));
    _this.delEncryptedAttr = _this.delEncryptedAttr.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(AttrEncryption, [{
    key: "showConfirmAttrDelete",
    value: function showConfirmAttrDelete(item) {
      this.setState({
        showConfirmAttrDelete: true,
        delAttr: item.name
      });
    }
  }, {
    key: "closeConfirmAttrDelete",
    value: function closeConfirmAttrDelete() {
      this.setState({
        showConfirmAttrDelete: false
      });
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(value) {
      this.setState({
        addAttr: value
      });
    }
  }, {
    key: "addEncryptedAttr",
    value: function addEncryptedAttr() {
      var _this2 = this;

      // reset typeahead input field
      this.typeahead.getInstance().clear();

      if (this.state.addAttr == "") {
        return;
      } // Add the new encrypted attr


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--add-attr=" + this.state.addAttr, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("addEncryptedAttr", "Delete suffix referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("success", "Successfully added encrypted attribute");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("error", "Failed to delete encrypted attribute - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "delEncryptedAttr",
    value: function delEncryptedAttr() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--del-attr=" + this.state.delAttr, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("delEncryptedAttr", "Delete encrypted attribute", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("success", "Encrypted attribute successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("error", "Failure deleting encrypted attribute - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var delAttr = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.delAttr); // Update the available list of attrs for the Typeahead

      var fullList = [];
      var attrs = [];

      var _iterator = _createForOfIteratorHelper(this.props.rows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var attrProp = _step.value;
          fullList.push(attrProp.name);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(this.props.attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var attr = _step2.value;

          if (fullList.indexOf(attr) == -1) {
            attrs.push(attr);
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["EncryptedAttrTable"], {
        rows: this.props.rows,
        loadModalHandler: this.showConfirmAttrDelete
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
        id: "attrEncrypt",
        onChange: function onChange(value) {
          _this4.handleTypeaheadChange(value);
        },
        maxResults: 1000,
        options: attrs,
        placeholder: "Type attribute name to be encrypted",
        ref: function ref(typeahead) {
          _this4.typeahead = typeahead;
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3,
        bsClass: "ds-no-padding"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.addEncryptedAttr
      }, "Add Attribute"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmAttrDelete,
        closeHandler: this.closeConfirmAttrDelete,
        actionFunc: this.delEncryptedAttr,
        actionParam: this.state.attrName,
        msg: "Are you sure you want to remove this encrypted attribute?",
        msgContent: delAttr
      }));
    }
  }]);

  return AttrEncryption;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

AttrEncryption.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
AttrEncryption.defaultProps = {
  rows: [],
  suffix: "",
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  attrs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/backups.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/backups.jsx ***!
  \**************************************/
/*! exports provided: Backups, BackupModal, RestoreModal, DeleteBackupModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Backups", function() { return Backups; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackupModal", function() { return BackupModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestoreModal", function() { return RestoreModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DeleteBackupModal", function() { return DeleteBackupModal; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var Backups = /*#__PURE__*/function (_React$Component) {
  _inherits(Backups, _React$Component);

  var _super = _createSuper(Backups);

  function Backups(props) {
    var _this;

    _classCallCheck(this, Backups);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1,
      showConfirmBackupDelete: false,
      showConfirmBackup: false,
      showConfirmRestoreReplace: false,
      showConfirmLDIFReplace: false,
      showRestoreSpinningModal: false,
      showDelBackupSpinningModal: false,
      showBackupModal: false,
      backupSpinning: false,
      backupName: "",
      deleteBackup: "",
      // LDIF
      showConfirmLDIFDelete: false,
      showConfirmLDIFImport: false,
      showConfirmRestore: false,
      showLDIFSpinningModal: false,
      showLDIFDeleteSpinningModal: false,
      showExportModal: false,
      exportSpinner: false,
      includeReplData: false,
      ldifName: "",
      ldifSuffix: "",
      errObj: {}
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this)); // Backups

    _this.doBackup = _this.doBackup.bind(_assertThisInitialized(_this));
    _this.deleteBackup = _this.deleteBackup.bind(_assertThisInitialized(_this));
    _this.restoreBackup = _this.restoreBackup.bind(_assertThisInitialized(_this));
    _this.showConfirmRestore = _this.showConfirmRestore.bind(_assertThisInitialized(_this));
    _this.closeConfirmRestore = _this.closeConfirmRestore.bind(_assertThisInitialized(_this));
    _this.showConfirmBackup = _this.showConfirmBackup.bind(_assertThisInitialized(_this));
    _this.closeConfirmBackup = _this.closeConfirmBackup.bind(_assertThisInitialized(_this));
    _this.showConfirmBackupDelete = _this.showConfirmBackupDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmBackupDelete = _this.closeConfirmBackupDelete.bind(_assertThisInitialized(_this));
    _this.showBackupModal = _this.showBackupModal.bind(_assertThisInitialized(_this));
    _this.closeBackupModal = _this.closeBackupModal.bind(_assertThisInitialized(_this));
    _this.showRestoreSpinningModal = _this.showRestoreSpinningModal.bind(_assertThisInitialized(_this));
    _this.closeRestoreSpinningModal = _this.closeRestoreSpinningModal.bind(_assertThisInitialized(_this));
    _this.showDelBackupSpinningModal = _this.showDelBackupSpinningModal.bind(_assertThisInitialized(_this));
    _this.closeDelBackupSpinningModal = _this.closeDelBackupSpinningModal.bind(_assertThisInitialized(_this));
    _this.validateBackup = _this.validateBackup.bind(_assertThisInitialized(_this));
    _this.closeConfirmRestoreReplace = _this.closeConfirmRestoreReplace.bind(_assertThisInitialized(_this)); // LDIFS

    _this.importLDIF = _this.importLDIF.bind(_assertThisInitialized(_this));
    _this.deleteLDIF = _this.deleteLDIF.bind(_assertThisInitialized(_this));
    _this.showConfirmLDIFImport = _this.showConfirmLDIFImport.bind(_assertThisInitialized(_this));
    _this.closeConfirmLDIFImport = _this.closeConfirmLDIFImport.bind(_assertThisInitialized(_this));
    _this.showConfirmLDIFDelete = _this.showConfirmLDIFDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmLDIFDelete = _this.closeConfirmLDIFDelete.bind(_assertThisInitialized(_this));
    _this.showLDIFSpinningModal = _this.showLDIFSpinningModal.bind(_assertThisInitialized(_this));
    _this.showLDIFDeleteSpinningModal = _this.showLDIFDeleteSpinningModal.bind(_assertThisInitialized(_this));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_this));
    _this.showExportModal = _this.showExportModal.bind(_assertThisInitialized(_this));
    _this.closeExportModal = _this.closeExportModal.bind(_assertThisInitialized(_this));
    _this.validateLDIF = _this.validateLDIF.bind(_assertThisInitialized(_this));
    _this.closeConfirmLDIFReplace = _this.closeConfirmLDIFReplace.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Backups, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "showExportModal",
    value: function showExportModal() {
      this.setState({
        showExportModal: true,
        exportSpinner: false,
        ldifName: "",
        ldifSuffix: this.props.suffixes[0],
        includeReplData: false
      });
    }
  }, {
    key: "closeExportModal",
    value: function closeExportModal() {
      this.setState({
        showExportModal: false
      });
    }
  }, {
    key: "closeConfirmLDIFReplace",
    value: function closeConfirmLDIFReplace() {
      this.setState({
        showConfirmLDIFReplace: false
      });
    }
  }, {
    key: "showLDIFSpinningModal",
    value: function showLDIFSpinningModal() {
      this.setState({
        showLDIFSpinningModal: true
      });
    }
  }, {
    key: "closeLDIFSpinningModal",
    value: function closeLDIFSpinningModal() {
      this.setState({
        showLDIFSpinningModal: false
      });
    }
  }, {
    key: "showLDIFDeleteSpinningModal",
    value: function showLDIFDeleteSpinningModal() {
      this.setState({
        showLDIFDeleteSpinningModal: true
      });
    }
  }, {
    key: "closeLDIFDeleteSpinningModal",
    value: function closeLDIFDeleteSpinningModal() {
      this.setState({
        showLDIFDeleteSpinningModal: false
      });
    }
  }, {
    key: "showDelBackupSpinningModal",
    value: function showDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: true
      });
    }
  }, {
    key: "closeDelBackupSpinningModal",
    value: function closeDelBackupSpinningModal() {
      this.setState({
        showDelBackupSpinningModal: false
      });
    }
  }, {
    key: "showRestoreSpinningModal",
    value: function showRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: true
      });
    }
  }, {
    key: "closeRestoreSpinningModal",
    value: function closeRestoreSpinningModal() {
      this.setState({
        showRestoreSpinningModal: false
      });
    }
  }, {
    key: "showBackupModal",
    value: function showBackupModal() {
      this.setState({
        showBackupModal: true,
        backupSpinning: false,
        backupName: ""
      });
    }
  }, {
    key: "closeBackupModal",
    value: function closeBackupModal() {
      this.setState({
        showBackupModal: false
      });
    }
  }, {
    key: "showConfirmLDIFImport",
    value: function showConfirmLDIFImport(item) {
      this.setState({
        showConfirmLDIFImport: true,
        ldifName: item.name,
        ldifSuffix: item.suffix[0]
      });
    }
  }, {
    key: "closeConfirmLDIFImport",
    value: function closeConfirmLDIFImport() {
      // call importLDIF
      this.setState({
        showConfirmLDIFImport: false
      });
    }
  }, {
    key: "showConfirmLDIFDelete",
    value: function showConfirmLDIFDelete(item) {
      // call deleteLDIF
      this.setState({
        showConfirmLDIFDelete: true,
        ldifName: item.name
      });
    }
  }, {
    key: "closeConfirmLDIFDelete",
    value: function closeConfirmLDIFDelete() {
      // call importLDIF
      this.setState({
        showConfirmLDIFDelete: false
      });
    }
  }, {
    key: "showConfirmBackup",
    value: function showConfirmBackup(item) {
      // call deleteLDIF
      this.setState({
        showConfirmBackup: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackup",
    value: function closeConfirmBackup() {
      // call importLDIF
      this.setState({
        showConfirmBackup: false
      });
    }
  }, {
    key: "showConfirmRestore",
    value: function showConfirmRestore(item) {
      this.setState({
        showConfirmRestore: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmRestore",
    value: function closeConfirmRestore() {
      // call importLDIF
      this.setState({
        showConfirmRestore: false
      });
    }
  }, {
    key: "showConfirmBackupDelete",
    value: function showConfirmBackupDelete(item) {
      // calls deleteBackup
      this.setState({
        showConfirmBackupDelete: true,
        backupName: item.name
      });
    }
  }, {
    key: "closeConfirmBackupDelete",
    value: function closeConfirmBackupDelete() {
      // call importLDIF
      this.setState({
        showConfirmBackupDelete: false
      });
    }
  }, {
    key: "closeConfirmRestoreReplace",
    value: function closeConfirmRestoreReplace() {
      this.setState({
        showConfirmRestoreReplace: false
      });
    }
  }, {
    key: "importLDIF",
    value: function importLDIF() {
      var _this2 = this;

      this.showLDIFSpinningModal();
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.state.ldifSuffix, this.state.ldifName, "--encrypted"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("importLDIF", "Importing LDIF", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.closeLDIFSpinningModal();

        _this2.props.addNotification("success", "LDIF was successfully imported");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.closeLDIFSpinningModal();

        _this2.props.addNotification("error", "Failure importing LDIF - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteLDIF",
    value: function deleteLDIF(e) {
      var _this3 = this;

      this.showLDIFDeleteSpinningModal();
      var cmd = ["dsctl", this.props.serverId, "ldifs", "--delete", this.state.ldifName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteLDIF", "Deleting LDIF", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.closeLDIFDeleteSpinningModal();

        _this3.props.addNotification("success", "LDIF file was successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.closeLDIFDeleteSpinningModal();

        _this3.props.addNotification("error", "Failure deleting LDIF file - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "validateBackup",
    value: function validateBackup() {
      for (var i = 0; i < this.props.backups.length; i++) {
        if (this.state.backupName == this.props.backups[i]['name']) {
          this.setState({
            showConfirmRestoreReplace: true
          });
          return;
        }
      }

      this.doBackup();
    }
  }, {
    key: "doBackup",
    value: function doBackup() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "create"];

      if (this.state.backupName != "") {
        if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["bad_file_name"])(this.state.backupName)) {
          this.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");
          return;
        }

        cmd.push(this.state.backupName);
      }

      this.setState({
        backupSpinning: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("doBackup", "Add backup task", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload();

        _this4.closeBackupModal();

        _this4.props.addNotification("success", "Server has been backed up");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload();

        _this4.closeBackupModal();

        _this4.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "restoreBackup",
    value: function restoreBackup() {
      var _this5 = this;

      if (this.props.suffixes.length == 0) {
        this.props.addNotification("error", "There are no databases defined to restore");
        return;
      }

      this.showRestoreSpinningModal();
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "restore", this.state.backupName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("restoreBackup", "Restoring server", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.closeRestoreSpinningModal();

        _this5.props.addNotification("success", "Server has been restored");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.closeRestoreSpinningModal();

        _this5.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteBackup",
    value: function deleteBackup(e) {
      var _this6 = this;

      // Show confirmation
      this.showDelBackupSpinningModal();
      var cmd = ["dsctl", this.props.serverId, "backups", "--delete", this.state.backupName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteBackup", "Deleting backup", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload();

        _this6.closeDelBackupSpinningModal();

        _this6.props.addNotification("success", "Backup was successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload();

        _this6.closeDelBackupSpinningModal();

        _this6.props.addNotification("error", "Failure deleting backup - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "validateLDIF",
    value: function validateLDIF() {
      var ldifname = this.state.ldifName;

      if (!ldifname.endsWith(".ldif")) {
        // dsconf/dsctl adds ".ldif" if not set, so that's what we need to check
        ldifname = ldifname + ".ldif";
      }

      for (var i = 0; i < this.props.ldifs.length; i++) {
        if (ldifname == this.props.ldifs[i]['name']) {
          this.setState({
            showConfirmLDIFReplace: true
          });
          return;
        }
      }

      this.doExport();
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this7 = this;

      var missingArgs = {
        ldifName: false
      };

      if (this.state.ldifName == "") {
        this.props.addNotification("warning", "LDIF name is empty");
        missingArgs.ldifName = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Must not be a path


      if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["bad_file_name"])(this.state.ldifName)) {
        this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Do import


      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.state.ldifSuffix, "--encrypted", "--ldif=" + this.state.ldifName];

      if (this.state.includeReplData) {
        export_cmd.push("--replication");
      }

      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("doExport", "Do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this7.props.reload();

        _this7.closeExportModal();

        _this7.props.addNotification("success", "Database export complete");

        _this7.setState({
          showExportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.reload();

        _this7.closeExportModal();

        _this7.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this7.setState({
          showExportModal: false
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Backups'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'LDIFs'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["BackupTable"], {
        rows: this.props.backups,
        confirmRestore: this.showConfirmRestore,
        confirmDelete: this.showConfirmBackupDelete
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.showBackupModal,
        className: "ds-margin-top"
      }, "Create Backup"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        onClick: this.props.reload,
        className: "ds-left-margin ds-margin-top"
      }, "Refresh Backups"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["LDIFManageTable"], {
        rows: this.props.ldifs,
        confirmImport: this.showConfirmLDIFImport,
        confirmDelete: this.showConfirmLDIFDelete
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.showExportModal,
        className: "ds-margin-top"
      }, "Create LDIF Export"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        onClick: this.props.reload,
        className: "ds-left-margin ds-margin-top"
      }, "Refresh LDIFs")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ExportModal, {
        showModal: this.state.showExportModal,
        closeHandler: this.closeExportModal,
        handleChange: this.handleChange,
        saveHandler: this.validateLDIF,
        spinning: this.state.exportSpinner,
        error: this.state.errObj,
        suffixes: this.props.suffixes
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(BackupModal, {
        showModal: this.state.showBackupModal,
        closeHandler: this.closeBackupModal,
        handleChange: this.handleChange,
        saveHandler: this.validateBackup,
        spinning: this.state.backupSpinning,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(RestoreModal, {
        showModal: this.state.showRestoreSpinningModal,
        closeHandler: this.closeRestoreSpinningModal,
        msg: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DeleteBackupModal, {
        showModal: this.state.showDelBackupSpinningModal,
        closeHandler: this.closeDelBackupSpinningModal,
        msg: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ImportingModal, {
        showModal: this.state.showLDIFSpinningModal,
        closeHandler: this.closeLDIFSpinningModal,
        msg: this.state.ldifName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DeletingLDIFModal, {
        showModal: this.state.showLDIFDeleteSpinningModal,
        closeHandler: this.closeLDIFDeleteSpinningModal,
        msg: this.state.ldifName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFDelete,
        closeHandler: this.closeConfirmLDIFDelete,
        actionFunc: this.deleteLDIF,
        actionParam: this.state.ldifName,
        msg: "Are you sure you want to delete this LDIF?",
        msgContent: this.state.ldifName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFImport,
        closeHandler: this.closeConfirmLDIFImport,
        actionFunc: this.importLDIF,
        actionParam: this.state.ldifName,
        msg: "Are you sure you want to import this LDIF?",
        msgContent: this.state.ldifName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestore,
        closeHandler: this.closeConfirmRestore,
        actionFunc: this.restoreBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to restore this backup?",
        msgContent: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmBackupDelete,
        closeHandler: this.closeConfirmBackupDelete,
        actionFunc: this.deleteBackup,
        actionParam: this.state.backupName,
        msg: "Are you sure you want to delete this backup?",
        msgContent: this.state.backupName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRestoreReplace,
        closeHandler: this.closeConfirmRestoreReplace,
        actionFunc: this.doBackup,
        msg: "Replace Existing Backup",
        msgContent: "A backup already eixsts with the same name, do you want to replace it?"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmLDIFReplace,
        closeHandler: this.closeConfirmLDIFReplace,
        actionFunc: this.doExport,
        msg: "Replace Existing LDIF File",
        msgContent: "A LDIF file already eixsts with the same name, do you want to replace it?"
      }));
    }
  }]);

  return Backups;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var ExportModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(ExportModal, _React$Component2);

  var _super2 = _createSuper(ExportModal);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _super2.apply(this, arguments);
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          suffixes = _this$props.suffixes,
          spinning = _this$props.spinning,
          error = _this$props.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Exporting database... ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      var suffixList = suffixes.map(function (suffix) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: suffix,
          value: suffix
        }, suffix);
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Export Database To LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Select Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "ldifSuffix",
        onChange: handleChange
      }, suffixList))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Name of exported LDIF file, if left blank the data and time will be used as the file name"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "LDIF File Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
        type: "text",
        id: "ldifName",
        className: error.ldifName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12,
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        id: "includeReplData",
        onChange: handleChange,
        title: "Include the replication metadata needed to restore or initialize another replica."
      }, "Include Replication Data"))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create LDIF"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var BackupModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(BackupModal, _React$Component3);

  var _super3 = _createSuper(BackupModal);

  function BackupModal() {
    _classCallCheck(this, BackupModal);

    return _super3.apply(this, arguments);
  }

  _createClass(BackupModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          spinning = _this$props2.spinning,
          error = _this$props2.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Backing up databases... ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Backup The Server")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "Backup name, if left blank the date and time will be used as the name"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Backup Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
        type: "text",
        id: "backupName",
        className: error.backupName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Backup"))));
    }
  }]);

  return BackupModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var RestoreModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(RestoreModal, _React$Component4);

  var _super4 = _createSuper(RestoreModal);

  function RestoreModal() {
    _classCallCheck(this, RestoreModal);

    return _super4.apply(this, arguments);
  }

  _createClass(RestoreModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          msg = _this$props3.msg;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Restoring Server From Backup")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Restoring backup ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return RestoreModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var DeleteBackupModal = /*#__PURE__*/function (_React$Component5) {
  _inherits(DeleteBackupModal, _React$Component5);

  var _super5 = _createSuper(DeleteBackupModal);

  function DeleteBackupModal() {
    _classCallCheck(this, DeleteBackupModal);

    return _super5.apply(this, arguments);
  }

  _createClass(DeleteBackupModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          msg = _this$props4.msg;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Delete Backup")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Deleting backup ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return DeleteBackupModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var ImportingModal = /*#__PURE__*/function (_React$Component6) {
  _inherits(ImportingModal, _React$Component6);

  var _super6 = _createSuper(ImportingModal);

  function ImportingModal() {
    _classCallCheck(this, ImportingModal);

    return _super6.apply(this, arguments);
  }

  _createClass(ImportingModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          msg = _this$props5.msg;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Import LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Importing LDIF ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ImportingModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var DeletingLDIFModal = /*#__PURE__*/function (_React$Component7) {
  _inherits(DeletingLDIFModal, _React$Component7);

  var _super7 = _createSuper(DeletingLDIFModal);

  function DeletingLDIFModal() {
    _classCallCheck(this, DeletingLDIFModal);

    return _super7.apply(this, arguments);
  }

  _createClass(DeletingLDIFModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          showModal = _this$props6.showModal,
          closeHandler = _this$props6.closeHandler,
          msg = _this$props6.msg;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Delete LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        loading: true,
        inline: true,
        size: "md"
      }), " Deleting LDIF file ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "2"
      }, " (You can safely close this window)"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return DeletingLDIFModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Properties and defaults


ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  suffixes: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
BackupModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object
};
DeletingLDIFModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
RestoreModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
DeleteBackupModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
ImportingModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
Backups.propTypes = {
  backups: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  ldifs: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
Backups.defaultProps = {
  backups: [],
  ldifs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/chaining.jsx":
/*!***************************************!*\
  !*** ./src/lib/database/chaining.jsx ***!
  \***************************************/
/*! exports provided: ChainingDatabaseConfig, ChainingConfig, ChainControlsModal, ChainCompsModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingDatabaseConfig", function() { return ChainingDatabaseConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingConfig", function() { return ChainingConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainControlsModal", function() { return ChainControlsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainCompsModal", function() { return ChainCompsModal; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







 //
// This component is the global chaining & default configuration
//

var ChainingDatabaseConfig = /*#__PURE__*/function (_React$Component) {
  _inherits(ChainingDatabaseConfig, _React$Component);

  var _super = _createSuper(ChainingDatabaseConfig);

  function ChainingDatabaseConfig(props) {
    var _this;

    _classCallCheck(this, ChainingDatabaseConfig);

    _this = _super.call(this, props);
    _this.state = {
      oids: _this.props.data.oids,
      oidList: _this.props.data.oidList,
      availableOids: _this.props.data.availableOids,
      comps: _this.props.data.comps,
      compList: _this.props.data.compList,
      availableComps: _this.props.data.availableComps,
      selectedOids: _this.props.data.selectedOids,
      selectedComps: _this.props.data.selectedComps,
      removeOids: _this.props.data.removeOids,
      removeComps: _this.props.data.removeComps,
      showConfirmCompDelete: false,
      showConfirmOidDelete: false,
      showOidModal: false,
      showCompsModal: false,
      // Chaining config settings
      defSearchCheck: _this.props.data.defSearchCheck,
      defBindConnLimit: _this.props.data.defBindConnLimit,
      defBindTimeout: _this.props.data.defBindTimeout,
      defBindRetryLimit: _this.props.data.defBindRetryLimit,
      defConcurLimit: _this.props.data.defConcurLimit,
      defConcurOpLimit: _this.props.data.defConcurOpLimit,
      defConcurBindLimit: _this.props.data.defConcurBindLimit,
      defConnLife: _this.props.data.defConnLife,
      defHopLimit: _this.props.data.defHopLimit,
      defDelay: _this.props.data.defDelay,
      defTestDelay: _this.props.data.defTestDelay,
      defOpConnLimit: _this.props.data.defOpConnLimit,
      defSizeLimit: _this.props.data.defSizeLimit,
      defTimeLimit: _this.props.data.defTimeLimit,
      defProxy: _this.props.data.defProxy,
      defRefOnScoped: _this.props.data.defRefOnScoped,
      defCheckAci: _this.props.data.defCheckAci,
      defUseStartTLS: _this.props.data.defUseStartTLS,
      // Original values used for saving config
      _defSearchCheck: _this.props.data.defSearchCheck,
      _defBindConnLimit: _this.props.data.defBindConnLimit,
      _defBindTimeout: _this.props.data.defBindTimeout,
      _defBindRetryLimit: _this.props.data.defBindRetryLimit,
      _defConcurLimit: _this.props.data.defConcurLimit,
      _defConcurOpLimit: _this.props.data.defConcurOpLimit,
      _defConnLife: _this.props.data.defConnLife,
      _defHopLimit: _this.props.data.defHopLimit,
      _defDelay: _this.props.data.defDelay,
      _defTestDelay: _this.props.data.defTestDelay,
      _defOpConnLimit: _this.props.data.defOpConnLimit,
      _defSizeLimit: _this.props.data.defSizeLimit,
      _defTimeLimit: _this.props.data.defTimeLimit,
      _defProxy: _this.props.data.defProxy,
      _defRefOnScoped: _this.props.data.defRefOnScoped,
      _defCheckAci: _this.props.data.defCheckAci,
      _defUseStartTLS: _this.props.data.defUseStartTLS
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.save_chaining_config = _this.save_chaining_config.bind(_assertThisInitialized(_this)); // Chaining Control OIDs

    _this.showOidModal = _this.showOidModal.bind(_assertThisInitialized(_this));
    _this.closeOidModal = _this.closeOidModal.bind(_assertThisInitialized(_this));
    _this.handleOidChange = _this.handleOidChange.bind(_assertThisInitialized(_this));
    _this.saveOids = _this.saveOids.bind(_assertThisInitialized(_this));
    _this.deleteOids = _this.deleteOids.bind(_assertThisInitialized(_this));
    _this.handleSelectOids = _this.handleSelectOids.bind(_assertThisInitialized(_this)); // Chaining comps

    _this.showCompsModal = _this.showCompsModal.bind(_assertThisInitialized(_this));
    _this.closeCompsModal = _this.closeCompsModal.bind(_assertThisInitialized(_this));
    _this.handleCompsChange = _this.handleCompsChange.bind(_assertThisInitialized(_this));
    _this.saveComps = _this.saveComps.bind(_assertThisInitialized(_this));
    _this.deleteComps = _this.deleteComps.bind(_assertThisInitialized(_this));
    _this.handleSelectComps = _this.handleSelectComps.bind(_assertThisInitialized(_this));
    _this.showConfirmDelete = _this.showConfirmDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmOidDelete = _this.closeConfirmOidDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmCompDelete = _this.closeConfirmCompDelete.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ChainingDatabaseConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      // Generic
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "save_chaining_config",
    value: function save_chaining_config() {
      var _this2 = this;

      // Build up the command list
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'chaining', 'config-set-def'];
      var val = "";

      if (this.state._defUseStartTLS != this.state.defUseStartTLS) {
        val = "off";

        if (this.state.defUseStartTLS) {
          val = "on";
        }

        cmd.push("--use-starttls=" + val);
      }

      if (this.state._defCheckAci != this.state.defCheckAci) {
        val = "off";

        if (this.state.defCheckAci) {
          val = "on";
        }

        cmd.push("--check-aci=" + val);
      }

      if (this.state._defRefOnScoped != this.state.defRefOnScoped) {
        val = "off";

        if (this.state.defRefOnScoped) {
          val = "on";
        }

        cmd.push("--return-ref=" + val);
      }

      if (this.state._defProxy != this.state.defProxy) {
        val = "off";

        if (this.state.defProxy) {
          val = "on";
        }

        cmd.push("--proxied-auth=" + val);
      }

      if (this.state._defTestDelay != this.state.defTestDelay) {
        cmd.push("--test-response-delay=" + this.state.defTestDelay);
      }

      if (this.state._defOpConnLimit != this.state.defOpConnLimit) {
        cmd.push("--conn-op-limit=" + this.state.defOpConnLimit);
      }

      if (this.state._defSizeLimit != this.state.defSizeLimit) {
        cmd.push("--size-limit=" + this.state.defSizeLimit);
      }

      if (this.state._defTimeLimit != this.state.defTimeLimit) {
        cmd.push("--time-limit=" + this.state.defTimeLimit);
      }

      if (this.state._defSearchCheck != this.state.defSearchCheck) {
        cmd.push("--abandon-check-interval=" + this.state.defSearchCheck);
      }

      if (this.state._defBindTimeout != this.state.defBindTimeout) {
        cmd.push("--bind-timeout=" + this.state.defBindTimeout);
      }

      if (this.state._defBindRetryLimit != this.state.defBindRetryLimit) {
        cmd.push("--bind-attempts=" + this.state.defBindRetryLimit);
      }

      if (this.state._defConcurLimit != this.state.defConcurLimit) {
        cmd.push("--bind-limit=" + this.state.defConcurLimit);
      }

      if (this.state._defConcurOpLimit != this.state.defConcurOpLimit) {
        cmd.push("--op-limit=" + this.state.defConcurOpLimit);
      }

      if (this.state._defConnLife != this.state.defConnLife) {
        cmd.push("--conn-lifetime=" + this.state.defConnLife);
      }

      if (this.state._defHopLimit != this.state.defHopLimit) {
        cmd.push("--hop-limit=" + this.state.defHopLimit);
      }

      if (this.state._defDelay != this.state.defDelay) {
        cmd.push("--response-delay=" + this.state.defDelay);
      }

      if (this.state._defBindConnLimit != this.state.defBindConnLimit) {
        cmd.push("--conn-bind-limit=" + this.state.defBindConnLimit);
      } // If we have chaining mods, then apply them...


      if (cmd.length > 5) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("save_chaining_config", "Applying default chaining config change", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this2.props.reload();

          _this2.props.addNotification("success", "Successfully updated chaining configuration");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.reload();

          _this2.props.addNotification("error", "Error updating chaining configuration - ".concat(errMsg.desc));
        });
      }
    } //
    // Chaining OID modal functions
    //

  }, {
    key: "showOidModal",
    value: function showOidModal() {
      this.setState({
        showOidModal: true
      });
    }
  }, {
    key: "closeOidModal",
    value: function closeOidModal() {
      this.setState({
        showOidModal: false
      });
    }
  }, {
    key: "handleOidChange",
    value: function handleOidChange(e) {
      var options = e.target.options;
      var values = [];

      var _iterator = _createForOfIteratorHelper(options),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var option = _step.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        selectedOids: values
      });
    }
  }, {
    key: "saveOids",
    value: function saveOids() {
      var _this3 = this;

      // Save chaining control oids
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];

      var _iterator2 = _createForOfIteratorHelper(this.state.selectedOids),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var oid = _step2.value;

          if (!this.state.oidList.includes(oid)) {
            cmd.push('--add-control=' + oid);
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.closeOidModal();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveOids", "Save new chaining OID controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.props.addNotification("success", "Successfully updated chaining controls");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.props.addNotification("error", "Error updating chaining controls - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleSelectOids",
    value: function handleSelectOids(e) {
      var options = e.target.options;
      var values = [];

      var _iterator3 = _createForOfIteratorHelper(options),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var option = _step3.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        removeOids: values
      });
    }
  }, {
    key: "deleteOids",
    value: function deleteOids(props) {
      var _this4 = this;

      // Remove chaining controls
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];

      var _iterator4 = _createForOfIteratorHelper(this.state.removeOids),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var oid = _step4.value;
          cmd.push('--del-control=' + oid);
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.state.removeOids = [];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteOids", "Delete chaining controls", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload();

        _this4.props.addNotification("success", "Successfully removed chaining controls");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload();

        _this4.props.addNotification("error", "Error removing chaining controls - ".concat(errMsg.desc));
      });
    } //
    // Chaining Component modal functions
    //

  }, {
    key: "showCompsModal",
    value: function showCompsModal() {
      this.setState({
        showCompsModal: true
      });
    }
  }, {
    key: "closeCompsModal",
    value: function closeCompsModal() {
      this.setState({
        showCompsModal: false
      });
    }
  }, {
    key: "handleCompsChange",
    value: function handleCompsChange(e) {
      var options = e.target.options;
      var values = [];

      var _iterator5 = _createForOfIteratorHelper(options),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var option = _step5.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.setState({
        selectedComps: values
      });
    }
  }, {
    key: "handleSelectComps",
    value: function handleSelectComps(e) {
      var options = e.target.options;
      var values = [];

      var _iterator6 = _createForOfIteratorHelper(options),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var option = _step6.value;

          if (option.selected) {
            values.push(option.value);
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      this.setState({
        removeComps: values
      });
    }
  }, {
    key: "saveComps",
    value: function saveComps() {
      var _this5 = this;

      // Save chaining control oids
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];

      var _iterator7 = _createForOfIteratorHelper(this.state.selectedComps),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var comp = _step7.value;

          if (!this.state.compList.includes(comp)) {
            cmd.push('--add-comp=' + comp);
          }
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      this.closeCompsModal();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveComps", "Save new chaining components", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.reload();

        _this5.props.addNotification("success", "Successfully updated chaining components");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.reload();

        _this5.props.addNotification("error", "Error updating chaining components - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteComps",
    value: function deleteComps(props) {
      var _this6 = this;

      // Remove chaining comps
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set"];

      var _iterator8 = _createForOfIteratorHelper(this.state.removeComps),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var comp = _step8.value;
          cmd.push('--del-comp=' + comp);
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      this.state.removeComps = [];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteComps", "Delete chaining components", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload();

        _this6.props.addNotification("success", "Successfully removed chaining components");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload();

        _this6.props.addNotification("error", "Error removing chaining components - ".concat(errMsg.desc));
      });
    } //
    // Confirm deletion functions
    //

  }, {
    key: "showConfirmDelete",
    value: function showConfirmDelete(item) {
      if (item == "oid") {
        if (this.state.removeOids.length) {
          this.setState({
            showConfirmOidDelete: true
          });
        }
      } else if (item == "comp") {
        if (this.state.removeComps.length) {
          this.setState({
            showConfirmCompDelete: true
          });
        }
      }
    }
  }, {
    key: "closeConfirmOidDelete",
    value: function closeConfirmOidDelete() {
      this.setState({
        showConfirmOidDelete: false
      });
    }
  }, {
    key: "closeConfirmCompDelete",
    value: function closeConfirmCompDelete() {
      this.setState({
        showConfirmCompDelete: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this7 = this;

      // Get OIDs and comps
      this.state.oids = this.state.oidList.map(function (oid) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: oid,
          value: oid
        }, oid);
      });
      this.state.comps = this.state.compList.map(function (comp) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: comp,
          value: comp
        }, comp);
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "chaining-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", {
        className: "ds-config-header"
      }, "Database Chaining Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-split"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("form", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "chaining-oid-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Forwarded LDAP Controls")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "chaining-oid-list",
        onChange: this.handleSelectOids,
        className: "ds-chaining-list",
        name: "nstransmittedcontrols",
        size: "10",
        multiple: true
      }, this.state.oids)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "clearfix ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: this.showOidModal,
        className: "ds-button-left"
      }, "Add")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: function onClick(e) {
          return _this7.showConfirmDelete("oid");
        },
        className: "ds-button-right"
      }, "Delete")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-chaining-split"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("form", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "chaining-comp-list",
        title: "A list of components to go through chaining"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Components to Chain")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "chaining-comp-list",
        onChange: this.handleSelectComps,
        className: "ds-chaining-list",
        name: "nsactivechainingcomponents",
        size: "10",
        multiple: true
      }, this.state.comps, "}")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "clearfix ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: this.showCompsModal,
        className: "ds-button-left"
      }, "Add")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-panel-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        type: "button",
        onClick: function onClick(e) {
          return _this7.showConfirmDelete("comp");
        },
        className: "ds-button-right"
      }, "Delete"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-margin-top ds-sub-header ds-center"
      }, "Default Database Link Creation Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The size limit of entries returned over a database link (nsslapd-sizelimit)."
      }, "Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defSizeLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defSizeLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, "Max Operations Per Conn"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defConcurOpLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defConcurOpLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The time limit of an operation over a database link (nsslapd-timelimit)."
      }, "Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defTimeLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defTimeLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, "Connection Lifetime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defConnLife",
        onChange: this.handleChange,
        defaultValue: this.state.defConnLife
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit)."
      }, "Max TCP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindConnLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defBindConnLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, "Max LDAP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defOpConnLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defOpConnLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval)."
      }, "Abandoned Op Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defSearchCheck",
        onChange: this.handleChange,
        defaultValue: this.state.defSearchCheck
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, "Max Binds Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defConcurLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defConcurLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit)."
      }, "Database Link Hop Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defHopLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defHopLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The amount of time before the bind attempt times out. (nsbindtimeout)."
      }, "Bind Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindTimeout",
        onChange: this.handleChange,
        defaultValue: this.state.defBindTimeout
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit)."
      }, "Bind Retry Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        id: "defBindRetryLimit",
        onChange: this.handleChange,
        defaultValue: this.state.defBindRetryLimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, "Check Local ACIs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defCheckAci,
        className: "ds-config-checkbox",
        id: "nsusdefCheckAciestarttls"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, "Send Referral On Scoped Search"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defRefOnScoped,
        className: "ds-config-checkbox",
        id: "defRefOnScoped"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, "Allow Proxied Authentication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defProxy,
        className: "ds-config-checkbox",
        id: "defProxy"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4,
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, "Use StartTLS"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.handleChange,
        defaultChecked: this.state.defUseStartTLS,
        className: "ds-config-checkbox",
        id: "defUseStartTLS"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.save_chaining_config
      }, "Save Default Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ChainControlsModal, {
        showModal: this.state.showOidModal,
        closeHandler: this.closeOidModal,
        handleChange: this.handleOidChange,
        saveHandler: this.saveOids,
        oidList: this.state.availableOids
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ChainCompsModal, {
        showModal: this.state.showCompsModal,
        closeHandler: this.closeCompsModal,
        handleChange: this.handleCompsChange,
        saveHandler: this.saveComps,
        compList: this.state.availableComps
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmOidDelete,
        closeHandler: this.closeConfirmOidDelete,
        actionFunc: this.deleteOids,
        msg: "Are you sure you want to delete these OID's?",
        msgContent: this.state.removeOids
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmCompDelete,
        closeHandler: this.closeConfirmCompDelete,
        actionFunc: this.deleteComps,
        msg: "Are you sure you want to delete these components?",
        msgContent: this.state.removeComps
      }));
    }
  }]);

  return ChainingDatabaseConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); //
// This is the component for the actual database link under a suffix
//

var ChainingConfig = /*#__PURE__*/function (_React$Component2) {
  _inherits(ChainingConfig, _React$Component2);

  var _super2 = _createSuper(ChainingConfig);

  function ChainingConfig(props) {
    var _this8;

    _classCallCheck(this, ChainingConfig);

    _this8 = _super2.call(this, props);

    if (_this8.props.data !== undefined) {
      _this8.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true,
        modalSpinning: false,
        modalChecked: false,
        // Settings
        nsfarmserverurl: _this8.props.data.nsfarmserverurl,
        nsmultiplexorbinddn: _this8.props.data.nsmultiplexorbinddn,
        nsmultiplexorcredentials: _this8.props.data.nsmultiplexorcredentials,
        nsmultiplexorcredentials_confirm: _this8.props.data.nsmultiplexorcredentials,
        sizelimit: _this8.props.data.sizelimit,
        timelimit: _this8.props.data.timelimit,
        bindconnlimit: _this8.props.data.bindconnlimit,
        opconnlimit: _this8.props.data.opconnlimit,
        concurrbindlimit: _this8.props.data.concurrbindlimit,
        bindtimeout: _this8.props.data.bindtimeout,
        bindretrylimit: _this8.props.data.bindretrylimit,
        concurroplimit: _this8.props.data.concurroplimit,
        connlifetime: _this8.props.data.connlifetime,
        searchcheckinterval: _this8.props.data.searchcheckinterval,
        hoplimit: _this8.props.data.hoplimit,
        nsbindmechanism: _this8.props.data.nsbindmechanism,
        nsusestarttls: _this8.props.data.nsusestarttls,
        nsreferralonscopedsearch: _this8.props.data.nsreferralonscopedsearch,
        nsproxiedauthorization: _this8.props.data.nsproxiedauthorization,
        nschecklocalaci: _this8.props.data.nschecklocalaci,
        // Original settings
        _nsfarmserverurl: _this8.props.data.nsfarmserverurl,
        _nsmultiplexorbinddn: _this8.props.data.nsmultiplexorbinddn,
        _nsmultiplexorcredentials: _this8.props.data.nsmultiplexorcredentials,
        _nsmultiplexorcredentials_confirm: _this8.props.data.nsmultiplexorcredentials,
        _sizelimit: _this8.props.data.sizelimit,
        _timelimit: _this8.props.data.timelimit,
        _bindconnlimit: _this8.props.data.bindconnlimit,
        _opconnlimit: _this8.props.data.opconnlimit,
        _concurrbindlimit: _this8.props.data.concurrbindlimit,
        _bindtimeout: _this8.props.data.bindtimeout,
        _bindretrylimit: _this8.props.data.bindretrylimit,
        _concurroplimit: _this8.props.data.concurroplimit,
        _connlifetime: _this8.props.data.connlifetime,
        _searchcheckinterval: _this8.props.data.searchcheckinterval,
        _hoplimit: _this8.props.data.hoplimit,
        _nsbindmechanism: _this8.props.data.nsbindmechanism,
        _nsusestarttls: _this8.props.data.nsusestarttls,
        _nsreferralonscopedsearch: _this8.props.data.nsreferralonscopedsearch,
        _nsproxiedauthorization: _this8.props.data.nsproxiedauthorization,
        _nschecklocalaci: _this8.props.data.nschecklocalaci
      };
    } else {
      _this8.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true
      };
    }

    _this8.handleChange = _this8.handleChange.bind(_assertThisInitialized(_this8));
    _this8.saveLink = _this8.saveLink.bind(_assertThisInitialized(_this8));
    _this8.deleteLink = _this8.deleteLink.bind(_assertThisInitialized(_this8));
    _this8.showDeleteConfirm = _this8.showDeleteConfirm.bind(_assertThisInitialized(_this8));
    _this8.closeDeleteConfirm = _this8.closeDeleteConfirm.bind(_assertThisInitialized(_this8));
    return _this8;
  }

  _createClass(ChainingConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm() {
      this.setState({
        showDeleteConfirm: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "checkPasswords",
    value: function checkPasswords() {
      var pwdMatch = false;

      if (this.state.nsmultiplexorcredentials == this.state.nsmultiplexorcredentials_confirm) {
        pwdMatch = true;
      }

      this.setState({
        linkPwdMatch: pwdMatch
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2), this.checkPasswords);
    }
  }, {
    key: "saveLink",
    value: function saveLink() {
      var _this9 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.nsfarmserverurl == "") {
        this.props.addNotification("warning", "Missing Remote Server LDAP URL");
        missingArgs.nsfarmserverurl = true;
        errors = true;
      }

      if (this.state.nsmultiplexorbinddn == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN");
        missingArgs.nsmultiplexorbinddn = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN Password");
        missingArgs.nsmultiplexorcredentials = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials_confirm == "") {
        this.props.addNotification("warning", "Missing Remote Bind DN Password Confirmation");
        missingArgs.nsmultiplexorcredentials_confirm = true;
        errors = true;
      }

      if (this.state.nsmultiplexorcredentials != this.state.nsmultiplexorcredentials_confirm) {
        this.props.addNotification("warning", "Remote Bind DN Password Do Not Match");
        missingArgs.nsmultiplexorcredentials = true;
        missingArgs.nsmultiplexorcredentials_confirm = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Buld up the command of all the hcnge we have to do


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-set", this.props.suffix];

      if (this.state.nsfarmserverurl != this.state._nsfarmserverurl) {
        cmd.push('--server-url=' + this.state.nsfarmserverurl);
      }

      if (this.state.nsmultiplexorbinddn != this.state._nsmultiplexorbinddn) {
        cmd.push('--bind-dn=' + this.state.nsmultiplexorbinddn);
      }

      if (this.state.nsmultiplexorcredentials != this.state._nsmultiplexorcredentials) {
        cmd.push('--bind-pw=' + this.state.nsmultiplexorcredentials);
      }

      if (this.state.timelimit != this.state._timelimit) {
        cmd.push('--time-limit=' + this.state.timelimit);
      }

      if (this.state.sizelimit != this.state._sizelimit) {
        cmd.push('--size-limit=' + this.state.sizelimit);
      }

      if (this.state.bindconnlimit != this.state._bindconnlimit) {
        cmd.push('--conn-bind-limit=' + this.state.bindconnlimit);
      }

      if (this.state.opconnlimit != this.state._opconnlimit) {
        cmd.push('--conn-op-limit=' + this.state.opconnlimit);
      }

      if (this.state.concurrbindlimit != this.state._concurrbindlimit) {
        cmd.push('--bind-limit=' + this.state.concurrbindlimit);
      }

      if (this.state.bindtimeout != this.state._bindtimeout) {
        cmd.push('--bind-timeout=' + this.state.bindtimeout);
      }

      if (this.state.bindretrylimit != this.state._bindretrylimit) {
        cmd.push('--bind-attempts=' + this.state.bindretrylimit);
      }

      if (this.state.concurroplimit != this.state._concurroplimit) {
        cmd.push('--op-limit=' + this.state.concurroplimit);
      }

      if (this.state.connlifetime != this.state._connlifetime) {
        cmd.push('--conn-lifetime=' + this.state.connlifetime);
      }

      if (this.state.searchcheckinterval != this.state._searchcheckinterval) {
        cmd.push('--abandon-check-interval=' + this.state.searchcheckinterval);
      }

      if (this.state.hoplimit != this.state._hoplimit) {
        cmd.push('--hop-limit=' + this.state.hoplimit);
      }

      if (this.state.nsbindmechanism != this.state._nsbindmechanism) {
        cmd.push('--bind-mech=' + this.state.nsbindmechanism);
      }

      if (this.state.nsusestarttls != this.state._nsusestarttls) {
        if (this.state.nsusestarttls) {
          cmd.push('--use-starttls=on');
        } else {
          cmd.push('--use-starttls=off');
        }
      }

      if (this.state.nsreferralonscopedsearch != this.state._nsreferralonscopedsearch) {
        if (this.state.nsreferralonscopedsearch) {
          cmd.push('--return-ref=on');
        } else {
          cmd.push('--return-ref=off');
        }
      }

      if (this.state.nsproxiedauthorization != this.state._nsproxiedauthorization) {
        if (this.state.nsproxiedauthorization) {
          cmd.push('--proxied-auth=on');
        } else {
          cmd.push('--proxied-auth=off');
        }
      }

      if (this.state.nschecklocalaci != this.state._nschecklocalaci) {
        if (this.state.nschecklocalaci) {
          cmd.push('--check-aci=on');
        } else {
          cmd.push('--check-aci=off');
        }
      }

      if (cmd.length > 6) {
        // Something changed, perform the update
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveLink", "Save chaining link config", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this9.props.reload(_this9.props.suffix);

          _this9.props.addNotification("success", "Successfully Updated Link Configuration");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this9.props.reload(_this9.props.suffix);

          _this9.props.addNotification("error", "Failed to update link configuration - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "deleteLink",
    value: function deleteLink() {
      var _this10 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-delete", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("deleteLink", "Delete database chaining link", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this10.props.loadSuffixTree(true);

        _this10.props.addNotification("success", "Successfully Deleted Database Link");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.loadSuffixTree(true);

        _this10.props.addNotification("error", "Failed to delete database link - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var error = this.state.errObj;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 10,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"], {
        className: "ds-suffix-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "fa",
        name: "link"
      }), " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.props.suffix), " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, this.props.bename), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh database link",
        onClick: function onClick() {
          return _this11.props.reload(_this11.props.suffix);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "danger",
        onClick: this.showDeleteConfirm
      }, "Delete Link"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off",
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        title: "The LDAP URL for the remote server.  Add additional failure server URLs by separating them with a space. (nsfarmserverurl)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Remote Server LDAP URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "nsfarmserverurl",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsfarmserverurl
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The distinguished name (DN) of the entry to authenticate to the remote server. (nsmultiplexorbinddn)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Remote Server Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "nsmultiplexorbinddn",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorbinddn
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The password for the authenticating entry. (nsmultiplexorcredentials)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind DN Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "password",
        id: "nsmultiplexorcredentials",
        className: error.nsmultiplexorcredentials || !this.state.linkPwdMatch ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorcredentials
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Confirm the password for the authenticating entry. (nsmultiplexorcredentials)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "password",
        id: "nsmultiplexorcredentials_confirm",
        className: error.nsmultiplexorcredentials_confirm || !this.state.linkPwdMatch ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.nsmultiplexorcredentials_confirm
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The authentication mechanism.  Simple (user name and password), SASL/DIGEST-MD5, or SASL>GSSAPI. (nsbindmechanism)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Mechanism"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        value: this.state.nsbindmechanism,
        className: "btn btn-default dropdown ds-dblink-dropdown",
        onChange: this.handleChange,
        id: "nsbindmechanism"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "Simple"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SASL/DIGEST-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SASL/GSSAPI")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Use StartTLS for connections to the remote server. (nsusestarttls)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Use StartTLS"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsusestarttls,
        className: "ds-config-checkbox",
        id: "nsusestarttls"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        className: "ds-margin-top ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The size limit of entries returned over a database link (nsslapd-sizelimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "sizelimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.sizelimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The time limit of an operation over a database link (nsslapd-timelimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "timelimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.timelimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max TCP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindconnlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindconnlimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max LDAP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "opconnlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.opconnlimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of concurrent bind operations per TCP connection. (nsconcurrentbindlimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max Binds Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "concurrbindlimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.concurrbindlimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The amount of time before the bind attempt times out. (nsbindtimeout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindtimeout",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindtimeout
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Bind Retry Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "bindretrylimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.bindretrylimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of operations per connections. (nsconcurrentoperationslimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Max Operations Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "concurroplimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.concurroplimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The life of a database link connection to the remote server in seconds.  0 is unlimited  (nsconnectionlife)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Connection Lifetime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "connlifetime",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.connlifetime
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Abandoned Op Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "searchcheckinterval",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.searchcheckinterval
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Hop Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["FormControl"], {
        type: "text",
        id: "hoplimit",
        className: "ds-input-auto",
        onChange: this.handleChange,
        defaultValue: this.state.hoplimit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Allow proxied authentication to the remote server. (nsproxiedauthorization)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Allow Proxied Authentication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsproxiedauthorization,
        className: "ds-config-checkbox",
        id: "nsproxiedauthorization"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Check Local ACIs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nschecklocalaci,
        className: "ds-config-checkbox",
        id: "nschecklocalaci"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
        className: "ds-margin-top",
        title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
        sm: 4
      }, "Send Referral On Scoped Search"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        defaultChecked: this.state.nsreferralonscopedsearch,
        className: "ds-config-checkbox",
        id: "nsreferralonscopedsearch"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        onClick: this.saveLink,
        className: "btn btn-primary"
      }, "Save Configuration")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        handleChange: this.handleChange,
        actionHandler: this.deleteLink,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Delete Database Link",
        mMsg: "Are you really sure you want to delete this database link?",
        mSpinningMsg: "Deleting Database Link...",
        mBtnName: "Delete Database Link"
      }));
    }
  }]);

  return ChainingConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); //
// Chaining modals
//

var ChainControlsModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(ChainControlsModal, _React$Component3);

  var _super3 = _createSuper(ChainControlsModal);

  function ChainControlsModal() {
    _classCallCheck(this, ChainControlsModal);

    return _super3.apply(this, arguments);
  }

  _createClass(ChainControlsModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          oidList = _this$props.oidList;
      var oids = oidList.map(function (oid) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: oid,
          value: oid
        }, oid);
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Title, null, "Chaining LDAP Controls")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "avail-chaining-oid-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, "Available LDAP Controls"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "avail-chaining-oid-list",
        onChange: handleChange,
        className: "ds-width-auto",
        size: "10",
        multiple: true
      }, oids)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add & Save New Controls"))));
    }
  }]);

  return ChainControlsModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
var ChainCompsModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(ChainCompsModal, _React$Component4);

  var _super4 = _createSuper(ChainCompsModal);

  function ChainCompsModal() {
    _classCallCheck(this, ChainCompsModal);

    return _super4.apply(this, arguments);
  }

  _createClass(ChainCompsModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          compList = _this$props2.compList;
      var comps = compList.map(function (comp) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: comp,
          value: comp
        }, comp);
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Title, null, "Chaining Components")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "avail-chaining-comp-list",
        title: "A list of LDAP control OIDs to be forwarded through chaining"
      }, "Available Components"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "avail-chaining-comp-list",
        onChange: handleChange,
        className: "ds-width-auto",
        size: "10",
        multiple: true
      }, comps)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add & Save New Components"))));
    }
  }]);

  return ChainCompsModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ChainCompsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  compList: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ChainCompsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  compList: []
};
ChainControlsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  oidList: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ChainControlsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  oidList: []
};
ChainingDatabaseConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ChainingDatabaseConfig.defaultProps = {
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  data: {},
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.noop
};
ChainingConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  loadSuffixTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ChainingConfig.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  loadSuffixTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/***/ }),

/***/ "./src/lib/database/databaseConfig.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseConfig.jsx ***!
  \*********************************************/
/*! exports provided: GlobalDatabaseConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalDatabaseConfig", function() { return GlobalDatabaseConfig; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var GlobalDatabaseConfig = /*#__PURE__*/function (_React$Component) {
  _inherits(GlobalDatabaseConfig, _React$Component);

  var _super = _createSuper(GlobalDatabaseConfig);

  function GlobalDatabaseConfig(props) {
    var _this;

    _classCallCheck(this, GlobalDatabaseConfig);

    _this = _super.call(this, props);
    _this.state = {
      db_cache_auto: _this.props.data.db_cache_auto,
      import_cache_auto: _this.props.data.import_cache_auto,
      looklimit: _this.props.data.looklimit,
      idscanlimit: _this.props.data.idscanlimit,
      pagelooklimit: _this.props.data.pagelooklimit,
      pagescanlimit: _this.props.data.pagescanlimit,
      rangelooklimit: _this.props.data.rangelooklimit,
      autosize: _this.props.data.autosize,
      autosizesplit: _this.props.data.autosizesplit,
      dbcachesize: _this.props.data.dbcachesize,
      txnlogdir: _this.props.data.txnlogdir,
      dbhomedir: _this.props.data.dbhomedir,
      dblocks: _this.props.data.dblocks,
      chxpoint: _this.props.data.chxpoint,
      compactinterval: _this.props.data.compactinterval,
      importcachesize: _this.props.data.importcachesize,
      importcacheauto: _this.props.data.importcacheauto,
      // These variables store the original value (used for saving config)
      _looklimit: _this.props.data.looklimit,
      _idscanlimit: _this.props.data.idscanlimit,
      _pagelooklimit: _this.props.data.pagelooklimit,
      _pagescanlimit: _this.props.data.pagescanlimit,
      _rangelooklimit: _this.props.data.rangelooklimit,
      _autosize: _this.props.data.autosize,
      _autosizesplit: _this.props.data.autosizesplit,
      _dbcachesize: _this.props.data.dbcachesize,
      _txnlogdir: _this.props.data.txnlogdir,
      _dbhomedir: _this.props.data.dbhomedir,
      _dblocks: _this.props.data.dblocks,
      _chxpoint: _this.props.data.chxpoint,
      _compactinterval: _this.props.data.compactinterval,
      _importcachesize: _this.props.data.importcachesize,
      _importcacheauto: _this.props.data.importcacheauto,
      _db_cache_auto: _this.props.data.db_cache_auto,
      _import_cache_auto: _this.props.data.import_cache_auto
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.select_auto_cache = _this.select_auto_cache.bind(_assertThisInitialized(_this));
    _this.select_auto_import_cache = _this.select_auto_import_cache.bind(_assertThisInitialized(_this));
    _this.save_db_config = _this.save_db_config.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(GlobalDatabaseConfig, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "select_auto_cache",
    value: function select_auto_cache(e) {
      this.setState({
        db_cache_auto: !this.state.db_cache_auto
      }, this.handleChange(e));
    }
  }, {
    key: "select_auto_import_cache",
    value: function select_auto_import_cache(e) {
      this.setState({
        import_cache_auto: !this.state.import_cache_auto
      }, this.handleChange(e));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      // Generic
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "save_db_config",
    value: function save_db_config() {
      var _this2 = this;

      // Build up the command list
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'config', 'set'];
      var requireRestart = false;

      if (this.state._looklimit != this.state.looklimit) {
        cmd.push("--lookthroughlimit=" + this.state.looklimit);
      }

      if (this.state._idscanlimit != this.state.idscanlimit) {
        cmd.push("--idlistscanlimit=" + this.state.idscanlimit);
      }

      if (this.state._pagelooklimit != this.state.pagelooklimit) {
        cmd.push("--pagedlookthroughlimit=" + this.state.pagelooklimit);
      }

      if (this.state._pagescanlimit != this.state.pagescanlimit) {
        cmd.push("--pagedidlistscanlimit=" + this.state.pagescanlimit);
      }

      if (this.state._rangelooklimit != this.state.rangelooklimit) {
        cmd.push("--rangelookthroughlimit=" + this.state.rangelooklimit);
      }

      if (this.state.db_cache_auto) {
        // Auto cache is selected
        if (this.state._db_cache_auto != this.state.db_cache_auto) {
          // We just enabled auto cache,
          if (this.state.autosize == "0") {
            cmd.push("--cache-autosize=10");
          } else {
            cmd.push("--cache-autosize=" + this.state.autosize);
          }

          requireRestart = true;
        } else if (this.state._autosize != this.state.autosize) {
          // Update auto cache settings if it changed
          cmd.push("--cache-autosize=" + this.state.autosize);
          requireRestart = true;
        }
      } else {
        // No auto cache, check if we need to reset the value
        if (this.state._db_cache_auto != this.state.db_cache_auto) {
          // We just disabled auto cache
          cmd.push("--cache-autosize=0");
          requireRestart = true;
        }
      }

      if (this.state._autosizesplit != this.state.autosizesplit) {
        cmd.push("--cache-autosize-split=" + this.state.autosizesplit);
        requireRestart = true;
      }

      if (this.state._dbcachesize != this.state.dbcachesize) {
        cmd.push("--dbcachesize=" + this.state.dbcachesize);
        requireRestart = true;
      }

      if (this.state._txnlogdir != this.state.txnlogdir) {
        cmd.push("--logdirectory=" + this.state.txnlogdir);
        requireRestart = true;
      }

      if (this.state._dbhomedir != this.state.dbhomedir) {
        cmd.push("--db-home-directory=" + this.state.dbhomedir);
        requireRestart = true;
      }

      if (this.state._dblocks != this.state.dblocks) {
        cmd.push("--locks=" + this.state.dblocks);
        requireRestart = true;
      }

      if (this.state._chxpoint != this.state.chxpoint) {
        cmd.push("--checkpoint-interval=" + this.state.chxpoint);
        requireRestart = true;
      }

      if (this.state._compactinterval != this.state.compactinterval) {
        cmd.push("--compactdb-interval=" + this.state.compactinterval);
        requireRestart = true;
      }

      if (this.state.import_cache_auto) {
        // Auto cache is selected
        if (this.state._import_cache_auto != this.state.import_cache_auto) {
          // We just enabled auto cache,
          if (this.state.importcachesize == "0") {
            cmd.push("--import-cache-autosize=-1");
          } else {
            cmd.push("--import-cache-autosize=" + this.state.importcachesize);
          }
        } else if (this.state._importcachesize != this.state.importcachesize) {
          // Update auto cache settings if it changed
          cmd.push("--import-cache-autosize=" + this.state.importcachesize);
        }
      } else {
        // Auto cache is not selected, check if we need to reset the value
        if (this.state._import_cache_auto != this.state.import_cache_auto) {
          // We just disabled auto cache
          cmd.push("--import-cache-autosize=0");
        }
      }

      if (this.state._importcachesize != this.state.importcachesize) {
        cmd.push("--import-cachesize=" + this.state.importcachesize);
      }

      if (cmd.length > 6) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("save_db_config", "Applying config change", cmd);
        var msg = "Successfully updated database configuration";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this2.props.reload();

          _this2.props.addNotification("success", msg);

          if (requireRestart) {
            _this2.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
          }
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.reload();

          _this2.props.addNotification("error", "Error updating configuration - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var db_cache_form;
      var import_cache_form;
      var db_auto_checked = false;
      var import_auto_checked = false;

      if (this.state.db_cache_auto) {
        db_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "auto-cache-form",
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "autosize",
          className: "ds-config-label-xlrg",
          title: "Enable database and entry cache auto-tuning using a percentage of the system's current resources (nsslapd-cache-autosize)."
        }, "Memory Percentage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "autosizee",
          size: "10",
          onChange: this.handleChange,
          value: this.state.autosize
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "autosizesplit",
          className: "ds-config-label-xlrg",
          title: "Sets the percentage of memory that is used for the database cache. The remaining percentage is used for the entry cache (nsslapd-cache-autosize-split)."
        }, "DB Cache Percentage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "autosizesplit",
          size: "10",
          onChange: this.handleChange,
          value: this.state.autosizesplit
        })));
        db_auto_checked = true;
      } else {
        db_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "manual-cache-form",
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "dbcachesize",
          className: "ds-config-label-xlrg",
          title: "Specifies the database index cache size in bytes (nsslapd-dbcachesize)."
        }, "Database Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "dbcachesize",
          size: "10",
          onChange: this.handleChange,
          value: this.state.dbcachesize
        }));
        db_auto_checked = false;
      }

      if (this.state.import_cache_auto) {
        import_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "auto-import-cache-form",
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "importcacheauto",
          className: "ds-config-label-xlrg",
          title: "Enter '-1' to use 50% of available memory, '0' to disable autotuning, or enter the percentage of available memory to use.  Value range -1 through 100, default is '-1' (nsslapd-import-cache-autosize)."
        }, "Import Cache Autosize"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "importcacheauto",
          size: "10",
          onChange: this.handleChange,
          value: this.state.importcacheauto
        }));
        import_auto_checked = true;
      } else {
        import_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          id: "manual-import-cache-form",
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          htmlFor: "importcachesize",
          className: "ds-config-label-xlrg",
          title: "The size of the database cache in bytes used in the bulk import process. (nsslapd-import-cachesize)."
        }, "Import Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input",
          type: "text",
          id: "importcachesize",
          size: "10",
          onChange: this.handleChange,
          value: this.state.importcachesize
        }));
        import_auto_checked = false;
      }

      var spinner = "";

      if (this.state.loading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading global database configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "db-global-page"
      }, spinner, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: this.state.loading ? 'ds-fadeout' : 'ds-fadein'
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", {
        className: "ds-config-header"
      }, "Global Database Configuration"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a search request (nsslapd-lookthrough-limit).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Database Look Though Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "looklimit",
        value: this.state.looklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The number of entry IDs that are searched during a search operation (nsslapd-idlistscanlimit).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "ID List Scan Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "idscanlimit",
        value: this.state.idscanlimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries for a search which uses the simple paged results control (nsslapd-pagedlookthroughlimit).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Paged Search Look Through Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "pagelooklimit",
        value: this.state.pagelooklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The number of entry IDs that are searched, specifically, for a search operation using the simple paged results control (nsslapd-pagedidlistscanlimit).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Paged Search ID List Scan Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "pagescanlimit",
        value: this.state.pagescanlimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a range search request (nsslapd-rangelookthroughlimit).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 5
      }, "Range Search Look Through Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "rangelooklimit",
        value: this.state.rangelooklimit,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        className: "container-fluid",
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-sub-header"
      }, "Database Cache Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 1
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
        className: "ds-sub-header"
      }, "Import Cache Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        title: "Set Database/Entry to be set automatically",
        id: "autoCacheChkbox",
        checked: db_auto_checked,
        onChange: this.select_auto_cache
      }, "Automatic Cache Tuning")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 1
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        title: "Set input to be set automatically",
        id: "autoImportCacheChkbox",
        checked: import_auto_checked,
        onChange: this.select_auto_import_cache
      }, "Automatic Import Cache Tuning"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 6
      }, db_cache_form), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 6
      }, import_cache_form)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Database Transaction Log Location (nsslapd-db-logdirectory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Transaction Logs Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "txnlogdir",
        value: this.state.txnlogdir,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Location for database memory mapped files.  You must specify a subdirectory of a tempfs type filesystem (nsslapd-db-home-directory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Home Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "dbhomedir",
        value: this.state.dbhomedir,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "The number of database locks (nsslapd-db-locks)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Locks"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "dblocks",
        value: this.state.dblocks,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Amount of time in seconds after which the Directory Server sends a checkpoint entry to the database transaction log (nsslapd-db-checkpoint-interval)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Checkpoint Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "chxpoint",
        value: this.state.chxpoint,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "The interval in seconds when the database is compacted (nsslapd-db-compactdb-interval)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Database Compact Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "compactinterval",
        value: this.state.compactinterval,
        onChange: this.handleChange,
        className: "ds-input-auto",
        type: "text"
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.save_db_config
      }, "Save Configuration"))));
    }
  }]);

  return GlobalDatabaseConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

GlobalDatabaseConfig.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  data: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
GlobalDatabaseConfig.defaultProps = {
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};

/***/ }),

/***/ "./src/lib/database/databaseModal.jsx":
/*!********************************************!*\
  !*** ./src/lib/database/databaseModal.jsx ***!
  \********************************************/
/*! exports provided: ReindexModal, ImportModal, ExportModal, CreateSubSuffixModal, CreateLinkModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReindexModal", function() { return ReindexModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImportModal", function() { return ImportModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportModal", function() { return ExportModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateSubSuffixModal", function() { return CreateSubSuffixModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateLinkModal", function() { return CreateLinkModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var CreateLinkModal = /*#__PURE__*/function (_React$Component) {
  _inherits(CreateLinkModal, _React$Component);

  var _super = _createSuper(CreateLinkModal);

  function CreateLinkModal() {
    _classCallCheck(this, CreateLinkModal);

    return _super.apply(this, arguments);
  }

  _createClass(CreateLinkModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          suffix = _this$props.suffix,
          pwdMatch = _this$props.pwdMatch,
          error = _this$props.error;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Database Link")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createLinkSuffix",
        className: "ds-config-label",
        title: "The RDN of the link suffix"
      }, "Link Sub-Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createLinkSuffix ? "ds-input-bad ds-input-right" : "ds-input ds-input-right",
        onChange: handleChange,
        type: "text",
        id: "createLinkSuffix",
        size: "12"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        color: "blue"
      }, " ,", suffix))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createLinkName",
        className: "ds-config-label",
        title: "A name for the backend chaining database link"
      }, "Link Database Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        onChange: handleChange,
        className: error.createLinkName ? "ds-input-bad" : "ds-input",
        type: "text",
        id: "createLinkName",
        size: "45"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsfarmserverurl",
        className: "ds-config-label",
        title: "The LDAP URL for the remote server.  Add additional failover LDAP URLs separated by a space. (nsfarmserverurl)"
      }, "Remote Server URL(s)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsfarmserverurl ? "ds-input-bad" : "ds-input",
        onChange: handleChange,
        type: "text",
        id: "createNsfarmserverurl",
        size: "45"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: handleChange,
        className: "ds-left-indent ds-config-checkbox",
        id: "createUseStartTLS"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createUseStartTLS",
        className: "ds-label",
        title: "Use StartTLS for the remote server LDAP URL"
      }, " Use StartTLS")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorbinddn",
        className: "ds-config-label",
        title: "Bind DN used to authenticate against the remote server (nsmultiplexorbinddn)."
      }, "Remote Server Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorbinddn ? "ds-input-bad" : "ds-input",
        type: "text",
        onChange: handleChange,
        placeholder: "Bind DN",
        id: "createNsmultiplexorbinddn",
        size: "45"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorcredentials",
        className: "ds-config-label",
        title: "Replication Bind DN (nsDS5ReplicaCredentials)."
      }, "Bind DN Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorcredentials ? "ds-input-bad" : "ds-input",
        type: "password",
        onChange: handleChange,
        placeholder: "Enter password",
        id: "createNsmultiplexorcredentials",
        size: "45"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsmultiplexorcredentialsConfirm",
        className: "ds-config-label",
        title: "Confirm password"
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: error.createNsmultiplexorcredentialsConfirm || !pwdMatch ? "ds-input-bad" : "ds-input",
        type: "password",
        onChange: handleChange,
        placeholder: "Confirm password",
        id: "createNsmultiplexorcredentialsConfirm",
        size: "45"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "createNsbindmechanism",
        className: "ds-config-label",
        title: "The bind method for contacting the remote server  (nsbindmechanism)."
      }, "Bind Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-dblink-dropdown",
        onChange: handleChange,
        id: "createNsbindmechanism"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Simple"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "SASL/DIGEST-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "SASL/GSSAPI"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Database Link"))));
    }
  }]);

  return CreateLinkModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var CreateSubSuffixModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(CreateSubSuffixModal, _React$Component2);

  var _super2 = _createSuper(CreateSubSuffixModal);

  function CreateSubSuffixModal() {
    _classCallCheck(this, CreateSubSuffixModal);

    return _super2.apply(this, arguments);
  }

  _createClass(CreateSubSuffixModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          handleRadioChange = _this$props2.handleRadioChange,
          saveHandler = _this$props2.saveHandler,
          suffix = _this$props2.suffix,
          noInit = _this$props2.noInit,
          addSuffix = _this$props2.addSuffix,
          addSample = _this$props2.addSample,
          error = _this$props2.error;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Sub Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Sub-Suffix DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "subSuffixValue",
        className: error.subSuffixValue ? "ds-input-bad ds-input-right" : "ds-input-right",
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6,
        className: "ds-col-append"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        color: "blue"
      }, ",", suffix))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Database Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "subSuffixBeName",
        className: error.subSuffixBeName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "noSuffixInit",
        onChange: handleRadioChange,
        checked: noInit,
        inline: true
      }, "Do Not Initialize Database")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "createSuffixEntry",
        onChange: handleRadioChange,
        checked: addSuffix,
        inline: true
      }, "Create The Top Sub-Suffix Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Radio"], {
        name: "radioGroup",
        id: "createSampleEntries",
        onChange: handleRadioChange,
        checked: addSample,
        inline: true
      }, "Add Sample Entries"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Sub-Suffix"))));
    }
  }]);

  return CreateSubSuffixModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ExportModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(ExportModal, _React$Component3);

  var _super3 = _createSuper(ExportModal);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _super3.apply(this, arguments);
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          spinning = _this$props3.spinning,
          error = _this$props3.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Exporting database... ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Export Database To LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Name of exported LDIF file"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "LDIF File Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        className: error.ldifLocation ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12,
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "includeReplData",
        onChange: handleChange,
        title: "Include the replication metadata needed to restore or initialize another replica."
      }, "Include Replication Data"))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Export Database"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ImportModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(ImportModal, _React$Component4);

  var _super4 = _createSuper(ImportModal);

  function ImportModal() {
    _classCallCheck(this, ImportModal);

    return _super4.apply(this, arguments);
  }

  _createClass(ImportModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          spinning = _this$props4.spinning,
          rows = _this$props4.rows,
          suffix = _this$props4.suffix;
      var suffixRows = [];
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Importing LDIF file... ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      for (var idx in rows) {
        if (rows[idx].suffix == suffix) {
          suffixRows.push(rows[idx]);
        }
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Initialize Database via LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_2__["LDIFTable"], {
        rows: suffixRows,
        confirmImport: this.props.showConfirmImport
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "The full path to the LDIF file.  The server must have permissions to read it"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Or, enter LDIF location")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Import"))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ImportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReindexModal = /*#__PURE__*/function (_React$Component5) {
  _inherits(ReindexModal, _React$Component5);

  var _super5 = _createSuper(ReindexModal);

  function ReindexModal() {
    _classCallCheck(this, ReindexModal);

    return _super5.apply(this, arguments);
  }

  _createClass(ReindexModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          msg = _this$props5.msg;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Index Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
        loading: true,
        inline: true,
        size: "lg"
      }), " Indexing ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        size: "2"
      }, "(You can safely close this window)"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ReindexModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults


CreateLinkModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  pwdMatch: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
};
CreateLinkModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  suffix: "",
  pwdMatch: false,
  error: {}
};
CreateSubSuffixModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object
};
CreateSubSuffixModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  suffix: "",
  error: {}
};
ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  error: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
ExportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  error: {},
  spinning: false
};
ImportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  showConfirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
ImportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  showConfirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  rows: [],
  suffix: ""
};
ReindexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  msg: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string
};
ReindexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  msg: ""
};


/***/ }),

/***/ "./src/lib/database/databaseTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseTables.jsx ***!
  \*********************************************/
/*! exports provided: PwpTable, ReferralTable, IndexTable, EncryptedAttrTable, LDIFTable, LDIFManageTable, BackupTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PwpTable", function() { return PwpTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReferralTable", function() { return ReferralTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexTable", function() { return IndexTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EncryptedAttrTable", function() { return EncryptedAttrTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LDIFTable", function() { return LDIFTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LDIFManageTable", function() { return LDIFManageTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackupTable", function() { return BackupTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ReferralTable = /*#__PURE__*/function (_React$Component) {
  _inherits(ReferralTable, _React$Component);

  var _super = _createSuper(ReferralTable);

  function ReferralTable(props) {
    var _this;

    _classCallCheck(this, ReferralTable);

    _this = _super.call(this, props);
    _this.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Referral",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this.props.loadModalHandler(rowData);
              }
            }, "Delete Referral"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReferralTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Referrals",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var refTable;

      if (this.props.rows.length == 0) {
        refTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No referrals"
          }]
        });
      } else {
        refTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, refTable);
    }
  }]);

  return ReferralTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var IndexTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(IndexTable, _React$Component2);

  var _super2 = _createSuper(IndexTable);

  function IndexTable(props) {
    var _this2;

    _classCallCheck(this, IndexTable);

    _this2 = _super2.call(this, props);
    _this2.state = {
      searchField: "Indexes",
      fieldsToSearch: ["name"],
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Attribute",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "types",
        header: {
          label: "Index Types",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "matchingrules",
        header: {
          label: "Matching Rules",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };

    if (_this2.props.editable) {
      _this2.state.columns.push({
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editIndex(rowData);
              }
            }, "Edit Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.reindexIndex(rowData);
              }
            }, "Reindex Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this2.props.deleteIndex(rowData);
              }
            }, "Delete Index")))];
          }]
        }
      });
    }

    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    return _this2;
  } // Constructor


  _createClass(IndexTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: this.state.rowKey,
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return IndexTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var EncryptedAttrTable = /*#__PURE__*/function (_React$Component3) {
  _inherits(EncryptedAttrTable, _React$Component3);

  var _super3 = _createSuper(EncryptedAttrTable);

  function EncryptedAttrTable(props) {
    var _this3;

    _classCallCheck(this, EncryptedAttrTable);

    _this3 = _super3.call(this, props);
    _this3.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Encrypted Attribute",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this3.props.loadModalHandler(rowData);
              }
            }, "Delete Attribute"))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_this3));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_this3));
    return _this3;
  }

  _createClass(EncryptedAttrTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Encrypted Attributes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var attrTable;

      if (this.props.rows.length == 0) {
        attrTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No encrypted attributes"
          }]
        });
      } else {
        attrTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, attrTable);
    }
  }]);

  return EncryptedAttrTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LDIFTable = /*#__PURE__*/function (_React$Component4) {
  _inherits(LDIFTable, _React$Component4);

  var _super4 = _createSuper(LDIFTable);

  function LDIFTable(props) {
    var _this4;

    _classCallCheck(this, LDIFTable);

    _this4 = _super4.call(this, props);
    _this4.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "LDIF File",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this4.props.confirmImport(rowData);
              }
            }, "Import"))];
          }]
        }
      }]
    };
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_this4));
    _this4.getSingleColumn = _this4.getSingleColumn.bind(_assertThisInitialized(_this4));
    return _this4;
  }

  _createClass(LDIFTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "LDIF Files",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var LDIFTable;

      if (this.props.rows.length == 0) {
        LDIFTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No LDIF files"
          }]
        });
      } else {
        LDIFTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, LDIFTable);
    }
  }]);

  return LDIFTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LDIFManageTable = /*#__PURE__*/function (_React$Component5) {
  _inherits(LDIFManageTable, _React$Component5);

  var _super5 = _createSuper(LDIFManageTable);

  function LDIFManageTable(props) {
    var _this5;

    _classCallCheck(this, LDIFManageTable);

    _this5 = _super5.call(this, props);
    _this5.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "LDIF File",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "suffix",
        header: {
          label: "Suffix",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this5.props.confirmImport(rowData);
              }
            }, "Import LDIF File"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this5.props.confirmDelete(rowData);
              }
            }, "Delete LDIF File")))];
          }]
        }
      }]
    };
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_this5));
    _this5.getSingleColumn = _this5.getSingleColumn.bind(_assertThisInitialized(_this5));
    return _this5;
  } // Constructor


  _createClass(LDIFManageTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "LDIF Files",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var LDIFTable;

      if (this.props.rows.length == 0) {
        LDIFTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No LDIF files"
          }]
        });
      } else {
        LDIFTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, LDIFTable);
    }
  }]);

  return LDIFManageTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var BackupTable = /*#__PURE__*/function (_React$Component6) {
  _inherits(BackupTable, _React$Component6);

  var _super6 = _createSuper(BackupTable);

  function BackupTable(props) {
    var _this6;

    _classCallCheck(this, BackupTable);

    _this6 = _super6.call(this, props);
    _this6.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Backup",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "date",
        header: {
          label: "Creation Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Size",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.confirmRestore(rowData);
              }
            }, "Restore Backup"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this6.props.confirmDelete(rowData);
              }
            }, "Delete Backup")))];
          }]
        }
      }]
    };
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_this6));
    _this6.getSingleColumn = _this6.getSingleColumn.bind(_assertThisInitialized(_this6));
    return _this6;
  } // Constructor


  _createClass(BackupTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Backup",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var backupTable;

      if (this.props.rows.length == 0) {
        backupTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Backups"
          }]
        });
      } else {
        backupTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          id: "backupTable",
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, backupTable);
    }
  }]);

  return BackupTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var PwpTable = /*#__PURE__*/function (_React$Component7) {
  _inherits(PwpTable, _React$Component7);

  var _super7 = _createSuper(PwpTable);

  function PwpTable(props) {
    var _this7;

    _classCallCheck(this, PwpTable);

    _this7 = _super7.call(this, props);
    _this7.state = {
      rowKey: "targetdn",
      columns: [{
        property: "targetdn",
        header: {
          label: "Target DN",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pwp_type",
        header: {
          label: "Policy Type",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "basedn",
        header: {
          label: "Suffix",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref7) {
            var rowData = _ref7.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.targetdn
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.targetdn,
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this7.props.editPolicy(rowData.targetdn);
              }
            }, "Edit Policy"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this7.props.deletePolicy(rowData.targetdn);
              }
            }, "Delete Policy")))];
          }]
        }
      }]
    };
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_this7));
    _this7.getSingleColumn = _this7.getSingleColumn.bind(_assertThisInitialized(_this7));
    return _this7;
  } // Constructor


  _createClass(PwpTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Local Password Policies",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var PwpTable;

      if (this.props.rows.length == 0) {
        PwpTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Policies"
          }]
        });
      } else {
        PwpTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, PwpTable);
    }
  }]);

  return PwpTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults

PwpTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editPolicy: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deletePolicy: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PwpTable.defaultProps = {
  rows: [],
  editPolicy: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deletePolicy: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
BackupTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmRestore: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
BackupTable.defaultProps = {
  rows: [],
  confirmRestore: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
LDIFTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LDIFTable.defaultProps = {
  rows: [],
  confirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
LDIFManageTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmImport: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LDIFManageTable.defaultProps = {
  rows: [],
  confirmImport: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReferralTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReferralTable.defaultProps = {
  rows: [],
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
IndexTable.propTypes = {
  editable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reindexIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteIndex: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
IndexTable.defaultProps = {
  editable: false,
  rows: [],
  editIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  reindexIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteIndex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
EncryptedAttrTable.propTypes = {
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
EncryptedAttrTable.defaultProps = {
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  rows: []
};


/***/ }),

/***/ "./src/lib/database/globalPwp.jsx":
/*!****************************************!*\
  !*** ./src/lib/database/globalPwp.jsx ***!
  \****************************************/
/*! exports provided: GlobalPwPolicy */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalPwPolicy", function() { return GlobalPwPolicy; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var general_attrs = ["nsslapd-pwpolicy-local", "passwordstoragescheme", "passwordadmindn", "passwordtrackupdatetime", "nsslapd-allow-hashed-passwords", "nsslapd-pwpolicy-inherit-global", "passwordisglobalpolicy", "passwordchange", "passwordmustchange", "passwordhistory", "passwordinhistory", "passwordminage"];
var exp_attrs = ["passwordexp", "passwordgracelimit", "passwordsendexpiringtime", "passwordmaxage", "passwordwarning"];
var lockout_attrs = ["passwordlockout", "passwordunlock", "passwordlockoutduration", "passwordmaxfailure", "passwordresetfailurecount"];
var syntax_attrs = ["passwordchecksyntax", "passwordminlength", "passwordmindigits", "passwordminalphas", "passwordminuppers", "passwordminlowers", "passwordminspecials", "passwordmin8bit", "passwordmaxrepeats", "passwordpalindrome", "passwordmaxsequence", "passwordmaxseqsets", "passwordmaxclasschars", "passwordmincategories", "passwordmintokenlength", "passwordbadwords", "passworduserattributes", "passworddictcheck"];
var GlobalPwPolicy = /*#__PURE__*/function (_React$Component) {
  _inherits(GlobalPwPolicy, _React$Component);

  var _super = _createSuper(GlobalPwPolicy);

  function GlobalPwPolicy(props) {
    var _this;

    _classCallCheck(this, GlobalPwPolicy);

    _this = _super.call(this, props);
    _this.state = {
      loading: true,
      loaded: false,
      activeKey: 1,
      // Lists of all the attributes for each tab/section.
      // We use the exact attribute name for the ID of
      // each field, so we can loop over them to efficently
      // check for changes, and updating/saving the config.
      saveGeneralDisabled: true,
      saveExpDisabled: true,
      saveLockoutDisabled: true,
      saveSyntaxDisabled: true
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleGeneralChange = _this.handleGeneralChange.bind(_assertThisInitialized(_this));
    _this.saveGeneral = _this.saveGeneral.bind(_assertThisInitialized(_this));
    _this.handleExpChange = _this.handleExpChange.bind(_assertThisInitialized(_this));
    _this.saveExp = _this.saveExp.bind(_assertThisInitialized(_this));
    _this.handleLockoutChange = _this.handleLockoutChange.bind(_assertThisInitialized(_this));
    _this.saveLockout = _this.saveLockout.bind(_assertThisInitialized(_this));
    _this.handleSyntaxChange = _this.handleSyntaxChange.bind(_assertThisInitialized(_this));
    _this.saveSyntax = _this.saveSyntax.bind(_assertThisInitialized(_this));
    _this.loadGlobal = _this.loadGlobal.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(GlobalPwPolicy, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config TODO
      if (!this.state.loaded) {
        this.loadGlobal();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleGeneralChange",
    value: function handleGeneralChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator = _createForOfIteratorHelper(general_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var general_attr = _step.value;

          if (attr == general_attr && this.state['_' + general_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(general_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _general_attr = _step2.value;

          if (attr != _general_attr && this.state['_' + _general_attr] != this.state[_general_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, "saveGeneralDisabled", disableSaveBtn), _this$setState));
    }
  }, {
    key: "saveGeneral",
    value: function saveGeneral() {
      var _this2 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(general_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveGeneral", "Saving general pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.loadGlobal();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.loadGlobal();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleUserChange",
    value: function handleUserChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator4 = _createForOfIteratorHelper(this.state.user_attrs),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var user_attr = _step4.value;

          if (attr == user_attr && this.state['_' + user_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      var _iterator5 = _createForOfIteratorHelper(this.state.user_attrs),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _user_attr = _step5.value;

          if (attr != _user_attr && this.state['_' + _user_attr] != this.state[_user_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "saveUserDisabled", disableSaveBtn), _this$setState2));
    }
  }, {
    key: "handleExpChange",
    value: function handleExpChange(e) {
      var _this$setState3;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator6 = _createForOfIteratorHelper(exp_attrs),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var exp_attr = _step6.value;

          if (attr == exp_attr && this.state['_' + exp_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      var _iterator7 = _createForOfIteratorHelper(exp_attrs),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var _exp_attr = _step7.value;

          if (attr != _exp_attr && this.state['_' + _exp_attr] != this.state[_exp_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      this.setState((_this$setState3 = {}, _defineProperty(_this$setState3, attr, value), _defineProperty(_this$setState3, "saveExpDisabled", disableSaveBtn), _this$setState3));
    }
  }, {
    key: "saveExp",
    value: function saveExp() {
      var _this3 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator8 = _createForOfIteratorHelper(exp_attrs),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var attr = _step8.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveExp", "Saving Expiration pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this3.loadGlobal();

        _this3.setState({
          loading: false
        });

        _this3.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.loadGlobal();

        _this3.setState({
          loading: false
        });

        _this3.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleLockoutChange",
    value: function handleLockoutChange(e) {
      var _this$setState4;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator9 = _createForOfIteratorHelper(lockout_attrs),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var lockout_attr = _step9.value;

          if (attr == lockout_attr && this.state['_' + lockout_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      var _iterator10 = _createForOfIteratorHelper(lockout_attrs),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var _lockout_attr = _step10.value;

          if (attr != _lockout_attr && this.state['_' + _lockout_attr] != this.state[_lockout_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      this.setState((_this$setState4 = {}, _defineProperty(_this$setState4, attr, value), _defineProperty(_this$setState4, "saveLockoutDisabled", disableSaveBtn), _this$setState4));
    }
  }, {
    key: "saveLockout",
    value: function saveLockout() {
      var _this4 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator11 = _createForOfIteratorHelper(lockout_attrs),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var attr = _step11.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveLockout", "Saving lockout pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.loadGlobal();

        _this4.setState({
          loading: false
        });

        _this4.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.loadGlobal();

        _this4.setState({
          loading: false
        });

        _this4.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleSyntaxChange",
    value: function handleSyntaxChange(e) {
      var _this$setState5;

      // Could be a typeahead change, check if "e" is an Array
      var attr;
      var value;

      if (Array.isArray(e)) {
        // Typeahead - convert array to string
        attr = "passworduserattributes";
        value = e.join(' ');
      } else {
        value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
        attr = e.target.id;
      }

      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator12 = _createForOfIteratorHelper(syntax_attrs),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var syntax_attr = _step12.value;

          if (syntax_attr == 'passworduserattributes' && attr == 'passworduserattributes') {
            var orig_val = this.state['_' + syntax_attr].join(' ');

            if (orig_val != value) {
              value = e; // restore value

              disableSaveBtn = false;
              break;
            }

            value = e; // restore value
          } else if (attr == syntax_attr && this.state['_' + syntax_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }

      var _iterator13 = _createForOfIteratorHelper(syntax_attrs),
          _step13;

      try {
        for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
          var _syntax_attr = _step13.value;

          if (_syntax_attr == 'passworduserattributes' && attr != 'passworduserattributes') {
            // Typeahead attribute needs special care
            var _orig_val = this.state['_' + _syntax_attr].join(' ');

            var new_val = this.state[_syntax_attr].join(' ');

            if (_orig_val != new_val) {
              disableSaveBtn = false;
              break;
            }
          } else if (attr != _syntax_attr && this.state['_' + _syntax_attr] != this.state[_syntax_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator13.e(err);
      } finally {
        _iterator13.f();
      }

      this.setState((_this$setState5 = {}, _defineProperty(_this$setState5, attr, value), _defineProperty(_this$setState5, "saveSyntaxDisabled", disableSaveBtn), _this$setState5));
    }
  }, {
    key: "saveSyntax",
    value: function saveSyntax() {
      var _this5 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator14 = _createForOfIteratorHelper(syntax_attrs),
          _step14;

      try {
        for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
          var attr = _step14.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator14.e(err);
      } finally {
        _iterator14.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveSyntax", "Saving syntax checking pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this5.loadGlobal();

        _this5.setState({
          loading: false
        });

        _this5.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.loadGlobal();

        _this5.setState({
          loading: false
        });

        _this5.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadGlobal",
    value: function loadGlobal() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadGlobal", "Load global password policy", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs; // Handle the checkbox values

        var pwpLocal = false;
        var pwIsGlobal = false;
        var pwChange = false;
        var pwMustChange = false;
        var pwHistory = false;
        var pwTrackUpdate = false;
        var pwExpire = false;
        var pwSendExpire = false;
        var pwLockout = false;
        var pwUnlock = false;
        var pwCheckSyntax = false;
        var pwPalindrome = false;
        var pwDictCheck = false;
        var pwAllowHashed = false;
        var pwInheritGlobal = false;
        var pwUserAttrs = [];

        if (attrs['nsslapd-pwpolicy-local'][0] == "on") {
          pwpLocal = true;
        }

        if (attrs['passwordchange'][0] == "on") {
          pwChange = true;
        }

        if (attrs['passwordmustchange'][0] == "on") {
          pwMustChange = true;
        }

        if (attrs['passwordhistory'][0] == "on") {
          pwHistory = true;
        }

        if (attrs['passwordtrackupdatetime'][0] == "on") {
          pwTrackUpdate = true;
        }

        if (attrs['passwordisglobalpolicy'][0] == "on") {
          pwIsGlobal = true;
        }

        if (attrs['passwordsendexpiringtime'][0] == "on") {
          pwSendExpire = true;
        }

        if (attrs['passwordlockout'][0] == "on") {
          pwLockout = true;
        }

        if (attrs['passwordunlock'][0] == "on") {
          pwUnlock = true;
        }

        if (attrs['passwordexp'][0] == "on") {
          pwExpire = true;
        }

        if (attrs['passwordchecksyntax'][0] == "on") {
          pwCheckSyntax = true;
        }

        if (attrs['passwordpalindrome'][0] == "on") {
          pwPalindrome = true;
        }

        if (attrs['passworddictcheck'][0] == "on") {
          pwExpire = true;
        }

        if (attrs['nsslapd-allow-hashed-passwords'][0] == "on") {
          pwAllowHashed = true;
        }

        if (attrs['nsslapd-pwpolicy-inherit-global'][0] == "on") {
          pwInheritGlobal = true;
        }

        if (attrs['passwordbadwords'][0] != "") {
          // Hack until this is fixed: https://pagure.io/389-ds-base/issue/50875
          if (attrs['passwordbadwords'].length > 1) {
            attrs['passwordbadwords'][0] = attrs['passwordbadwords'].join(' ');
          }
        }

        if (attrs['passworduserattributes'][0] != "") {
          if (attrs['passworduserattributes'].length > 1) {
            // Hack until this is fixed: https://pagure.io/389-ds-base/issue/50875
            attrs['passworduserattributes'][0] = attrs['passworduserattributes'].join(' ');
          } // Could be space or comma separated list


          if (attrs['passworduserattributes'][0].indexOf(',') > -1) {
            pwUserAttrs = attrs['passworduserattributes'][0].trim();
            pwUserAttrs = pwUserAttrs.split(',');
          } else {
            pwUserAttrs = attrs['passworduserattributes'][0].split();
          }
        }

        _this6.setState(function () {
          return {
            loaded: true,
            loading: false,
            saveGeneralDisabled: true,
            saveUserDisabled: true,
            saveExpDisabled: true,
            saveLockoutDisabled: true,
            saveSyntaxDisabled: true,
            // Settings
            'nsslapd-pwpolicy-local': pwpLocal,
            passwordisglobalpolicy: pwIsGlobal,
            passwordchange: pwChange,
            passwordmustchange: pwMustChange,
            passwordhistory: pwHistory,
            passwordtrackupdatetime: pwTrackUpdate,
            passwordexp: pwExpire,
            passwordsendexpiringtime: pwSendExpire,
            passwordlockout: pwLockout,
            passwordunlock: pwUnlock,
            passwordchecksyntax: pwCheckSyntax,
            passwordpalindrome: pwPalindrome,
            passworddictcheck: pwDictCheck,
            'nsslapd-allow-hashed-passwords': pwAllowHashed,
            'nsslapd-pwpolicy-inherit-global': pwInheritGlobal,
            passwordstoragescheme: attrs['passwordstoragescheme'][0],
            passwordinhistory: attrs['passwordinhistory'][0],
            passwordwarning: attrs['passwordwarning'][0],
            passwordmaxage: attrs['passwordmaxage'][0],
            passwordminage: attrs['passwordminage'][0],
            passwordgracelimit: attrs['passwordgracelimit'][0],
            passwordlockoutduration: attrs['passwordlockoutduration'][0],
            passwordmaxfailure: attrs['passwordmaxfailure'][0],
            passwordresetfailurecount: attrs['passwordresetfailurecount'][0],
            passwordminlength: attrs['passwordminlength'][0],
            passwordmindigits: attrs['passwordmindigits'][0],
            passwordminalphas: attrs['passwordminalphas'][0],
            passwordminuppers: attrs['passwordminuppers'][0],
            passwordminlowers: attrs['passwordminlowers'][0],
            passwordminspecials: attrs['passwordminspecials'][0],
            passwordmin8bit: attrs['passwordmin8bit'][0],
            passwordmaxrepeats: attrs['passwordmaxrepeats'][0],
            passwordmaxsequence: attrs['passwordmaxsequence'][0],
            passwordmaxseqsets: attrs['passwordmaxseqsets'][0],
            passwordmaxclasschars: attrs['passwordmaxclasschars'][0],
            passwordmincategories: attrs['passwordmincategories'][0],
            passwordmintokenlength: attrs['passwordmintokenlength'][0],
            passwordbadwords: attrs['passwordbadwords'][0],
            passworduserattributes: pwUserAttrs,
            passwordadmindn: attrs['passwordadmindn'][0],
            // Record original values
            '_nsslapd-pwpolicy-local': pwpLocal,
            _passwordisglobalpolicy: pwIsGlobal,
            _passwordchange: pwChange,
            _passwordmustchange: pwMustChange,
            _passwordhistory: pwHistory,
            _passwordtrackupdatetime: pwTrackUpdate,
            _passwordexp: pwExpire,
            _passwordsendexpiringtime: pwSendExpire,
            _passwordlockout: pwLockout,
            _passwordunlock: pwUnlock,
            _passwordchecksyntax: pwCheckSyntax,
            _passwordpalindrome: pwPalindrome,
            _passworddictcheck: pwDictCheck,
            '_nsslapd-allow-hashed-passwords': pwAllowHashed,
            '_nsslapd-pwpolicy-inherit-global': pwInheritGlobal,
            _passwordstoragescheme: attrs['passwordstoragescheme'][0],
            _passwordinhistory: attrs['passwordinhistory'][0],
            _passwordwarning: attrs['passwordwarning'][0],
            _passwordmaxage: attrs['passwordmaxage'][0],
            _passwordminage: attrs['passwordminage'][0],
            _passwordgracelimit: attrs['passwordgracelimit'][0],
            _passwordlockoutduration: attrs['passwordlockoutduration'][0],
            _passwordmaxfailure: attrs['passwordmaxfailure'][0],
            _passwordresetfailurecount: attrs['passwordresetfailurecount'][0],
            _passwordminlength: attrs['passwordminlength'][0],
            _passwordmindigits: attrs['passwordmindigits'][0],
            _passwordminalphas: attrs['passwordminalphas'][0],
            _passwordminuppers: attrs['passwordminuppers'][0],
            _passwordminlowers: attrs['passwordminlowers'][0],
            _passwordminspecials: attrs['passwordminspecials'][0],
            _passwordmin8bit: attrs['passwordmin8bit'][0],
            _passwordmaxrepeats: attrs['passwordmaxrepeats'][0],
            _passwordmaxsequence: attrs['passwordmaxsequence'][0],
            _passwordmaxseqsets: attrs['passwordmaxseqsets'][0],
            _passwordmaxclasschars: attrs['passwordmaxclasschars'][0],
            _passwordmincategories: attrs['passwordmincategories'][0],
            _passwordmintokenlength: attrs['passwordmintokenlength'][0],
            _passwordbadwords: attrs['passwordbadwords'][0],
            _passworduserattributes: pwUserAttrs,
            _passwordadmindn: attrs['passwordadmindn'][0]
          };
        }, _this6.props.enableTree());
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.setState({
          loaded: true,
          loading: false
        });

        _this6.props.addNotification("error", "Error loading global password policy - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this7 = this;

      var pwp_element = "";
      var pwExpirationRows = "";
      var pwLockoutRows = "";
      var pwSyntaxRows = "";

      if (this.state.passwordchecksyntax) {
        pwSyntaxRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The minimum number of characters in the password (passwordMinLength)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminlength",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminlength,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3,
          title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas)."
        }, "Min Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminalphas",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminalphas,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmindigits",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmindigits,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminspecials",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminspecials,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminuppers",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminuppers,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminlowers",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminlowers,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmin8bit",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmin8bit,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmincategories",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmincategories,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The smallest attribute value used when checking if the password contains any of the user's account information (passwordMinTokenLength)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Min Token Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmintokenlength",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmintokenlength,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Max Repeated Chars"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "The maximum number of times the same character can sequentially appear in a password (passwordMaxRepeats)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxrepeats",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxrepeats,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Max Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxsequence",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxsequence,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2,
          title: "The maximum number of allowed monotonic characters sequences that can appear more than once (passwordMaxSeqSets)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxseqsets",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxseqsets,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxclasschars",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxclasschars,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordbadwords",
          type: "text",
          value: this.state.passwordbadwords,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "A space-separated list of entry attributes to compare to the new password (passwordUserAttributes).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
          onChange: function onChange(values) {
            _this7.handleSyntaxChange(values);
          },
          multiple: true,
          selected: this.state.passworduserattributes,
          options: this.props.attrs,
          placeholder: "Type attributes to check..."
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-lg",
          title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passworddictcheck",
          defaultChecked: this.state.passworddictcheck,
          onChange: this.handleSyntaxChange
        }, "Dictionary Check"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Reject a password if it is a palindrome (passwordPalindrome)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordpalindrome",
          defaultChecked: this.state.passwordpalindrome,
          onChange: this.handleSyntaxChange
        }, "Reject Palindromes"))));
      }

      if (this.state.passwordlockout) {
        pwLockoutRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxfailure",
          type: "number",
          min: "1",
          max: "100",
          value: this.state.passwordmaxfailure,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordresetfailurecount",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordresetfailurecount,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordlockoutduration",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordlockoutduration,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordunlock",
          defaultChecked: this.state.passwordunlock,
          onChange: this.handleLockoutChange
        }, "Do Not Lockout Account Forever"))));
      }

      if (this.state.passwordexp) {
        pwExpirationRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordmaxage",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordmaxage,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordgracelimit",
          type: "number",
          min: "0",
          max: "128",
          value: this.state.passwordgracelimit,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordwarning",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordwarning,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordsendexpiringtime",
          defaultChecked: this.state.passwordsendexpiringtime,
          onChange: this.handleExpChange
        }, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Password Expiring"), " Control"))));
      }

      if (this.state.loading || !this.state.loaded) {
        pwp_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      } else {
        pwp_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: this.state.loading ? 'ds-fadeout' : 'ds-fadein ds-margin-left'
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
          id: "server-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'General Settings'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Expiration'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Account Lockout'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Syntax Checking'
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "Set the password storage scheme (passwordstoragescheme).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
          className: "btn btn-default dropdown ds-margin-left-sm",
          id: "passwordstoragescheme",
          onChange: this.handleGeneralChange,
          value: this.state.passwordstoragescheme
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "PBKDF2_SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA384"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SMD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CLEAR")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-lg",
          title: "Allow subtree/user defined local password policies (nsslapd-pwpolicy-local)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-pwpolicy-local",
          defaultChecked: this.state['nsslapd-pwpolicy-local'],
          onChange: this.handleGeneralChange
        }, "Allow Local Password Policies"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "If a local password policy does not defined any syntax rules then inherit the local policy syntax (nsslapd-pwpolicy-inherit-global)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-pwpolicy-inherit-global",
          defaultChecked: this.state["nsslapd-pwpolicy-inherit-global"],
          onChange: this.handleGeneralChange
        }, "Local Policies Inherit Global Policy"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Allow anyone to add a prehashed password (nsslapd-allow-hashed-passwords)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-allow-hashed-passwords",
          defaultChecked: this.state["nsslapd-allow-hashed-passwords"],
          onChange: this.handleGeneralChange
        }, "Allow Adding Pre-Hashed Passwords"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Allow password policy state attributes to replicate (passwordIsGlobalPolicy)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordisglobalpolicy",
          defaultChecked: this.state.passwordisglobalpolicy,
          onChange: this.handleGeneralChange
        }, "Replicate Password Policy State Attributes"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordtrackupdatetime",
          defaultChecked: this.state.passwordtrackupdatetime,
          onChange: this.handleGeneralChange
        }, "Track Password Update Time"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Allow user's to change their passwords (passwordChange)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordchange",
          defaultChecked: this.state.passwordchange,
          onChange: this.handleGeneralChange
        }, "Allow Users To Change Their Passwords"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "User must change its password after its been reset by an administrator (passwordMustChange)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordmustchange",
          defaultChecked: this.state.passwordmustchange,
          onChange: this.handleGeneralChange
        }, "User Must Change Password After Reset"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Maintain a password history for each user (passwordHistory)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordhistory",
          defaultChecked: this.state.passwordhistory,
          onChange: this.handleGeneralChange
        }, "Keep Password History")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline ds-left-margin ds-raise-field ds-width-sm"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordinhistory",
          type: "number",
          min: "0",
          max: "24",
          value: this.state.passwordinhistory,
          onChange: this.handleGeneralChange,
          disabled: !this.state.passwordhistory
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-lg",
          title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Password Minimum Age")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordminage",
          type: "number",
          min: "0",
          max: "2147483647",
          value: this.state.passwordminage,
          onChange: this.handleGeneralChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-lg",
          title: "The DN for a password administrator or administrator group (passwordAdminDN)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], null, "Password Administrator")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 7
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "passwordadmindn",
          type: "text",
          value: this.state.passwordadmindn,
          onChange: this.handleGeneralChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.saveGeneralDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg",
          onClick: this.saveGeneral
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Enable a password expiration policy (passwordExp)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordexp",
          defaultChecked: this.state.passwordexp,
          onChange: this.handleExpChange
        }, "Enforce Password Expiration"))), pwExpirationRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.saveExpDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveExp
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Enable account lockout (passwordLockout)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordlockout",
          defaultChecked: this.state.passwordlockout,
          onChange: this.handleLockoutChange
        }, "Enable Account Lockout"))), pwLockoutRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.saveLockoutDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveLockout
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "Enable password syntax checking (passwordCheckSyntax)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "passwordchecksyntax",
          defaultChecked: this.state.passwordchecksyntax,
          onChange: this.handleSyntaxChange
        }, "Enable Password Syntax Checking"))), pwSyntaxRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.saveSyntaxDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveSyntax
        }, "Save"))))))));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg ds-margin-left-sm"
      }, "Global Password Policy", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh global password policy settings",
        onClick: this.reloadConfig
      })))), pwp_element);
    }
  }]);

  return GlobalPwPolicy;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
GlobalPwPolicy.propTypes = {
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array
};
GlobalPwPolicy.defaultProps = {
  attrs: []
};

/***/ }),

/***/ "./src/lib/database/indexes.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/indexes.jsx ***!
  \**************************************/
/*! exports provided: SuffixIndexes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixIndexes", function() { return SuffixIndexes; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _databaseModal_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./databaseModal.jsx */ "./src/lib/database/databaseModal.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var SuffixIndexes = /*#__PURE__*/function (_React$Component) {
  _inherits(SuffixIndexes, _React$Component);

  var _super = _createSuper(SuffixIndexes);

  function SuffixIndexes(props) {
    var _this;

    _classCallCheck(this, SuffixIndexes);

    _this = _super.call(this, props);
    _this.state = {
      // indexes
      showIndexModal: false,
      showEditIndexModal: false,
      showReindexModal: false,
      reindexMsg: "",
      editIndexName: "",
      types: [],
      attributes: [],
      matchingRules: [],
      mrs: [],
      _mrs: [],
      showConfirmReindex: false,
      reindexAttrName: "",
      showConfirmDeleteIndex: false,
      deleteAttrName: "",
      // Add indexes
      addIndexName: [],
      addIndexTypeEq: false,
      addIndexTypePres: false,
      addIndexTypeSub: false,
      addIndexTypeApprox: false,
      reindexOnAdd: false,
      // Edit indexes
      errObj: {},
      _isMounted: true
    };
    _this.loadIndexes = _this.loadIndexes.bind(_assertThisInitialized(_this));
    _this.showIndexModal = _this.showIndexModal.bind(_assertThisInitialized(_this));
    _this.closeIndexModal = _this.closeIndexModal.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_this));
    _this.saveIndex = _this.saveIndex.bind(_assertThisInitialized(_this));
    _this.saveEditIndex = _this.saveEditIndex.bind(_assertThisInitialized(_this));
    _this.reindexIndex = _this.reindexIndex.bind(_assertThisInitialized(_this));
    _this.deleteIndex = _this.deleteIndex.bind(_assertThisInitialized(_this));
    _this.showEditIndexModal = _this.showEditIndexModal.bind(_assertThisInitialized(_this));
    _this.closeEditIndexModal = _this.closeEditIndexModal.bind(_assertThisInitialized(_this));
    _this.showConfirmReindex = _this.showConfirmReindex.bind(_assertThisInitialized(_this));
    _this.closeConfirmReindex = _this.closeConfirmReindex.bind(_assertThisInitialized(_this));
    _this.showConfirmDeleteIndex = _this.showConfirmDeleteIndex.bind(_assertThisInitialized(_this));
    _this.closeConfirmDeleteIndex = _this.closeConfirmDeleteIndex.bind(_assertThisInitialized(_this));
    _this.closeReindexModal = _this.closeReindexModal.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(SuffixIndexes, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.loadIndexes();
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.state._isMounted = false;
    }
  }, {
    key: "loadIndexes",
    value: function loadIndexes() {
      var _this2 = this;

      // Get all the attributes and matching rules now
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "matchingrules", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get matching rules", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var mrContent = JSON.parse(content);
        var mrs = [];

        for (var i = 0; i < mrContent['items'].length; i++) {
          if (mrContent['items'][i].name[0] != "") {
            mrs.push(mrContent['items'][i].name[0]);
          }
        }

        var idx_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "index", "list", "--just-names", _this2.props.suffix];
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get current index list", idx_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(idx_cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var idxContent = JSON.parse(content);
          var indexList = idxContent['items'];
          var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "schema", "attributetypes", "list"];
          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadIndexes (suffix config)", "Get attrs", attr_cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var attrContent = JSON.parse(content);
            var attrs = [];

            var _iterator = _createForOfIteratorHelper(attrContent['items']),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var _content = _step.value;

                if (indexList.indexOf(_content.name[0]) == -1) {
                  // Attribute is not a current index, add it to the list
                  // of available attributes to index
                  attrs.push(_content.name[0]);
                }
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            if (_this2.state._isMounted) {
              _this2.setState({
                matchingRules: mrs,
                attributes: attrs
              });
            }
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this2.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
          });
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get matching rules - ".concat(errMsg.desc));
      });
    } //
    // Index Modal functions
    //

  }, {
    key: "showIndexModal",
    value: function showIndexModal() {
      this.setState({
        showIndexModal: true,
        errObj: {},
        mrs: [],
        addIndexName: [],
        addIndexTypeEq: "",
        addIndexTypeSub: "",
        addIndexTypePres: "",
        addIndexTypeApprox: ""
      });
    }
  }, {
    key: "closeIndexModal",
    value: function closeIndexModal() {
      this.setState({
        showIndexModal: false
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "saveIndex",
    value: function saveIndex() {
      var _this3 = this;

      // Validate the form
      if (!this.state.addIndexTypeEq && !this.state.addIndexTypePres && !this.state.addIndexTypeSub && !this.state.addIndexTypeApprox) {
        this.props.addNotification("warning", "You must select at least one 'Index Type'");
        return;
      }

      if (this.state.addIndexName == "" || this.state.addIndexName.length == 0) {
        this.props.addNotification("warning", "You must select an attribute to index");
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "add", "--attr=" + this.state.addIndexName[0], this.props.suffix];

      if (this.state.addIndexTypeEq) {
        cmd.push('--index-type=eq');
      }

      if (this.state.addIndexTypePres) {
        cmd.push('--index-type=pres');
      }

      if (this.state.addIndexTypeSub) {
        cmd.push('--index-type=sub');
      }

      if (this.state.addIndexTypeApprox) {
        cmd.push('--index-type=approx');
      }

      for (var i = 0; i < this.state.mrs.length; i++) {
        cmd.push('--matching-rule=' + this.state.mrs[i]);
      }

      if (this.state.reindexOnAdd) {
        cmd.push('--reindex');
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveIndex", "Create new index", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        // this.loadIndexes();
        _this3.props.reload(_this3.props.suffix);

        _this3.closeIndexModal();

        if (_this3.state.reindexOnAdd) {
          _this3.reindexAttr(_this3.state.addIndexName[0]);
        }

        _this3.props.addNotification("success", "Successfully created new index");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.closeIndexModal();

        _this3.props.addNotification("error", "Error creating index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "showEditIndexModal",
    value: function showEditIndexModal(item) {
      // Set the state types and matching Rules
      var currentMRS = [];

      if (item.matchingrules !== undefined && item.matchingrules.length > 0 && item.matchingrules[0].length > 0) {
        var parts = item.matchingrules[0].split(",").map(function (item) {
          return item.trim();
        });

        var _iterator2 = _createForOfIteratorHelper(parts),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var part = _step2.value;
            currentMRS.push(part);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      }

      this.setState({
        editIndexName: item.name[0],
        types: item.types,
        mrs: currentMRS,
        _mrs: currentMRS,
        showEditIndexModal: true,
        errObj: {},
        reindexOnAdd: false,
        editIndexTypeEq: item.types[0].includes("eq"),
        editIndexTypeSub: item.types[0].includes("sub"),
        editIndexTypePres: item.types[0].includes("pres"),
        editIndexTypeApprox: item.types[0].includes("approx"),
        _eq: item.types[0].includes("eq"),
        _sub: item.types[0].includes("sub"),
        _pres: item.types[0].includes("pres"),
        _approx: item.types[0].includes("approx")
      });
    }
  }, {
    key: "closeEditIndexModal",
    value: function closeEditIndexModal() {
      this.setState({
        showEditIndexModal: false
      });
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(values, item) {
      if (item == "matchingRules") {
        this.setState({
          mrs: values
        });
      } else if (item == "indexName") {
        this.setState({
          addIndexName: values
        });
      }
    }
  }, {
    key: "reindexAttr",
    value: function reindexAttr(attr) {
      var _this4 = this;

      var reindex_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", "--attr=" + attr, this.props.suffix]; // Open spinner modal

      this.setState({
        showReindexModal: true,
        reindexMsg: attr
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("reindexAttr", "index attribute", reindex_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(reindex_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.addNotification("success", "Attribute (" + attr + ") has successfully been reindexed");

        _this4.setState({
          showReindexModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error indexing attribute ".concat(attr, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveEditIndex",
    value: function saveEditIndex() {
      var _this5 = this;

      var origMRS = this.state._mrs;
      var newMRS = this.state.mrs;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "set", "--attr=" + this.state.editIndexName, this.props.suffix]; // Make sure we have at least one index type

      if (!this.state.editIndexTypeEq && !this.state.editIndexTypeSub && !this.state.editIndexTypePres && !this.state.editIndexTypeApprox) {
        this.props.addNotification("warning", "You must have at least one index type");
        return;
      } // Check if we have to add mrs


      var _iterator3 = _createForOfIteratorHelper(newMRS),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var newMR = _step3.value;
          var found = false;

          var _iterator5 = _createForOfIteratorHelper(origMRS),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var origMR = _step5.value;

              if (origMR == newMR) {
                found = true;
                break;
              }
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          if (!found) {
            cmd.push('--add-mr=' + newMR);
          }
        } // Check if we have to remove mrs

      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var _iterator4 = _createForOfIteratorHelper(origMRS),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var _origMR = _step4.value;
          var _found = false;

          var _iterator6 = _createForOfIteratorHelper(newMRS),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var _newMR = _step6.value;

              if (_newMR == _origMR) {
                console.log("Found mr no need to delete");
                _found = true;
                break;
              }
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }

          if (!_found) {
            cmd.push('--del-mr=' + _origMR);
          }
        } // Check if we have to add/delete index types

      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      if (this.state.editIndexTypeEq && !this.state._eq) {
        cmd.push('--add-type=eq');
      } else if (!this.state.editIndexTypeEq && this.state._eq) {
        cmd.push('--del-type=eq');
      }

      if (this.state.editIndexTypeSub && !this.state._sub) {
        cmd.push('--add-type=sub');
      } else if (!this.state.editIndexTypeSub && this.state._sub) {
        cmd.push('--del-type=sub');
      }

      if (this.state.editIndexTypePres && !this.state._pres) {
        cmd.push('--add-type=pres');
      } else if (!this.state.editIndexTypePres && this.state._pres) {
        cmd.push('--del-type=pres');
      }

      if (this.state.editIndexTypeApprox && !this.state._approx) {
        cmd.push('--add-type=approx');
      } else if (!this.state.editIndexTypeApprox && this.state._approx) {
        cmd.push('--del-type=approx');
      }

      if (cmd.length > 8) {
        // We have changes, do it
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveEditIndex", "Edit index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this5.props.reload(_this5.props.suffix);

          _this5.closeEditIndexModal();

          _this5.props.addNotification("success", "Successfully edited index");

          if (_this5.state.reindexOnAdd) {
            _this5.reindexAttr(_this5.state.editIndexName);
          }
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this5.props.reload(_this5.props.suffix);

          _this5.closeEditIndexModal();

          _this5.props.addNotification("error", "Error editing index - ".concat(errMsg.desc));
        });
      }
    }
  }, {
    key: "showConfirmReindex",
    value: function showConfirmReindex(item) {
      this.setState({
        reindexAttrName: item.name[0],
        showConfirmReindex: true
      });
    }
  }, {
    key: "closeConfirmReindex",
    value: function closeConfirmReindex(item) {
      this.setState({
        reindexAttrName: "",
        showConfirmReindex: false
      });
    }
  }, {
    key: "showConfirmDeleteIndex",
    value: function showConfirmDeleteIndex(item) {
      this.setState({
        deleteAttrName: item.name[0],
        showConfirmDeleteIndex: true
      });
    }
  }, {
    key: "closeConfirmDeleteIndex",
    value: function closeConfirmDeleteIndex(item) {
      this.setState({
        deleteAttrName: "",
        showConfirmDeleteIndex: false
      });
    }
  }, {
    key: "reindexIndex",
    value: function reindexIndex(attr) {
      this.reindexAttr(attr);
    }
  }, {
    key: "closeReindexModal",
    value: function closeReindexModal() {
      this.setState({
        showReindexModal: false
      });
    }
  }, {
    key: "deleteIndex",
    value: function deleteIndex(idxName) {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "delete", "--attr=" + idxName, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteIndex", "deleteEdit index", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification("success", "Successfully deleted index: " + idxName);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification("error", "Error deleting index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var reindex_attr = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.reindexAttrName);
      var delete_attr = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.deleteAttrName);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Database Indexes'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'System Indexes'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["IndexTable"], {
        editable: true,
        rows: this.props.indexRows,
        editIndex: this.showEditIndexModal,
        reindexIndex: this.showConfirmReindex,
        deleteIndex: this.showConfirmDeleteIndex
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        type: "button",
        onClick: this.showIndexModal
      }, "Add Index"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["IndexTable"], {
        rows: this.props.systemIndexRows
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddIndexModal, {
        showModal: this.state.showIndexModal,
        closeHandler: this.closeIndexModal,
        handleChange: this.handleChange,
        saveHandler: this.saveIndex,
        matchingRules: this.state.matchingRules,
        attributes: this.state.attributes,
        mrs: this.state.mrs,
        attributeName: this.state.addIndexName,
        handleTypeaheadChange: this.handleTypeaheadChange
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(EditIndexModal, {
        showModal: this.state.showEditIndexModal,
        closeHandler: this.closeEditIndexModal,
        handleChange: this.handleChange,
        saveHandler: this.saveEditIndex,
        types: this.state.types,
        mrs: this.state.mrs,
        matchingRules: this.state.matchingRules,
        indexName: this.state.editIndexName,
        handleTypeaheadChange: this.handleTypeaheadChange
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmReindex,
        closeHandler: this.closeConfirmReindex,
        actionFunc: this.reindexIndex,
        actionParam: this.state.reindexAttrName,
        msg: "Are you sure you want to reindex this attribute?",
        msgContent: reindex_attr
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteIndex,
        closeHandler: this.closeConfirmDeleteIndex,
        actionFunc: this.deleteIndex,
        actionParam: this.state.deleteAttrName,
        msg: "Are you sure you want to delete this attribute index?",
        msgContent: delete_attr
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_4__["ReindexModal"], {
        showModal: this.state.showReindexModal,
        closeHandler: this.closeReindexModal,
        msg: this.state.reindexMsg
      }));
    }
  }]);

  return SuffixIndexes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var AddIndexModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(AddIndexModal, _React$Component2);

  var _super2 = _createSuper(AddIndexModal);

  function AddIndexModal() {
    _classCallCheck(this, AddIndexModal);

    return _super2.apply(this, arguments);
  }

  _createClass(AddIndexModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          matchingRules = _this$props.matchingRules,
          attributes = _this$props.attributes,
          mrs = _this$props.mrs,
          handleTypeaheadChange = _this$props.handleTypeaheadChange,
          attributeName = _this$props.attributeName;
      var availMR = [];

      var _iterator7 = _createForOfIteratorHelper(matchingRules),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var mr = _step7.value;
          availMR.push(mr);
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      var availAttrs = [];

      var _iterator8 = _createForOfIteratorHelper(attributes),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var attr = _step8.value;
          availAttrs.push(attr);
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Title, null, "Add Database Index")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-config-label",
        htmlFor: "indexAttributeName",
        title: "Select an attribute to index"
      }, "Select An Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        id: "indexAttributeName",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "indexName");
        },
        selected: attributeName,
        maxResults: 1000,
        options: availAttrs,
        placeholder: "Type a attribute name to index..."
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Index Types")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeEq",
        onChange: handleChange
      }, " Equailty Indexing"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypePres",
        onChange: handleChange
      }, " Presence Indexing"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeSub",
        onChange: handleChange
      }, " Substring Indexing"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "addIndexTypeApprox",
        onChange: handleChange
      }, " Approximate Indexing")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12,
        title: "List of matching rules separated by a 'space'"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Matching Rules")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        multiple: true,
        id: "matchingRules",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "matchingRules");
        },
        maxResults: 1000,
        selected: mrs,
        options: availMR,
        placeholder: "Type a matching rule name..."
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexOnAdd",
        onChange: handleChange
      }, "Index attribute after creation"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Index"))));
    }
  }]);

  return AddIndexModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var EditIndexModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(EditIndexModal, _React$Component3);

  var _super3 = _createSuper(EditIndexModal);

  function EditIndexModal(props) {
    var _this7;

    _classCallCheck(this, EditIndexModal);

    _this7 = _super3.call(this, props);
    _this7.state = {
      mrs: []
    };
    return _this7;
  }

  _createClass(EditIndexModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          indexName = _this$props2.indexName,
          types = _this$props2.types,
          mrs = _this$props2.mrs,
          matchingRules = _this$props2.matchingRules,
          handleTypeaheadChange = _this$props2.handleTypeaheadChange;
      var attrTypes = "";

      if (types != "" && types.length > 0) {
        attrTypes = types[0].split(",").map(function (item) {
          return item.trim();
        });
      }

      var currentMrs = mrs;
      var availMR = matchingRules; // Default settings

      var eq = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeEq",
        onChange: handleChange
      }, " Equailty Indexing"));
      var pres = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypePres",
        onChange: handleChange
      }, " Presence Indexing"));
      var sub = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeSub",
        onChange: handleChange
      }, " Substring Indexing"));
      var approx = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "editIndexTypeApprox",
        onChange: handleChange
      }, " Approximate Indexing"));

      if (attrTypes.includes('eq')) {
        eq = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeEq",
          onChange: handleChange,
          defaultChecked: true
        }, "Equality Indexing"));
      }

      if (attrTypes.includes('pres')) {
        pres = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypePres",
          onChange: handleChange,
          defaultChecked: true
        }, "Presence Indexing"));
      }

      if (attrTypes.includes('sub')) {
        sub = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeSub",
          onChange: handleChange,
          defaultChecked: true
        }, "Substring Indexing"));
      }

      if (attrTypes.includes('approx')) {
        approx = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "editIndexTypeApprox",
          onChange: handleChange,
          defaultChecked: true
        }, "Approximate Indexing"));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Title, null, "Edit Database Index (", indexName, ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        type: "pf",
        style: {
          'marginRight': '15px'
        },
        name: "edit"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
        size: "4"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, indexName))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Index Types")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, eq)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, pres)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, sub)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 9
      }, approx))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Matching Rules")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_8__["Typeahead"], {
        multiple: true,
        id: "matchingRulesEdit",
        onChange: function onChange(values) {
          handleTypeaheadChange(values, "matchingRules");
        },
        selected: currentMrs,
        options: availMR,
        placeholder: "Type a matching rule name..."
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexOnAdd",
        onChange: handleChange
      }, "Reindex Attribute After Saving"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Save Index"))));
    }
  }]);

  return EditIndexModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


SuffixIndexes.propTypes = {
  systemIndexRows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  indexRows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
SuffixIndexes.defaultProps = {
  systemIndexRows: [],
  indexRows: [],
  serverId: "",
  suffix: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
AddIndexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  matchingRules: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  mrs: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  attributeName: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
AddIndexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  matchingRules: [],
  attributes: [],
  mrs: [],
  attributeName: [],
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};
EditIndexModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  matchingRules: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  types: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  mrs: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  indexName: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
EditIndexModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  matchingRules: [],
  types: [],
  mrs: [],
  indexName: "",
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"]
};

/***/ }),

/***/ "./src/lib/database/localPwp.jsx":
/*!***************************************!*\
  !*** ./src/lib/database/localPwp.jsx ***!
  \***************************************/
/*! exports provided: LocalPwPolicy */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalPwPolicy", function() { return LocalPwPolicy; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var general_attrs = ["passwordstoragescheme", "passwordtrackupdatetime", "passwordchange", "passwordmustchange", "passwordhistory", "passwordinhistory", "passwordminage"];
var exp_attrs = ["passwordexp", "passwordgracelimit", "passwordsendexpiringtime", "passwordmaxage", "passwordwarning"];
var lockout_attrs = ["passwordlockout", "passwordunlock", "passwordlockoutduration", "passwordmaxfailure", "passwordresetfailurecount"];
var syntax_attrs = ["passwordchecksyntax", "passwordminlength", "passwordmindigits", "passwordminalphas", "passwordminuppers", "passwordminlowers", "passwordminspecials", "passwordmin8bit", "passwordmaxrepeats", "passwordpalindrome", "passwordmaxsequence", "passwordmaxseqsets", "passwordmaxclasschars", "passwordmincategories", "passwordmintokenlength", "passwordbadwords", "passworduserattributes", "passworddictcheck"];

var CreatePolicy = /*#__PURE__*/function (_React$Component) {
  _inherits(CreatePolicy, _React$Component);

  var _super = _createSuper(CreatePolicy);

  function CreatePolicy() {
    _classCallCheck(this, CreatePolicy);

    return _super.apply(this, arguments);
  }

  _createClass(CreatePolicy, [{
    key: "render",
    value: function render() {
      var _this = this;

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
        className: "ds-margin-left",
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Create A New Local Password Policy")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Password Policy Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-margin-left-sm",
        id: "createPolicyType",
        onChange: this.props.handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "Subtree Policy"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "User Policy")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top ds-config-header",
        title: "The DN of the entry to apply this password policy to."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Target DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "policyDN",
        type: "text",
        onChange: this.props.handleChange,
        className: this.props.invalid_dn ? "ds-margin-left-sm ds-input-auto ds-input-bad" : "ds-margin-left-sm ds-input-auto"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        textClosed: "Show General Settings",
        textOpened: "Hide General Settings",
        className: "ds-margin-right ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        title: "Set the password storage scheme (passwordstoragescheme).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], null, "Password Storage Scheme")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "create_passwordstoragescheme",
        onChange: this.props.handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "PBKDF2_SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA384"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SMD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CLEAR")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], null, "Password Minimum Age")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminage",
        type: "number",
        min: "0",
        max: "2147483647",
        onChange: this.props.handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordtrackupdatetime",
        onChange: this.props.handleChange
      }, "Track Password Update Time"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Allow user's to change their passwords (passwordChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordchange",
        onChange: this.props.handleChange
      }, "Allow Users To Change Their Passwords"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "User must change its password after its been reset by an administrator (passwordMustChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordmustchange",
        onChange: this.props.handleChange
      }, "User Must Change Password After Reset"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Maintain a password history for each user (passwordHistory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordhistory",
        onChange: this.props.handleChange
      }, "Keep Password History"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top ds-margin-bottom",
        title: "The number of passwords to remember for each user (passwordInHistory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Passwords In History"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordinhistory",
        type: "number",
        min: "0",
        max: "24",
        onChange: this.props.handleChange
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        textClosed: "Show Expiration Settings",
        textOpened: "Hide Expiration Settings",
        className: "ds-margin-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Enable a password expiration policy (passwordExp)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordexp",
        onChange: this.props.handleChange
      }, "Enforce Password Expiration"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxage",
        type: "number",
        min: "1",
        max: "2147483647",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordexp
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordgracelimit",
        type: "number",
        min: "0",
        max: "128",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordexp
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordwarning",
        type: "number",
        min: "1",
        max: "2147483647",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordexp
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordsendexpiringtime",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordexp
      }, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Password Expiring"), " Control"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        textClosed: "Show Lockout Settings",
        textOpened: "Hide Lockout Settings",
        className: "ds-margin-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Enable account lockout (passwordLockout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordlockout",
        onChange: this.props.handleChange
      }, "Enable Account Lockout"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxfailure",
        type: "number",
        min: "1",
        max: "100",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordlockout
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordresetfailurecount",
        type: "number",
        min: "1",
        max: "2147483647",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordlockout
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordlockoutduration",
        type: "number",
        min: "1",
        max: "2147483647",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordlockout
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordunlock",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordlockout
      }, "Do Not Lockout Account Forever"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        textClosed: "Show Syntax Settings",
        textOpened: "Hide Syntax Settings",
        className: "ds-margin-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Enable password syntax checking (passwordCheckSyntax)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 11
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordchecksyntax",
        onChange: this.props.handleChange
      }, "Enable Password Syntax Checking"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The minimum number of characters in the password (passwordMinLength)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminlength",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3,
        title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas)."
      }, "Min Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminalphas",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmindigits",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminspecials",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminuppers",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordminlowers",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmin8bit",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmincategories",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The smallest attribute value used when checking if the password contains any of the user's account information (passwordMinTokenLength)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Min Token Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmintokenlength",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Max Repeated Chars"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "The maximum number of times the same character can sequentially appear in a password (passwordMaxRepeats)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxrepeats",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Max Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxsequence",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2,
        title: "The maximum number of allowed monotonic characters sequences that can appear more than once (passwordMaxSeqSets)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxseqsets",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordmaxclasschars",
        type: "number",
        min: "0",
        max: "1000",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
        id: "create_passwordbadwords",
        type: "text",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        title: "A space-separated list of entry attributes to compare to the new password (passwordUserAttributes).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__["Typeahead"], {
        onChange: function onChange(values) {
          _this.props.handleChange(values);
        },
        multiple: true,
        selected: this.props.passworduserattributes,
        options: this.props.attrs,
        placeholder: "Type attributes to check...",
        disabled: !this.props.passwordchecksyntax
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top-lg",
        title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passworddictcheck",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }, "Dictionary Check"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
        className: "ds-margin-top",
        title: "Reject a password if it is a palindrome (passwordPalindrome)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
        id: "create_passwordpalindrome",
        onChange: this.props.handleChange,
        disabled: !this.props.passwordchecksyntax
      }, "Reject Palindromes")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
        disabled: this.props.createDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-lg ds-margin-left",
        onClick: this.props.createPolicy
      }, "Create New Policy"));
    }
  }]);

  return CreatePolicy;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var LocalPwPolicy = /*#__PURE__*/function (_React$Component2) {
  _inherits(LocalPwPolicy, _React$Component2);

  var _super2 = _createSuper(LocalPwPolicy);

  function LocalPwPolicy(props) {
    var _this2;

    _classCallCheck(this, LocalPwPolicy);

    _this2 = _super2.call(this, props);
    _this2.state = {
      loading: true,
      loaded: false,
      activeKey: 1,
      localActiveKey: 1,
      modalChecked: false,
      editPolicy: false,
      tableLoading: false,
      // Create policy
      policyType: "Subtree Policy",
      policyDN: "",
      policyName: "",
      deleteName: "",
      createDisabled: true,
      createPolicyType: "Subtree Policy",
      // Lists of all the attributes for each tab/section.
      // We use the exact attribute name for the ID of
      // each field, so we can loop over them to efficently
      // check for changes, and updating/saving the config.
      rows: [],
      saveGeneralDisabled: true,
      saveUserDisabled: true,
      saveExpDisabled: true,
      saveLockoutDisabled: true,
      saveSyntaxDisabled: true,
      showDeletePolicy: false,
      attrMap: {
        "passwordstoragescheme": "--pwdscheme",
        "passwordtrackupdatetime": "--pwdtrack",
        "passwordchange": "--pwdchange",
        "passwordmustchange": "--pwdmustchange",
        "passwordhistory": "--pwdhistory",
        "passwordinhistory": "--pwdhistorycount",
        "passwordminage": "--pwdminage",
        "passwordexp": "--pwdexpire",
        "passwordgracelimit": "--pwdgracelimit",
        "passwordsendexpiringtime": "--pwdsendexpiring",
        "passwordmaxage": "--pwdmaxage",
        "passwordwarning": "--pwdwarning",
        "passwordlockout": "--pwdlockout",
        "passwordunlock": "--pwdunlock",
        "passwordlockoutduration": "--pwdlockoutduration",
        "passwordmaxfailure": "--pwdmaxfailures",
        "passwordresetfailurecount": "--pwdresetfailcount",
        "passwordchecksyntax": "--pwdchecksyntax",
        "passwordminlength": "--pwdminlen",
        "passwordmindigits": "--pwdmindigits",
        "passwordminalphas": "--pwdminalphas",
        "passwordminuppers": "--pwdminuppers",
        "passwordminlowers": "--pwdminlowers",
        "passwordminspecials": "--pwdminspecials",
        "passwordmin8bit": "--pwdmin8bits",
        "passwordmaxrepeats": "--pwdmaxrepeats",
        "passwordpalindrome": "--pwdpalindrome",
        "passwordmaxsequence": "--pwdmaxseq",
        "passwordmaxseqsets": "--pwdmaxseqsets",
        "passwordmaxclasschars": "--pwdmaxclasschars",
        "passwordmincategories": "--pwdmincatagories",
        "passwordmintokenlength": "--pwdmintokenlen",
        "passwordbadwords": "--pwdbadwords",
        "passworduserattributes": "--pwduserattrs",
        "passworddictcheck": "--pwddictcheck"
      }
    };
    _this2.createPolicy = _this2.createPolicy.bind(_assertThisInitialized(_this2));
    _this2.closeDeletePolicy = _this2.closeDeletePolicy.bind(_assertThisInitialized(_this2));
    _this2.deletePolicy = _this2.deletePolicy.bind(_assertThisInitialized(_this2));
    _this2.handleCreateChange = _this2.handleCreateChange.bind(_assertThisInitialized(_this2));
    _this2.handleExpChange = _this2.handleExpChange.bind(_assertThisInitialized(_this2));
    _this2.handleGeneralChange = _this2.handleGeneralChange.bind(_assertThisInitialized(_this2));
    _this2.handleLocalNavSelect = _this2.handleLocalNavSelect.bind(_assertThisInitialized(_this2));
    _this2.handleLockoutChange = _this2.handleLockoutChange.bind(_assertThisInitialized(_this2));
    _this2.handleModalChange = _this2.handleModalChange.bind(_assertThisInitialized(_this2));
    _this2.handleNavSelect = _this2.handleNavSelect.bind(_assertThisInitialized(_this2));
    _this2.handleSyntaxChange = _this2.handleSyntaxChange.bind(_assertThisInitialized(_this2));
    _this2.loadLocal = _this2.loadLocal.bind(_assertThisInitialized(_this2));
    _this2.loadPolicies = _this2.loadPolicies.bind(_assertThisInitialized(_this2));
    _this2.resetTab = _this2.resetTab.bind(_assertThisInitialized(_this2));
    _this2.saveExp = _this2.saveExp.bind(_assertThisInitialized(_this2));
    _this2.saveGeneral = _this2.saveGeneral.bind(_assertThisInitialized(_this2));
    _this2.saveLockout = _this2.saveLockout.bind(_assertThisInitialized(_this2));
    _this2.saveSyntax = _this2.saveSyntax.bind(_assertThisInitialized(_this2));
    _this2.showDeletePolicy = _this2.showDeletePolicy.bind(_assertThisInitialized(_this2));
    return _this2;
  }

  _createClass(LocalPwPolicy, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadPolicies();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "showDeletePolicy",
    value: function showDeletePolicy(name) {
      this.setState({
        showDeletePolicy: true,
        modalChecked: false,
        deleteName: name
      });
    }
  }, {
    key: "closeDeletePolicy",
    value: function closeDeletePolicy() {
      this.setState({
        showDeletePolicy: false,
        deleteName: ""
      });
    }
  }, {
    key: "resetTab",
    value: function resetTab() {
      // Reset to the table tab
      this.setState({
        localActiveKey: 1
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleLocalNavSelect",
    value: function handleLocalNavSelect(key) {
      this.setState({
        localActiveKey: key
      });
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      this.setState(_defineProperty({}, attr, value));
    }
  }, {
    key: "handleCreateChange",
    value: function handleCreateChange(e) {
      var _this$setState2;

      var attr;
      var value;
      var disableSaveBtn = true;
      var invalid_dn = false;
      var all_attrs = general_attrs.concat(exp_attrs, lockout_attrs, syntax_attrs);

      if (Array.isArray(e)) {
        // Typeahead - convert array to string
        attr = "create_passworduserattributes";
        value = e.join(' ');
      } else {
        value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
        attr = e.target.id;
      } // Check if a setting was changed, if so enable the save button


      var _iterator = _createForOfIteratorHelper(all_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var all_attr = _step.value;

          if (all_attr == 'passworduserattributes' && attr == 'create_passworduserattributes') {
            var orig_val = this.state['_' + all_attr].join(' ');

            if (orig_val != value) {
              value = e; // restore value

              disableSaveBtn = false;
              break;
            }

            value = e; // restore value
          } else if (attr == "create_" + all_attr && this.state['_create_' + all_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (attr == "policyDN" && value != "") {
        if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["valid_dn"])(value)) {
          disableSaveBtn = false;
        } else {
          invalid_dn = true;
        }
      } // Now check for differences in values that we did not touch


      var _iterator2 = _createForOfIteratorHelper(all_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _all_attr = _step2.value;

          if (_all_attr == 'passworduserattributes' && attr != 'create_passworduserattributes') {
            // Typeahead attribute needs special care
            var _orig_val = this.state['_' + _all_attr].join(' ');

            var new_val = this.state[_all_attr].join(' ');

            if (_orig_val != new_val) {
              disableSaveBtn = false;
              break;
            }
          } else if (attr != "create_" + _all_attr && this.state['_create_' + _all_attr] != this.state["create_" + _all_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      if (this.state.policyDN == "" || attr == "policyDN" && value == "") {
        disableSaveBtn = true;
      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "createDisabled", disableSaveBtn), _defineProperty(_this$setState2, "invalid_dn", invalid_dn), _this$setState2));
    }
  }, {
    key: "createPolicy",
    value: function createPolicy() {
      var _this3 = this;

      var all_attrs = general_attrs.concat(exp_attrs, lockout_attrs, syntax_attrs);
      var action = "adduser";
      this.setState({
        loading: true
      });

      if (this.state.policyType == "Subtree Policy") {
        action = "addsubtree";
      }

      var cmd = ['dsconf', '-j', this.props.serverId, 'localpwp', action, this.state.policyDN];

      var _iterator3 = _createForOfIteratorHelper(all_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;
          var old_val = this.state['_create_' + attr];
          var new_val = this.state['create_' + attr];

          if (new_val != old_val) {
            if (typeof new_val === "boolean") {
              if (new_val) {
                new_val = "on";
              } else {
                new_val = "off";
              }
            } else if (attr == 'passworduserattributes') {
              if (old_val.join(' ') == new_val.join(' ')) {
                continue;
              }
            }

            cmd.push(this.state.attrMap[attr] + "=" + new_val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("createPolicy", "Create a local password policy", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this3.loadPolicies();

        _this3.setState({
          loading: false
        });

        _this3.props.addNotification("success", "Successfully created new password policy");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.loadPolicies();

        _this3.setState({
          loading: false
        });

        _this3.props.addNotification("error", "Error creating password policy - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleGeneralChange",
    value: function handleGeneralChange(e) {
      var _this$setState3;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator4 = _createForOfIteratorHelper(general_attrs),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var general_attr = _step4.value;

          if (attr == general_attr && this.state['_' + general_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      var _iterator5 = _createForOfIteratorHelper(general_attrs),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _general_attr = _step5.value;

          if (attr != _general_attr && this.state['_' + _general_attr] != this.state[_general_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.setState((_this$setState3 = {}, _defineProperty(_this$setState3, attr, value), _defineProperty(_this$setState3, "saveGeneralDisabled", disableSaveBtn), _this$setState3));
    }
  }, {
    key: "saveGeneral",
    value: function saveGeneral() {
      var _this4 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'localpwp', 'set', this.state.policyName];

      var _iterator6 = _createForOfIteratorHelper(general_attrs),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var attr = _step6.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(this.state.attrMap[attr] + "=" + val);
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveGeneral", "Saving general pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.loadLocal(_this4.state.policyName);

        _this4.setState({
          loading: false
        });

        _this4.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.loadLocal(_this4.state.policyName);

        _this4.setState({
          loading: false
        });

        _this4.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleExpChange",
    value: function handleExpChange(e) {
      var _this$setState4;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator7 = _createForOfIteratorHelper(exp_attrs),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var exp_attr = _step7.value;

          if (attr == exp_attr && this.state['_' + exp_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      var _iterator8 = _createForOfIteratorHelper(exp_attrs),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var _exp_attr = _step8.value;

          if (attr != _exp_attr && this.state['_' + _exp_attr] != this.state[_exp_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      this.setState((_this$setState4 = {}, _defineProperty(_this$setState4, attr, value), _defineProperty(_this$setState4, "saveExpDisabled", disableSaveBtn), _this$setState4));
    }
  }, {
    key: "saveExp",
    value: function saveExp() {
      var _this5 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'localpwp', 'set', this.state.policyName];

      var _iterator9 = _createForOfIteratorHelper(exp_attrs),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var attr = _step9.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(this.state.attrMap[attr] + "=" + val);
          }
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveExp", "Saving Expiration pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this5.loadLocal(_this5.state.policyName);

        _this5.setState({
          loading: false
        });

        _this5.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.loadLocal(_this5.state.policyName);

        _this5.setState({
          loading: false
        });

        _this5.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleLockoutChange",
    value: function handleLockoutChange(e) {
      var _this$setState5;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator10 = _createForOfIteratorHelper(lockout_attrs),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var lockout_attr = _step10.value;

          if (attr == lockout_attr && this.state['_' + lockout_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      var _iterator11 = _createForOfIteratorHelper(lockout_attrs),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var _lockout_attr = _step11.value;

          if (attr != _lockout_attr && this.state['_' + _lockout_attr] != this.state[_lockout_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      this.setState((_this$setState5 = {}, _defineProperty(_this$setState5, attr, value), _defineProperty(_this$setState5, "saveLockoutDisabled", disableSaveBtn), _this$setState5));
    }
  }, {
    key: "saveLockout",
    value: function saveLockout() {
      var _this6 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'localpwp', 'set', this.state.policyName];

      var _iterator12 = _createForOfIteratorHelper(lockout_attrs),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var attr = _step12.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(this.state.attrMap[attr] + "=" + val);
          }
        }
      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveLockout", "Saving lockout pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.loadLocal(_this6.state.policyName);

        _this6.setState({
          loading: false
        });

        _this6.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.loadLocal(_this6.state.policyName);

        _this6.setState({
          loading: false
        });

        _this6.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "handleSyntaxChange",
    value: function handleSyntaxChange(e) {
      var _this$setState6;

      // Could be a typeahead change, check if "e" is an Array
      var attr;
      var value;

      if (Array.isArray(e)) {
        // Typeahead - convert array to string
        attr = "passworduserattributes";
        value = e.join(' ');
      } else {
        value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
        attr = e.target.id;
      }

      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator13 = _createForOfIteratorHelper(syntax_attrs),
          _step13;

      try {
        for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
          var syntax_attr = _step13.value;

          if (syntax_attr == 'passworduserattributes' && attr == 'passworduserattributes') {
            var orig_val = this.state['_' + syntax_attr].join(' ');

            if (orig_val != value) {
              value = e; // restore value

              disableSaveBtn = false;
              break;
            }

            value = e; // restore value
          } else if (attr == syntax_attr && this.state['_' + syntax_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator13.e(err);
      } finally {
        _iterator13.f();
      }

      var _iterator14 = _createForOfIteratorHelper(syntax_attrs),
          _step14;

      try {
        for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
          var _syntax_attr = _step14.value;

          if (_syntax_attr == 'passworduserattributes' && attr != 'passworduserattributes') {
            // Typeahead attribute needs special care
            var _orig_val2 = this.state['_' + _syntax_attr].join(' ');

            var new_val = this.state[_syntax_attr].join(' ');

            if (_orig_val2 != new_val) {
              disableSaveBtn = false;
              break;
            }
          } else if (attr != _syntax_attr && this.state['_' + _syntax_attr] != this.state[_syntax_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator14.e(err);
      } finally {
        _iterator14.f();
      }

      this.setState((_this$setState6 = {}, _defineProperty(_this$setState6, attr, value), _defineProperty(_this$setState6, "saveSyntaxDisabled", disableSaveBtn), _this$setState6));
    }
  }, {
    key: "saveSyntax",
    value: function saveSyntax() {
      var _this7 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'localpwp', 'set', this.state.policyName];

      var _iterator15 = _createForOfIteratorHelper(syntax_attrs),
          _step15;

      try {
        for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
          var attr = _step15.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(this.state.attrMap[attr] + "=" + val);
          }
        }
      } catch (err) {
        _iterator15.e(err);
      } finally {
        _iterator15.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveSyntax", "Saving syntax checking pwpolicy settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.loadLocal(_this7.state.policyName);

        _this7.setState({
          loading: false
        });

        _this7.props.addNotification("success", "Successfully updated password policy configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.loadLocal(_this7.state.policyName);

        _this7.setState({
          loading: false
        });

        _this7.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deletePolicy",
    value: function deletePolicy() {
      var _this8 = this;

      // Start spinning
      var new_rows = this.state.rows;

      var _iterator16 = _createForOfIteratorHelper(new_rows),
          _step16;

      try {
        for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
          var row = _step16.value;

          if (row.targetdn == this.state.deleteName) {
            row.pwp_type = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              className: "ds-lower-field",
              key: row.pwp_type,
              loading: true,
              size: "sm"
            })];
            row.basedn = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              className: "ds-lower-field",
              key: row.basedn,
              loading: true,
              size: "sm"
            })];
            row.actions = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
              className: "ds-lower-field",
              key: row.targetdn,
              loading: true,
              size: "sm"
            })];
          }
        }
      } catch (err) {
        _iterator16.e(err);
      } finally {
        _iterator16.f();
      }

      this.setState({
        rows: new_rows,
        editPolicy: false
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "localpwp", "remove", this.state.deleteName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deletePolicy", "delete policy", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this8.loadPolicies();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.loadPolicies();

        _this8.props.addNotification("error", "Error deleting local password policy - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadPolicies",
    value: function loadPolicies() {
      var _this9 = this;

      var cmd = ["dsconf", "-j", this.props.serverId, "localpwp", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadPolicies", "Load all the local password policies for the table", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var policy_obj = JSON.parse(content);

        _this9.setState({
          localActiveKey: 1,
          activeKey: 1,
          rows: policy_obj.items,
          loaded: true,
          loading: false,
          editPolicy: false,
          policyDN: "",
          policyType: "Subtree Policy",
          policyName: "",
          deleteName: "",
          showDeletePolicy: false,
          // Reset edit and create tab
          saveGeneralDisabled: true,
          saveUserDisabled: true,
          saveExpDisabled: true,
          saveLockoutDisabled: true,
          saveSyntaxDisabled: true,
          // Edit policy
          passwordchange: false,
          passwordmustchange: false,
          passwordhistory: false,
          passwordtrackupdatetime: false,
          passwordexp: false,
          passwordsendexpiringtime: false,
          passwordlockout: false,
          passwordunlock: "0",
          passwordchecksyntax: false,
          passwordpalindrome: false,
          passworddictcheck: false,
          passwordstoragescheme: "",
          passwordinhistory: "0",
          passwordwarning: "0",
          passwordmaxage: "0",
          passwordminage: "0",
          passwordgracelimit: "0",
          passwordlockoutduration: "0",
          passwordmaxfailure: "0",
          passwordresetfailurecount: "0",
          passwordminlength: "0",
          passwordmindigits: "0",
          passwordminalphas: "0",
          passwordminuppers: "0",
          passwordminlowers: "0",
          passwordminspecials: "0",
          passwordmin8bit: "0",
          passwordmaxrepeats: "0",
          passwordmaxsequence: "0",
          passwordmaxseqsets: "0",
          passwordmaxclasschars: "0",
          passwordmincategories: "0",
          passwordmintokenlength: "0",
          passwordbadwords: "",
          passworduserattributes: [],
          _passwordchange: false,
          _passwordmustchange: false,
          _passwordhistory: false,
          _passwordtrackupdatetime: false,
          _passwordexp: false,
          _passwordsendexpiringtime: false,
          _passwordlockout: false,
          _passwordunlock: "0",
          _passwordchecksyntax: false,
          _passwordpalindrome: false,
          _passworddictcheck: false,
          _passwordstoragescheme: "",
          _passwordinhistory: "0",
          _passwordwarning: "0",
          _passwordmaxage: "0",
          _passwordminage: "0",
          _passwordgracelimit: "0",
          _passwordlockoutduration: "0",
          _passwordmaxfailure: "0",
          _passwordresetfailurecount: "0",
          _passwordminlength: "0",
          _passwordmindigits: "0",
          _passwordminalphas: "0",
          _passwordminuppers: "0",
          _passwordminlowers: "0",
          _passwordminspecials: "0",
          _passwordmin8bit: "0",
          _passwordmaxrepeats: "0",
          _passwordmaxsequence: "0",
          _passwordmaxseqsets: "0",
          _passwordmaxclasschars: "0",
          _passwordmincategories: "0",
          _passwordmintokenlength: "0",
          _passwordbadwords: "",
          _passworduserattributes: [],
          // Create policy
          create_passwordchange: false,
          create_passwordmustchange: false,
          create_passwordhistory: false,
          create_passwordtrackupdatetime: false,
          create_passwordexp: false,
          create_passwordsendexpiringtime: false,
          create_passwordlockout: false,
          create_passwordunlock: "0",
          create_passwordchecksyntax: false,
          create_passwordpalindrome: false,
          create_passworddictcheck: false,
          create_passwordstoragescheme: "",
          create_passwordinhistory: "0",
          create_passwordwarning: "0",
          create_passwordmaxage: "0",
          create_passwordminage: "0",
          create_passwordgracelimit: "0",
          create_passwordlockoutduration: "0",
          create_passwordmaxfailure: "0",
          create_passwordresetfailurecount: "0",
          create_passwordminlength: "0",
          create_passwordmindigits: "0",
          create_passwordminalphas: "0",
          create_passwordminuppers: "0",
          create_passwordminlowers: "0",
          create_passwordminspecials: "0",
          create_passwordmin8bit: "0",
          create_passwordmaxrepeats: "0",
          create_passwordmaxsequence: "0",
          create_passwordmaxseqsets: "0",
          create_passwordmaxclasschars: "0",
          create_passwordmincategories: "0",
          create_passwordmintokenlength: "0",
          create_passwordbadwords: "",
          create_passworduserattributes: [],
          _create_passwordchange: false,
          _create_passwordmustchange: false,
          _create_passwordhistory: false,
          _create_passwordtrackupdatetime: false,
          _create_passwordexp: false,
          _create_passwordsendexpiringtime: false,
          _create_passwordlockout: false,
          _create_passwordunlock: "0",
          _create_passwordchecksyntax: false,
          _create_passwordpalindrome: false,
          _create_passworddictcheck: false,
          _create_passwordstoragescheme: "",
          _create_passwordinhistory: "0",
          _create_passwordwarning: "0",
          _create_passwordmaxage: "0",
          _create_passwordminage: "0",
          _create_passwordgracelimit: "0",
          _create_passwordlockoutduration: "0",
          _create_passwordmaxfailure: "0",
          _create_passwordresetfailurecount: "0",
          _create_passwordminlength: "0",
          _create_passwordmindigits: "0",
          _create_passwordminalphas: "0",
          _create_passwordminuppers: "0",
          _create_passwordminlowers: "0",
          _create_passwordminspecials: "0",
          _create_passwordmin8bit: "0",
          _create_passwordmaxrepeats: "0",
          _create_passwordmaxsequence: "0",
          _create_passwordmaxseqsets: "0",
          _create_passwordmaxclasschars: "0",
          _create_passwordmincategories: "0",
          _create_passwordmintokenlength: "0",
          _create_passwordbadwords: "",
          _create_passworduserattributes: []
        }, _this9.props.enableTree);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.setState({
          loaded: true,
          loading: false
        });

        _this9.props.addNotification("error", "Error loading local password policies - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadLocal",
    value: function loadLocal(name) {
      var _this10 = this;

      var cmd = ["dsconf", "-j", this.props.serverId, "localpwp", "get", name];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadLocal", "Load a local password policy", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs; // Handle the checkbox values

        var pwChange = false;
        var pwMustChange = false;
        var pwHistory = false;
        var pwTrackUpdate = false;
        var pwExpire = false;
        var pwSendExpire = false;
        var pwLockout = false;
        var pwUnlock = false;
        var pwCheckSyntax = false;
        var pwPalindrome = false;
        var pwDictCheck = false;
        var pwUserAttrs = [];
        var pwInHistory = "0";
        var pwBadWords = "";
        var pwScheme = "";
        var pwWarning = "0";
        var pwMaxAge = "0";
        var pwMinAge = "0";
        var pwGraceLimit = "0";
        var pwLockoutDur = "0";
        var pwMaxFailure = "0";
        var pwFailCount = "0";
        var pwMinLen = "0";
        var pwMinDigits = "0";
        var pwMinAlphas = "0";
        var pwMinUppers = "0";
        var pwMinLowers = "0";
        var pwMinSpecials = "0";
        var pwMin8bit = "0";
        var pwMaxRepeats = "0";
        var pwMaxSeq = "0";
        var pwMaxSeqSets = "0";
        var pwMaxClassChars = "0";
        var pwMinCat = "0";
        var pwMinTokenLen = "0";

        if ('passwordmintokenlength' in attrs) {
          pwMinTokenLen = attrs['passwordmintokenlength'][0];
        }

        if ('passwordmincategories' in attrs) {
          pwMinCat = attrs['passwordmincategories'][0];
        }

        if ('passwordmaxclasschars' in attrs) {
          pwMaxClassChars = attrs['passwordmaxclasschars'][0];
        }

        if ('passwordmaxseqsets' in attrs) {
          pwMaxSeqSets = attrs['passwordmaxseqsets'][0];
        }

        if ('passwordmaxsequence' in attrs) {
          pwMaxSeq = attrs['passwordmaxsequence'][0];
        }

        if ('passwordmaxrepeats' in attrs) {
          pwMaxRepeats = attrs['passwordmaxrepeats'][0];
        }

        if ('passwordmin8bit' in attrs) {
          pwMin8bit = attrs['passwordmin8bit'][0];
        }

        if ('passwordminspecials' in attrs) {
          pwMinSpecials = attrs['passwordminspecials'][0];
        }

        if ('passwordminlowers' in attrs) {
          pwMinLowers = attrs['passwordminlowers'][0];
        }

        if ('passwordminuppers' in attrs) {
          pwMinUppers = attrs['passwordminuppers'][0];
        }

        if ('passwordminalphas' in attrs) {
          pwMinAlphas = attrs['passwordminalphas'][0];
        }

        if ('passwordmindigits' in attrs) {
          pwMinDigits = attrs['passwordmindigits'][0];
        }

        if ('passwordminlength' in attrs) {
          pwMinLen = attrs['passwordminlength'][0];
        }

        if ('passwordresetfailurecount' in attrs) {
          pwFailCount = attrs['passwordresetfailurecount'][0];
        }

        if ('passwordmaxfailure' in attrs) {
          pwMaxFailure = attrs['passwordmaxfailure'][0];
        }

        if ('passwordlockoutduration' in attrs) {
          pwLockoutDur = attrs['passwordlockoutduration'][0];
        }

        if ('passwordgracelimit' in attrs) {
          pwGraceLimit = attrs['passwordgracelimit'][0];
        }

        if ('passwordmaxage' in attrs) {
          pwMaxAge = attrs['passwordmaxage'][0];
        }

        if ('passwordminage' in attrs) {
          pwMinAge = attrs['passwordminage'][0];
        }

        if ('passwordwarning' in attrs) {
          pwWarning = attrs['passwordwarning'][0];
        }

        if ('passwordstoragescheme' in attrs) {
          pwScheme = attrs['passwordstoragescheme'][0];
        }

        if ('passwordinhistory' in attrs) {
          pwInHistory = attrs['passwordinhistory'][0];
        }

        if ('passwordchange' in attrs && attrs['passwordchange'][0] == "on") {
          pwChange = true;
        }

        if ('passwordmustchange' in attrs && attrs['passwordmustchange'][0] == "on") {
          pwMustChange = true;
        }

        if ('passwordhistory' in attrs && attrs['passwordhistory'][0] == "on") {
          pwHistory = true;
        }

        if ('passwordtrackupdatetime' in attrs && attrs['passwordtrackupdatetime'][0] == "on") {
          pwTrackUpdate = true;
        }

        if ('passwordsendexpiringtime' in attrs && attrs['passwordsendexpiringtime'][0] == "on") {
          pwSendExpire = true;
        }

        if ('passwordlockout' in attrs && attrs['passwordlockout'][0] == "on") {
          pwLockout = true;
        }

        if ('passwordunlock' in attrs && attrs['passwordunlock'][0] == "on") {
          pwUnlock = true;
        }

        if ('passwordexp' in attrs && attrs['passwordexp'][0] == "on") {
          pwExpire = true;
        }

        if ('passwordchecksyntax' in attrs && attrs['passwordchecksyntax'][0] == "on") {
          pwCheckSyntax = true;
        }

        if ('passwordpalindrome' in attrs && attrs['passwordpalindrome'][0] == "on") {
          pwPalindrome = true;
        }

        if ('passworddictcheck' in attrs && attrs['passworddictcheck'][0] == "on") {
          pwDictCheck = true;
        }

        if ('passwordbadwords' in attrs && attrs['passwordbadwords'][0] != "") {
          // Hack until this is fixed: https://pagure.io/389-ds-base/issue/50875
          if (attrs['passwordbadwords'].length > 1) {
            pwBadWords = attrs['passwordbadwords'].join(' ');
          } else {
            pwBadWords = attrs['passwordbadwords'][0];
          }
        }

        if ('passworduserattributes' in attrs && attrs['passworduserattributes'][0] != "") {
          if (attrs['passworduserattributes'].length > 1) {
            // Hack until this is fixed: https://pagure.io/389-ds-base/issue/50875
            attrs['passworduserattributes'][0] = attrs['passworduserattributes'].join(' ');
          } // Could be space or comma separated list


          if (attrs['passworduserattributes'][0].indexOf(',') > -1) {
            pwUserAttrs = attrs['passworduserattributes'][0].trim();
            pwUserAttrs = pwUserAttrs.split(',');
          } else {
            pwUserAttrs = attrs['passworduserattributes'][0].split();
          }
        }

        _this10.setState(function () {
          return {
            editPolicy: true,
            loading: false,
            localActiveKey: 2,
            activeKey: 1,
            policyName: name,
            saveGeneralDisabled: true,
            saveUserDisabled: true,
            saveExpDisabled: true,
            saveLockoutDisabled: true,
            saveSyntaxDisabled: true,
            // Settings
            passwordchange: pwChange,
            passwordmustchange: pwMustChange,
            passwordhistory: pwHistory,
            passwordtrackupdatetime: pwTrackUpdate,
            passwordexp: pwExpire,
            passwordsendexpiringtime: pwSendExpire,
            passwordlockout: pwLockout,
            passwordunlock: pwUnlock,
            passwordchecksyntax: pwCheckSyntax,
            passwordpalindrome: pwPalindrome,
            passworddictcheck: pwDictCheck,
            passwordstoragescheme: pwScheme,
            passwordinhistory: pwInHistory,
            passwordwarning: pwWarning,
            passwordmaxage: pwMaxAge,
            passwordminage: pwMinAge,
            passwordgracelimit: pwGraceLimit,
            passwordlockoutduration: pwLockoutDur,
            passwordmaxfailure: pwMaxFailure,
            passwordresetfailurecount: pwFailCount,
            passwordminlength: pwMinLen,
            passwordmindigits: pwMinDigits,
            passwordminalphas: pwMinAlphas,
            passwordminuppers: pwMinUppers,
            passwordminlowers: pwMinLowers,
            passwordminspecials: pwMinSpecials,
            passwordmin8bit: pwMin8bit,
            passwordmaxrepeats: pwMaxRepeats,
            passwordmaxsequence: pwMaxSeq,
            passwordmaxseqsets: pwMaxSeqSets,
            passwordmaxclasschars: pwMaxClassChars,
            passwordmincategories: pwMinCat,
            passwordmintokenlength: pwMinTokenLen,
            passwordbadwords: pwBadWords,
            passworduserattributes: pwUserAttrs,
            // Record original values
            _passwordchange: pwChange,
            _passwordmustchange: pwMustChange,
            _passwordhistory: pwHistory,
            _passwordtrackupdatetime: pwTrackUpdate,
            _passwordexp: pwExpire,
            _passwordsendexpiringtime: pwSendExpire,
            _passwordlockout: pwLockout,
            _passwordunlock: pwUnlock,
            _passwordchecksyntax: pwCheckSyntax,
            _passwordpalindrome: pwPalindrome,
            _passworddictcheck: pwDictCheck,
            _passwordstoragescheme: pwScheme,
            _passwordinhistory: pwInHistory,
            _passwordwarning: pwWarning,
            _passwordmaxage: pwMaxAge,
            _passwordminage: pwMinAge,
            _passwordgracelimit: pwGraceLimit,
            _passwordlockoutduration: pwLockoutDur,
            _passwordmaxfailure: pwMaxFailure,
            _passwordresetfailurecount: pwFailCount,
            _passwordminlength: pwMinLen,
            _passwordmindigits: pwMinDigits,
            _passwordminalphas: pwMinAlphas,
            _passwordminuppers: pwMinUppers,
            _passwordminlowers: pwMinLowers,
            _passwordminspecials: pwMinSpecials,
            _passwordmin8bit: pwMin8bit,
            _passwordmaxrepeats: pwMaxRepeats,
            _passwordmaxsequence: pwMaxSeq,
            _passwordmaxseqsets: pwMaxSeqSets,
            _passwordmaxclasschars: pwMaxClassChars,
            _passwordmincategories: pwMinCat,
            _passwordmintokenlength: pwMinTokenLen,
            _passwordbadwords: pwBadWords,
            _passworduserattributes: pwUserAttrs
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.setState({
          loaded: true,
          loading: false
        });

        _this10.props.addNotification("error", "Error loading local password policy - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var edit_tab = "";
      var pwExpirationRows = "";
      var pwLockoutRows = "";
      var pwSyntaxRows = "";

      if (this.state.passwordchecksyntax) {
        pwSyntaxRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The minimum number of characters in the password (passwordMinLength)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminlength",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminlength,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3,
          title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas)."
        }, "Min Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminalphas",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminalphas,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmindigits",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmindigits,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminspecials",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminspecials,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminuppers",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminuppers,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminlowers",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordminlowers,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmin8bit",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmin8bit,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmincategories",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmincategories,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The smallest attribute value used when checking if the password contains any of the user's account information (passwordMinTokenLength)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Min Token Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmintokenlength",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmintokenlength,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Max Repeated Chars"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "The maximum number of times the same character can sequentially appear in a password (passwordMaxRepeats)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxrepeats",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxrepeats,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Max Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxsequence",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxsequence,
          onChange: this.handleSyntaxChange
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2,
          title: "The maximum number of allowed monotonic characters sequences that can appear more than once (passwordMaxSeqSets)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxseqsets",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxseqsets,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxclasschars",
          type: "number",
          min: "0",
          max: "1000",
          value: this.state.passwordmaxclasschars,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordbadwords",
          type: "text",
          value: this.state.passwordbadwords,
          onChange: this.handleSyntaxChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          title: "A space-separated list of entry attributes to compare to the new password (passwordUserAttributes).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__["Typeahead"], {
          onChange: function onChange(values) {
            _this11.handleSyntaxChange(values);
          },
          multiple: true,
          selected: this.state.passworduserattributes,
          options: this.props.attrs,
          placeholder: "Type attributes to check..."
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top-lg",
          title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passworddictcheck",
          defaultChecked: this.state.passworddictcheck,
          onChange: this.handleSyntaxChange
        }, "Dictionary Check"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Reject a password if it is a palindrome (passwordPalindrome)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordpalindrome",
          defaultChecked: this.state.passwordpalindrome,
          onChange: this.handleSyntaxChange
        }, "Reject Palindromes"))));
      }

      if (this.state.passwordlockout) {
        pwLockoutRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxfailure",
          type: "number",
          min: "1",
          max: "100",
          value: this.state.passwordmaxfailure,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordresetfailurecount",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordresetfailurecount,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordlockoutduration",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordlockoutduration,
          onChange: this.handleLockoutChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordunlock",
          defaultChecked: this.state.passwordunlock,
          onChange: this.handleLockoutChange
        }, "Do Not Lockout Account Forever"))));
      }

      if (this.state.passwordexp) {
        pwExpirationRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordmaxage",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordmaxage,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordgracelimit",
          type: "number",
          min: "0",
          max: "128",
          value: this.state.passwordgracelimit,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordwarning",
          type: "number",
          min: "1",
          max: "2147483647",
          value: this.state.passwordwarning,
          onChange: this.handleExpChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"],
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordsendexpiringtime",
          defaultChecked: this.state.passwordsendexpiringtime,
          onChange: this.handleExpChange
        }, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Password Expiring"), " Control"))));
      }

      if (!this.state.editPolicy) {
        edit_tab = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Please choose a policy from the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
          onClick: this.resetTab
        }, "Local Policy Table"), "."));
      } else {
        edit_tab = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
          className: "ds-margin-top-xlg"
        }, this.state.policyName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContainer"], {
          id: "server-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'General Settings'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Expiration'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Account Lockout'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Syntax Checking'
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContent"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          title: "Set the password storage scheme (passwordstoragescheme).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], null, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
          className: "btn btn-default dropdown ds-margin-left-sm",
          id: "passwordstoragescheme",
          onChange: this.handleGeneralChange,
          value: this.state.passwordstoragescheme
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "PBKDF2_SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA384"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SMD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CLEAR")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordtrackupdatetime",
          defaultChecked: this.state.passwordtrackupdatetime,
          onChange: this.handleGeneralChange
        }, "Track Password Update Time"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Allow user's to change their passwords (passwordChange)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordchange",
          defaultChecked: this.state.passwordchange,
          onChange: this.handleGeneralChange
        }, "Allow Users To Change Their Passwords"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "User must change its password after its been reset by an administrator (passwordMustChange)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordmustchange",
          defaultChecked: this.state.passwordmustchange,
          onChange: this.handleGeneralChange
        }, "User Must Change Password After Reset"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Maintain a password history for each user (passwordHistory)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordhistory",
          defaultChecked: this.state.passwordhistory,
          onChange: this.handleUserChange
        }, "Keep Password History")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline ds-left-margin ds-raise-field ds-width-sm"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordinhistory",
          type: "number",
          min: "0",
          max: "24",
          value: this.state.passwordinhistory,
          onChange: this.handleGeneralChange,
          disabled: !this.state.passwordhistory
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 12
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], null, "Password Minimum Age")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline ds-left-margin ds-raise-field"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["FormControl"], {
          id: "passwordminage",
          type: "number",
          min: "0",
          max: "2147483647",
          value: this.state.passwordminage,
          onChange: this.handleGeneralChange
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          disabled: this.state.saveGeneralDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg",
          onClick: this.saveGeneral,
          title: "Save the General Settings"
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Enable a password expiration policy (passwordExp)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordexp",
          defaultChecked: this.state.passwordexp,
          onChange: this.handleExpChange
        }, "Enforce Password Expiration"))), pwExpirationRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          disabled: this.state.saveExpDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveExp,
          title: "Save the Expiration Settings"
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Enable account lockout (passwordLockout)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordlockout",
          defaultChecked: this.state.passwordlockout,
          onChange: this.handleLockoutChange
        }, "Enable Account Lockout"))), pwLockoutRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          disabled: this.state.saveLockoutDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveLockout,
          title: "Save the Lockout Settings"
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Form"], {
          className: "ds-margin-top-lg ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], {
          className: "ds-margin-top",
          title: "Enable password syntax checking (passwordCheckSyntax)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "passwordchecksyntax",
          checked: this.state.passwordchecksyntax,
          onChange: this.handleSyntaxChange
        }, "Enable Password Syntax Checking"))), pwSyntaxRows, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          disabled: this.state.saveSyntaxDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveSyntax,
          title: "Save the Syntax Settings"
        }, "Save")))))));
      }

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContainer"], {
        id: "local-passwords",
        onSelect: this.handleLocalNavSelect,
        activeKey: this.state.localActiveKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Local Policy Table'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Edit Policy'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Create Policy'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_5__["PwpTable"], {
        rows: this.state.rows,
        editPolicy: this.loadLocal,
        deletePolicy: this.showDeletePolicy
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 2
      }, edit_tab), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(CreatePolicy, {
        handleChange: this.handleCreateChange,
        attrs: this.props.attrs,
        passwordexp: this.state.create_passwordexp,
        passwordchecksyntax: this.state.create_passwordchecksyntax,
        passwordlockout: this.state.create_passwordlockout,
        createDisabled: this.state.createDisabled,
        passworduserattributes: this.state.create_passworduserattributes,
        createPolicy: this.createPolicy,
        invalid_dn: this.state.invalid_dn,
        key: this.state.rows
      }))))));

      if (this.state.loading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "Local Password Policies", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the local password policies",
        onClick: this.reloadConfig,
        disabled: this.state.loading
      })))), body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["DoubleConfirmModal"], {
        showModal: this.state.showDeletePolicy,
        closeHandler: this.closeDeletePolicy,
        handleChange: this.handleModalChange,
        actionHandler: this.deletePolicy,
        item: this.state.deleteName,
        checked: this.state.modalChecked,
        spinning: this.state.tableLoading,
        mTitle: "Delete Local Password Policy",
        mMsg: "Are you sure you want to delete this local password policy?",
        mSpinningMsg: "Deleting local password policy ...",
        mBtnName: "Delete Policy"
      }));
    }
  }]);

  return LocalPwPolicy;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
LocalPwPolicy.propTypes = {
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_8___default.a.array
};
LocalPwPolicy.defaultProps = {
  attrs: []
};

/***/ }),

/***/ "./src/lib/database/referrals.jsx":
/*!****************************************!*\
  !*** ./src/lib/database/referrals.jsx ***!
  \****************************************/
/*! exports provided: SuffixReferrals */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixReferrals", function() { return SuffixReferrals; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var SuffixReferrals = /*#__PURE__*/function (_React$Component) {
  _inherits(SuffixReferrals, _React$Component);

  var _super = _createSuper(SuffixReferrals);

  function SuffixReferrals(props) {
    var _this;

    _classCallCheck(this, SuffixReferrals);

    _this = _super.call(this, props);
    _this.state = {
      showConfirmRefDelete: false,
      showRefModal: false,
      removeRef: "",
      refProtocol: "ldap://",
      refHost: "",
      refPort: "",
      refSuffix: "",
      refFilter: "",
      refScope: "",
      refAttrs: "",
      refValue: "",
      errObj: {}
    }; // Delete referral and confirmation

    _this.showConfirmRefDelete = _this.showConfirmRefDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmRefDelete = _this.closeConfirmRefDelete.bind(_assertThisInitialized(_this));
    _this.deleteRef = _this.deleteRef.bind(_assertThisInitialized(_this));
    _this.saveRef = _this.saveRef.bind(_assertThisInitialized(_this)); // Referral modal

    _this.showRefModal = _this.showRefModal.bind(_assertThisInitialized(_this));
    _this.closeRefModal = _this.closeRefModal.bind(_assertThisInitialized(_this));
    _this.handleRefChange = _this.handleRefChange.bind(_assertThisInitialized(_this));
    _this.buildRef = _this.buildRef.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(SuffixReferrals, [{
    key: "showConfirmRefDelete",
    value: function showConfirmRefDelete(item) {
      this.setState({
        removeRef: item.name,
        showConfirmRefDelete: true
      });
    }
  }, {
    key: "showRefModal",
    value: function showRefModal() {
      this.setState({
        showRefModal: true,
        errObj: {},
        refValue: ""
      });
    }
  }, {
    key: "closeConfirmRefDelete",
    value: function closeConfirmRefDelete() {
      this.setState({
        showConfirmRefDelete: false
      });
    }
  }, {
    key: "closeRefModal",
    value: function closeRefModal() {
      this.setState({
        showRefModal: false
      });
    }
  }, {
    key: "deleteRef",
    value: function deleteRef() {
      var _this2 = this;

      // take state.removeRef and remove it from ldap
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--del-referral=" + this.state.removeRef, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("deleteRef", "Delete suffix referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("success", "Referral successfully deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification("error", "Failure deleting referral - ".concat(errMsg.desc));
      });
    } // Create referral

  }, {
    key: "saveRef",
    value: function saveRef() {
      var _this3 = this;

      // validate
      var missingArgs = {
        refHost: false,
        refPort: false
      };
      var errors = false;

      if (this.state.refHost == "") {
        this.props.addNotification("warning", "Missing hostname for LDAP URL");
        missingArgs.refHost = true;
        errors = true;
      }

      if (this.state.refPort == "") {
        this.props.addNotification("warning", "Missing port for LDAP URL");
        missingArgs.refPort = true;
        errors = true;
      } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(this.state.refPort)) {
        this.props.addNotification("error", "Invalid port number, please use a number between 1 and 65535");
        missingArgs.refPort = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Add referral


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--add-referral=" + this.state.refValue, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("saveRef", "Add referral", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.closeRefModal();

        _this3.props.addNotification("success", "Referral successfully created");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload(_this3.props.suffix);

        _this3.closeRefModal();

        _this3.props.addNotification("error", "Failure creating referral - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "buildRef",
    value: function buildRef() {
      var previewRef = this.state.refProtocol + this.state.refHost;
      var ref_port = this.state.refPort;
      var ref_suffix = this.state.refSuffix;
      var ref_attrs = this.state.refAttrs;
      var ref_filter = this.state.refFilter;
      var ref_scope = this.state.refScope;

      if (ref_port != "") {
        previewRef += ":" + ref_port;
      }

      if (ref_suffix != "" || ref_attrs != "" || ref_filter != "" || ref_scope != "") {
        previewRef += "/" + encodeURIComponent(ref_suffix);

        if (ref_attrs != "") {
          previewRef += "?" + encodeURIComponent(ref_attrs);
        } else if (ref_filter != "" || ref_scope != "") {
          previewRef += "?";
        }

        if (ref_scope != "") {
          previewRef += "?" + encodeURIComponent(ref_scope);
        } else if (ref_filter != "") {
          previewRef += "?";
        }

        if (ref_filter != "") {
          previewRef += "?" + encodeURIComponent(ref_filter);
        }
      } // Update referral value


      this.setState({
        refValue: previewRef
      });
    }
  }, {
    key: "handleRefChange",
    value: function handleRefChange(e) {
      var _this$setState;

      var value = e.target.value;
      var key = e.target.id;
      var errObj = this.state.errObj;
      var valueErr = false;

      if (value == "") {
        if (key == "refHost" || key == "refPort") {
          valueErr = true;
        }
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState), this.buildRef);
    }
  }, {
    key: "render",
    value: function render() {
      var refs = [];

      var _iterator = _createForOfIteratorHelper(this.props.rows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;
          refs.push({
            name: row
          });
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-sub-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReferralTable"], {
        rows: refs,
        loadModalHandler: this.showConfirmRefDelete
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        onClick: this.showRefModal,
        type: "button"
      }, "Create Referral"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmRefDelete,
        closeHandler: this.closeConfirmRefDelete,
        actionFunc: this.deleteRef,
        actionParam: this.state.removeRef,
        msg: "Are you sure you want to delete this referral?",
        msgContent: this.state.removeRef
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddReferralModal, {
        showModal: this.state.showRefModal,
        closeHandler: this.closeRefModal,
        handleChange: this.handleRefChange,
        saveHandler: this.saveRef,
        previewValue: this.state.refValue,
        error: this.state.errObj
      }));
    }
  }]);

  return SuffixReferrals;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

var AddReferralModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(AddReferralModal, _React$Component2);

  var _super2 = _createSuper(AddReferralModal);

  function AddReferralModal() {
    _classCallCheck(this, AddReferralModal);

    return _super2.apply(this, arguments);
  }

  _createClass(AddReferralModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          previewValue = _this$props.previewValue,
          error = _this$props.error;

      if (previewValue == "") {
        previewValue = "ldap://";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, "Add Database Referral")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Protocol")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        defaultValue: "ldap://",
        onChange: this.props.handleChange,
        className: "btn btn-default dropdown",
        id: "refProtocol"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "ldap://"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "ldaps://")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Host Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.refHost ? "ds-input-auto-bad" : "ds-input-auto",
        type: "text",
        onChange: handleChange,
        id: "refHost"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Port Number")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.refPort ? "ds-input-auto-bad" : "ds-input-auto",
        type: "text",
        onChange: handleChange,
        id: "refPort"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "refSuffix"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top",
        title: "Comma separated list of attributes to return"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Attributes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "refAttrs"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Filter")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        onChange: handleChange,
        className: "ds-input-auto",
        type: "text",
        id: "refFilter"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Scope")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        onChange: handleChange,
        defaultValue: "",
        id: "refScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "sub"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "one"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "base")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
        className: "ds-label-sm"
      }, "Computed Referral")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: "ds-input-auto",
        value: previewValue,
        readOnly: true
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Create Referral"))));
    }
  }]);

  return AddReferralModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


SuffixReferrals.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
SuffixReferrals.defaultProps = {
  rows: [],
  suffix: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  serverId: ""
};
AddReferralModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  previewValue: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  error: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.object
};
AddReferralModal.defaultProps = {
  showModal: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  previewValue: "",
  error: {}
};

/***/ }),

/***/ "./src/lib/database/suffix.jsx":
/*!*************************************!*\
  !*** ./src/lib/database/suffix.jsx ***!
  \*************************************/
/*! exports provided: Suffix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Suffix", function() { return Suffix; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attrEncryption.jsx */ "./src/lib/database/attrEncryption.jsx");
/* harmony import */ var _suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./suffixConfig.jsx */ "./src/lib/database/suffixConfig.jsx");
/* harmony import */ var _referrals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./referrals.jsx */ "./src/lib/database/referrals.jsx");
/* harmony import */ var _indexes_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./indexes.jsx */ "./src/lib/database/indexes.jsx");
/* harmony import */ var _vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vlvIndexes.jsx */ "./src/lib/database/vlvIndexes.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./databaseModal.jsx */ "./src/lib/database/databaseModal.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }











 // PR React 4 example
// import {
//    Dropdown,
//    DropdownToggle,
//    DropdownItem,
//    DropdownSeparator,
// } from "@patternfly/react-core";


var Suffix = /*#__PURE__*/function (_React$Component) {
  _inherits(Suffix, _React$Component);

  var _super = _createSuper(Suffix);

  function Suffix(props) {
    var _this;

    _classCallCheck(this, Suffix);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      activeKey: 1,
      notifications: [],
      errObj: {},
      refRows: _this.props.data.refRows,
      encAttrsRows: _this.props.data.encAttrsRows,
      vlvItems: _this.props.data.vlvItems,
      autoTuning: _this.props.data.autoTuning,
      // Suffix configuration
      cachememsize: _this.props.data.cachememsize,
      cachesize: _this.props.data.cachesize,
      dncachememsize: _this.props.data.dncachememsize,
      readOnly: _this.props.data.readOnly,
      requireIndex: _this.props.data.requireIndex,
      _cachememsize: _this.props.data.cachememsize,
      _cachesize: _this.props.data.cachesize,
      _dncachememsize: _this.props.data.dncachememsize,
      _readOnly: _this.props.data.readOnly,
      _requireIndex: _this.props.data.requireIndex,
      // Import/Export modals
      showImportModal: false,
      showExportModal: false,
      ldifLocation: "",
      attrEncryption: false,
      exportSpinner: false,
      importSpinner: false,
      showConfirmLDIFImport: false,
      importLDIFName: "",
      deleleLDIFName: "",
      modalChecked: false,
      modalSpinning: false,
      includeReplData: false,
      // Reindex all
      showReindexConfirm: false,
      // Create Sub Suffix
      showSubSuffixModal: false,
      subSuffixValue: "",
      subSuffixBeName: "",
      createSuffixEntry: false,
      noSuffixInit: true,
      createSampleEntries: false,
      // Create Link
      showLinkModal: false,
      createLinkSuffix: "",
      createLinkName: "",
      createNsfarmserverurl: "",
      createNsmultiplexorbinddn: "",
      createNsmultiplexorcredentials: "",
      createNsmultiplexorcredentialsConfirm: "",
      createUseStartTLS: false,
      createNsbindmechanism: "SIMPLE",
      linkPwdMatch: false,
      // Delete
      showDeleteConfirm: false
    }; // General bindings

    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this)); // Import modal

    _this.showImportModal = _this.showImportModal.bind(_assertThisInitialized(_this));
    _this.closeImportModal = _this.closeImportModal.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleRadioChange = _this.handleRadioChange.bind(_assertThisInitialized(_this));
    _this.doImport = _this.doImport.bind(_assertThisInitialized(_this));
    _this.importLDIF = _this.importLDIF.bind(_assertThisInitialized(_this));
    _this.showConfirmLDIFImport = _this.showConfirmLDIFImport.bind(_assertThisInitialized(_this));
    _this.closeConfirmLDIFImport = _this.closeConfirmLDIFImport.bind(_assertThisInitialized(_this)); // Export modal

    _this.showExportModal = _this.showExportModal.bind(_assertThisInitialized(_this));
    _this.closeExportModal = _this.closeExportModal.bind(_assertThisInitialized(_this));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_this)); // Reindex Suffix Modal

    _this.showReindexConfirm = _this.showReindexConfirm.bind(_assertThisInitialized(_this));
    _this.closeReindexConfirm = _this.closeReindexConfirm.bind(_assertThisInitialized(_this));
    _this.doReindex = _this.doReindex.bind(_assertThisInitialized(_this)); // Create sub suffix modal

    _this.showSubSuffixModal = _this.showSubSuffixModal.bind(_assertThisInitialized(_this));
    _this.closeSubSuffixModal = _this.closeSubSuffixModal.bind(_assertThisInitialized(_this));
    _this.createSubSuffix = _this.createSubSuffix.bind(_assertThisInitialized(_this)); // Create link modal

    _this.showLinkModal = _this.showLinkModal.bind(_assertThisInitialized(_this));
    _this.closeLinkModal = _this.closeLinkModal.bind(_assertThisInitialized(_this));
    _this.createLink = _this.createLink.bind(_assertThisInitialized(_this));
    _this.handleLinkChange = _this.handleLinkChange.bind(_assertThisInitialized(_this)); // Suffix config

    _this.saveSuffixConfig = _this.saveSuffixConfig.bind(_assertThisInitialized(_this));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.closeDeleteConfirm = _this.closeDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.doDelete = _this.doDelete.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Suffix, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    } //
    // Import Modal
    //

  }, {
    key: "showImportModal",
    value: function showImportModal() {
      this.setState({
        ldifLocation: "",
        attrEncryption: false,
        showImportModal: true,
        importSpinner: false,
        errObj: {}
      });
    }
  }, {
    key: "closeImportModal",
    value: function closeImportModal() {
      this.setState({
        showImportModal: false
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "showConfirmLDIFImport",
    value: function showConfirmLDIFImport(item) {
      // call deleteLDIF
      this.setState({
        showConfirmLDIFImport: true,
        importLDIFName: item.name,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmLDIFImport",
    value: function closeConfirmLDIFImport() {
      // call importLDIF
      this.setState({
        showConfirmLDIFImport: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "importLDIF",
    value: function importLDIF() {
      var _this2 = this;

      // Do import
      var import_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.props.suffix, this.state.importLDIFName, "--encrypted"];
      this.setState({
        importSpinner: true,
        showConfirmLDIFImport: false
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doImport", "Do online import", import_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(import_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.addNotification("success", "Import successfully initiated");

        _this2.setState({
          showImportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Error importing LDIF file - ".concat(errMsg.desc));

        _this2.setState({
          showImportModal: false
        });
      });
    }
  }, {
    key: "doImport",
    value: function doImport() {
      // Validate form before proceeding
      if (this.state.ldifLocation != "") {
        this.setState({
          showConfirmLDIFImport: true,
          importLDIFName: this.state.ldifLocation
        });
      }
    } //
    // Export modal
    //

  }, {
    key: "showExportModal",
    value: function showExportModal() {
      this.setState({
        ldifLocation: "",
        attrEncryption: false,
        showExportModal: true,
        exportSpinner: false,
        includeReplData: false,
        errObj: {}
      });
    }
  }, {
    key: "closeExportModal",
    value: function closeExportModal() {
      this.setState({
        showExportModal: false,
        exportSpinner: false
      });
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this3 = this;

      var missingArgs = {
        ldifLocation: false
      };

      if (this.state.ldifLocation == "") {
        this.props.addNotification("warning", "LDIF name is empty");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Must not be a path


      if (Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["bad_file_name"])(this.state.ldifLocation)) {
        this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
        missingArgs.ldifLocation = true;
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Do Export


      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.props.suffix, "--ldif=" + this.state.ldifLocation];

      if (this.state.attrEncryption) {
        export_cmd.push("--encrypted");
      }

      if (this.state.includeReplData) {
        export_cmd.push("--replication");
      }

      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doExport", "Do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reloadLDIFs();

        _this3.props.addNotification("success", "Database export complete");

        _this3.setState({
          showExportModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reloadLDIFs();

        _this3.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this3.setState({
          showExportModal: false
        });
      });
    } //
    // Reindex entire database
    //

  }, {
    key: "showReindexConfirm",
    value: function showReindexConfirm() {
      this.setState({
        showReindexConfirm: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeReindexConfirm",
    value: function closeReindexConfirm() {
      this.setState({
        showReindexConfirm: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeReindexModal",
    value: function closeReindexModal() {
      this.setState({
        showReindexModal: false
      });
    }
  }, {
    key: "doReindex",
    value: function doReindex() {
      var _this4 = this;

      // Show index status modal
      this.setState({
        showReindexModal: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doReindex", "Reindex all attributes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.addNotification("success", "Database has successfully been reindexed");

        _this4.setState({
          showReindexModal: false,
          showReindexConfirm: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Failed to reindex database - ".concat(errMsg.desc));

        _this4.setState({
          showReindexModal: false,
          showReindexConfirm: false
        });
      });
    } //
    // Create sub suffix
    //

  }, {
    key: "showSubSuffixModal",
    value: function showSubSuffixModal() {
      this.setState({
        showSubSuffixModal: true,
        errObj: {}
      });
    }
  }, {
    key: "closeSubSuffixModal",
    value: function closeSubSuffixModal() {
      this.setState({
        showSubSuffixModal: false
      });
    }
  }, {
    key: "createSubSuffix",
    value: function createSubSuffix() {
      var _this5 = this;

      var missingArgs = {
        createSuffix: false,
        createBeName: false
      };
      var errors = false;

      if (this.state.subSuffixValue == "") {
        this.props.addNotification("warning", "Missing Suffix");
        missingArgs.subSuffixValue = true;
        errors = true;
      }

      if (this.state.subSuffixBeName == "") {
        this.props.addNotification("warning", "Missing backend name");
        missingArgs.subSuffixBeName = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Create a new suffix


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.subSuffixBeName, "--suffix=" + this.state.subSuffixValue + "," + this.props.suffix, "--parent-suffix=" + this.props.suffix];

      if (this.state.createSampleEntries) {
        cmd.push('--create-entries');
      }

      if (this.state.createSuffixEntry) {
        cmd.push('--create-suffix');
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("createSubSuffix", "Create a sub suffix", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.loadSuffixTree(false);

        _this5.closeSubSuffixModal();

        _this5.props.addNotification("success", "Successfully created new sub-suffix");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.loadSuffixTree(false);

        _this5.closeSubSuffixModal();

        _this5.props.addNotification("error", "Error creating sub-suffix - ".concat(errMsg.desc));
      });
    } //
    // Create Chaining Link
    //

  }, {
    key: "showLinkModal",
    value: function showLinkModal() {
      this.setState({
        showLinkModal: true,
        linkPwdMatch: true,
        errObj: {}
      });
    }
  }, {
    key: "closeLinkModal",
    value: function closeLinkModal() {
      this.setState({
        showLinkModal: false
      });
    }
  }, {
    key: "createLink",
    value: function createLink() {
      var _this6 = this;

      // Check for required paramters
      var formError = false;
      var missingArgs = {
        createLinkSuffix: false,
        createNsfarmserverurl: false,
        createLinkName: false,
        createNsmultiplexorbinddn: false,
        createNsmultiplexorcredentials: false,
        createNsmultiplexorcredentialsConfirm: false
      };

      if (this.state.createLinkSuffix == "") {
        this.props.addNotification("warning", "Missing subsuffix!");
        missingArgs.createLinkSuffix = true;
        formError = true;
      }

      if (this.state.createNsfarmserverurl == "") {
        this.props.addNotification("warning", "Missing Server URL!");
        missingArgs.createNsfarmserverurl = true;
        formError = true;
      }

      if (this.state.createLinkName == "") {
        this.props.addNotification("warning", "Missing Link Name");
        missingArgs.createLinkName = true;
        formError = true;
      }

      if (this.state.createNsmultiplexorbinddn == "") {
        this.props.addNotification("warning", "Missing Bind DN");
        missingArgs.createNsmultiplexorbinddn = true;
        formError = true;
      } // Check passwords match


      if (this.state.createNsmultiplexorcredentials == "" && this.state.createNsmultiplexorcredentialsConfirm == "") {
        this.props.addNotification("warning", "Missing Bind Password");
        missingArgs.createNsmultiplexorcredentialsConfirm = true;
        missingArgs.createNsmultiplexorcredentials = true;
        formError = true;
      }

      if (this.state.createNsmultiplexorcredentials != this.state.createNsmultiplexorcredentialsConfirm) {
        this.props.addNotification("warning", "Passwords do not match");
        missingArgs.createNsmultiplexorcredentialsConfirm = true;
        missingArgs.createNsmultiplexorcredentials = false;
        formError = true;
      }

      if (formError) {
        this.setState({
          errObj: missingArgs
        });
        return;
      } // Add chaining link


      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-create", "--suffix=" + this.state.createLinkSuffix + "," + this.props.suffix, "--server-url=" + this.state.createNsfarmserverurl, "--bind-mech=" + this.state.createNsbindmechanism, "--bind-dn=" + this.state.createNsmultiplexorbinddn, "--bind-pw=" + this.state.createNsmultiplexorcredentials, this.state.createLinkName];

      if (this.state.createUseStartTLS) {
        cmd.push("--use-starttls=on");
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("createLink", "Create database link", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.loadSuffixTree(false);

        _this6.closeLinkModal();

        _this6.props.addNotification("success", "Successfully created database link");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.loadSuffixTree(false);

        _this6.closeLinkModal();

        _this6.props.addNotification("error", "Error creating database link - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "checkPasswords",
    value: function checkPasswords() {
      var pwdMatch = false;

      if (this.state.createNsmultiplexorcredentials == this.state.createNsmultiplexorcredentialsConfirm) {
        pwdMatch = true;
      }

      this.setState({
        linkPwdMatch: pwdMatch
      });
    }
  }, {
    key: "handleLinkChange",
    value: function handleLinkChange(e) {
      var _this$setState2;

      // Check for matching credentials
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2), this.checkPasswords);
    }
  }, {
    key: "handleRadioChange",
    value: function handleRadioChange(e) {
      // Handle the create suffix init option radio button group
      var noInit = false;
      var addSuffix = false;
      var addSample = false;

      if (e.target.id == "noSuffixInit") {
        noInit = true;
      } else if (e.target.id == "createSuffixEntry") {
        addSuffix = true;
      } else {
        // createSampleEntries
        addSample = true;
      }

      this.setState({
        noSuffixInit: noInit,
        createSuffixEntry: addSuffix,
        createSampleEntries: addSample
      });
    } //
    // Delete suffix
    //

  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(item) {
      this.setState({
        showDeleteConfirm: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "doDelete",
    value: function doDelete() {
      var _this7 = this;

      // Delete suffix
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "delete", this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("doDelete", "Delete database", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this7.props.loadSuffixTree(true);

        _this7.closeLinkModal();

        _this7.props.addNotification("success", "Successfully deleted database");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.loadSuffixTree(true);

        _this7.closeLinkModal();

        _this7.props.addNotification("error", "Error deleting database - ".concat(errMsg.desc));
      });
    } // Save config

  }, {
    key: "saveSuffixConfig",
    value: function saveSuffixConfig() {
      var _this8 = this;

      console.log("Save suffix config: ", this.props.suffix);
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'suffix', 'set', this.props.suffix];
      var requireRestart = false;

      if (this.state._readOnly != this.state.readOnly) {
        if (this.state.readOnly) {
          cmd.push("--enable-readonly");
        } else {
          cmd.push("--disable-readonly");
        }
      }

      if (this.state._requireIndex != this.state.requireIndex) {
        if (this.state.requireIndex) {
          cmd.push("--require-index");
        } else {
          cmd.push("--ignore-index");
        }
      }

      if (this.state._cachememsize != this.state.cachememsize) {
        cmd.push("--cache-memsize=" + this.state.cachememsize);
        requireRestart = true;
      }

      if (this.state._cachesize != this.state.cachesize) {
        cmd.push("--cache-size=" + this.state.cachesize);
        requireRestart = true;
      }

      if (this.state._dncachememsize != this.state.dncachememsize) {
        cmd.push("--dncache-memsize=" + this.state.dncachememsize);
        requireRestart = true;
      }

      if (cmd.length > 7) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("saveSuffixConfig", "Save suffix config", cmd);
        var msg = "Successfully updated suffix configuration";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          // Continue with the next mod
          _this8.props.reload(_this8.props.suffix);

          _this8.props.addNotification("success", msg);

          if (requireRestart) {
            _this8.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
          }
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this8.props.reload(_this8.props.suffix);

          _this8.props.addNotification("error", "Error updating suffix configuration - ".concat(errMsg.desc));
        });
      }
    } //
    // Render the component
    //

  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var suffixIcon = "tree";

      if (this.props.dbtype == "subsuffix") {
        suffixIcon = "leaf";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "suffix-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Col"], {
        sm: 10,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["ControlLabel"], {
        className: "ds-suffix-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, this.props.bename), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh suffix",
        onClick: function onClick() {
          return _this9.props.reload(_this9.props.suffix);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["DropdownButton"], {
        className: "ds-action-button",
        bsStyle: "primary",
        title: "Suffix Tasks",
        id: "mydropdown",
        pullRight: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "1",
        onClick: this.showImportModal,
        title: "Import an LDIF file to initialize the database"
      }, "Initialize Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "2",
        onClick: this.showExportModal,
        title: "Export the database to an LDIF file"
      }, "Export Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "3",
        onClick: this.showReindexConfirm,
        title: "Reindex the entire database"
      }, "Reindex Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "4",
        onClick: this.showSubSuffixModal,
        title: "Create a sub-suffix under this suffix"
      }, "Create Sub-Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "5",
        onClick: this.showLinkModal,
        title: "Create a database chaining link subtree"
      }, "Create Database Link"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        divider: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["MenuItem"], {
        eventKey: "6",
        onClick: this.showDeleteConfirm,
        title: "This will permanently delete the database"
      }, "Delete Suffix"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Referrals'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Indexes'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'VLV Indexes'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["NavItem"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Encrypted Attributes'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["SuffixConfig"], {
        cachememsize: this.state.cachememsize,
        cachesize: this.state.cachesize,
        dncachememsize: this.state.dncachememsize,
        readOnly: this.state.readOnly,
        requireIndex: this.state.requireIndex,
        autoTuning: this.state.autoTuning,
        handleChange: this.handleChange,
        saveHandler: this.saveSuffixConfig
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_referrals_jsx__WEBPACK_IMPORTED_MODULE_5__["SuffixReferrals"], {
        rows: this.props.data.refRows,
        suffix: this.props.suffix,
        reload: this.props.reloadRefs,
        addNotification: this.props.addNotification,
        serverId: this.props.serverId,
        key: this.state.refRows
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabContainer"], {
        id: "index-tabs",
        defaultActiveKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_indexes_jsx__WEBPACK_IMPORTED_MODULE_6__["SuffixIndexes"], {
        systemIndexRows: this.props.data.systemIndexRows,
        indexRows: this.props.data.indexRows,
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        reload: this.props.reloadIndexes
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-sub-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__["AttrEncryption"], {
        rows: this.props.data.encAttrsRows,
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        attrs: this.props.attrs,
        reload: this.props.reloadAttrEnc
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_10__["TabPane"], {
        eventKey: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__["VLVIndexes"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        vlvItems: this.props.data.vlvItems,
        addNotification: this.props.addNotification,
        attrs: this.props.attrs,
        reload: this.props.reloadVLV
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        handleChange: this.handleChange,
        actionHandler: this.doDelete,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Delete Suffix",
        mMsg: "Are you really sure you want to delete this suffix?",
        mSpinningMsg: "Deleting suffix ...",
        mBtnName: "Delete Suffix"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["CreateLinkModal"], {
        showModal: this.state.showLinkModal,
        closeHandler: this.closeLinkModal,
        handleChange: this.handleLinkChange,
        saveHandler: this.createLink,
        suffix: this.props.suffix,
        pwdMatch: this.state.linkPwdMatch,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["CreateSubSuffixModal"], {
        showModal: this.state.showSubSuffixModal,
        closeHandler: this.closeSubSuffixModal,
        handleChange: this.handleChange,
        handleRadioChange: this.handleRadioChange,
        saveHandler: this.createSubSuffix,
        suffix: this.props.suffix,
        noInit: this.state.noSuffixInit,
        addSuffix: this.state.createSuffixEntry,
        addSample: this.state.createSampleEntries,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ImportModal"], {
        showModal: this.state.showImportModal,
        closeHandler: this.closeImportModal,
        handleChange: this.handleChange,
        saveHandler: this.doImport,
        showConfirmImport: this.showConfirmLDIFImport,
        spinning: this.state.importSpinner,
        rows: this.props.LDIFRows,
        suffix: this.props.suffix
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmLDIFImport,
        closeHandler: this.closeConfirmLDIFImport,
        handleChange: this.handleChange,
        actionHandler: this.importLDIF,
        spinning: this.state.modalSpinning,
        item: this.state.importLDIFName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Database From LDIF",
        mMsg: "Are you sure you want to initialize the database (it will permanently overwrite the current database)?",
        mSpinningMsg: "Initializing Database ...",
        mBtnName: "Initialize Database"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ExportModal"], {
        showModal: this.state.showExportModal,
        closeHandler: this.closeExportModal,
        handleChange: this.handleChange,
        saveHandler: this.doExport,
        spinning: this.state.exportSpinner,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showReindexConfirm,
        closeHandler: this.closeReindexConfirm,
        handleChange: this.handleChange,
        actionHandler: this.doReindex,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Reindex All Attributes",
        mMsg: "Are you sure you want to reindex all the attribute indexes?",
        mSpinningMsg: "Reindexing Database ...",
        mBtnName: "Reindex"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_9__["ReindexModal"], {
        showModal: this.state.showReindexModal,
        closeHandler: this.closeReindexModal,
        msg: "Reindexing All Attribute Indexes"
      }));
    }
  }]);

  return Suffix;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Suffix.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  loadSuffixTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadRefs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadIndexes: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadVLV: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadAttrEnc: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  reloadLDIFs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func,
  dbtype: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.object,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.array,
  LDIFRows: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.array,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.func
};
Suffix.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  loadSuffixTree: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadRefs: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadIndexes: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadVLV: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadAttrEnc: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  reloadLDIFs: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_10__["noop"],
  dbtype: "",
  data: {},
  attrs: [],
  LDIFRows: [],
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_11___default.a.noop
};

/***/ }),

/***/ "./src/lib/database/suffixConfig.jsx":
/*!*******************************************!*\
  !*** ./src/lib/database/suffixConfig.jsx ***!
  \*******************************************/
/*! exports provided: SuffixConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixConfig", function() { return SuffixConfig; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var SuffixConfig = /*#__PURE__*/function (_React$Component) {
  _inherits(SuffixConfig, _React$Component);

  var _super = _createSuper(SuffixConfig);

  function SuffixConfig() {
    _classCallCheck(this, SuffixConfig);

    return _super.apply(this, arguments);
  }

  _createClass(SuffixConfig, [{
    key: "render",
    value: function render() {
      var cacheInputs;

      if (this.props.autoTuning) {
        var cacheValue = this.props.cachesize + "  (auto-sized)";
        var cachememValue = this.props.cachememsize + "  (auto-sized)";
        cacheInputs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "The entry cache size in bytes setting is being auto-sized and is read-only - see Global Database Configuration"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "Entry Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          disabled: true,
          value: cachememValue,
          className: "ds-input-auto",
          type: "text",
          id: "cachememsize"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "The entry cache max entries setting is being auto-sized and is read-only - see Global Database Configuration"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "Entry Cache Max Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          disabled: true,
          value: cacheValue,
          className: "ds-input-auto",
          type: "text",
          id: "cachesize"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "The available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "DN Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.dncachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "dncachememsize"
        }))));
      } else {
        cacheInputs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "The size for the available memory space in bytes for the entry cache (nsslapd-cachememsize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "Entry Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.cachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "cachememsize"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "The number of entries to keep in the entry cache, use'-1' for unlimited (nsslapd-cachesize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "Entry Cache Max Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.cachesize,
          className: "ds-input-auto",
          type: "text",
          id: "cachesize"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top",
          title: "the available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4
        }, "DN Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          onChange: this.props.handleChange,
          value: this.props.dncachememsize,
          className: "ds-input-auto",
          type: "text",
          id: "dncachememsize"
        }))));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, cacheInputs, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg",
        title: "Put database in Read-Only mode (nsslapd-readonly)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4
      }, "Database Read-Only Mode"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        checked: this.props.readOnly,
        className: "ds-config-checkbox",
        id: "readOnly"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top",
        title: "Block unindexed searches on this suffix (nsslapd-require-index)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4
      }, "Block Unindexed Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        onChange: this.props.handleChange,
        checked: this.props.requireIndex,
        className: "ds-config-checkbox",
        id: "requireIndex"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "btn btn-primary save-button",
        onClick: this.props.saveHandler
      }, "Save Configuration")));
    }
  }]);

  return SuffixConfig;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Property types and defaults

SuffixConfig.propTypes = {
  cachememsize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  cachesize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  dncachememsize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  readOnly: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  requireIndex: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  autoTuning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SuffixConfig.defaultProps = {
  cachememsize: "",
  cachesize: "",
  dncachememsize: "",
  readOnly: false,
  requireIndex: false,
  autoTuning: false,
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};

/***/ }),

/***/ "./src/lib/database/vlvIndexes.jsx":
/*!*****************************************!*\
  !*** ./src/lib/database/vlvIndexes.jsx ***!
  \*****************************************/
/*! exports provided: VLVIndexes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VLVIndexes", function() { return VLVIndexes; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var VLVIndexes = /*#__PURE__*/function (_React$Component) {
  _inherits(VLVIndexes, _React$Component);

  var _super = _createSuper(VLVIndexes);

  function VLVIndexes(props) {
    var _this;

    _classCallCheck(this, VLVIndexes);

    _this = _super.call(this, props);
    _this.state = {
      vlvItems: [],
      showVLVModal: false,
      showVLVEditModal: false,
      showDeleteConfirm: false,
      showReindexConfirm: false,
      errObj: {},
      vlvName: "",
      vlvBase: "",
      vlvScope: "subtree",
      vlvFilter: "",
      vlvSortList: [],
      _vlvName: "",
      _vlvBase: "",
      _vlvScope: "",
      _vlvFilter: "",
      _vlvSortList: []
    }; // Create VLV Modal

    _this.showVLVModal = _this.showVLVModal.bind(_assertThisInitialized(_this));
    _this.closeVLVModal = _this.closeVLVModal.bind(_assertThisInitialized(_this));
    _this.handleVLVChange = _this.handleVLVChange.bind(_assertThisInitialized(_this));
    _this.handleVLVSortChange = _this.handleVLVSortChange.bind(_assertThisInitialized(_this));
    _this.saveVLV = _this.saveVLV.bind(_assertThisInitialized(_this));
    _this.saveEditVLV = _this.saveEditVLV.bind(_assertThisInitialized(_this));
    _this.deleteVLV = _this.deleteVLV.bind(_assertThisInitialized(_this));
    _this.reindexVLV = _this.reindexVLV.bind(_assertThisInitialized(_this)); // Edit VLV modal

    _this.showVLVEditModal = _this.showVLVEditModal.bind(_assertThisInitialized(_this));
    _this.closeVLVEditModal = _this.closeVLVEditModal.bind(_assertThisInitialized(_this));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.closeDeleteConfirm = _this.closeDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.showReindexConfirm = _this.showReindexConfirm.bind(_assertThisInitialized(_this));
    _this.closeReindexConfirm = _this.closeReindexConfirm.bind(_assertThisInitialized(_this));
    return _this;
  } //
  // VLV index functions
  //


  _createClass(VLVIndexes, [{
    key: "showVLVModal",
    value: function showVLVModal() {
      this.setState({
        showVLVModal: true,
        errObj: {},
        vlvName: "",
        vlvBase: "",
        vlvScope: "subtree",
        vlvFilter: "",
        vlvSortList: [],
        vlvSortRows: []
      });
    }
  }, {
    key: "closeVLVModal",
    value: function closeVLVModal() {
      this.setState({
        showVLVModal: false
      });
    }
  }, {
    key: "handleVLVChange",
    value: function handleVLVChange(e) {
      var _this$setState;

      var value = e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleVLVSortChange",
    value: function handleVLVSortChange(sorts) {
      // "sorts" is a table obj that uses the key "sortName"
      var sortList = [];

      var _iterator = _createForOfIteratorHelper(sorts),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var sort = _step.value;
          // Create array of sorts from array of objs
          sortList.push(sort.sortName);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        vlvSortList: sortList
      });
    } // Edit VLVIndex

  }, {
    key: "showVLVEditModal",
    value: function showVLVEditModal(e) {
      var vlvName = e.target.name;

      var _iterator2 = _createForOfIteratorHelper(this.props.vlvItems),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var item = _step2.value;
          var vlvAttrs = item.attrs;

          if (vlvAttrs.cn[0] == vlvName) {
            var sortRows = [];
            var sortList = [];

            var _iterator3 = _createForOfIteratorHelper(item.sorts),
                _step3;

            try {
              for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                var vlvSort = _step3.value;
                sortRows.push({
                  sortName: vlvSort.attrs.vlvsort[0]
                });
                sortList.push(vlvSort.attrs.vlvsort[0]);
              }
            } catch (err) {
              _iterator3.e(err);
            } finally {
              _iterator3.f();
            }

            this.setState({
              showVLVEditModal: true,
              errObj: {},
              vlvName: vlvAttrs.cn[0],
              vlvBase: vlvAttrs.vlvbase[0],
              vlvScope: this.getScopeKey(vlvAttrs.vlvscope[0]),
              vlvFilter: vlvAttrs.vlvfilter[0],
              vlvSortList: sortList,
              vlvSortRows: sortRows,
              _vlvName: vlvAttrs.cn[0],
              _vlvBase: vlvAttrs.vlvbase[0],
              _vlvScope: this.getScopeKey(vlvAttrs.vlvscope[0]),
              _vlvFilter: vlvAttrs.vlvfilter[0],
              _vlvSortList: sortList,
              _vlvSortRows: sortRows
            });
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }
  }, {
    key: "closeVLVEditModal",
    value: function closeVLVEditModal() {
      this.setState({
        showVLVEditModal: false
      });
    }
  }, {
    key: "getScopeVal",
    value: function getScopeVal(scope) {
      var mapping = {
        'subtree': '2',
        'one': '1',
        'base': '0'
      };
      return mapping[scope];
    }
  }, {
    key: "getScopeKey",
    value: function getScopeKey(scope) {
      var mapping = {
        '2': 'subtree',
        '1': 'one',
        '0': 'base'
      };
      return mapping[scope];
    }
  }, {
    key: "saveEditVLV",
    value: function saveEditVLV() {
      var _this2 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.vlvBase == "") {
        this.props.addNotification("warning", "Missing VLV search base");
        missingArgs.vlvBase = true;
        errors = true;
      }

      if (this.state.vlvFilter == "") {
        this.props.addNotification("warning", "Missing VLV search filter");
        missingArgs.vlvFilter = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "edit-search", "--name=" + this.state.vlvName, this.props.suffix];

      if (this.state.vlvBase != this.state._vlvBase) {
        cmd.push("--search-base=" + this.state.vlvBase);
      }

      if (this.state.vlvScope != this.state._vlvScope) {
        cmd.push("--search-scope=" + this.getScopeVal(this.state.vlvScope));
      }

      if (this.state.vlvFilter != this.state._vlvFilter) {
        cmd.push("--search-filter=" + this.state.vlvFilter);
      }

      if (cmd.length > 8) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "Add vlv search", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully edited VLV search");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to edit VLV search - ".concat(errMsg.desc));
        });
      } // Check the sort indexes now
      // Loop over sorts and create indexes or each one


      var addIndexList = [];
      var delIndexList = [];

      var _iterator4 = _createForOfIteratorHelper(this.state.vlvSortList),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var sort = _step4.value;

          if (this.state._vlvSortList.indexOf(sort) == -1) {
            // Add sort index
            addIndexList.push(sort);
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      var _iterator5 = _createForOfIteratorHelper(this.state._vlvSortList),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _sort = _step5.value;

          if (this.state.vlvSortList.indexOf(_sort) == -1) {
            // Del sort index
            delIndexList.push(_sort);
          }
        } // Add VLV index/sort

      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var _loop = function _loop() {
        var index = _addIndexList[_i];
        cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "vlv-index", "add-index", "--parent-name=" + _this2.state.vlvName, "--index-name=" + _this2.state.vlvName + " - " + index, "--sort=" + index, _this2.props.suffix];

        if (_this2.state.reindexVLV) {
          cmd.push("--index-it");
        }

        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "Add index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully added VLV index " + _this2.state.vlvName + " - " + index);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to add VLV index entry - ".concat(errMsg.desc));
        });
      };

      for (var _i = 0, _addIndexList = addIndexList; _i < _addIndexList.length; _i++) {
        _loop();
      } // Del VLV index/sort


      var _loop2 = function _loop2() {
        var index = _delIndexList[_i2];
        cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this2.props.serverId + ".socket", "backend", "vlv-index", "del-index", "--parent-name=" + _this2.state.vlvName, "--sort=" + index, _this2.props.suffix];

        if (_this2.state.reindexVLV) {
          cmd.push("--index-it");
        }

        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveEditVLV", "delete index", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("success", "Successfully added VLV index " + _this2.state.vlvName + " - " + index);
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.closeVLVEditModal();

          _this2.props.reload(_this2.props.suffix);

          _this2.props.addNotification("error", "Failed to add VLV index entry - ".concat(errMsg.desc));
        });
      };

      for (var _i2 = 0, _delIndexList = delIndexList; _i2 < _delIndexList.length; _i2++) {
        _loop2();
      }
    }
  }, {
    key: "saveVLV",
    value: function saveVLV() {
      var _this3 = this;

      var missingArgs = {};
      var errors = false;

      if (this.state.vlvName == "") {
        this.props.addNotification("warning", "Missing VLV Search Name");
        missingArgs.vlvName = true;
        errors = true;
      }

      if (this.state.vlvBase == "") {
        this.props.addNotification("warning", "Missing VLV search base");
        missingArgs.vlvBase = true;
        errors = true;
      }

      if (this.state.vlvFilter == "") {
        this.props.addNotification("warning", "Missing VLV search filter");
        missingArgs.vlvFilter = true;
        errors = true;
      }

      if (errors) {
        this.setState({
          errObj: missingArgs
        });
        return;
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "add-search", "--name=" + this.state.vlvName, "--search-base=" + this.state.vlvBase, "--search-filter=" + this.state.vlvFilter, "--search-scope=" + this.getScopeVal(this.state.vlvScope), this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveVLV", "Add vlv search", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        _this3.props.addNotification("success", "Successfully added VLV search: " + _this3.state.vlvName); // Loop over sorts and create indexes or each one


        var _iterator6 = _createForOfIteratorHelper(_this3.state.vlvSortList),
            _step6;

        try {
          var _loop3 = function _loop3() {
            var sort = _step6.value;
            var indexName = _this3.state.vlvName + " - " + sort;
            var idx_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this3.props.serverId + ".socket", "backend", "vlv-index", "add-index", "--parent-name=" + _this3.state.vlvName, "--index-name=" + indexName, "--sort=" + sort, _this3.props.suffix];

            if (_this3.state.reindexVLV) {
              idx_cmd.push("--index");
            }

            Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveVLV", "Add vlv index", idx_cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(idx_cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              _this3.props.reload(_this3.props.suffix);

              _this3.props.addNotification("success", "Successfully added VLV index: " + indexName);
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              _this3.props.addNotification("error", "Failed create VLV index entry - ".concat(errMsg.desc));
            });
          };

          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            _loop3();
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed create VLV search entry - ".concat(errMsg.desc));
      });
      this.closeVLVModal();
    }
  }, {
    key: "renderVLVActions",
    value: function renderVLVActions(id) {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["DropdownButton"], {
        bsStyle: "default",
        title: "Actions",
        id: id
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "1",
        name: id,
        onClick: this.showVLVEditModal
      }, "Edit VLV Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "2",
        name: id,
        onClick: this.showReindexConfirm
      }, "Reindex VLV Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        divider: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["MenuItem"], {
        eventKey: "3",
        name: id,
        onClick: this.showDeleteConfirm
      }, "Delete VLV Index")));
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(e) {
      this.setState({
        showDeleteConfirm: true,
        deleteVLVName: e.target.name
      });
    }
  }, {
    key: "closeDeleteConfirm",
    value: function closeDeleteConfirm() {
      this.setState({
        showDeleteConfirm: false
      });
    }
  }, {
    key: "deleteVLV",
    value: function deleteVLV(vlv) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "del-search", "--name=" + vlv, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("deleteVLV", "delete LV search and indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification("success", "Successfully deleted VLV index");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification("error", "Failed to deletre VLV index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "showReindexConfirm",
    value: function showReindexConfirm(e) {
      this.setState({
        showReindexConfirm: true,
        reindexVLVName: e.target.name
      });
    }
  }, {
    key: "closeReindexConfirm",
    value: function closeReindexConfirm() {
      this.setState({
        showReindexConfirm: false
      });
    }
  }, {
    key: "reindexVLV",
    value: function reindexVLV(vlv) {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "reindex", "--parent-name=" + vlv, this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("reindexVLV", "reindex VLV indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.reload(_this5.props.suffix);

        _this5.props.addNotification("success", "Successfully completed VLV indexing");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.reload(_this5.props.suffix);

        _this5.props.addNotification("error", "Failed to index VLV index - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var vlvIndexes = this.props.vlvItems.map(function (vlvItem) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListViewItem"], {
          actions: _this6.renderVLVActions(vlvItem.attrs.cn[0]),
          leftContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListViewIcon"], {
            name: "list"
          }),
          key: vlvItem.attrs.cn[0],
          heading: vlvItem.attrs.cn[0]
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 11,
          key: vlvItem.dn
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
          key: vlvItem.dn + "-p"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Base"), vlvItem.attrs.vlvbase[0]), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Filter"), vlvItem.attrs.vlvfilter[0]), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
          className: "ds-divider-lrg"
        }, "Scope"), _this6.getScopeKey(vlvItem.attrs.vlvscope[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), vlvItem.sorts.map(function (sort) {
          var indexState;

          if (sort.attrs.vlvenabled[0] == "0") {
            indexState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
              size: "2",
              color: "#d01c8b"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Disabled"));
          } else {
            indexState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
              size: "2",
              color: "#4dac26"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "Uses: "), sort.attrs.vlvuses[0]);
          }

          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", {
            key: sort.dn + sort.attrs.vlvsort[0]
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", {
            className: "ds-divider-lrg"
          }, "Sort"), sort.attrs.vlvsort[0], " (", indexState, ")");
        }))));
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h5", null, "Virtual List View Indexes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ListView"], null, vlvIndexes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "btn btn-primary ds-margin-top",
        onClick: this.showVLVModal,
        type: "button"
      }, "Create VLV Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddVLVModal, {
        showModal: this.state.showVLVModal,
        closeHandler: this.closeVLVModal,
        handleChange: this.handleVLVChange,
        handleSortChange: this.handleVLVSortChange,
        saveHandler: this.saveVLV,
        error: this.state.errObj,
        attrs: this.props.attrs
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(AddVLVModal, {
        showModal: this.state.showVLVEditModal,
        closeHandler: this.closeVLVEditModal,
        handleChange: this.handleVLVChange,
        handleSortChange: this.handleVLVSortChange,
        saveHandler: this.saveEditVLV,
        edit: true,
        error: this.state.errObj,
        attrs: this.props.attrs,
        vlvName: this.state.vlvName,
        vlvBase: this.state.vlvBase,
        vlvScope: this.state.vlvScope,
        vlvFilter: this.state.vlvFilter,
        vlvSortList: this.state.vlvSortRows
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showDeleteConfirm,
        closeHandler: this.closeDeleteConfirm,
        actionFunc: this.deleteVLV,
        actionParam: this.state.deleteVLVName,
        msg: "Are you sure you want to delete this VLV index?",
        msgContent: this.state.deleteVLVName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showReindexConfirm,
        closeHandler: this.closeReindexConfirm,
        actionFunc: this.reindexVLV,
        actionParam: this.state.reindexVLVName,
        msg: "Are you sure you want to reindex this VLV index?",
        msgContent: this.state.reindexVLVName
      }));
    }
  }]);

  return VLVIndexes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Add and edit modal

var AddVLVModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(AddVLVModal, _React$Component2);

  var _super2 = _createSuper(AddVLVModal);

  function AddVLVModal(props) {
    var _this7;

    _classCallCheck(this, AddVLVModal);

    _this7 = _super2.call(this, props);
    var sortRows = [];

    if (_this7.props.edit !== undefined && _this7.props.vlvSortList !== undefined) {
      sortRows = _this7.props.vlvSortList;
    }

    _this7.state = {
      sortRows: sortRows,
      sortValue: "",
      columns: [],
      edit: false
    };
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_this7));
    _this7.getSingleColumn = _this7.getSingleColumn.bind(_assertThisInitialized(_this7));
    _this7.updateSorts = _this7.updateSorts.bind(_assertThisInitialized(_this7));
    _this7.handleVLVSortChange = _this7.handleVLVSortChange.bind(_assertThisInitialized(_this7));
    _this7.close = _this7.close.bind(_assertThisInitialized(_this7));
    _this7.save = _this7.save.bind(_assertThisInitialized(_this7));
    return _this7;
  }

  _createClass(AddVLVModal, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "VLV Sort Indexes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      var _this8 = this;

      return [{
        property: "sortName",
        header: {
          label: "VLV Sort Indexes",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_4__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: rowData.sortName[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
              onClick: function onClick() {
                _this8.handleVLVSortChange(rowData);
              }
            }, "Remove"))];
          }]
        }
      }];
    }
  }, {
    key: "handleVLVSortChange",
    value: function handleVLVSortChange(e) {
      // VLV index was removed from table
      var rows = this.state.sortRows;

      for (var i = 0; i < rows.length; i++) {
        if (rows[i].sortName == e.sortName) {
          rows.splice(i, 1);
          this.setState({
            sortRows: rows
          });
          this.props.handleSortChange(rows);
          return;
        }
      }
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(values) {
      var value = values.join(' ');
      this.setState({
        sortValue: value
      });
    }
  }, {
    key: "updateSorts",
    value: function updateSorts() {
      var rows = this.state.sortRows;

      if (this.state.sortValue != "") {
        rows.push({
          sortName: this.state.sortValue
        });
        this.typeahead.getInstance().clear();
        this.setState({
          sortRows: rows,
          sortValue: ""
        });
        this.props.handleSortChange(rows);
      }
    }
  }, {
    key: "save",
    value: function save() {
      // reset the rows, and call the save handler
      this.state.sortRows = [];
      this.props.saveHandler();
    }
  }, {
    key: "close",
    value: function close() {
      this.state.sortRows = [];
      this.props.closeHandler();
    }
  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          error = _this$props.error,
          attrs = _this$props.attrs;
      var title;
      var nameInput;
      var base = "";
      var scope = "subtree";
      var filter = "";
      var sortTable;

      if (this.props.edit) {
        title = "Edit VLV Index";
        nameInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: "ds-input-auto",
          type: "text",
          value: this.props.vlvName,
          readOnly: true
        });
        base = this.props.vlvBase;
        scope = this.props.vlvScope;
        filter = this.props.vlvFilter;

        if (this.props.vlvSortList !== undefined) {
          // {sortName: "value"},
          this.state.sortRows = this.props.vlvSortList;
        }
      } else {
        // Create new index
        // this.state.sortRows = [];
        title = "Create VLV Index";
        nameInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          className: error.vlvName ? "ds-input-auto-bad" : "ds-input-auto",
          type: "text",
          onChange: handleChange,
          id: "vlvName"
        });
      }

      var vlvscope = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Scope")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        defaultValue: scope,
        onChange: this.props.handleChange,
        className: "btn btn-default dropdown",
        id: "vlvScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "one"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "base"))));

      if (this.state.sortRows.length == 0) {
        sortTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No sort indexes"
          }]
        });
      } else {
        sortTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_7__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "sortName",
          rows: this.state.sortRows
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"], {
        show: showModal,
        onHide: this.close
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Title, null, title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "VLV Index Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, nameInput)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Base")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.vlvBase ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "vlvBase",
        defaultValue: base
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, "Search Filter")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        className: error.vlvFilter ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange,
        type: "text",
        id: "vlvFilter",
        defaultValue: filter
      }))), vlvscope, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, sortTable, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_6__["Typeahead"], {
        multiple: true,
        className: "ds-margin-top",
        id: "vlvsortindex",
        onChange: function onChange(values) {
          _this9.handleTypeaheadChange(values);
        },
        maxResults: 1000,
        options: attrs,
        placeholder: "Start typing attribute names to create a sort index",
        ref: function ref(typeahead) {
          _this9.typeahead = typeahead;
        }
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "ds-margin-top",
        type: "button",
        onClick: this.updateSorts
      }, "Add Sort Index"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
        className: "ds-float-right",
        id: "reindexVLV",
        onChange: handleChange
      }, "Index VLV on Save"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.close
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        bsStyle: "primary",
        onClick: this.save
      }, "Save VLV Index"))));
    }
  }]);

  return AddVLVModal;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults


VLVIndexes.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvItems: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func
};
VLVIndexes.defaultProps = {
  suffix: "",
  serverId: "",
  vlvItems: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  attrs: [],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
AddVLVModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  handleSortChange: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array,
  vlvName: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvBase: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvScope: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvFilter: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  vlvSortList: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.array
};
AddVLVModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  handleSortChange: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  edit: false,
  error: {},
  attrs: [],
  vlvName: "",
  vlvBase: "",
  vlvScope: "",
  vlvFilter: "",
  vlvSortList: []
};

/***/ }),

/***/ "./src/lib/dsTable.jsx":
/*!*****************************!*\
  !*** ./src/lib/dsTable.jsx ***!
  \*****************************/
/*! exports provided: DSTable, DSShortTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DSTable", function() { return DSTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DSShortTable", function() { return DSShortTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var sortabular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sortabular */ "./node_modules/sortabular/dist/index.js");
/* harmony import */ var sortabular__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sortabular__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var table_resolver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! table-resolver */ "./node_modules/table-resolver/dist/index.js");
/* harmony import */ var table_resolver__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(table_resolver__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var recompose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recompose */ "./node_modules/recompose/dist/Recompose.esm.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _customTableToolbar_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./customTableToolbar.jsx */ "./src/lib/customTableToolbar.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }











var DSTable = /*#__PURE__*/function (_React$Component) {
  _inherits(DSTable, _React$Component);

  var _super = _createSuper(DSTable);

  // props:
  // getColumns={this.getColumns}
  // fieldsToSearch={this.state.fieldsToSearch}
  // searchField={this.state.searchField}
  // rowKey
  // rows: table rows
  //
  function DSTable(props) {
    var _this;

    _classCallCheck(this, DSTable);

    _this = _super.call(this, props); // Point the transform to your sortingColumns. React state can work for this purpose
    // but you can use a state manager as well.

    var getSortingColumns = function getSortingColumns() {
      return _this.state.sortingColumns || {};
    };

    var pagination_list = [6, 12, 24, 48, 96];
    var pagination_per_page = 12;

    if (_this.props.toolBarPagination !== undefined) {
      pagination_list = _this.props.toolBarPagination;
    }

    if (_this.props.toolBarPaginationPerPage !== undefined) {
      pagination_per_page = _this.props.toolBarPaginationPerPage;
    }

    var sortableTransform = sortabular__WEBPACK_IMPORTED_MODULE_4__["sort"]({
      getSortingColumns: getSortingColumns,
      onSort: function onSort(selectedColumn) {
        _this.setState({
          sortingColumns: sortabular__WEBPACK_IMPORTED_MODULE_4__["byColumn"]({
            sortingColumns: _this.state.sortingColumns,
            sortingOrder: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["defaultSortingOrder"],
            selectedColumn: selectedColumn
          })
        });
      },
      // Use property or index dependening on the sortingColumns structure specified
      strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
    });
    var sortingFormatter = sortabular__WEBPACK_IMPORTED_MODULE_4__["header"]({
      sortableTransform: sortableTransform,
      getSortingColumns: getSortingColumns,
      strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
    }); // Update column formatter stuff

    var customColumns = _this.props.getColumns();

    var _iterator = _createForOfIteratorHelper(customColumns),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var customColumn = _step.value;

        if (customColumn.header.formatters.length == 0) {
          customColumn.header.formatters = [sortingFormatter];
          customColumn.header.transforms = [sortableTransform];
        }
      } // Enables our custom header formatters extensions to reactabular

    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    _this.customHeaderFormatters = patternfly_react__WEBPACK_IMPORTED_MODULE_1__["customHeaderFormattersDefinition"];
    _this.handleSearchValueChange = _this.handleSearchValueChange.bind(_assertThisInitialized(_this));
    _this.totalPages = _this.totalPages.bind(_assertThisInitialized(_this));
    _this.onPageInput = _this.onPageInput.bind(_assertThisInitialized(_this));
    _this.onSubmit = _this.onSubmit.bind(_assertThisInitialized(_this));
    _this.setPage = _this.setPage.bind(_assertThisInitialized(_this));
    _this.onPerPageSelect = _this.onPerPageSelect.bind(_assertThisInitialized(_this));
    _this.onFirstPage = _this.onFirstPage.bind(_assertThisInitialized(_this));
    _this.onPreviousPage = _this.onPreviousPage.bind(_assertThisInitialized(_this));
    _this.onNextPage = _this.onNextPage.bind(_assertThisInitialized(_this));
    _this.onLastPage = _this.onLastPage.bind(_assertThisInitialized(_this));
    _this.currentRows = _this.currentRows.bind(_assertThisInitialized(_this));
    _this.filteredSearchedRows = _this.filteredSearchedRows.bind(_assertThisInitialized(_this));
    _this.state = {
      searchFilterValue: "",
      fieldsToSearch: _this.props.fieldsToSearch,
      // Sort the first column in an ascending way by default.
      sortingColumns: {
        name: {
          direction: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["TABLE_SORT_DIRECTION"].ASC,
          position: 0
        }
      },
      columns: customColumns,
      // pagination default states
      pagination: {
        page: 1,
        perPage: pagination_per_page,
        perPageOptions: pagination_list
      },
      // page input value
      pageChangeValue: 1
    };
    return _this;
  }

  _createClass(DSTable, [{
    key: "handleSearchValueChange",
    value: function handleSearchValueChange(event) {
      this.setState({
        searchFilterValue: event.target.value
      });
    }
  }, {
    key: "totalPages",
    value: function totalPages() {
      var rows = this.props.rows;
      var perPage = this.state.pagination.perPage;
      return Math.ceil(rows.length / perPage);
    }
  }, {
    key: "onPageInput",
    value: function onPageInput(e) {
      this.setState({
        pageChangeValue: e.target.value
      });
    }
  }, {
    key: "onSubmit",
    value: function onSubmit() {
      this.setPage(this.state.pageChangeValue);
    }
  }, {
    key: "setPage",
    value: function setPage(value) {
      var page = Number(value);

      if (!Number.isNaN(value) && value !== "" && page > 0 && page <= this.totalPages()) {
        var newPaginationState = Object.assign({}, this.state.pagination);
        newPaginationState.page = page;
        this.setState({
          pagination: newPaginationState,
          pageChangeValue: page
        });
      }
    }
  }, {
    key: "onPerPageSelect",
    value: function onPerPageSelect(eventKey, e) {
      var newPaginationState = Object.assign({}, this.state.pagination);
      newPaginationState.perPage = eventKey;
      newPaginationState.page = 1;
      this.setState({
        pagination: newPaginationState
      });
    }
  }, {
    key: "onFirstPage",
    value: function onFirstPage() {
      this.setPage(1);
    }
  }, {
    key: "onPreviousPage",
    value: function onPreviousPage() {
      if (this.state.pagination.page > 1) {
        this.setPage(this.state.pagination.page - 1);
      }
    }
  }, {
    key: "onNextPage",
    value: function onNextPage() {
      var page = this.state.pagination.page;

      if (page < this.totalPages()) {
        this.setPage(this.state.pagination.page + 1);
      }
    }
  }, {
    key: "onLastPage",
    value: function onLastPage() {
      var page = this.state.pagination.page;
      var totalPages = this.totalPages();

      if (page < totalPages) {
        this.setPage(totalPages);
      }
    }
  }, {
    key: "currentRows",
    value: function currentRows(filteredRows) {
      var _this$state = this.state,
          sortingColumns = _this$state.sortingColumns,
          columns = _this$state.columns,
          pagination = _this$state.pagination;
      return Object(recompose__WEBPACK_IMPORTED_MODULE_6__["compose"])(Object(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["paginate"])(pagination), sortabular__WEBPACK_IMPORTED_MODULE_4__["sorter"]({
        columns: columns,
        sortingColumns: sortingColumns,
        sort: lodash__WEBPACK_IMPORTED_MODULE_3__["orderBy"],
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      }))(filteredRows);
    }
  }, {
    key: "filteredSearchedRows",
    value: function filteredSearchedRows() {
      var rows = this.props.rows;
      var _this$state2 = this.state,
          fieldsToSearch = _this$state2.fieldsToSearch,
          searchFilterValue = _this$state2.searchFilterValue;

      if (searchFilterValue) {
        return Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["searchFilter"])(searchFilterValue, fieldsToSearch, rows);
      }

      return rows;
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$state3 = this.state,
          columns = _this$state3.columns,
          pagination = _this$state3.pagination,
          sortingColumns = _this$state3.sortingColumns,
          pageChangeValue = _this$state3.pageChangeValue;
      var filteredRows = this.filteredSearchedRows();
      var sortedPaginatedRows = this.currentRows(filteredRows);
      var dsSearchBar = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customTableToolbar_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
        searchFilterValue: this.state.searchFilterValue,
        handleValueChange: this.handleSearchValueChange,
        children: this.props.toolBarChildren,
        className: this.props.toolBarClassName,
        placeholder: this.props.toolBarPlaceholder,
        modelToSearch: this.props.toolBarSearchField,
        loading: this.props.toolBarLoading,
        disableLoadingSpinner: this.props.toolBarDisableLoadingSpinner
      });

      if (this.props.noSearchBar) {
        dsSearchBar = "";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, dsSearchBar, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].PfProvider, {
        className: "display ds-db-table",
        striped: true,
        hover: true,
        dataTable: true,
        columns: columns,
        components: {
          header: {
            cell: function cell(cellProps) {
              return _this2.customHeaderFormatters({
                cellProps: cellProps,
                columns: columns,
                sortingColumns: sortingColumns,
                rows: sortedPaginatedRows.rows
              });
            }
          }
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Header, {
        className: "ds-table-header",
        headerRows: table_resolver__WEBPACK_IMPORTED_MODULE_5__["headerRows"]({
          columns: columns
        })
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, {
        rows: sortedPaginatedRows.rows,
        rowKey: this.props.rowKey,
        onRow: function onRow() {
          return {
            role: "row"
          };
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["PaginationRow"], {
        viewType: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["PAGINATION_VIEW"].TABLE,
        className: "ds-table-pagination",
        pagination: pagination,
        pageInputValue: pageChangeValue,
        amountOfPages: sortedPaginatedRows.amountOfPages,
        itemCount: sortedPaginatedRows.itemCount,
        itemsStart: sortedPaginatedRows.itemsStart,
        itemsEnd: sortedPaginatedRows.itemsEnd,
        onPerPageSelect: this.onPerPageSelect,
        onFirstPage: this.onFirstPage,
        onPreviousPage: this.onPreviousPage,
        onPageInput: this.onPageInput,
        onNextPage: this.onNextPage,
        onLastPage: this.onLastPage,
        onSubmit: this.onSubmit
      }));
    }
  }]);

  return DSTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DSShortTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(DSShortTable, _React$Component2);

  var _super2 = _createSuper(DSShortTable);

  // This table is designed for smaller tables that don't need pagination or filtering,
  // and can be empty.  So log a nice "empty" value we need the columns to be dynamic
  // and relaoded every time we render
  function DSShortTable(props) {
    var _this3;

    _classCallCheck(this, DSShortTable);

    _this3 = _super2.call(this, props); // Enables our custom header formatters extensions to reactabular

    _this3.customHeaderFormatters = patternfly_react__WEBPACK_IMPORTED_MODULE_1__["customHeaderFormattersDefinition"];
    _this3.currentRows = _this3.currentRows.bind(_assertThisInitialized(_this3));
    _this3.state = {
      // Sort the first column in an ascending way by default.
      sortingColumns: {
        name: {
          direction: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["TABLE_SORT_DIRECTION"].ASC,
          position: 0
        }
      }
    };
    return _this3;
  }

  _createClass(DSShortTable, [{
    key: "currentRows",
    value: function currentRows(rows, columns) {
      var sortingColumns = this.state.sortingColumns;
      return Object(recompose__WEBPACK_IMPORTED_MODULE_6__["compose"])(sortabular__WEBPACK_IMPORTED_MODULE_4__["sorter"]({
        columns: columns,
        sortingColumns: sortingColumns,
        sort: lodash__WEBPACK_IMPORTED_MODULE_3__["orderBy"],
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      }))(rows);
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var sortingColumns = this.state.sortingColumns;

      var getSortingColumns = function getSortingColumns() {
        return _this4.state.sortingColumns || {};
      };

      var sortableTransform = sortabular__WEBPACK_IMPORTED_MODULE_4__["sort"]({
        getSortingColumns: getSortingColumns,
        onSort: function onSort(selectedColumn) {
          _this4.setState({
            sortingColumns: sortabular__WEBPACK_IMPORTED_MODULE_4__["byColumn"]({
              sortingColumns: _this4.state.sortingColumns,
              sortingOrder: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["defaultSortingOrder"],
              selectedColumn: selectedColumn
            })
          });
        },
        // Use property or index dependening on the sortingColumns structure specified
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      });
      var sortingFormatter = sortabular__WEBPACK_IMPORTED_MODULE_4__["header"]({
        sortableTransform: sortableTransform,
        getSortingColumns: getSortingColumns,
        strategy: sortabular__WEBPACK_IMPORTED_MODULE_4__["strategies"].byProperty
      });
      var columns = this.props.getColumns();

      var _iterator2 = _createForOfIteratorHelper(columns),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var column = _step2.value;

          if (column.header.formatters.length == 0) {
            column.header.formatters = [sortingFormatter];
            column.header.transforms = [sortableTransform];
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var sortedRows = this.currentRows(this.props.rows, columns);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].PfProvider, {
        className: "display ds-db-table",
        striped: true,
        hover: true,
        dataTable: true,
        columns: columns,
        components: {
          header: {
            cell: function cell(cellProps) {
              return _this4.customHeaderFormatters({
                cellProps: cellProps,
                columns: columns,
                sortingColumns: sortingColumns,
                rows: sortedRows.rows
              });
            }
          }
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Header, {
        className: "ds-table-header",
        headerRows: table_resolver__WEBPACK_IMPORTED_MODULE_5__["headerRows"]({
          columns: columns
        })
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Table"].Body, {
        rows: sortedRows,
        rowKey: this.props.rowKey,
        onRow: function onRow() {
          return {
            role: "row"
          };
        }
      })));
    }
  }]);

  return DSShortTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Properties


DSTable.propTypes = {
  getColumns: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  fieldsToSearch: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  rowKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  toolBarSearchField: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarChildren: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,
  toolBarClassName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarPlaceholder: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  toolBarLoading: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  toolBarDisableLoadingSpinner: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  toolBarPagination: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  toolBarPaginationPerPage: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  noSearchBar: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
DSShortTable.propTypes = {
  getColumns: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  rowKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array
};


/***/ }),

/***/ "./src/lib/monitor/accesslog.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/accesslog.jsx ***!
  \***************************************/
/*! exports provided: AccessLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AccessLogMonitor", function() { return AccessLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var AccessLogMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(AccessLogMonitor, _React$Component);

  var _super = _createSuper(AccessLogMonitor);

  function AccessLogMonitor() {
    _classCallCheck(this, AccessLogMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(AccessLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('accesslog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading access log...");
      }

      var contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "accesslog-lines"
      }, " Log Lines To Show"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "accesslog-lines",
        value: this.props.lines
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-access-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Access Log", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh access log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9,
        className: "ds-float-left"
      }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, selectLines), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "accesslog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AccessLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AccessLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AccessLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AccessLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditfaillog.jsx":
/*!******************************************!*\
  !*** ./src/lib/monitor/auditfaillog.jsx ***!
  \******************************************/
/*! exports provided: AuditFailLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuditFailLogMonitor", function() { return AuditFailLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var AuditFailLogMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(AuditFailLogMonitor, _React$Component);

  var _super = _createSuper(AuditFailLogMonitor);

  function AuditFailLogMonitor() {
    _classCallCheck(this, AuditFailLogMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(AuditFailLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('auditfaillog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading audit failure log...");
      }

      var contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "auditfaillog-lines"
      }, " Log Lines To Show"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "auditfaillog-lines",
        value: this.props.lines
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-auditfail-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Audit Failure Log", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh audit failure log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8,
        className: "ds-float-left"
      }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, selectLines), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "auditfaillog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AuditFailLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AuditFailLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AuditFailLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AuditFailLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/auditlog.jsx ***!
  \**************************************/
/*! exports provided: AuditLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuditLogMonitor", function() { return AuditLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var AuditLogMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(AuditLogMonitor, _React$Component);

  var _super = _createSuper(AuditLogMonitor);

  function AuditLogMonitor() {
    _classCallCheck(this, AuditLogMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(AuditLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('auditlog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading audit log...");
      }

      var contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "auditlog-lines"
      }, " Log Lines To Show"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "auditlog-lines",
        value: this.props.lines
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-audit-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Audit Log", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh audit log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8,
        className: "ds-float-left"
      }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, selectLines), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "auditlog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return AuditLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

AuditLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
AuditLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reloading: false,
  refreshing: false,
  line: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AuditLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/chainingMonitor.jsx":
/*!*********************************************!*\
  !*** ./src/lib/monitor/chainingMonitor.jsx ***!
  \*********************************************/
/*! exports provided: ChainingMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChainingMonitor", function() { return ChainingMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var ChainingMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(ChainingMonitor, _React$Component);

  var _super = _createSuper(ChainingMonitor);

  function ChainingMonitor() {
    _classCallCheck(this, ChainingMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(ChainingMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-server-page",
        className: "container-fluid"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "fa",
        name: "link"
      }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, this.props.bename), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh chaining monitor",
        onClick: function onClick() {
          return _this.props.reload(_this.props.suffix);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Add Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsaddcount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Delete Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsdeletecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Modify Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsmodifycount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "ModRDN Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsrenamecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Base Searches")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchbasecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "One-Level Searches")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchonelevelcount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Subtree Searches")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nssearchsubtreecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Abandon Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsabandoncount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Bind Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsbindcount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Unbind Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsunbindcount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Compare Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nscomparecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Outgoing Connections")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsopenopconnectioncount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Outgoing Bind Connections")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.nsopenbindconnectioncount,
        size: "35",
        readOnly: true
      })))));
    }
  }]);

  return ChainingMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ChainingMonitor.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ChainingMonitor.defaultProps = {
  suffix: "",
  bename: "",
  data: {},
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ChainingMonitor);

/***/ }),

/***/ "./src/lib/monitor/dbMonitor.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/dbMonitor.jsx ***!
  \***************************************/
/*! exports provided: DatabaseMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatabaseMonitor", function() { return DatabaseMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





var DatabaseMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(DatabaseMonitor, _React$Component);

  var _super = _createSuper(DatabaseMonitor);

  function DatabaseMonitor(props) {
    var _this;

    _classCallCheck(this, DatabaseMonitor);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1,
      disableTabs: false
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(DatabaseMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var badColor = "#d01c8b";
      var warningColor = "#ffc107";
      var goodColor = "#4dac26";
      var emptyColor = "#d3d3d3";
      var donutColorDB = goodColor;
      var donutColorNDN = goodColor;
      var donutColorNDNUtil = goodColor;
      var donutColorNDNMiss = emptyColor;
      var donutColorDBMiss = emptyColor;
      var dbcachehit = parseInt(this.props.data.dbcachehitratio[0]);
      var ndncachehit = parseInt(this.props.data.normalizeddncachehitratio[0]);
      var ndncachemax = parseInt(this.props.data.maxnormalizeddncachesize[0]);
      var ndncachecurr = parseInt(this.props.data.currentnormalizeddncachesize[0]);
      var utilratio = Math.round(ndncachecurr / ndncachemax * 100); // Database cache

      if (dbcachehit > 89) {
        donutColorDB = goodColor;
      } else if (dbcachehit > 74) {
        donutColorDB = warningColor;
      } else {
        if (dbcachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorDBMiss = badColor;
        } else {
          donutColorDB = badColor;
        }
      } // NDN cache ratio


      if (ndncachehit > 89) {
        donutColorNDN = goodColor;
      } else if (ndncachehit > 74) {
        donutColorNDN = warningColor;
      } else {
        if (ndncachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorNDNMiss = badColor;
        } else {
          donutColorNDN = badColor;
        }
      } // NDN cache utilization


      if (ndncachehit < 90) {
        if (utilratio > 95) {
          donutColorNDNUtil = badColor;
        } else if (utilratio > 90) {
          donutColorNDNUtil = warningColor;
        }
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "db-content"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Database Performance Statistics", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh database monitor",
        onClick: this.props.reload
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Database Cache'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Normalized DN Cache'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg ds-margin-left-piechart"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["DonutChart"], {
        id: "monitor-db-cache-hitratio-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - dbcachehit], ['hit', dbcachehit]],
          colors: {
            'hit': donutColorDB,
            'miss': donutColorDBMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", {
        className: "ds-left-margin"
      }, "DB Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Database Cache Hit Ratio"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachehitratio,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Database Cache Tries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachetries,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Database Cache Hits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachehits,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Cache Pages Read"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachepagein,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Cache Pages Written"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcachepageout,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Read-Only Page Evictions"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcacheroevict,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Read-Write Page Evictions"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dbcacherwevict,
        size: "28",
        readOnly: true
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["DonutChart"], {
        id: "monitor-db-cache-ndn-hitratio-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - ndncachehit], ['hit', ndncachehit]],
          colors: {
            'hit': donutColorNDN,
            'miss': donutColorNDNMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "NDN Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["PieChart"], {
        id: "monitor-db-cache-ndn-util-chart",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', utilratio], ['Unused', 100 - utilratio]],
          colors: {
            'Used': donutColorNDNUtil,
            'Unused': emptyColor
          },
          order: null
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_3___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "NDN Cache Utilization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(DN's in cache: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, this.props.data.currentnormalizeddncachecount), ")"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Hit Ratio"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachehitratio,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Tries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachetries,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Hits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachehits,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Evictions"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncacheevictions,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Max Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxnormalizeddncachesize,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Current Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentnormalizeddncachesize,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache DN Count"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentnormalizeddncachecount,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Thread Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachethreadsize,
        size: "28",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "NDN Cache Thread Slots"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.normalizeddncachethreadslots,
        size: "28",
        readOnly: true
      }))))))))));
    }
  }]);

  return DatabaseMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prop types and defaults

DatabaseMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
DatabaseMonitor.defaultProps = {
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DatabaseMonitor);

/***/ }),

/***/ "./src/lib/monitor/errorlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/errorlog.jsx ***!
  \**************************************/
/*! exports provided: ErrorLogMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorLogMonitor", function() { return ErrorLogMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var ErrorLogMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(ErrorLogMonitor, _React$Component);

  var _super = _createSuper(ErrorLogMonitor);

  function ErrorLogMonitor() {
    _classCallCheck(this, ErrorLogMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(ErrorLogMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      // Set the textarea to be scrolled down to the bottom
      var textarea = document.getElementById('errorslog-area');
      textarea.scrollTop = textarea.scrollHeight;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;

      var spinner = "";

      if (this.props.reloading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }), "Reloading errors log...");
      }

      var contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "checkbox",
        className: "ds-sm-left-margin",
        onChange: this.props.handleRefresh
      });

      if (this.props.refreshing) {
        contRefreshCheckbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          type: "checkbox",
          className: "ds-sm-left-margin",
          defaultChecked: true,
          onChange: this.props.handleRefresh
        });
      }

      var selectLines = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "errorlog-lines"
      }, " Log Lines To Show"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleChange,
        id: "errorlog-lines",
        value: this.props.lines
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "100"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "200"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "300"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "400"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "500"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "1000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "2000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "5000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "10000"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "50000")));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-log-errors-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Errors Log", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh errors log",
        onClick: function onClick() {
          return _this.props.reload(_this.props.reload);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9,
        className: "ds-float-left"
      }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, selectLines), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "dropdown"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", {
        htmlFor: "errorslog-sev-level"
      }, "Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown ds-left-margin",
        onChange: this.props.handleSevLevel
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Everything"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Error Messages"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Info Messages"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        disabled: true
      }, "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Emergency"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Alert"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Critical"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Error"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Notice"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Info"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Debug")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-float-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", null, contRefreshCheckbox, " Continuously Refresh")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        id: "errorslog-area",
        className: "ds-logarea",
        value: this.props.data,
        readOnly: true
      }));
    }
  }]);

  return ErrorLogMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

ErrorLogMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  reloading: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  handleSevLevel: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  refreshing: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  lines: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ErrorLogMonitor.defaultProps = {
  data: "",
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  reloading: false,
  handleSevLevel: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  refreshing: false,
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  lines: "50",
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ErrorLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/monitorModals.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorModals.jsx ***!
  \*******************************************/
/*! exports provided: TaskLogModal, AgmtDetailsModal, WinsyncAgmtDetailsModal, ConflictCompareModal, ReportCredentialsModal, ReportAliasesModal, ReportLoginModal, FullReportContent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaskLogModal", function() { return TaskLogModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgmtDetailsModal", function() { return AgmtDetailsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtDetailsModal", function() { return WinsyncAgmtDetailsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictCompareModal", function() { return ConflictCompareModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportCredentialsModal", function() { return ReportCredentialsModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportAliasesModal", function() { return ReportAliasesModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportLoginModal", function() { return ReportLoginModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullReportContent", function() { return FullReportContent; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var TaskLogModal = /*#__PURE__*/function (_React$Component) {
  _inherits(TaskLogModal, _React$Component);

  var _super = _createSuper(TaskLogModal);

  function TaskLogModal() {
    _classCallCheck(this, TaskLogModal);

    return _super.apply(this, arguments);
  }

  _createClass(TaskLogModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          logData = _this$props.logData;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Task Log")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-logarea",
        value: logData,
        readOnly: true
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return TaskLogModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var AgmtDetailsModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(AgmtDetailsModal, _React$Component2);

  var _super2 = _createSuper(AgmtDetailsModal);

  function AgmtDetailsModal() {
    _classCallCheck(this, AgmtDetailsModal);

    return _super2.apply(this, arguments);
  }

  _createClass(AgmtDetailsModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          agmt = _this$props2.agmt; // Format status dates from agmt

      var convertedDate = {};
      var dateAttrs = ['last-update-start', 'last-update-end', 'last-init-start', 'last-init-end'];

      for (var _i = 0, _dateAttrs = dateAttrs; _i < _dateAttrs.length; _i++) {
        var attr = _dateAttrs[_i];

        if (agmt[attr][0] == "19700101000000Z") {
          convertedDate[attr] = "Unavailable";
        } else {
          convertedDate[attr] = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_string"])(agmt[attr][0]);
        }
      }

      var initButton = null;

      if (!this.props.isRemoteAgmt) {
        initButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
          bsStyle: "default",
          className: "btn-primary ds-float-left",
          onClick: this.props.initAgmt
        }, "Initialize Agreement");
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Agreement Details (", agmt['agmt-name'], ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replica")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Agreement Enabled")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica-enabled'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-init-start'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-init-end'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Initialization Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-init-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replication In Progress")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['update-in-progress'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Changes Sent")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['number-changes-sent'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-update-start'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: convertedDate['last-update-end'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-update-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, initButton, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return AgmtDetailsModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var WinsyncAgmtDetailsModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(WinsyncAgmtDetailsModal, _React$Component3);

  var _super3 = _createSuper(WinsyncAgmtDetailsModal);

  function WinsyncAgmtDetailsModal() {
    _classCallCheck(this, WinsyncAgmtDetailsModal);

    return _super3.apply(this, arguments);
  }

  _createClass(WinsyncAgmtDetailsModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          agmt = _this$props3.agmt; // Format status dates from agmt

      var dateAttrs = ['last-update-start', 'last-update-end', 'last-init-start', 'last-init-end'];

      for (var _i2 = 0, _dateAttrs2 = dateAttrs; _i2 < _dateAttrs2.length; _i2++) {
        var attr = _dateAttrs2[_i2];

        if (agmt[attr][0] == "19700101000000Z") {
          agmt[attr] = "Unavailable";
        } else {
          agmt[attr] = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["get_date_string"])(agmt[attr][0]);
        }
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Winsync Agreement Details (", agmt['agmt-name'], ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Windows Replica")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Agreement Enabled")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['replica-enabled'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-init-start'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Init Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-init-end'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Initialization Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-init-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Replication In Progress")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['update-in-progress'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Changes Sent")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['number-changes-sent'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-update-start'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        className: "ds-input-auto",
        type: "text",
        size: "22",
        value: agmt['last-update-end'],
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Last Update Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        value: agmt['last-update-status'],
        rows: "5",
        className: "ds-agmt-textarea",
        readOnly: true
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-primary ds-float-left",
        onClick: this.props.initAgmt
      }, "Initialize Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return WinsyncAgmtDetailsModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConflictCompareModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(ConflictCompareModal, _React$Component4);

  var _super4 = _createSuper(ConflictCompareModal);

  function ConflictCompareModal() {
    _classCallCheck(this, ConflictCompareModal);

    return _super4.apply(this, arguments);
  }

  _createClass(ConflictCompareModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          conflictEntry = _this$props4.conflictEntry,
          validEntry = _this$props4.validEntry,
          swapFunc = _this$props4.swapFunc,
          convertFunc = _this$props4.convertFunc,
          deleteFunc = _this$props4.deleteFunc,
          handleConvertChange = _this$props4.handleConvertChange,
          closeHandler = _this$props4.closeHandler;
      var ignoreAttrs = ['createtimestamp', 'creatorsname', 'modifytimestamp', 'modifiersname', 'entryid', 'entrydn', 'parentid', 'numsubordinates'];
      var conflict = "dn: " + conflictEntry.dn + "\n";
      var valid = "dn: " + validEntry.dn + "\n";
      var conflictChildren = "0";
      var validChildren = "0";

      for (var key in conflictEntry.attrs) {
        if (key == "numsubordinates") {
          conflictChildren = conflictEntry.attrs[key];
        }

        if (!ignoreAttrs.includes(key)) {
          var _iterator = _createForOfIteratorHelper(conflictEntry.attrs[key]),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var attr = _step.value;
              conflict += key + ": " + attr + "\n";
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }
      }

      for (var _key in validEntry.attrs) {
        if (_key == "numsubordinates") {
          validChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
            color: "red"
          }, validEntry.attrs[_key]);
        }

        if (!ignoreAttrs.includes(_key)) {
          var _iterator2 = _createForOfIteratorHelper(validEntry.attrs[_key]),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var _attr = _step2.value;
              valid += _key + ": " + _attr + "\n";
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        className: "ds-modal-wide",
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Resolve Replication Conflict")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-modal-row"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "Conflict Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-conflict",
        value: conflict,
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Child Entries: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, conflictChildren)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 1
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "Valid Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", {
        className: "ds-conflict",
        value: valid,
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Child Entries: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, validChildren))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "You can convert the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"), " into a new valid entry by providing a new RDN value below, like \"", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "cn=NEW_RDN"), "\"")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          convertFunc(conflictEntry.dn);
        }
      }, "Convert Conflict")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        onChange: handleConvertChange,
        type: "text",
        placeholder: "Enter new RDN here",
        size: "30"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Or, you can replace, or swap, the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Valid Entry"), " (and its child entries) with the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          swapFunc(conflictEntry.dn);
        }
      }, "Swap Entries"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Or, you can delete the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Conflict Entry"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        className: "ds-conflict-btn",
        onClick: function onClick() {
          deleteFunc(conflictEntry.dn);
        }
      }, "Delete Conflict")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"))));
    }
  }]);

  return ConflictCompareModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportCredentialsModal = /*#__PURE__*/function (_React$Component5) {
  _inherits(ReportCredentialsModal, _React$Component5);

  var _super5 = _createSuper(ReportCredentialsModal);

  function ReportCredentialsModal() {
    _classCallCheck(this, ReportCredentialsModal);

    return _super5.apply(this, arguments);
  }

  _createClass(ReportCredentialsModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          handleFieldChange = _this$props5.handleFieldChange,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          newEntry = _this$props5.newEntry,
          hostname = _this$props5.hostname,
          port = _this$props5.port,
          binddn = _this$props5.binddn,
          pwInputInterractive = _this$props5.pwInputInterractive,
          bindpw = _this$props5.bindpw,
          addConfig = _this$props5.addConfig,
          editConfig = _this$props5.editConfig;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Report Credentials")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "credsHostname"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "A regex for hostname"
      }, "Hostname")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: hostname,
        onChange: handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "credsPort"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "A regex for port"
      }, "Port")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: port,
        onChange: handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "credsBinddn"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Bind DN for the specified instances"
      }, "Bind DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: binddn,
        onChange: handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "credsBindpw"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Bind password for the specified instances"
      }, "Password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        value: bindpw,
        onChange: handleFieldChange,
        disabled: pwInputInterractive
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "interractiveInput"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Input the password interactively"
      }, "Interractive Input")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        checked: pwInputInterractive,
        id: "pwInputInterractive",
        onChange: handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? addConfig : editConfig
      }, "Save"))));
    }
  }]);

  return ReportCredentialsModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportAliasesModal = /*#__PURE__*/function (_React$Component6) {
  _inherits(ReportAliasesModal, _React$Component6);

  var _super6 = _createSuper(ReportAliasesModal);

  function ReportAliasesModal() {
    _classCallCheck(this, ReportAliasesModal);

    return _super6.apply(this, arguments);
  }

  _createClass(ReportAliasesModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          handleFieldChange = _this$props6.handleFieldChange,
          showModal = _this$props6.showModal,
          closeHandler = _this$props6.closeHandler,
          newEntry = _this$props6.newEntry,
          hostname = _this$props6.hostname,
          port = _this$props6.port,
          alias = _this$props6.alias,
          addConfig = _this$props6.addConfig,
          editConfig = _this$props6.editConfig;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Report Credentials")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "aliasName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Alias name for the instance"
      }, "Alias")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: alias,
        onChange: handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "aliasHostname"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An instance hostname"
      }, "Hostname")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: hostname,
        onChange: handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "aliasPort"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An instance port"
      }, "Port")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "number",
        value: port,
        onChange: handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? addConfig : editConfig
      }, "Save"))));
    }
  }]);

  return ReportAliasesModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportLoginModal = /*#__PURE__*/function (_React$Component7) {
  _inherits(ReportLoginModal, _React$Component7);

  var _super7 = _createSuper(ReportLoginModal);

  function ReportLoginModal() {
    _classCallCheck(this, ReportLoginModal);

    return _super7.apply(this, arguments);
  }

  _createClass(ReportLoginModal, [{
    key: "render",
    value: function render() {
      var _this$props7 = this.props,
          showModal = _this$props7.showModal,
          closeHandler = _this$props7.closeHandler,
          handleChange = _this$props7.handleChange,
          processCredsInput = _this$props7.processCredsInput,
          instanceName = _this$props7.instanceName,
          disableBinddn = _this$props7.disableBinddn,
          loginBinddn = _this$props7.loginBinddn,
          loginBindpw = _this$props7.loginBindpw;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Replication Login Credentials for ", instanceName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "In order to get the replication agreement lag times and state the authentication credentials to the remote replicas must be provided."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Bind DN was acquired from ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica Credentials"), " table. If you want to bind as another user, change or remove the Bind DN there."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "loginBinddn"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Bind DN for the instance"
      }, "Bind DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: loginBinddn,
        onChange: handleChange,
        disabled: disableBinddn
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "loginBindpw"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Password for the Bind DN"
      }, "Password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        value: loginBindpw,
        onChange: handleChange
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Close"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: processCredsInput
      }, "Confirm Credentials Input"))));
    }
  }]);

  return ReportLoginModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var FullReportContent = /*#__PURE__*/function (_React$Component8) {
  _inherits(FullReportContent, _React$Component8);

  var _super8 = _createSuper(FullReportContent);

  function FullReportContent(props) {
    var _this;

    _classCallCheck(this, FullReportContent);

    _this = _super8.call(this, props);
    _this.state = {
      oneTableReport: false,
      showDisabledAgreements: false
    };
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(FullReportContent, [{
    key: "handleSwitchChange",
    value: function handleSwitchChange(e) {
      if (typeof e === "boolean") {
        // Handle Switch object
        this.setState({
          oneTableReport: e
        });
      } else {
        this.setState(_defineProperty({}, e.target.id, e.target.checked));
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$props8 = this.props,
          reportData = _this$props8.reportData,
          handleRefresh = _this$props8.handleRefresh,
          reportRefreshing = _this$props8.reportRefreshing,
          reportLoading = _this$props8.reportLoading;
      var suppliers = [];
      var supplierName;
      var supplierData;
      var resultRows = [];
      var spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null);

      if (reportLoading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
          title: "Do the refresh every few seconds"
        }, reportRefreshing ? "Refreshing" : "Loading", " the report..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          inline: true,
          loading: true,
          size: "sm"
        }));
      }

      var reportHeader = "";

      if (reportData.length > 0) {
        reportHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
          horizontal: true,
          autoComplete: "off"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
          controlId: "showDisabledAgreements"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
          checked: this.state.showDisabledAgreements,
          id: "showDisabledAgreements",
          onChange: this.handleSwitchChange,
          title: "Display all agreements including the disabled ones and the ones we failed to connect to"
        }, "Show All (Including Disabled Agreements)"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
          controlId: "oneTableReport"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 6,
          title: "Show all data in one table (it makes it easier to check lag times)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
          checked: this.state.oneTableReport,
          onChange: this.handleSwitchChange,
          id: "oneTableReport",
          title: "Display all agreements including the disabled ones and the ones we failed to connect to"
        }, "Table View"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
          className: "ds-margin-top",
          bsStyle: "default",
          onClick: handleRefresh
        }, "Refresh Report"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null));
      } else {
        reportHeader = spinner;
      }

      if (this.state.oneTableReport) {
        var _iterator3 = _createForOfIteratorHelper(reportData),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var supplier = _step3.value;

            var _iterator4 = _createForOfIteratorHelper(supplier.data),
                _step4;

            try {
              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                var replica = _step4.value;
                resultRows = resultRows.concat(replica.agmts_status);
              }
            } catch (err) {
              _iterator4.e(err);
            } finally {
              _iterator4.f();
            }

            suppliers.push(supplierData);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        suppliers = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__["ReportSingleTable"], {
          rows: resultRows,
          viewAgmt: this.props.viewAgmt
        }))];
      } else {
        var _iterator5 = _createForOfIteratorHelper(reportData),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var _supplier = _step5.value;
            var s_data = _supplier.data;

            if (s_data.length === 1 && s_data[0].replica_status.startsWith("Unavailable")) {
              supplierData = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Can not get replication information from Replica")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
                title: "Supplier availability status"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica Status:"), " ", s_data[0].replica_status));
            } else {
              supplierData = _supplier.data.map(function (replica) {
                return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
                  key: replica.replica_root + replica.replica_id
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
                  title: "Replica Root suffix"
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica Root:"), " ", replica.replica_root), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
                  title: "Replica ID"
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica ID:"), " ", replica.replica_id), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
                  title: "Replica Status"
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica Status:"), " ", replica.replica_status), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", {
                  title: "Max CSN"
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Max CSN:"), " ", replica.maxcsn), "agmts_status" in replica && replica.agmts_status.length > 0 && "agmt-name" in replica.agmts_status[0] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__["ReportConsumersTable"], {
                  rows: replica.agmts_status,
                  viewAgmt: _this2.props.viewAgmt
                }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "No Agreements Were Found")));
              });
            }

            supplierName = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
              key: _supplier.name
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h2", {
              title: "Supplier host:port (and alias if applicable)"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Supplier:"), " ", _supplier.name)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), supplierData);
            suppliers.push(supplierName);
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      }

      var report = suppliers.map(function (supplier) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          key: supplier.key
        }, supplier, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null));
      });

      if (reportLoading) {
        report = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 12,
          className: "ds-center ds-margin-top"
        }, spinner);
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, reportHeader, report);
    }
  }]);

  return FullReportContent;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prototypes and defaultProps


AgmtDetailsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  agmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  initAgmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  isRemoteAgmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
AgmtDetailsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agmt: {},
  initAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  isRemoteAgmt: false
};
WinsyncAgmtDetailsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  agmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  initAgmt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
WinsyncAgmtDetailsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agmt: {},
  initAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
TaskLogModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  logData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
TaskLogModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  agreement: ""
};
ConflictCompareModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  conflictEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  validEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  swapFunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  convertFunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ConflictCompareModal.defaultProps = {
  showModal: false,
  conflictEntry: {},
  validEntry: {},
  swapFunc: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  convertFunc: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportCredentialsModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFieldChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  hostname: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  port: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  binddn: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  bindpw: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  pwInputInterractive: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  newEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  addConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ReportCredentialsModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFieldChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  hostname: "",
  port: "",
  binddn: "",
  bindpw: "",
  pwInputInterractive: false,
  newEntry: false,
  addConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportAliasesModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFieldChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  hostname: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  port: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
  alias: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  newEntry: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  addConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
ReportAliasesModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFieldChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  hostname: "",
  port: 389,
  alias: "",
  newEntry: false,
  addConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportLoginModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  processCredsInput: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  instanceName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  disableBinddn: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  loginBinddn: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  loginBindpw: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ReportLoginModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  processCredsInput: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  instanceName: "",
  disableBinddn: false,
  loginBinddn: "",
  loginBindpw: ""
};
FullReportContent.propTypes = {
  reportData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  handleRefresh: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  reportRefreshing: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
FullReportContent.defaultProps = {
  handleFieldChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  reportData: [],
  handleRefresh: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  reportRefreshTimeout: 5,
  reportRefreshing: false
};


/***/ }),

/***/ "./src/lib/monitor/monitorTables.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorTables.jsx ***!
  \*******************************************/
/*! exports provided: ConnectionTable, AgmtTable, WinsyncAgmtTable, LagReportTable, CleanALLRUVTable, AbortCleanALLRUVTable, ConflictTable, GlueTable, ReportCredentialsTable, ReportAliasesTable, ReportConsumersTable, ReportSingleTable, DiskTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectionTable", function() { return ConnectionTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgmtTable", function() { return AgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtTable", function() { return WinsyncAgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LagReportTable", function() { return LagReportTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CleanALLRUVTable", function() { return CleanALLRUVTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbortCleanALLRUVTable", function() { return AbortCleanALLRUVTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConflictTable", function() { return ConflictTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlueTable", function() { return GlueTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportCredentialsTable", function() { return ReportCredentialsTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportAliasesTable", function() { return ReportAliasesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportConsumersTable", function() { return ReportConsumersTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportSingleTable", function() { return ReportSingleTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DiskTable", function() { return DiskTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var AbortCleanALLRUVTable = /*#__PURE__*/function (_React$Component) {
  _inherits(AbortCleanALLRUVTable, _React$Component);

  var _super = _createSuper(AbortCleanALLRUVTable);

  function AbortCleanALLRUVTable(props) {
    var _this;

    _classCallCheck(this, AbortCleanALLRUVTable);

    _this = _super.call(this, props);
    _this.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Task Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "log",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this.props.viewLog(_this.props.viewLog(rowData.name));
              }
            }, "View Log"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_this));
    return _this;
  } // Constructor


  _createClass(AbortCleanALLRUVTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Abort CleanAllRUV Tasks",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var rows = [];

      var _iterator = _createForOfIteratorHelper(this.props.tasks),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var task = _step.value;
          rows.push({
            'name': task.cn,
            'created': Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["get_date_string"])(task.nstaskcreated),
            'rid': task['replica-id'],
            'status': task.nstaskstatus
          });
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var taskTable;

      if (rows.length < 1) {
        taskTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Tasks"
          }]
        });
      } else {
        taskTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, taskTable);
    }
  }]);

  return AbortCleanALLRUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var CleanALLRUVTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(CleanALLRUVTable, _React$Component2);

  var _super2 = _createSuper(CleanALLRUVTable);

  function CleanALLRUVTable(props) {
    var _this2;

    _classCallCheck(this, CleanALLRUVTable);

    _this2 = _super2.call(this, props);
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Task Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "log",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this2.props.viewLog(rowData.name);
              }
            }, "View Log"))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    _this2.getSingleColumn = _this2.getSingleColumn.bind(_assertThisInitialized(_this2));
    return _this2;
  } // Constructor


  _createClass(CleanALLRUVTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "CleanAllRUV Tasks",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var rows = [];

      var _iterator2 = _createForOfIteratorHelper(this.props.tasks),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var task = _step2.value;
          // task.attrs.nstaskcreated[0]
          rows.push({
            'name': task.attrs.cn[0],
            'created': Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["get_date_string"])(task.attrs.nstaskcreated[0]),
            'rid': task.attrs['replica-id'][0],
            'status': task.attrs.nstaskstatus[0]
          });
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var taskTable;

      if (rows.length < 1) {
        taskTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Tasks"
          }]
        });
      } else {
        taskTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, taskTable);
    }
  }]);

  return CleanALLRUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var WinsyncAgmtTable = /*#__PURE__*/function (_React$Component3) {
  _inherits(WinsyncAgmtTable, _React$Component3);

  var _super3 = _createSuper(WinsyncAgmtTable);

  function WinsyncAgmtTable(props) {
    var _this3;

    _classCallCheck(this, WinsyncAgmtTable);

    _this3 = _super3.call(this, props);
    _this3.state = {
      fieldsToSearch: ["agmt-name", "replica", "replica-enabled"],
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica",
        header: {
          label: "Windows Replica",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "last-update-status",
        header: {
          label: "Update Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "number-changes-sent",
        header: {
          label: "Changes Sent",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name'][0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'][0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this3.props.viewAgmt(rowData['agmt-name'][0]);
              }
            }, "View Agreement Details"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this3.props.pokeAgmt(rowData['agmt-name'][0]);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_this3));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_this3));
    return _this3;
  } // Constructor


  _createClass(WinsyncAgmtTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Winsync Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable;

      if (this.props.agmts.length < 1) {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No agreements"
          }]
        });
      } else {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: this.props.agmts,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return WinsyncAgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var AgmtTable = /*#__PURE__*/function (_React$Component4) {
  _inherits(AgmtTable, _React$Component4);

  var _super4 = _createSuper(AgmtTable);

  function AgmtTable(props) {
    var _this4;

    _classCallCheck(this, AgmtTable);

    _this4 = _super4.call(this, props);
    _this4.state = {
      fieldsToSearch: ["agmt-name", "replica", "replica-enabled"],
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica",
        header: {
          label: "Replica",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "last-update-status",
        header: {
          label: "Update Status",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "number-changes-sent",
        header: {
          label: "Changes Sent",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name'][0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'][0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this4.props.viewAgmt(rowData['agmt-name'][0]);
              }
            }, "View Agreement Details"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this4.props.pokeAgmt(rowData['agmt-name'][0]);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_this4));
    _this4.getSingleColumn = _this4.getSingleColumn.bind(_assertThisInitialized(_this4));
    return _this4;
  } // Constructor


  _createClass(AgmtTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable = "";

      if (this.props.agmts.length < 1) {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No agreements"
          }]
        });
      } else {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.agmts,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return AgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConnectionTable = /*#__PURE__*/function (_React$Component5) {
  _inherits(ConnectionTable, _React$Component5);

  var _super5 = _createSuper(ConnectionTable);

  function ConnectionTable(props) {
    var _this5;

    _classCallCheck(this, ConnectionTable);

    _this5 = _super5.call(this, props);
    _this5.state = {
      rowKey: "connid",
      columns: [{
        property: "date",
        header: {
          label: "Connection Opened",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "ip",
        header: {
          label: "IP Address",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "connid",
        header: {
          label: "ID",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "opStarted",
        header: {
          label: "Ops Started",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "opCompleted",
        header: {
          label: "Ops Finished",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "binddn",
        header: {
          label: "Bind DN",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "readwrite",
        header: {
          label: "Read/Write",
          props: {
            index: 6,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 6
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_this5));
    return _this5;
  } // Constructor


  _createClass(ConnectionTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      // connection: %s:%s:%s:%s:%s:%s:%s:%s:%s:%s
      //
      // parts:
      //   0 = file descriptor
      //   1 = connection start date
      //   2 = ops initiated
      //   3 = ops completed
      //   4 = r/w blocked
      //   5 = bind DN
      //   6 = connection is currently at max threads (1 = yes, 0 = no)
      //   7 = number of times connection hit max threads
      //   8 = number of operations blocked by max threads
      //   9 = connection ID
      //   10 = IP address (ip=###################)
      //
      // This is too many items to fit in the table, we have to pick and choose
      // what "we" think are the most useful stats...
      var rows = [];

      var _iterator3 = _createForOfIteratorHelper(this.props.conns),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var conn = _step3.value;
          var parts = conn.split(':'); // Process the IP address

          var ip = parts[10].replace("ip=", "");

          if (ip == "local") {
            ip = "LDAPI";
          }

          rows.push({
            'date': [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["get_date_string"])(parts[1])],
            'ip': [ip],
            'connid': [parts[9]],
            'opStarted': [parts[2]],
            'opCompleted': [parts[3]],
            'binddn': [parts[5]],
            'readwrite': [parts[4]]
          });
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: rows,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 12
      }));
    }
  }]);

  return ConnectionTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var LagReportTable = /*#__PURE__*/function (_React$Component6) {
  _inherits(LagReportTable, _React$Component6);

  var _super6 = _createSuper(LagReportTable);

  function LagReportTable(props) {
    var _this6;

    _classCallCheck(this, LagReportTable);

    _this6 = _super6.call(this, props);
    _this6.state = {
      rowKey: "agmt-name",
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Enabled",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-status",
        header: {
          label: "State",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true,
            style: {
              color: 'blue'
            }
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-lag-time",
        header: {
          label: "Lag Time",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true,
            style: {
              color: 'blue'
            }
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData['agmt-name'][0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData['agmt-name'][0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.viewAgmt(rowData['agmt-name'][0]);
              }
            }, "View Agreement Details"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this6.props.pokeAgmt(rowData['agmt-name'][0]);
              }
            }, "Poke Agreement")))];
          }]
        }
      }]
    };
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_this6));
    return _this6;
  } // Constructor


  _createClass(LagReportTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        noSearchBar: true,
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: this.props.agmts,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return LagReportTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var GlueTable = /*#__PURE__*/function (_React$Component7) {
  _inherits(GlueTable, _React$Component7);

  var _super7 = _createSuper(GlueTable);

  function GlueTable(props) {
    var _this7;

    _classCallCheck(this, GlueTable);

    _this7 = _super7.call(this, props);
    _this7.state = {
      fieldsToSearch: ["dn", "created"],
      rowKey: "dn",
      columns: [{
        property: "dn",
        header: {
          label: "Glue Entry",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "desc",
        header: {
          label: "Conflict Description",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.dn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.dn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this7.props.convertGlue(rowData.dn[0]);
              }
            }, "Convert Glue Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this7.props.deleteGlue(rowData.dn[0]);
              }
            }, "Delete Glue Entry")))];
          }]
        }
      }]
    };
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_this7));
    _this7.getSingleColumn = _this7.getSingleColumn.bind(_assertThisInitialized(_this7));
    return _this7;
  } // Constructor


  _createClass(GlueTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Glue Entries",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var glueTable;

      if (this.props.glues.length < 1) {
        glueTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No glue entries"
          }]
        });
      } else {
        var rows = [];

        var _iterator4 = _createForOfIteratorHelper(this.props.glues),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var glue = _step4.value;
            rows.push({
              dn: [glue.dn],
              desc: glue.attrs.nsds5replconflict,
              created: [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["get_date_string"])(glue.attrs.createtimestamp[0])]
            });
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        glueTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, glueTable);
    }
  }]);

  return GlueTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ConflictTable = /*#__PURE__*/function (_React$Component8) {
  _inherits(ConflictTable, _React$Component8);

  var _super8 = _createSuper(ConflictTable);

  function ConflictTable(props) {
    var _this8;

    _classCallCheck(this, ConflictTable);

    _this8 = _super8.call(this, props);
    _this8.state = {
      fieldsToSearch: ["dn", "desc"],
      rowKey: "dn",
      columns: [{
        property: "dn",
        header: {
          label: "Conflict DN",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "desc",
        header: {
          label: "Conflict Description",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "created",
        header: {
          label: "Created",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref7) {
            var rowData = _ref7.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.dn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "primary",
              onClick: function onClick() {
                _this8.props.resolveConflict(rowData.dn[0]);
              }
            }, "Resolve"))];
          }]
        }
      }]
    };
    _this8.getColumns = _this8.getColumns.bind(_assertThisInitialized(_this8));
    _this8.getSingleColumn = _this8.getSingleColumn.bind(_assertThisInitialized(_this8));
    return _this8;
  } // Constructor


  _createClass(ConflictTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Conflict Entries",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var conflictTable;

      if (this.props.conflicts.length < 1) {
        conflictTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No conflict entries"
          }]
        });
      } else {
        var rows = [];

        var _iterator5 = _createForOfIteratorHelper(this.props.conflicts),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var conflict = _step5.value;
            rows.push({
              dn: [conflict.dn],
              desc: conflict.attrs.nsds5replconflict,
              created: [Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["get_date_string"])(conflict.attrs.createtimestamp[0])]
            });
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        conflictTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, conflictTable);
    }
  }]);

  return ConflictTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DiskTable = /*#__PURE__*/function (_React$Component9) {
  _inherits(DiskTable, _React$Component9);

  var _super9 = _createSuper(DiskTable);

  function DiskTable(props) {
    var _this9;

    _classCallCheck(this, DiskTable);

    _this9 = _super9.call(this, props);
    _this9.state = {
      rowKey: "mount",
      columns: [{
        property: "mount",
        header: {
          label: "Disk Partition",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "size",
        header: {
          label: "Disk Size",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "used",
        header: {
          label: "Used Space",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "avail",
        header: {
          label: "Available Space",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };
    _this9.getColumns = _this9.getColumns.bind(_assertThisInitialized(_this9));
    return _this9;
  }

  _createClass(DiskTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
        getColumns: this.getColumns,
        rowKey: this.state.rowKey,
        rows: this.props.disks,
        disableLoadingSpinner: true
      }));
    }
  }]);

  return DiskTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportAliasesTable = /*#__PURE__*/function (_React$Component10) {
  _inherits(ReportAliasesTable, _React$Component10);

  var _super10 = _createSuper(ReportAliasesTable);

  function ReportAliasesTable(props) {
    var _this10;

    _classCallCheck(this, ReportAliasesTable);

    _this10 = _super10.call(this, props);
    _this10.getColumns = _this10.getColumns.bind(_assertThisInitialized(_this10));
    _this10.getSingleColumn = _this10.getSingleColumn.bind(_assertThisInitialized(_this10));
    _this10.state = {
      searchField: "Aliases",
      fieldsToSearch: ["alias", "connData"],
      columns: [{
        property: "alias",
        header: {
          label: "Alias",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "connData",
        header: {
          label: "Connection Data",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref8) {
            var rowData = _ref8.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.alias
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.alias,
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this10.props.editConfig(rowData);
              }
            }, "Edit Alias"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this10.props.deleteConfig(rowData);
              }
            }, "Delete Alias")))];
          }]
        }
      }]
    };
    return _this10;
  }

  _createClass(ReportAliasesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Instance Aliases",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var reportAliasTable;

      if (this.props.rows.length < 1) {
        reportAliasTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No alias entries"
          }],
          disableLoadingSpinner: true
        });
      } else {
        reportAliasTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "alias",
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, reportAliasTable);
    }
  }]);

  return ReportAliasesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportCredentialsTable = /*#__PURE__*/function (_React$Component11) {
  _inherits(ReportCredentialsTable, _React$Component11);

  var _super11 = _createSuper(ReportCredentialsTable);

  function ReportCredentialsTable(props) {
    var _this11;

    _classCallCheck(this, ReportCredentialsTable);

    _this11 = _super11.call(this, props);
    _this11.getColumns = _this11.getColumns.bind(_assertThisInitialized(_this11));
    _this11.getSingleColumn = _this11.getSingleColumn.bind(_assertThisInitialized(_this11));
    _this11.state = {
      columns: [{
        property: "connData",
        header: {
          label: "Connection Data",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "credsBinddn",
        header: {
          label: "Bind DN",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref9) {
            var rowData = _ref9.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.connData
            }, value == "" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Edit To Add a Bind DN Data") : value)];
          }]
        }
      }, {
        property: "credsBindpw",
        header: {
          label: "Password",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref10) {
            var rowData = _ref10.rowData;
            var pwField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Interractive Input is set");

            if (!rowData.pwInputInterractive) {
              if (value == "") {
                pwField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Both Password or Interractive Input flag are not set");
              } else {
                pwField = "********";
              }
            }

            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.connData
            }, pwField)];
          }]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref11) {
            var rowData = _ref11.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.connData
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.connData,
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this11.props.editConfig(rowData);
              }
            }, "Edit Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this11.props.deleteConfig(rowData);
              }
            }, "Delete Connection")))];
          }]
        }
      }]
    };
    return _this11;
  }

  _createClass(ReportCredentialsTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replica Credentials Table",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var reportConnTable;

      if (this.props.rows.length < 1) {
        reportConnTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No connection entries"
          }],
          disableLoadingSpinner: true
        });
      } else {
        reportConnTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "connData",
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, reportConnTable);
    }
  }]);

  return ReportCredentialsTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportSingleTable = /*#__PURE__*/function (_React$Component12) {
  _inherits(ReportSingleTable, _React$Component12);

  var _super12 = _createSuper(ReportSingleTable);

  function ReportSingleTable(props) {
    var _this12;

    _classCallCheck(this, ReportSingleTable);

    _this12 = _super12.call(this, props);
    _this12.getColumns = _this12.getColumns.bind(_assertThisInitialized(_this12));
    _this12.getSingleColumn = _this12.getSingleColumn.bind(_assertThisInitialized(_this12));
    _this12.state = {
      searchField: "Replica",
      fieldsToSearch: ["supplierName", "replicaName", "replicaStatus", "agmt-name", "replica", "replicaStatus", "replica-enabled", "replication-lag-time"],
      columns: [{
        property: "supplierName",
        header: {
          label: "Supplier",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replicaName",
        header: {
          label: "Suffix:ReplicaID",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replicaStatus",
        header: {
          label: "Replica Status",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "agmt-name",
        header: {
          label: "Agreement",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref12) {
            var rowData = _ref12.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.rowKey
            }, value || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "No Agreements Were Found"))];
          }]
        }
      }, {
        property: "replica",
        header: {
          label: "Consumer",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Is Enabled",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-lag-time",
        header: {
          label: "Lag Time",
          props: {
            index: 6,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 6
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 7,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 7
          },
          formatters: [function (value, _ref13) {
            var rowData = _ref13.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.rowKey
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this12.props.viewAgmt(rowData['supplierName'][0], rowData['replicaName'][0], rowData['agmt-name'][0]);
              }
            }, "View Data"))];
          }]
        }
      }]
    };
    return _this12;
  }

  _createClass(ReportSingleTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "All In One Report",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var reportSingleTable;
      var filteredRows = this.props.rows;

      if (!this.props.showDisabledAgreements) {
        filteredRows = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["searchFilter"])("on", ["replica-enabled"], filteredRows);
      }

      if (filteredRows.length < 1) {
        reportSingleTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No replica entries"
          }],
          disableLoadingSpinner: true,
          noSearchBar: true
        });
      } else {
        reportSingleTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "rowKey",
          rows: filteredRows,
          disableLoadingSpinner: true,
          noSearchBar: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, reportSingleTable);
    }
  }]);

  return ReportSingleTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ReportConsumersTable = /*#__PURE__*/function (_React$Component13) {
  _inherits(ReportConsumersTable, _React$Component13);

  var _super13 = _createSuper(ReportConsumersTable);

  function ReportConsumersTable(props) {
    var _this13;

    _classCallCheck(this, ReportConsumersTable);

    _this13 = _super13.call(this, props);
    _this13.getColumns = _this13.getColumns.bind(_assertThisInitialized(_this13));
    _this13.getSingleColumn = _this13.getSingleColumn.bind(_assertThisInitialized(_this13));
    _this13.state = {
      searchField: "Agreements",
      fieldsToSearch: ["agmt-name", "replica-enabled", "replication-status", "replication-lag-time"],
      columns: [{
        property: "agmt-name",
        header: {
          label: "Agreement Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replica-enabled",
        header: {
          label: "Is Enabled",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-status",
        header: {
          label: "Replication Status",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "replication-lag-time",
        header: {
          label: "Replication Lag Time",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref14) {
            var rowData = _ref14.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.rowKey
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this13.props.viewAgmt(rowData['supplierName'][0], rowData['replicaName'][0], rowData['agmt-name'][0]);
              }
            }, "View Data"))];
          }]
        }
      }]
    };
    return _this13;
  }

  _createClass(ReportConsumersTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Report Consumers",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var reportConsumersTable;
      var filteredRows = this.props.rows;

      if (!this.props.showDisabledAgreements) {
        filteredRows = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["searchFilter"])("on", ["replica-enabled"], filteredRows);
      }

      if (filteredRows.length < 1) {
        reportConsumersTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No agreement entries"
          }],
          disableLoadingSpinner: true,
          noSearchBar: true
        });
      } else {
        reportConsumersTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: "rowKey",
          rows: filteredRows,
          disableLoadingSpinner: true,
          noSearchBar: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, reportConsumersTable);
    }
  }]);

  return ReportConsumersTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Proptypes and defaults


LagReportTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LagReportTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
AgmtTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AgmtTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
WinsyncAgmtTable.propTypes = {
  agmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pokeAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
WinsyncAgmtTable.defaultProps = {
  agmts: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pokeAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ConnectionTable.propTypes = {
  conns: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
ConnectionTable.defaultProps = {
  conns: []
};
CleanALLRUVTable.propTypes = {
  tasks: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
CleanALLRUVTable.defaultProps = {
  tasks: [],
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AbortCleanALLRUVTable.propTypes = {
  tasks: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AbortCleanALLRUVTable.defaultProps = {
  tasks: [],
  viewLog: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ConflictTable.propTypes = {
  conflicts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  resolveConflict: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ConflictTable.defaultProps = {
  conflicts: [],
  resolveConflict: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
GlueTable.propTypes = {
  glues: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  convertGlue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteGlue: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
GlueTable.defaultProps = {
  glues: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  convertGlue: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteGlue: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportCredentialsTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReportCredentialsTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportAliasesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReportAliasesTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportConsumersTable.propTypes = {
  showDisabledAgreements: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReportConsumersTable.defaultProps = {
  showDisabledAgreements: false,
  rows: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ReportSingleTable.propTypes = {
  showDisabledAgreements: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  viewAgmt: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReportSingleTable.defaultProps = {
  showDisabledAgreements: false,
  rows: [],
  viewAgmt: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
DiskTable.defaultProps = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
DiskTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/monitor/replMonitor.jsx":
/*!*****************************************!*\
  !*** ./src/lib/monitor/replMonitor.jsx ***!
  \*****************************************/
/*! exports provided: ReplMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplMonitor", function() { return ReplMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitorModals.jsx */ "./src/lib/monitor/monitorModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var _ = cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.gettext;
var ReplMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplMonitor, _React$Component);

  var _super = _createSuper(ReplMonitor);

  _createClass(ReplMonitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps, prevState) {
      var _this2 = this;

      if (!prevState.showReportLoginModal && this.state.showReportLoginModal) {
        // When the login modal turned on
        // We set timeout to close it and stop the report
        if (this.timer) window.clearTimeout(this.timer);
        this.timer = window.setTimeout(function () {
          _this2.setState({
            showFullReportModal: false
          });

          _this2.timer = null;
        }, 300);
      }

      if (prevState.showReportLoginModal && !this.state.showReportLoginModal) {
        // When the login modal turned off
        // We clear the timeout
        if (this.timer) window.clearTimeout(this.timer);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      // It's important to do so we don't get the error
      // on the unmounted component
      if (this.timer) window.clearTimeout(this.timer);
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this3 = this;

      if (this.state.initCreds) {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-port", "nsslapd-localhost", "nsslapd-rootdn"];
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("ReplMonitor", "add credentials during componentDidMount", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var config = JSON.parse(content);

          _this3.setState(function (prevState) {
            return {
              credentialsList: [].concat(_toConsumableArray(prevState.credentialsList), [{
                connData: "".concat(config.attrs["nsslapd-localhost"], ":").concat(config.attrs["nsslapd-port"]),
                credsBinddn: config.attrs["nsslapd-rootdn"],
                credsBindpw: "",
                pwInputInterractive: true
              }])
            };
          });

          var _iterator = _createForOfIteratorHelper(_this3.props.data.replAgmts),
              _step;

          try {
            var _loop = function _loop() {
              var agmt = _step.value;

              _this3.setState(function (prevState) {
                return {
                  credentialsList: [].concat(_toConsumableArray(prevState.credentialsList), [{
                    connData: "".concat(agmt.replica),
                    credsBinddn: config.attrs["nsslapd-rootdn"],
                    credsBindpw: "",
                    pwInputInterractive: true
                  }]),
                  initCreds: false
                };
              });
            };

            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              _loop();
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this3.props.addNotification("error", "Failed to get config nsslapd-port, nsslapd-localhost and nasslapd-rootdn: ".concat(errMsg.desc));
        });
      }

      this.props.enableTree();
    }
  }]);

  function ReplMonitor(props) {
    var _this;

    _classCallCheck(this, ReplMonitor);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1,
      activeReportKey: 1,
      logData: "",
      showBindModal: false,
      showLogModal: false,
      showAgmtModal: false,
      isRemoteAgmt: false,
      showFullReportModal: false,
      showReportLoginModal: false,
      showCredentialsModal: false,
      showAliasesModal: false,
      showWinsyncAgmtModal: false,
      showInitWinsyncConfirm: false,
      showInitConfirm: false,
      showCompareModal: false,
      showConfirmDeleteGlue: false,
      showConfirmConvertGlue: false,
      showConfirmSwapConflict: false,
      showConfirmConvertConflict: false,
      showConfirmDeleteConflict: false,
      lagAgmts: [],
      credsData: [],
      aliasData: [],
      reportData: [],
      agmt: "",
      convertRDN: "",
      glueEntry: "",
      conflictEntry: "",
      binddn: "cn=Directory Manager",
      bindpw: "",
      errObj: {},
      aliasList: [],
      newEntry: false,
      initCreds: true,
      fullReportProcess: {},
      interruptLoginCredsInput: false,
      doFullReportCleanup: false,
      reportRefreshing: false,
      reportLoading: false,
      credsInstanceName: "",
      disableBinddn: false,
      loginBinddn: "",
      loginBindpw: "",
      inputLoginData: false,
      credsHostname: "",
      credsPort: "",
      credsBinddn: "cn=Directory Manager",
      credsBindpw: "",
      pwInputInterractive: false,
      aliasHostname: "",
      aliasPort: 389,
      aliasName: "",
      credentialsList: [],
      dynamicCredentialsList: [],
      aliasesList: []
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleReportNavSelect = _this.handleReportNavSelect.bind(_assertThisInitialized(_this));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_this));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_this));
    _this.initWinsyncAgmt = _this.initWinsyncAgmt.bind(_assertThisInitialized(_this));
    _this.confirmInit = _this.confirmInit.bind(_assertThisInitialized(_this));
    _this.confirmWinsyncInit = _this.confirmWinsyncInit.bind(_assertThisInitialized(_this));
    _this.closeInitConfirm = _this.closeInitConfirm.bind(_assertThisInitialized(_this));
    _this.closeInitWinsyncConfirm = _this.closeInitWinsyncConfirm.bind(_assertThisInitialized(_this));
    _this.pokeWinsyncAgmt = _this.pokeWinsyncAgmt.bind(_assertThisInitialized(_this));
    _this.showAgmtModal = _this.showAgmtModal.bind(_assertThisInitialized(_this));
    _this.showAgmtModalRemote = _this.showAgmtModalRemote.bind(_assertThisInitialized(_this));
    _this.closeAgmtModal = _this.closeAgmtModal.bind(_assertThisInitialized(_this));
    _this.showWinsyncAgmtModal = _this.showWinsyncAgmtModal.bind(_assertThisInitialized(_this));
    _this.closeWinsyncAgmtModal = _this.closeWinsyncAgmtModal.bind(_assertThisInitialized(_this));
    _this.viewCleanLog = _this.viewCleanLog.bind(_assertThisInitialized(_this));
    _this.viewAbortLog = _this.viewAbortLog.bind(_assertThisInitialized(_this));
    _this.closeLogModal = _this.closeLogModal.bind(_assertThisInitialized(_this));
    _this.closeReportLoginModal = _this.closeReportLoginModal.bind(_assertThisInitialized(_this)); // Replication report functions

    _this.addCreds = _this.addCreds.bind(_assertThisInitialized(_this));
    _this.editCreds = _this.editCreds.bind(_assertThisInitialized(_this));
    _this.removeCreds = _this.removeCreds.bind(_assertThisInitialized(_this));
    _this.openCredsModal = _this.openCredsModal.bind(_assertThisInitialized(_this));
    _this.showAddCredsModal = _this.showAddCredsModal.bind(_assertThisInitialized(_this));
    _this.showEditCredsModal = _this.showEditCredsModal.bind(_assertThisInitialized(_this));
    _this.closeCredsModal = _this.closeCredsModal.bind(_assertThisInitialized(_this));
    _this.addAliases = _this.addAliases.bind(_assertThisInitialized(_this));
    _this.editAliases = _this.editAliases.bind(_assertThisInitialized(_this));
    _this.removeAliases = _this.removeAliases.bind(_assertThisInitialized(_this));
    _this.openAliasesModal = _this.openAliasesModal.bind(_assertThisInitialized(_this));
    _this.showAddAliasesModal = _this.showAddAliasesModal.bind(_assertThisInitialized(_this));
    _this.showEditAliasesModal = _this.showEditAliasesModal.bind(_assertThisInitialized(_this));
    _this.closeAliasesModal = _this.closeAliasesModal.bind(_assertThisInitialized(_this));
    _this.doFullReport = _this.doFullReport.bind(_assertThisInitialized(_this));
    _this.processCredsInput = _this.processCredsInput.bind(_assertThisInitialized(_this));
    _this.closeReportModal = _this.closeReportModal.bind(_assertThisInitialized(_this));
    _this.refreshFullReport = _this.refreshFullReport.bind(_assertThisInitialized(_this)); // Conflict entry functions

    _this.convertConflict = _this.convertConflict.bind(_assertThisInitialized(_this));
    _this.swapConflict = _this.swapConflict.bind(_assertThisInitialized(_this));
    _this.deleteConflict = _this.deleteConflict.bind(_assertThisInitialized(_this));
    _this.resolveConflict = _this.resolveConflict.bind(_assertThisInitialized(_this));
    _this.convertGlue = _this.convertGlue.bind(_assertThisInitialized(_this));
    _this.deleteGlue = _this.deleteGlue.bind(_assertThisInitialized(_this));
    _this.closeCompareModal = _this.closeCompareModal.bind(_assertThisInitialized(_this));
    _this.confirmDeleteGlue = _this.confirmDeleteGlue.bind(_assertThisInitialized(_this));
    _this.confirmConvertGlue = _this.confirmConvertGlue.bind(_assertThisInitialized(_this));
    _this.closeConfirmDeleteGlue = _this.closeConfirmDeleteGlue.bind(_assertThisInitialized(_this));
    _this.closeConfirmConvertGlue = _this.closeConfirmConvertGlue.bind(_assertThisInitialized(_this));
    _this.handleConvertChange = _this.handleConvertChange.bind(_assertThisInitialized(_this));
    _this.confirmDeleteConflict = _this.confirmDeleteConflict.bind(_assertThisInitialized(_this));
    _this.confirmConvertConflict = _this.confirmConvertConflict.bind(_assertThisInitialized(_this));
    _this.confirmSwapConflict = _this.confirmSwapConflict.bind(_assertThisInitialized(_this));
    _this.closeConfirmDeleteConflict = _this.closeConfirmDeleteConflict.bind(_assertThisInitialized(_this));
    _this.closeConfirmConvertConflict = _this.closeConfirmConvertConflict.bind(_assertThisInitialized(_this));
    _this.closeConfirmSwapConflict = _this.closeConfirmSwapConflict.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplMonitor, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;

      if (e.target.type === 'number') {
        if (e.target.value) {
          value = parseInt(e.target.value);
        } else {
          value = 1;
        }
      }

      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "convertConflict",
    value: function convertConflict(dn) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert", dn, "--new-rdn=" + this.state.convertRDN];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("convertConflict", "convert conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reloadConflicts();

        _this4.props.addNotification("success", "Replication conflict entry was converted into a valid entry");

        _this4.setState({
          showCompareModal: false,
          convertRDN: ""
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Failed to convert conflict entry entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "swapConflict",
    value: function swapConflict(dn) {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "swap", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("swapConflict", "swap in conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this5.props.reloadConflicts();

        _this5.props.addNotification("success", "Replication Conflict Entry is now the Valid Entry");

        _this5.setState({
          showCompareModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to swap in conflict entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteConflict",
    value: function deleteConflict(dn) {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteConflict", "Delete conflict entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this6.props.reloadConflicts();

        _this6.props.addNotification("success", "Replication conflict entry was deleted");

        _this6.setState({
          showCompareModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to delete conflict entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "resolveConflict",
    value: function resolveConflict(dn) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "compare", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("resolveConflict", "Compare conflict entry with valid entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var entries = JSON.parse(content);

        _this7.setState({
          cmpConflictEntry: entries.items[0],
          cmpValidEntry: entries.items[1],
          showCompareModal: true
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to get conflict entries: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "confirmConvertGlue",
    value: function confirmConvertGlue(dn) {
      this.setState({
        showConfirmConvertGlue: true,
        glueEntry: dn
      });
    }
  }, {
    key: "closeConfirmConvertGlue",
    value: function closeConfirmConvertGlue() {
      this.setState({
        showConfirmConvertGlue: false,
        glueEntry: ""
      });
    }
  }, {
    key: "convertGlue",
    value: function convertGlue(dn) {
      var _this8 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert-glue", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("convertGlue", "Convert glue entry to normal entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this8.props.reloadConflicts();

        _this8.props.addNotification("success", "Replication glue entry was converted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to convert glue entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "confirmDeleteGlue",
    value: function confirmDeleteGlue(dn) {
      this.setState({
        showConfirmDeleteGlue: true,
        glueEntry: dn
      });
    }
  }, {
    key: "deleteGlue",
    value: function deleteGlue(dn) {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete-glue", dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteGlue", "Delete glue entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.reloadConflicts();

        _this9.props.addNotification("success", "Replication glue entry was deleted");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to delete glue entry: ".concat(dn, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "closeConfirmDeleteGlue",
    value: function closeConfirmDeleteGlue() {
      this.setState({
        showConfirmDeleteGlue: false,
        glueEntry: ""
      });
    }
  }, {
    key: "confirmConvertConflict",
    value: function confirmConvertConflict(dn) {
      if (this.state.convertRDN == "") {
        this.props.addNotification("error", "You must provide a RDN if you want to convert the Conflict Entry");
        return;
      }

      this.setState({
        showConfirmConvertConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmConvertConflict",
    value: function closeConfirmConvertConflict() {
      this.setState({
        showConfirmConvertConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "confirmSwapConflict",
    value: function confirmSwapConflict(dn) {
      this.setState({
        showConfirmSwapConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmSwapConflict",
    value: function closeConfirmSwapConflict() {
      this.setState({
        showConfirmSwapConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "confirmDeleteConflict",
    value: function confirmDeleteConflict(dn) {
      this.setState({
        showConfirmDeleteConflict: true,
        conflictEntry: dn
      });
    }
  }, {
    key: "closeConfirmDeleteConflict",
    value: function closeConfirmDeleteConflict() {
      this.setState({
        showConfirmDeleteConflict: false,
        conflictEntry: ""
      });
    }
  }, {
    key: "closeCompareModal",
    value: function closeCompareModal() {
      this.setState({
        showCompareModal: false
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleReportNavSelect",
    value: function handleReportNavSelect(key) {
      this.setState({
        activeReportKey: key
      });
    }
  }, {
    key: "closeLogModal",
    value: function closeLogModal() {
      this.setState({
        showLogModal: false
      });
    }
  }, {
    key: "viewCleanLog",
    value: function viewCleanLog(name) {
      var logData = "";

      var _iterator2 = _createForOfIteratorHelper(this.props.data.cleanTasks),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var task = _step2.value;

          if (task.attrs.cn[0] == name) {
            logData = task.attrs.nstasklog[0];
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState({
        showLogModal: true,
        logData: logData
      });
    }
  }, {
    key: "viewAbortLog",
    value: function viewAbortLog(name) {
      var logData = "";

      var _iterator3 = _createForOfIteratorHelper(this.props.data.abortTasks),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var task = _step3.value;

          if (task.attrs.cn[0] == name) {
            logData = task.attrs.nstasklog[0];
            break;
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        showLogModal: true,
        logData: logData
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(name) {
      var _this10 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "poke", "--suffix=" + this.props.suffix, name];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("pokeAgmt", "Awaken the agreement", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this10.props.addNotification("success", "Replication agreement has been poked");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.addNotification("error", "Failed to poke replication agreement ".concat(name, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "pokeWinsyncAgmt",
    value: function pokeWinsyncAgmt(name) {
      var _this11 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "poke", "--suffix=" + this.props.suffix, name];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("pokeAgmt", "Awaken the agreement", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this11.props.addNotification("success", "Replication winsync agreement has been poked");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this11.props.addNotification("error", "Failed to poke replication winsync agreement ".concat(name, " - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "showAgmtModal",
    value: function showAgmtModal(name) {
      var _iterator4 = _createForOfIteratorHelper(this.props.data.replAgmts),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var agmt = _step4.value;

          if (agmt['agmt-name'] == name) {
            this.setState({
              showAgmtModal: true,
              isRemoteAgmt: false,
              agmt: agmt
            });
            break;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
    }
  }, {
    key: "showAgmtModalRemote",
    value: function showAgmtModalRemote(supplierName, replicaName, agmtName) {
      if (!agmtName) {
        this.props.addNotification("error", "The agreement doesn't exist!");
      } else {
        var _iterator5 = _createForOfIteratorHelper(this.state.reportData),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var supplier = _step5.value;

            if (supplier.name == supplierName) {
              var _iterator6 = _createForOfIteratorHelper(supplier.data),
                  _step6;

              try {
                for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                  var replica = _step6.value;

                  if ("".concat(replica.replica_root, ":").concat(replica.replica_id) == replicaName) {
                    var _iterator7 = _createForOfIteratorHelper(replica.agmts_status),
                        _step7;

                    try {
                      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
                        var agmt = _step7.value;

                        if (agmt['agmt-name'][0] == agmtName) {
                          this.setState({
                            showAgmtModal: true,
                            isRemoteAgmt: true,
                            agmt: agmt
                          });
                          break;
                        }
                      }
                    } catch (err) {
                      _iterator7.e(err);
                    } finally {
                      _iterator7.f();
                    }
                  }
                }
              } catch (err) {
                _iterator6.e(err);
              } finally {
                _iterator6.f();
              }
            }
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      }
    }
  }, {
    key: "closeAgmtModal",
    value: function closeAgmtModal() {
      this.setState({
        showAgmtModal: false
      });
    }
  }, {
    key: "showWinsyncAgmtModal",
    value: function showWinsyncAgmtModal(name) {
      var _iterator8 = _createForOfIteratorHelper(this.props.data.replWinsyncAgmts),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var agmt = _step8.value;

          if (agmt['agmt-name'] == name) {
            this.setState({
              showWinsyncAgmtModal: true,
              agmt: agmt
            });
            break;
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }
    }
  }, {
    key: "closeWinsyncAgmtModal",
    value: function closeWinsyncAgmtModal() {
      this.setState({
        showWinsyncAgmtModal: false
      });
    }
  }, {
    key: "confirmInit",
    value: function confirmInit() {
      this.setState({
        showInitConfirm: true
      });
    }
  }, {
    key: "closeInitConfirm",
    value: function closeInitConfirm() {
      this.setState({
        showInitConfirm: false
      });
    }
  }, {
    key: "confirmWinsyncInit",
    value: function confirmWinsyncInit() {
      this.setState({
        showInitWinsyncConfirm: true
      });
    }
  }, {
    key: "closeInitWinsyncConfirm",
    value: function closeInitWinsyncConfirm() {
      this.setState({
        showInitWinsyncConfirm: false
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt() {
      var _this12 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmt['agmt-name']];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('initAgmt', 'Initialize agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this12.props.reloadAgmts();

        _this12.props.addNotification("success", "Replication agreement initialization has started ...");

        _this12.setState({
          showAgmtModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this12.props.addNotification("error", "Failed to start agreement initialization - ".concat(errMsg.desc));

        _this12.setState({
          showAgmtModal: false
        });
      });
    }
  }, {
    key: "initWinsyncAgmt",
    value: function initWinsyncAgmt() {
      var _this13 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmt['agmt-name']];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('initWinsyncAgmt', 'Initialize winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this13.props.reloadWinsyncAgmts();

        _this13.props.addNotification("success", "Replication winsync agreement initialization has started ...");

        _this13.setState({
          showInitWinsyncConfirm: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this13.props.addNotification("error", "Failed to start winsync agreement initialization - ".concat(errMsg.desc));

        _this13.setState({
          showInitWinsyncConfirm: false
        });
      });
    }
  }, {
    key: "handleConvertChange",
    value: function handleConvertChange(e) {
      var value = e.target.value;
      this.setState({
        convertRDN: value
      });
    }
  }, {
    key: "changeCreds",
    value: function changeCreds(action) {
      var _this$state = this.state,
          credentialsList = _this$state.credentialsList,
          oldCredsHostname = _this$state.oldCredsHostname,
          oldCredsPort = _this$state.oldCredsPort,
          credsHostname = _this$state.credsHostname,
          credsPort = _this$state.credsPort,
          credsBinddn = _this$state.credsBinddn,
          credsBindpw = _this$state.credsBindpw,
          pwInputInterractive = _this$state.pwInputInterractive;

      if (credsHostname === "" || credsPort === "" || credsBinddn === "") {
        this.props.addNotification("warning", "Host, Port, and Bind DN are required.");
      } else if (credsBindpw === "" && !pwInputInterractive) {
        this.props.addNotification("warning", "Password field can't be empty, if Interractive Input is not selected");
      } else {
        var credsExist = false;

        if (action == "add" && credentialsList.some(function (row) {
          return row.connData === "".concat(credsHostname, ":").concat(credsPort);
        })) {
          credsExist = true;
        }

        if (action == "edit" && credentialsList.some(function (row) {
          return row.connData === "".concat(oldCredsHostname, ":").concat(oldCredsPort);
        })) {
          this.setState({
            credentialsList: credentialsList.filter(function (row) {
              return row.connData !== "".concat(oldCredsHostname, ":").concat(oldCredsPort);
            })
          });
        }

        if (!credsExist) {
          this.setState(function (prevState) {
            return {
              credentialsList: [].concat(_toConsumableArray(prevState.credentialsList), [{
                connData: "".concat(credsHostname, ":").concat(credsPort),
                credsBinddn: credsBinddn,
                credsBindpw: credsBindpw,
                pwInputInterractive: pwInputInterractive
              }])
            };
          });
        } else {
          this.props.addNotification("error", "Credentials \"".concat(credsHostname, ":").concat(credsPort, "\" already exists"));
        }

        this.closeCredsModal();
      }
    }
  }, {
    key: "addCreds",
    value: function addCreds() {
      this.changeCreds("add");
    }
  }, {
    key: "editCreds",
    value: function editCreds() {
      this.changeCreds("edit");
    }
  }, {
    key: "removeCreds",
    value: function removeCreds(rowData) {
      this.setState({
        credentialsList: this.state.credentialsList.filter(function (row) {
          return row.connData !== rowData.connData;
        })
      });
    }
  }, {
    key: "openCredsModal",
    value: function openCredsModal() {
      this.setState({
        showCredentialsModal: true
      });
    }
  }, {
    key: "showAddCredsModal",
    value: function showAddCredsModal() {
      this.openCredsModal();
      this.setState({
        newEntry: true,
        oldCredsHostname: "",
        oldCredsPort: "",
        credsHostname: "",
        credsPort: "",
        credsBinddn: "cn=Directory Manager",
        credsBindpw: "",
        pwInputInterractive: false
      });
    }
  }, {
    key: "showEditCredsModal",
    value: function showEditCredsModal(rowData) {
      this.openCredsModal();
      this.setState({
        newEntry: false,
        oldCredsHostname: rowData.connData.split(':')[0],
        oldCredsPort: rowData.connData.split(':')[1],
        credsHostname: rowData.connData.split(':')[0],
        credsPort: rowData.connData.split(':')[1],
        credsBinddn: rowData.credsBinddn,
        credsBindpw: rowData.credsBindpw,
        pwInputInterractive: rowData.pwInputInterractive
      });
    }
  }, {
    key: "closeCredsModal",
    value: function closeCredsModal() {
      this.setState({
        showCredentialsModal: false
      });
    }
  }, {
    key: "changeAlias",
    value: function changeAlias(action) {
      var _this$state2 = this.state,
          aliasesList = _this$state2.aliasesList,
          aliasHostname = _this$state2.aliasHostname,
          aliasPort = _this$state2.aliasPort,
          oldAliasName = _this$state2.oldAliasName,
          aliasName = _this$state2.aliasName;

      if (aliasPort === "" || aliasHostname === "" || aliasName === "") {
        this.props.addNotification("warning", "Host, Port, and Alias are required.");
      } else {
        var aliasExists = false;

        if (action == "add" && aliasesList.some(function (row) {
          return row.alias === aliasName;
        })) {
          aliasExists = true;
        }

        if (action == "edit" && aliasesList.some(function (row) {
          return row.alias === oldAliasName;
        })) {
          this.setState({
            aliasesList: aliasesList.filter(function (row) {
              return row.alias !== oldAliasName;
            })
          });
        }

        if (!aliasExists) {
          this.setState(function (prevState) {
            return {
              aliasesList: [].concat(_toConsumableArray(prevState.aliasesList), [{
                connData: "".concat(aliasHostname, ":").concat(aliasPort),
                alias: aliasName
              }])
            };
          });
        } else {
          this.props.addNotification("error", "Alias \"".concat(aliasName, "\" already exists"));
        }

        this.closeAliasesModal();
      }
    }
  }, {
    key: "addAliases",
    value: function addAliases() {
      this.changeAlias("add");
    }
  }, {
    key: "editAliases",
    value: function editAliases() {
      this.changeAlias("edit");
    }
  }, {
    key: "removeAliases",
    value: function removeAliases(rowData) {
      this.setState({
        aliasesList: this.state.aliasesList.filter(function (row) {
          return row.alias !== rowData.alias;
        })
      });
    }
  }, {
    key: "openAliasesModal",
    value: function openAliasesModal() {
      this.setState({
        showAliasesModal: true
      });
    }
  }, {
    key: "showAddAliasesModal",
    value: function showAddAliasesModal() {
      this.openAliasesModal();
      this.setState({
        newEntry: true,
        aliasHostname: "",
        aliasPort: 389,
        oldAliasName: "",
        aliasName: ""
      });
    }
  }, {
    key: "showEditAliasesModal",
    value: function showEditAliasesModal(rowData) {
      this.openAliasesModal();
      this.setState({
        newEntry: false,
        aliasHostname: rowData.connData.split(':')[0],
        aliasPort: parseInt(rowData.connData.split(':')[1]),
        oldAliasName: rowData.alias,
        aliasName: rowData.alias
      });
    }
  }, {
    key: "closeAliasesModal",
    value: function closeAliasesModal() {
      this.setState({
        showAliasesModal: false
      });
    }
  }, {
    key: "refreshFullReport",
    value: function refreshFullReport() {
      this.doFullReport();
      this.setState({
        reportRefreshing: true
      });
    }
  }, {
    key: "doFullReport",
    value: function doFullReport() {
      var _this14 = this;

      // Initiate the report and continue the processing in the input window
      this.setState({
        reportLoading: true,
        activeReportKey: 2
      });
      var password = "";
      var credentials = [];
      var printCredentials = [];

      var _iterator9 = _createForOfIteratorHelper(this.state.credentialsList),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var row = _step9.value;

          if (row.pwInputInterractive) {
            password = "*";
          } else {
            password = "".concat(row.credsBindpw);
          }

          credentials.push("".concat(row.connData, ":").concat(row.credsBinddn, ":").concat(password));
          printCredentials.push("".concat(row.connData, ":").concat(row.credsBinddn, ":********"));
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      var aliases = [];

      var _iterator10 = _createForOfIteratorHelper(this.state.aliasesList),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var _row = _step10.value;
          aliases.push("".concat(_row.alias, "=").concat(_row.connData));
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      var buffer = "";
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "monitor"];

      if (aliases.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), ["-a"]);

        var _iterator11 = _createForOfIteratorHelper(aliases),
            _step11;

        try {
          for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
            var value = _step11.value;
            cmd = [].concat(_toConsumableArray(cmd), [value]);
          }
        } catch (err) {
          _iterator11.e(err);
        } finally {
          _iterator11.f();
        }
      } // We should not print the passwords to console.log


      var printCmd = cmd;

      if (credentials.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), ["-c"]);

        var _iterator12 = _createForOfIteratorHelper(credentials),
            _step12;

        try {
          for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
            var _value = _step12.value;
            cmd = [].concat(_toConsumableArray(cmd), [_value]);
          }
        } catch (err) {
          _iterator12.e(err);
        } finally {
          _iterator12.f();
        }

        printCmd = [].concat(_toConsumableArray(printCmd), ["-c"]);

        var _iterator13 = _createForOfIteratorHelper(printCredentials),
            _step13;

        try {
          for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
            var _value2 = _step13.value;
            printCmd = [].concat(_toConsumableArray(printCmd), [_value2]);
          }
        } catch (err) {
          _iterator13.e(err);
        } finally {
          _iterator13.f();
        }
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("doFullReport", "Get the report for the current instance topology", printCmd); // We need to set it here because 'input' will be run from inside

      var proc = cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        pty: true,
        environ: ["LC_ALL=C"],
        superuser: true,
        err: "message",
        directory: self.path
      }); // We use it in processCredsInput

      this.setState({
        fullReportProcess: proc
      });
      proc.done(function (data) {
        // Use the buffer from stream. 'data' is empty
        var report = JSON.parse(buffer); // We need to reparse the report data because agmts json wasn't parsed correctly because it was too nested

        var agmts_reparsed = [];
        var replica_reparsed = [];
        var supplier_reparsed = [];

        var _iterator14 = _createForOfIteratorHelper(report.items),
            _step14;

        try {
          for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
            var supplier = _step14.value;
            replica_reparsed = [];

            var _iterator15 = _createForOfIteratorHelper(supplier.data),
                _step15;

            try {
              for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
                var replica = _step15.value;
                agmts_reparsed = [];
                var agmts_done = false;

                if (replica.hasOwnProperty("agmts_status")) {
                  var _iterator16 = _createForOfIteratorHelper(replica.agmts_status),
                      _step16;

                  try {
                    for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
                      var agmt = _step16.value;
                      // We need this for Agreement View Modal
                      agmt["supplierName"] = [supplier.name];
                      agmt["replicaName"] = ["".concat(replica.replica_root, ":").concat(replica.replica_id)];
                      agmt["replicaStatus"] = ["".concat(replica.replica_status)];
                      agmt["rowKey"] = ["".concat(supplier.name, ":").concat(replica.replica_root, ":").concat(replica.replica_id, ":").concat(agmt["agmt-name"])];
                      agmts_reparsed.push(agmt);
                      agmts_done = true;
                    }
                  } catch (err) {
                    _iterator16.e(err);
                  } finally {
                    _iterator16.f();
                  }
                }

                if (!agmts_done) {
                  var agmt_empty = {};
                  agmt_empty["supplierName"] = [supplier.name];

                  if (replica.replica_root || replica.replica_id) {
                    agmt_empty["replicaName"] = ["".concat(replica.replica_root || "", ":").concat(replica.replica_id || "")];
                  } else {
                    agmt_empty["replicaName"] = [""];
                  }

                  agmt_empty["replicaStatus"] = ["".concat(replica.replica_status)];
                  agmt_empty["rowKey"] = ["".concat(supplier.name, ":").concat(replica.replica_root, ":").concat(replica.replica_id, ":None")];
                  agmts_reparsed.push(agmt_empty);
                }

                replica_reparsed.push(_objectSpread(_objectSpread({}, replica), {}, {
                  agmts_status: agmts_reparsed
                }));
              }
            } catch (err) {
              _iterator15.e(err);
            } finally {
              _iterator15.f();
            }

            supplier_reparsed.push(_objectSpread(_objectSpread({}, supplier), {}, {
              data: replica_reparsed
            }));
          }
        } catch (err) {
          _iterator14.e(err);
        } finally {
          _iterator14.f();
        }

        var report_reparsed = _objectSpread(_objectSpread({}, report), {}, {
          items: supplier_reparsed
        });

        _this14.setState({
          reportData: report_reparsed.items,
          showFullReportModal: true,
          reportLoading: false,
          doFullReportCleanup: true
        });
      }).fail(function (_) {
        var errMsg = JSON.parse(buffer);

        _this14.props.addNotification("error", "Sync report has failed - ".concat(errMsg.desc));

        _this14.setState({
          dynamicCredentialsList: [],
          reportLoading: false,
          doFullReportCleanup: true,
          activeReportKey: 1
        });
      }) // Stream is run each time as a new character arriving
      .stream(function (data) {
        buffer += data;
        var lines = buffer.split("\n");
        var last_line = lines[lines.length - 1];
        var found_creds = false; // Interractive Input is required
        // Check for Bind DN first

        if (last_line.startsWith("Enter a bind DN") && last_line.endsWith(": ")) {
          buffer = ""; // Get the instance name. We need it for fetching the creds data from stored state list

          _this14.setState({
            credsInstanceName: data.split("a bind DN for ")[1].split(": ")[0]
          }); // First check if DN is in the list already (either from previous run or during this execution)


          var _iterator17 = _createForOfIteratorHelper(_this14.state.dynamicCredentialsList),
              _step17;

          try {
            for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
              var creds = _step17.value;

              if (creds.credsInstanceName == _this14.state.credsInstanceName) {
                found_creds = true;
                proc.input("".concat(creds.binddn, "\n"), true);
              }
            } // If we don't have the creds - open the modal window and ask the user for input

          } catch (err) {
            _iterator17.e(err);
          } finally {
            _iterator17.f();
          }

          if (!found_creds) {
            _this14.setState({
              showReportLoginModal: true,
              binddnRequired: true,
              disableBinddn: false,
              credsInstanceName: _this14.state.credsInstanceName,
              loginBinddn: "",
              loginBindpw: ""
            });
          } // Check for password

        } else if (last_line.startsWith("Enter a password") && last_line.endsWith(": ")) {
          buffer = ""; // Do the same logic for password but the string parsing is different

          _this14.setState({
            credsInstanceName: data.split(" on ")[1].split(": ")[0]
          });

          var _iterator18 = _createForOfIteratorHelper(_this14.state.dynamicCredentialsList),
              _step18;

          try {
            for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
              var _creds = _step18.value;

              if (_creds.credsInstanceName == _this14.state.credsInstanceName) {
                found_creds = true;
                proc.input("".concat(_creds.bindpw, "\n"), true);

                _this14.setState({
                  credsInstanceName: ""
                });
              }
            }
          } catch (err) {
            _iterator18.e(err);
          } finally {
            _iterator18.f();
          }

          if (!found_creds) {
            _this14.setState({
              showReportLoginModal: true,
              bindpwRequired: true,
              credsInstanceName: _this14.state.credsInstanceName,
              disableBinddn: true,
              loginBinddn: data.split("Enter a password for ")[1].split(" on")[0],
              loginBindpw: ""
            });
          }
        }
      });
    }
  }, {
    key: "closeReportLoginModal",
    value: function closeReportLoginModal() {
      this.setState({
        showReportLoginModal: false,
        reportLoading: false,
        activeReportKey: 1
      });
    }
  }, {
    key: "processCredsInput",
    value: function processCredsInput() {
      var _this$state3 = this.state,
          loginBinddn = _this$state3.loginBinddn,
          loginBindpw = _this$state3.loginBindpw,
          credsInstanceName = _this$state3.credsInstanceName,
          fullReportProcess = _this$state3.fullReportProcess;

      if (loginBinddn == "" || loginBindpw == "") {
        this.props.addNotification("warning", "Bind DN and password are required.");
      } else {
        this.setState({
          showReportLoginModal: false,
          reportLoading: false
        }); // Store the temporary data in state

        this.setState(function (prevState) {
          return {
            dynamicCredentialsList: [].concat(_toConsumableArray(prevState.dynamicCredentialsList), [{
              binddn: loginBinddn,
              bindpw: loginBindpw,
              credsInstanceName: credsInstanceName
            }])
          };
        }); // We wait for some input - put the right one here

        if (this.state.binddnRequired) {
          fullReportProcess.input("".concat(loginBinddn, "\n"), true);
          this.setState({
            binddnRequired: false
          });
        } else if (this.state.bindpwRequired) {
          fullReportProcess.input("".concat(loginBindpw, "\n"), true);
          this.setState({
            bindpwRequired: false
          });
        }
      }
    }
  }, {
    key: "closeReportModal",
    value: function closeReportModal() {
      this.setState({
        showFullReportModal: false,
        reportLoading: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var reportData = this.state.reportData;
      var credentialsList = this.state.credentialsList;
      var aliasesList = this.state.aliasesList;
      var replAgmts = this.props.data.replAgmts;
      var replWinsyncAgmts = this.props.data.replWinsyncAgmts;
      var cleanTasks = this.props.data.cleanTasks;
      var abortTasks = this.props.data.abortTasks;
      var conflictEntries = this.props.data.conflicts;
      var glueEntries = this.props.data.glues;
      var fullReportModal = "";
      var reportLoginModal = "";
      var reportCredentialsModal = "";
      var reportAliasesModal = "";
      var agmtDetailModal = "";
      var winsyncAgmtDetailModal = "";
      var compareConflictModal = "";

      if (this.state.showReportLoginModal) {
        reportLoginModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ReportLoginModal"], {
          showModal: this.state.showReportLoginModal,
          closeHandler: this.closeReportLoginModal,
          handleChange: this.handleFieldChange,
          processCredsInput: this.processCredsInput,
          instanceName: this.state.credsInstanceName,
          disableBinddn: this.state.disableBinddn,
          loginBinddn: this.state.loginBinddn,
          loginBindpw: this.state.loginBindpw
        });
      }

      if (this.state.showCredentialsModal) {
        reportCredentialsModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ReportCredentialsModal"], {
          showModal: this.state.showCredentialsModal,
          closeHandler: this.closeCredsModal,
          handleFieldChange: this.handleFieldChange,
          newEntry: this.state.newEntry,
          hostname: this.state.credsHostname,
          port: this.state.credsPort,
          binddn: this.state.credsBinddn,
          bindpw: this.state.credsBindpw,
          pwInputInterractive: this.state.pwInputInterractive,
          addConfig: this.addCreds,
          editConfig: this.editCreds
        });
      }

      if (this.state.showAliasesModal) {
        reportAliasesModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ReportAliasesModal"], {
          showModal: this.state.showAliasesModal,
          closeHandler: this.closeAliasesModal,
          handleFieldChange: this.handleFieldChange,
          newEntry: this.state.newEntry,
          hostname: this.state.aliasHostname,
          port: this.state.aliasPort,
          alias: this.state.aliasName,
          addConfig: this.addAliases,
          editConfig: this.editAliases
        });
      }

      if (this.state.showAgmtModal) {
        agmtDetailModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["AgmtDetailsModal"], {
          showModal: this.state.showAgmtModal,
          closeHandler: this.closeAgmtModal,
          agmt: this.state.agmt,
          initAgmt: this.confirmInit,
          isRemoteAgmt: this.state.isRemoteAgmt
        });
      }

      if (this.state.showWinsyncAgmtModal) {
        winsyncAgmtDetailModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["WinsyncAgmtDetailsModal"], {
          showModal: this.state.showWinsyncAgmtModal,
          closeHandler: this.closeWinsyncAgmtModal,
          agmt: this.state.agmt,
          initAgmt: this.confirmWinsyncInit
        });
      }

      if (this.state.showCompareModal) {
        compareConflictModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ConflictCompareModal"], {
          showModal: true,
          conflictEntry: this.state.cmpConflictEntry,
          validEntry: this.state.cmpValidEntry,
          swapFunc: this.confirmSwapConflict,
          convertFunc: this.confirmConvertConflict,
          deleteFunc: this.confirmDeleteConflict,
          handleConvertChange: this.handleConvertChange,
          closeHandler: this.closeCompareModal
        });
      }

      var reportContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, _("Prepare")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, _("Result"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
        textClosed: "Show Help",
        textOpened: "Hide Help",
        className: "h3"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "How To Use Replication Sync Report"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ol", {
        className: "ds-left-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "Fill in ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Replica Credentials"), ";", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 Initially, the list is populated with existing instance agreements and the active instance itself;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 You can use regular expressions for the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Connection Data"), " field;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 It is advised to use an ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Interactive Input"), " option for a password because it's more secure."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "Add ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Instance Aliases"), " if needed;", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 Adding the aliases will make the report more readable;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 Each instance can have one alias. For example, you can give names like this:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, " Alias"), "=Main Master, ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Hostname"), "=192.168.122.01, ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Port"), "=38901;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 In a result, the report will have an entry like this:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, " Supplier: Main Master (192.168.122.01:38901)"), "."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "Press ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Generate Report"), " button;", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 It will initiate the report creation;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 You may be asked for the credentials while the process is running through the agreements."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "Once report is generated you can review it and enable continuous refreshing.", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 More consumer replication data is available under the 'View Data' button;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 You can set the timeout and the new report will be created by that;"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", null, "\u2022 It will use the specified credentials (both preset and from interactive input)."))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["ReportCredentialsTable"], {
        rows: credentialsList,
        deleteConfig: this.removeCreds,
        editConfig: this.showEditCredsModal
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-margin-top",
        bsStyle: "default",
        onClick: this.showAddCredsModal
      }, "Add Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["ReportAliasesTable"], {
        rows: aliasesList,
        deleteConfig: this.removeAliases,
        editConfig: this.showEditAliasesModal
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-margin-top",
        bsStyle: "default",
        onClick: this.showAddAliasesModal
      }, "Add Alias"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.doFullReport,
        title: "Use the specified credentials and display full topology report"
      }, "Generate Report"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["FullReportContent"], {
        reportData: reportData,
        viewAgmt: this.showAgmtModalRemote,
        handleRefresh: this.refreshFullReport,
        reportRefreshing: this.state.reportRefreshing,
        reportLoading: this.state.reportLoading
      })))));
      var cleanNavTitle = 'CleanAllRUV Tasks <font size="2">(' + cleanTasks.length + ')</font>';
      var abortNavTitle = 'Abort CleanAllRUV Tasks <font size="2">(' + abortTasks.length + ')</font>';
      var taskContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: cleanNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: abortNavTitle
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["CleanALLRUVTable"], {
        tasks: cleanTasks,
        viewLog: this.viewCleanLog
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["AbortCleanALLRUVTable"], {
        tasks: abortTasks,
        viewLog: this.viewAbortLog
      })))));
      var conflictNavTitle = 'Conflict Entries <font size="2">(' + conflictEntries.length + ')</font>';
      var glueNavTitle = 'Glue Entries <font size="2">(' + glueEntries.length + ')</font>';
      var conflictContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: conflictNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        className: "ds-nav-med",
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: glueNavTitle
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Replication conflict entries occur when two entries are created with the same DN on different servers.  The automatic conflict resolution procedure renames the last entry created to include the entry's unique identifier (nsuniqueid) in the DN.  There are several ways to resolve a conflict, but that is up to you on which option to use."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["ConflictTable"], {
        conflicts: conflictEntries,
        resolveConflict: this.resolveConflict,
        key: conflictEntries
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "When a ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Delete"), " operation is replicated and the consumer server finds that the entry to be deleted has child entries, the conflict resolution procedure creates a \"", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "glue entry"), "\" to avoid having orphaned entries in the database.  In the same way, when an ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Add"), " operation is replicated and the consumer server cannot find the parent entry, the conflict resolution procedure creates a \"", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "glue entry"), "\" representing the parent so that the new entry is not an orphan entry."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["GlueTable"], {
        glues: glueEntries,
        convertGlue: this.confirmConvertGlue,
        deleteGlue: this.confirmDeleteGlue,
        key: glueEntries
      })))));
      var fullReportTitle = 'Sync Report';
      var replAgmtNavTitle = 'Agreements <font size="2">(' + replAgmts.length + ')</font>';
      var winsyncNavTitle = 'Winsync <font size="2">(' + replWinsyncAgmts.length + ')</font>';
      var tasksNavTitle = 'Tasks <font size="2">(' + (cleanTasks.length + abortTasks.length) + ')</font>';
      var conflictsNavTitle = 'Conflicts <font size="2">(' + (conflictEntries.length + glueEntries.length) + ')</font>';
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-suffix-page",
        className: "ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: fullReportTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: replAgmtNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: winsyncNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: tasksNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["NavItem"], {
        eventKey: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: conflictsNavTitle
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContainer"], {
        id: "task-tabs",
        defaultActiveKey: 1,
        onSelect: this.handleReportNavSelect,
        activeKey: this.state.activeReportKey
      }, reportContent))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["AgmtTable"], {
        agmts: replAgmts,
        pokeAgmt: this.pokeAgmt,
        viewAgmt: this.showAgmtModal
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "dds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_5__["WinsyncAgmtTable"], {
        agmts: replWinsyncAgmts,
        pokeAgmt: this.pokeWinsyncAgmt,
        viewAgmt: this.showWinsyncAgmtModal
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContainer"], {
        id: "task-tabs",
        defaultActiveKey: 1
      }, taskContent))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabPane"], {
        eventKey: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["TabContainer"], {
        id: "task-tabs",
        defaultActiveKey: 1
      }, conflictContent)))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_6__["TaskLogModal"], {
        showModal: this.state.showLogModal,
        closeHandler: this.closeLogModal,
        logData: this.state.logData
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showInitConfirm,
        closeHandler: this.closeInitConfirm,
        actionFunc: this.initAgmt,
        actionParam: this.state.agmt['agmt-name'],
        msg: "Are you really sure you want to reinitialize this replication agreement?",
        msgContent: this.state.agmt['agmt-name']
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showInitWinsyncConfirm,
        closeHandler: this.closeInitWinsyncConfirm,
        actionFunc: this.initWinsyncAgmt,
        actionParam: this.state.agmt['agmt-name'],
        msg: "Are you really sure you want to reinitialize this replication winsync agreement?",
        msgContent: this.state.agmt['agmt-name']
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteGlue,
        closeHandler: this.closeConfirmDeleteGlue,
        actionFunc: this.deleteGlue,
        actionParam: this.state.glueEntry,
        msg: "Are you really sure you want to delete this glue entry and its child entries?",
        msgContent: this.state.glueEntry
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmConvertGlue,
        closeHandler: this.closeConfirmConvertGlue,
        actionFunc: this.convertGlue,
        actionParam: this.state.glueEntry,
        msg: "Are you really sure you want to convert this glue entry to a regular entry?",
        msgContent: this.state.glueEntry
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmConvertConflict,
        closeHandler: this.closeConfirmConvertConflict,
        actionFunc: this.convertConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to convert this conflict entry to a regular entry?",
        msgContent: this.state.conflictEntry
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmSwapConflict,
        closeHandler: this.closeConfirmSwapConflict,
        actionFunc: this.swapConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to swap this conflict entry with the valid entry (this would remove the valid entry and any child entries it might have)?",
        msgContent: this.state.conflictEntry
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__["ConfirmPopup"], {
        showModal: this.state.showConfirmDeleteConflict,
        closeHandler: this.closeConfirmDeleteConflict,
        actionFunc: this.deleteConflict,
        actionParam: this.state.conflictEntry,
        msg: "Are you really sure you want to delete this conflict entry?",
        msgContent: this.state.conflictEntry
      }), fullReportModal, reportLoginModal, reportCredentialsModal, reportAliasesModal, agmtDetailModal, winsyncAgmtDetailModal, compareConflictModal);
    }
  }]);

  return ReplMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaultProps

ReplMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.object,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadAgmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadWinsyncAgmts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  reloadConflicts: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReplMonitor.defaultProps = {
  data: {},
  suffix: "",
  serverId: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  reloadAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  reloadWinsyncAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  reloadConflicts: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ReplMonitor);

/***/ }),

/***/ "./src/lib/monitor/serverMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/serverMonitor.jsx ***!
  \*******************************************/
/*! exports provided: ServerMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerMonitor", function() { return ServerMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ServerMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerMonitor, _React$Component);

  var _super = _createSuper(ServerMonitor);

  function ServerMonitor(props) {
    var _this;

    _classCallCheck(this, ServerMonitor);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      // Generate start time and Uptime
      var startTime = this.props.data.starttime[0];
      var currTime = this.props.data.currenttime[0];
      var startDate = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["get_date_string"])(this.props.data.starttime[0]);
      var uptime = Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["get_date_diff"])(startTime, currTime);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-server-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "Server Statistics", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh server monitor",
        onClick: this.props.reload
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "server-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Server Information'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Connection Table'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Disk Space'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true,
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Server Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-serverid",
        value: "slapd-" + this.props.serverId,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-version",
        value: this.props.data.version,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Server Started"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-starttime",
        value: startDate,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Server Uptime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-uptime",
        value: uptime,
        readOnly: true
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Worker Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-threads",
        value: this.props.data.threads,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Threads Waiting To Read"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-readwaiters",
        value: this.props.data.readwaiters,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Conns At Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-currentconnectionsatmaxthreads",
        value: this.props.data.currentconnectionsatmaxthreads,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Conns Exceeded Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-maxthreadsperconnhits",
        value: this.props.data.maxthreadsperconnhits,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Total Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-totalconnections",
        value: this.props.data.totalconnections,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Current Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-currentconnections",
        value: this.props.data.currentconnections,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Operations Started"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-opsinitiated",
        value: this.props.data.opsinitiated,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Operations Completed"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-opscompleted",
        value: this.props.data.opscompleted,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Entries Returned To Clients"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-entriessent",
        value: this.props.data.entriessent,
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
        sm: 4
      }, "Bytes Sent to Clients"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        className: "ds-input-auto",
        id: "monitor-server-bytessent",
        value: this.props.data.bytessent,
        readOnly: true
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ConnectionTable"], {
        conns: this.props.data.connection
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__["DiskTable"], {
        disks: this.props.disks
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
        className: "ds-margin-top",
        onClick: this.props.reloadDisks
      }, "Refresh"))))));
    }
  }]);

  return ServerMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ServerMonitor.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
ServerMonitor.defaultProps = {
  serverId: "",
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ServerMonitor);

/***/ }),

/***/ "./src/lib/monitor/snmpMonitor.jsx":
/*!*****************************************!*\
  !*** ./src/lib/monitor/snmpMonitor.jsx ***!
  \*****************************************/
/*! exports provided: SNMPMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SNMPMonitor", function() { return SNMPMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var SNMPMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(SNMPMonitor, _React$Component);

  var _super = _createSuper(SNMPMonitor);

  function SNMPMonitor() {
    _classCallCheck(this, SNMPMonitor);

    return _super.apply(this, arguments);
  }

  _createClass(SNMPMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "snmp-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, "SNMP Counters", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh SNMP monitor",
        onClick: this.props.reload
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true,
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Anonymous Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.anonymousbinds,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Referrals"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.referrals,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Unauthenticated Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.anonymousbinds,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Returned Referrals"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.referralsreturned,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Simple Auth Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.simpleauthbinds,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Bind Security Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bindsecurityerrors,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Strong Auth Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.strongauthbinds,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Security Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.securityerrors,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Initiated Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.inops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.errors,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Compare Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.compareops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Current Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connections,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Add Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.addentryops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Total Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionseq,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Delete Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.removeentryops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Conns in Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionsinmaxthreads,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Modify Operation"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.modifyentryops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Conns Exceeded Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.connectionsmaxthreadscount,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "ModRDN Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.modifyrdnops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Bytes Received"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bytesrecv,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Search Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.searchops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Bytes Sent"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.bytessent,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "One Level Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.onelevelsearchops,
        size: "10",
        readOnly: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entries Sent"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entriesreturned,
        size: "10",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Whole Tree Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.wholesubtreesearchops,
        size: "10",
        readOnly: true
      })))));
    }
  }]);

  return SNMPMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Prop types and defaults

SNMPMonitor.propTypes = {
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SNMPMonitor.defaultProps = {
  data: {},
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (SNMPMonitor);

/***/ }),

/***/ "./src/lib/monitor/suffixMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/suffixMonitor.jsx ***!
  \*******************************************/
/*! exports provided: SuffixMonitor, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SuffixMonitor", function() { return SuffixMonitor; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "./node_modules/d3/d3.js");
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





var SuffixMonitor = /*#__PURE__*/function (_React$Component) {
  _inherits(SuffixMonitor, _React$Component);

  var _super = _createSuper(SuffixMonitor);

  function SuffixMonitor(props) {
    var _this;

    _classCallCheck(this, SuffixMonitor);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(SuffixMonitor, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var badColor = "#d01c8b";
      var warningColor = "#ffc107";
      var goodColor = "#4dac26";
      var emptyColor = "#d3d3d3";
      var donutColorEC = goodColor;
      var donutColorECMiss = emptyColor;
      var donutColorECUtil = goodColor;
      var donutColorDN = goodColor;
      var donutColorDNMiss = emptyColor;
      var donutColorDNUtil = goodColor; // Entry cache

      var cachehit = parseInt(this.props.data.entrycachehitratio[0]);
      var cachemax = parseInt(this.props.data.maxentrycachesize[0]);
      var cachecurr = parseInt(this.props.data.currententrycachesize[0]);
      var cachecount = parseInt(this.props.data.currententrycachecount[0]);
      var utilratio = Math.round(cachecurr / cachemax * 100); // DN cache

      var dncachehit = parseInt(this.props.data.dncachehitratio[0]);
      var dncachemax = parseInt(this.props.data.maxdncachesize[0]);
      var dncachecurr = parseInt(this.props.data.currentdncachesize[0]);
      var dncachecount = parseInt(this.props.data.currentdncachecount[0]);
      var dnutilratio = Math.round(dncachecurr / dncachemax * 100); // Adjust ratios if needed

      if (utilratio == 0) {
        utilratio = 1;
      }

      if (dnutilratio == 0) {
        dnutilratio = 1;
      } // Entry Cache


      if (cachehit > 89) {
        donutColorEC = goodColor;
      } else if (cachehit > 74) {
        donutColorEC = warningColor;
      } else {
        if (cachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorECMiss = badColor;
        } else {
          donutColorEC = badColor;
        }
      } // Entry cache utilization


      if (cachehit < 90) {
        if (utilratio > 95) {
          donutColorECUtil = badColor;
        } else if (utilratio > 90) {
          donutColorECUtil = warningColor;
        }
      } // DN cache ratio


      if (dncachehit > 89) {
        donutColorDN = goodColor;
      } else if (dncachehit > 74) {
        donutColorDN = warningColor;
      } else {
        if (dncachehit < 50) {
          // Pie chart shows higher catagory, so we need to highlight the misses
          donutColorDNMiss = badColor;
        } else {
          donutColorDN = badColor;
        }
      } // DN cache utilization


      if (dncachehit < 90) {
        if (dnutilratio > 95) {
          donutColorDNUtil = badColor;
        } else if (dnutilratio > 90) {
          donutColorDNUtil = warningColor;
        }
      }

      var suffixIcon = "tree";

      if (this.props.dbtype == "subsuffix") {
        suffixIcon = "leaf";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "monitor-suffix-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-suffix-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, this.props.bename), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh suffix monitor",
        onClick: function onClick() {
          return _this2.props.reload(_this2.props.suffix);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContainer"], {
        className: "ds-margin-top-lg",
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Entry Cache'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'DN Cache'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin",
        title: "The entry cache hit ratio.  If the chart is RED then the hit ratio is below 90% and might require further cache tuning"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["DonutChart"], {
        id: "monitor-entry-cache-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - cachehit], ['hit', cachehit]],
          colors: {
            'hit': donutColorEC,
            'miss': donutColorECMiss
          },
          order: null,
          unload: true
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Entry Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right",
        title: "How much of the allocated cache space is used (max size vs current size).  If the chart is RED then you should to increase the max cache size because the cache hit ratio is below 90%"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["PieChart"], {
        id: "monitor-entry-util-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', utilratio], ['Unused', 100 - utilratio]],
          colors: {
            'Used': donutColorECUtil,
            'Unused': emptyColor
          },
          order: null,
          type: 'pie'
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_3___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Entry Cache Utilization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(Entries in cache: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, cachecount), ")"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Hit Ratio"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachehitratio,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Tries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachetries,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Hits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.entrycachehits,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Max Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxentrycachesize,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Current Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currententrycachesize,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Max Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxentrycachecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Entry Cache Count"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currententrycachecount,
        size: "35",
        readOnly: true
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin",
        title: "The DN cache hit ratio.  If the chart is RED then the hit ratio is below 90% and might require further cache tuning"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["DonutChart"], {
        id: "monitor-entry-cache-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['miss', 100 - dncachehit], ['hit', dncachehit]],
          colors: {
            'hit': donutColorDN,
            'miss': donutColorDNMiss
          },
          order: null
        },
        title: {
          type: 'percent'
        },
        legend: {
          show: true,
          position: 'right'
        }
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", {
        className: "ds-left-margin"
      }, "DN Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-divider"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-chart-right",
        title: "How much of the allocated cache space is used (max size vs current size).  If the chart is RED then you should to increase the max cache size because the cache hit ratio is below 90%"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["PieChart"], {
        id: "monitor-entry-util-pie",
        size: {
          width: 180,
          height: 120
        },
        data: {
          columns: [['Used', dnutilratio], ['Unused', 100 - dnutilratio]],
          colors: {
            'Used': donutColorDNUtil,
            'Unused': emptyColor
          },
          order: null,
          type: 'pie'
        },
        pie: {
          label: {
            format: function format(value, ratio, id) {
              return d3__WEBPACK_IMPORTED_MODULE_3___default.a.format(',%')(value / 100);
            }
          }
        },
        title: {
          type: 'pie'
        },
        legend: {
          show: true,
          position: 'right'
        },
        unloadBeforeLoad: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-margin"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "DN Cache Utilization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, "(DN's in cache: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, dncachecount), ")")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Hit Ratio"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachehitratio,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Tries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachetries,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Hits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.dncachehits,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Max Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxdncachesize,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Current Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentdncachesize,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Max Count"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.maxdncachecount,
        size: "35",
        readOnly: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "DN Cache Current Count"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
        type: "text",
        value: this.props.data.currentdncachecount,
        size: "35",
        readOnly: true
      }))))))))));
    }
  }]);

  return SuffixMonitor;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
SuffixMonitor.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  data: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,
  bename: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func
};
SuffixMonitor.defaultProps = {
  suffix: "",
  data: {},
  bename: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (SuffixMonitor);

/***/ }),

/***/ "./src/lib/notifications.jsx":
/*!***********************************!*\
  !*** ./src/lib/notifications.jsx ***!
  \***********************************/
/*! exports provided: DoubleConfirmModal, NotificationController, ConfirmPopup */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DoubleConfirmModal", function() { return DoubleConfirmModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationController", function() { return NotificationController; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmPopup", function() { return ConfirmPopup; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





var NotificationController = /*#__PURE__*/function (_React$Component) {
  _inherits(NotificationController, _React$Component);

  var _super = _createSuper(NotificationController);

  function NotificationController() {
    _classCallCheck(this, NotificationController);

    return _super.apply(this, arguments);
  }

  _createClass(NotificationController, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          notifications = _this$props.notifications,
          removeNotificationAction = _this$props.removeNotificationAction;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ToastNotificationList"], null, notifications.map(function (notification) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TimedToastNotification"], {
          key: notification.key,
          type: notification.type,
          persistent: notification.persistent,
          onDismiss: function onDismiss() {
            return removeNotificationAction(notification);
          },
          timerdelay: notification.timerdelay // By default - 8000

        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, notification.header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("strong", null, notification.header), notification.type == "error" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("pre", {
          className: "ds-width-auto"
        }, notification.message) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, notification.message)));
      }));
    }
  }]);

  return NotificationController;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

NotificationController.propTypes = {
  removeNotificationAction: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  notifications: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array
};
NotificationController.defaultProps = {
  notifications: []
};

var ConfirmPopup = /*#__PURE__*/function (_React$Component2) {
  _inherits(ConfirmPopup, _React$Component2);

  var _super2 = _createSuper(ConfirmPopup);

  function ConfirmPopup(props) {
    var _this;

    _classCallCheck(this, ConfirmPopup);

    _this = _super2.call(this, props);
    _this.state = {}; // Chaining OIDs

    _this.primaryAction = _this.primaryAction.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ConfirmPopup, [{
    key: "primaryAction",
    value: function primaryAction() {
      this.props.actionFunc(this.props.actionParam);
      this.props.closeHandler();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler;
      var secondaryContent = "";

      if (this.props.msgContent !== undefined) {
        if (this.props.msgContent.constructor === Array) {
          // Comma separate the lines of this list
          secondaryContent = this.props.msgContent.map(function (item) {
            return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
              key: item
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, item));
          });
        } else {
          secondaryContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, this.props.msgContent));
        }
      }

      var icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        style: {
          'fontSize': '30px',
          'marginRight': '15px'
        },
        name: "warning-triangle-o"
      });
      var msg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "lead"
      }, this.props.msg);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["MessageDialog"], {
        className: "ds-confirm",
        show: showModal,
        onHide: closeHandler,
        primaryAction: this.primaryAction,
        secondaryAction: closeHandler,
        primaryActionButtonContent: "Yes",
        secondaryActionButtonContent: "No",
        title: "Confirmation",
        icon: icon,
        primaryContent: msg,
        secondaryContent: secondaryContent,
        accessibleName: "questionDialog",
        accessibleDescription: "questionDialogContent"
      }));
    }
  }]);

  return ConfirmPopup;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var DoubleConfirmModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(DoubleConfirmModal, _React$Component3);

  var _super3 = _createSuper(DoubleConfirmModal);

  function DoubleConfirmModal() {
    _classCallCheck(this, DoubleConfirmModal);

    return _super3.apply(this, arguments);
  }

  _createClass(DoubleConfirmModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          actionHandler = _this$props3.actionHandler,
          checked = _this$props3.checked,
          spinning = _this$props3.spinning,
          item = _this$props3.item,
          mTitle = _this$props3.mTitle,
          mMsg = _this$props3.mMsg,
          mSpinningMsg = _this$props3.mSpinningMsg,
          mBtnName = _this$props3.mBtnName;
      var spinner = "";
      var saveDisabled = true;

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), mSpinningMsg));
        saveDisabled = true;
      }

      if (checked) {
        saveDisabled = false;
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, mTitle)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, mMsg), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", {
        className: "ds-center ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, item)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12,
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "modalChecked",
        defaultChecked: checked,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Yes"), ", I am sure."))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: actionHandler,
        disabled: saveDisabled
      }, mBtnName))));
    }
  }]);

  return DoubleConfirmModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
DoubleConfirmModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  actionHandler: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  item: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  checked: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  mTitle: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mMsg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mSpinningMsg: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  mBtnName: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
};
DoubleConfirmModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  actionHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  spinning: false,
  item: "",
  checked: false,
  mTitle: "",
  mMsg: "",
  mSpinningMsg: "",
  mBtnName: ""
};


/***/ }),

/***/ "./src/lib/plugins/accountPolicy.jsx":
/*!*******************************************!*\
  !*** ./src/lib/plugins/accountPolicy.jsx ***!
  \*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







 // Use default aacount policy name

var AccountPolicy = /*#__PURE__*/function (_React$Component) {
  _inherits(AccountPolicy, _React$Component);

  var _super = _createSuper(AccountPolicy);

  _createClass(AccountPolicy, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function AccountPolicy(props) {
    var _this;

    _classCallCheck(this, AccountPolicy);

    _this = _super.call(this, props);
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.state = {
      attributes: [],
      configArea: "",
      configDN: "",
      altStateAttrName: [],
      alwaysRecordLogin: false,
      alwaysRecordLoginAttr: [],
      limitAttrName: [],
      specAttrName: [],
      stateAttrName: [],
      configEntryModalShow: false,
      fixupModalShow: false,
      newEntry: false
    };
    return _this;
  }

  _createClass(AccountPolicy, [{
    key: "openModal",
    value: function openModal() {
      var _this2 = this;

      this.getAttributes();

      if (!this.state.configArea) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          altStateAttrName: [],
          alwaysRecordLogin: false,
          alwaysRecordLoginAttr: [],
          limitAttrName: [],
          specAttrName: [],
          stateAttrName: []
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "show", this.state.configArea];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openModal", "Fetch the Account Policy Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this2.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this2.state.configArea,
            altStateAttrName: configEntry["altstateattrname"] === undefined ? [] : [configEntry["altstateattrname"][0]],
            alwaysRecordLogin: !(configEntry["alwaysrecordlogin"] === undefined || configEntry["alwaysrecordlogin"][0] == "no"),
            alwaysRecordLoginAttr: configEntry["alwaysrecordloginattr"] === undefined ? [] : [configEntry["alwaysrecordloginattr"][0]],
            limitAttrName: configEntry["limitattrname"] === undefined ? [] : [configEntry["limitattrname"][0]],
            specAttrName: configEntry["specattrname"] === undefined ? [] : [configEntry["specattrname"][0]],
            stateAttrName: configEntry["stateattrname"] === undefined ? [] : [configEntry["stateattrname"][0]]
          });

          _this2.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this2.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this2.state.configArea,
            altStateAttrName: [],
            alwaysRecordLogin: false,
            alwaysRecordLoginAttr: [],
            limitAttrName: [],
            specAttrName: [],
            stateAttrName: []
          });

          _this2.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this3 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          altStateAttrName = _this$state.altStateAttrName,
          alwaysRecordLogin = _this$state.alwaysRecordLogin,
          alwaysRecordLoginAttr = _this$state.alwaysRecordLoginAttr,
          limitAttrName = _this$state.limitAttrName,
          specAttrName = _this$state.specAttrName,
          stateAttrName = _this$state.stateAttrName;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", action, configDN, "--always-record-login", alwaysRecordLogin ? "yes" : "no"];
      cmd = [].concat(_toConsumableArray(cmd), ["--alt-state-attr"]);

      if (altStateAttrName.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [altStateAttrName[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--always-record-login-attr"]);

      if (alwaysRecordLoginAttr.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [alwaysRecordLoginAttr[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--limit-attr"]);

      if (limitAttrName.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [limitAttrName[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--spec-attr"]);

      if (specAttrName.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [specAttrName[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--state-attr"]);

      if (stateAttrName.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [stateAttrName[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("accountPolicyOperation", "Do the ".concat(action, " operation on the Account Policy Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("accountPolicyOperation", "Result", content);

        _this3.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the Account Policy Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(_this4.state.configDN, " was successfully deleted"));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Account Policy Plugin";
        });
        this.setState({
          configArea: pluginRow["nsslapd_pluginconfigarea"] === undefined ? "" : pluginRow["nsslapd_pluginconfigarea"][0]
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this5 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator = _createForOfIteratorHelper(attrContent["items"]),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _content = _step.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this5.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var _this$state2 = this.state,
          attributes = _this$state2.attributes,
          configArea = _this$state2.configArea,
          configDN = _this$state2.configDN,
          altStateAttrName = _this$state2.altStateAttrName,
          alwaysRecordLogin = _this$state2.alwaysRecordLogin,
          alwaysRecordLoginAttr = _this$state2.alwaysRecordLoginAttr,
          limitAttrName = _this$state2.limitAttrName,
          specAttrName = _this$state2.specAttrName,
          stateAttrName = _this$state2.stateAttrName,
          newEntry = _this$state2.newEntry,
          configEntryModalShow = _this$state2.configEntryModalShow;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "set", "--config-entry", configArea || "delete"];
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Account Policy Plugin Shared Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "DN of the config entry"
      }, "Config DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "alwaysRecordLoginAttr",
        controlId: "alwaysRecordLoginAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Specifies the attribute to store the time of the last successful login in this attribute in the users directory entry (alwaysRecordLoginAttr)"
      }, "Always Record Login Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            alwaysRecordLoginAttr: value
          });
        },
        selected: alwaysRecordLoginAttr,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "alwaysRecordLogin",
        checked: alwaysRecordLogin,
        title: "Sets that every entry records its last login time (alwaysRecordLogin)",
        onChange: this.handleCheckboxChange
      }, "Always Record Login")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "specAttrName",
        controlId: "specAttrName",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Specifies the attribute to identify which entries are account policy configuration entries (specAttrName)"
      }, "Specific Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            specAttrName: value
          });
        },
        selected: specAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "stateAttrName",
        controlId: "stateAttrName",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Specifies the primary time attribute used to evaluate an account policy (stateAttrName)"
      }, "State Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            stateAttrName: value
          });
        },
        selected: stateAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "altStateAttrName",
        controlId: "altStateAttrName",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Provides a backup attribute for the server to reference to evaluate the expiration time (altStateAttrName)"
      }, "Alternative State Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            altStateAttrName: value
          });
        },
        selected: altStateAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "limitAttrName",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Specifies the attribute within the policy to use for the account inactivation limit (limitAttrName)"
      }, "Limit Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this6.setState({
            limitAttrName: value
          });
        },
        selected: limitAttrName,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Account Policy Plugin",
        pluginName: "Account Policy",
        cmdName: "account-policy",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configAreaAP",
        controlId: "configAreaAP"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "DN of the shared config entry (nsslapd-pluginConfigArea)"
      }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configArea,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage"))))))));
    }
  }]);

  return AccountPolicy;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AccountPolicy.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
AccountPolicy.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AccountPolicy);

/***/ }),

/***/ "./src/lib/plugins/attributeUniqueness.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/attributeUniqueness.jsx ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }











var AttributeUniqueness = /*#__PURE__*/function (_React$Component) {
  _inherits(AttributeUniqueness, _React$Component);

  var _super = _createSuper(AttributeUniqueness);

  _createClass(AttributeUniqueness, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadConfigs();
        }
      }
    }
  }]);

  function AttributeUniqueness(props) {
    var _this;

    _classCallCheck(this, AttributeUniqueness);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      configRows: [],
      attributes: [],
      objectClasses: [],
      modalChecked: false,
      modalSpinning: false,
      configName: "",
      configEnabled: false,
      attrNames: [],
      subtrees: [],
      acrossAllSubtrees: false,
      topEntryOc: [],
      subtreeEnriesOc: [],
      newEntry: false,
      showConfigModal: false,
      showConfirmDelete: false
    };
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_this));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_this));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_this));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.getObjectClasses = _this.getObjectClasses.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_this));
    _this.showConfirmDelete = _this.showConfirmDelete.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(AttributeUniqueness, [{
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      this.setState({
        configEnabled: !value
      });
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(values) {
      // When typaheads allow new values, an object is returned
      // instead of string.  Grab the "label" in this case
      var new_values = [];

      var _iterator = _createForOfIteratorHelper(values),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var val = _step.value;

          if (val != "") {
            if (_typeof(val) === 'object') {
              val = val.label;
            }

            new_values.push(val);
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        subtrees: new_values
      });
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      }); // Get all the attributes and matching rules now

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("loadConfigs", "Get Attribute Uniqueness Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return item.attrs;
          })
        });
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("loadConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();
      this.getObjectClasses();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          attrNames: [],
          subtrees: [],
          acrossAllSubtrees: false,
          topEntryOc: [],
          subtreeEnriesOc: []
        });
      } else {
        var configAttrNamesList = [];
        var configSubtreesList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "show", name];
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("openModal", "Fetch the Attribute Uniqueness Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            configEnabled: !(configEntry["nsslapd-pluginenabled"] === undefined || configEntry["nsslapd-pluginenabled"][0] == "off"),
            acrossAllSubtrees: !(configEntry["uniqueness-across-all-subtrees"] === undefined || configEntry["uniqueness-across-all-subtrees"][0] == "off"),
            topEntryOc: configEntry["uniqueness-top-entry-oc"] === undefined ? [] : [configEntry["uniqueness-top-entry-oc"][0]],
            subtreeEnriesOc: configEntry["uniqueness-subtree-entries-oc"] === undefined ? [] : [configEntry["uniqueness-subtree-entries-oc"][0]]
          });

          if (configEntry["uniqueness-attribute-name"] === undefined) {
            _this3.setState({
              attrNames: []
            });
          } else {
            var _iterator2 = _createForOfIteratorHelper(configEntry["uniqueness-attribute-name"]),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var value = _step2.value;
                configAttrNamesList = [].concat(_toConsumableArray(configAttrNamesList), [value]);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }

            _this3.setState({
              attrNames: configAttrNamesList
            });
          }

          if (configEntry["uniqueness-subtrees"] === undefined) {
            _this3.setState({
              subtrees: []
            });
          } else {
            var _iterator3 = _createForOfIteratorHelper(configEntry["uniqueness-subtrees"]),
                _step3;

            try {
              for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                var _value = _step3.value;
                configSubtreesList = [].concat(_toConsumableArray(configSubtreesList), [_value]);
              }
            } catch (err) {
              _iterator3.e(err);
            } finally {
              _iterator3.f();
            }

            _this3.setState({
              subtrees: configSubtreesList
            });
          }
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            attrNames: [],
            subtrees: [],
            acrossAllSubtrees: false,
            topEntryOc: [],
            subtreeEnriesOc: []
          });
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          configEnabled = _this$state.configEnabled,
          attrNames = _this$state.attrNames,
          subtrees = _this$state.subtrees,
          acrossAllSubtrees = _this$state.acrossAllSubtrees,
          topEntryOc = _this$state.topEntryOc,
          subtreeEnriesOc = _this$state.subtreeEnriesOc;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", action, configName, "--enabled", configEnabled ? "on" : "off", "--across-all-subtrees", acrossAllSubtrees ? "on" : "off"];

      if (subtrees.length == 0 && subtreeEnriesOc.length == 0) {
        // There me a subtree or entry OC sets
        this.props.addNotification("error", "There must be at least one Subtree or Subtree Entries OC set");
        return;
      } // Delete attributes if the user set an empty value to the field


      if (!(action == "add" && attrNames.length == 0)) {
        cmd = [].concat(_toConsumableArray(cmd), ["--attr-name"]);

        if (attrNames.length != 0) {
          var _iterator4 = _createForOfIteratorHelper(attrNames),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var value = _step4.value;
              cmd = [].concat(_toConsumableArray(cmd), [value]);
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
        } else if (action == "add") {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
        }
      }

      if (!(action == "add" && subtrees.length == 0)) {
        cmd = [].concat(_toConsumableArray(cmd), ["--subtree"]);

        if (subtrees.length != 0) {
          var _iterator5 = _createForOfIteratorHelper(subtrees),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var _value2 = _step5.value;
              cmd = [].concat(_toConsumableArray(cmd), [_value2]);
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }
        } else if (action == "add") {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
        }
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--top-entry-oc"]);

      if (topEntryOc.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [topEntryOc[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--subtree-entries-oc"]);

      if (subtreeEnriesOc.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [subtreeEnriesOc[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("attrUniqOperation", "Do the ".concat(action, " operation on the Attribute Uniqueness Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("attrUniqOperation", "Result", content);

        _this4.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showConfirmDelete",
    value: function showConfirmDelete(name) {
      this.setState({
        showConfirmDelete: true,
        modalChecked: false,
        modalSpinning: false,
        deleteName: name
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        showConfirmDelete: false,
        modalChecked: false,
        modalSpinning: false,
        deleteName: ""
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "delete", this.state.deleteName];
      this.setState({
        modalSpinning: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("deleteConfig", "Delete the Attribute Uniqueness Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(_this5.state.deleteName, " was successfully deleted"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.closeConfirmDelete();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeConfirmDelete();

        _this5.closeModal();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this6 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator6 = _createForOfIteratorHelper(attrContent["items"]),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var _content = _step6.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }

        _this6.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "getObjectClasses",
    value: function getObjectClasses() {
      var _this7 = this;

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("getObjectClasses", "Get objectClasses", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var ocContent = JSON.parse(content);
        var ocs = [];

        var _iterator7 = _createForOfIteratorHelper(ocContent["items"]),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _content2 = _step7.value;
            ocs.push(_content2.name[0]);
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        _this7.setState({
          objectClasses: ocs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to get objectClasses - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var _this$state2 = this.state,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configName = _this$state2.configName,
          attrNames = _this$state2.attrNames,
          subtrees = _this$state2.subtrees,
          acrossAllSubtrees = _this$state2.acrossAllSubtrees,
          configEnabled = _this$state2.configEnabled,
          topEntryOc = _this$state2.topEntryOc,
          subtreeEnriesOc = _this$state2.subtreeEnriesOc,
          newEntry = _this$state2.newEntry,
          attributes = _this$state2.attributes,
          objectClasses = _this$state2.objectClasses;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Attribute Uniqueness Plugin Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets the name of the plug-in configuration record. (cn) You can use any string, but \"attribute_name Attribute Uniqueness\" is recommended."
      }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "attrNames",
        controlId: "attrNames",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets the name of the attribute whose values must be unique. This attribute is multi-valued. (uniqueness-attribute-name)"
      }, "Attribute Names"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            attrNames: values
          });
        },
        selected: attrNames,
        newSelectionPrefix: "Add an attribute: ",
        options: attributes,
        placeholder: "Type an attribute name..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "subtrees",
        controlId: "subtrees",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets the DN under which the plug-in checks for uniqueness of the attributes value. This attribute is multi-valued (uniqueness-subtrees)"
      }, "Subtrees"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.handleTypeaheadChange(values);
        },
        selected: subtrees,
        options: [""],
        newSelectionPrefix: "Add a subtree: ",
        placeholder: "Type a subtree DN..."
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "topEntryOc",
        controlId: "topEntryOc",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Verifies that the value of the attribute set in uniqueness-attribute-name is unique in this subtree (uniqueness-top-entry-oc)"
      }, "Top Entry OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            topEntryOc: value
          });
        },
        selected: topEntryOc,
        options: objectClasses,
        newSelectionPrefix: "Add a top entry objectClass: ",
        placeholder: "Type an objectClass..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "subtreeEnriesOc",
        controlId: "subtreeEnriesOc",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Verifies if an attribute is unique, if the entry contains the object class set in this parameter (uniqueness-subtree-entries-oc)"
      }, "Subtree Entries OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            subtreeEnriesOc: value
          });
        },
        selected: subtreeEnriesOc,
        options: objectClasses,
        newSelectionPrefix: "Add a subtree entries objectClass: ",
        placeholder: "Type an objectClass..."
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "acrossAllSubtrees",
        checked: acrossAllSubtrees,
        title: "If enabled (on), the plug-in checks that the attribute is unique across all subtrees set. If you set the attribute to off, uniqueness is only enforced within the subtree of the updated entry (uniqueness-across-all-subtrees)",
        onChange: this.handleCheckboxChange
      }, "Across All Subtrees"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEnabled",
        controlId: "configEnabled",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Identifies whether or not the config is enabled."
      }, "Enable config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "configEnabled",
        value: configEnabled,
        onChange: function onChange() {
          return _this8.handleSwitchChange(configEnabled);
        },
        animate: false
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
        removeSwitch: true,
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "attribute uniqueness",
        pluginName: "Attribute Uniqueness",
        cmdName: "attr-uniq",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AttrUniqConfigTable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.showConfirmDelete
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        handleChange: this.handleCheckboxChange,
        actionHandler: this.deleteConfig,
        spinning: this.state.modalSpinning,
        item: this.state.deleteName,
        checked: this.state.modalChecked,
        mTitle: "Delete Attribute Uniqueness Configuration",
        mMsg: "Are you sure you want to delete this configuration?",
        mSpinningMsg: "Deleting attribute uniqueness configuration...",
        mBtnName: "Delete Configuration"
      }));
    }
  }]);

  return AttributeUniqueness;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AttributeUniqueness.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
AttributeUniqueness.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AttributeUniqueness);

/***/ }),

/***/ "./src/lib/plugins/autoMembership.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/autoMembership.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var AutoMembership = /*#__PURE__*/function (_React$Component) {
  _inherits(AutoMembership, _React$Component);

  var _super = _createSuper(AutoMembership);

  _createClass(AutoMembership, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadDefinitions();
        }
      }
    }
  }]);

  function AutoMembership(props) {
    var _this;

    _classCallCheck(this, AutoMembership);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      definitionRows: [],
      regexRows: [],
      regexesToDelete: [],
      attributes: [],
      definitionName: "",
      defaultGroup: "",
      filter: "",
      groupingAttrMember: [],
      groupingAttrEntry: "",
      scope: "",
      regexName: "",
      regexExclusive: [],
      regexInclusive: [],
      regexTargetGroup: "",
      newDefinitionEntry: false,
      newRegexEntry: false,
      definitionEntryModalShow: false,
      regexEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.loadDefinitions = _this.loadDefinitions.bind(_assertThisInitialized(_this));
    _this.loadRegexes = _this.loadRegexes.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.showEditDefinitionModal = _this.showEditDefinitionModal.bind(_assertThisInitialized(_this));
    _this.showAddDefinitionModal = _this.showAddDefinitionModal.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.deleteDefinition = _this.deleteDefinition.bind(_assertThisInitialized(_this));
    _this.addDefinition = _this.addDefinition.bind(_assertThisInitialized(_this));
    _this.editDefinition = _this.editDefinition.bind(_assertThisInitialized(_this));
    _this.openRegexModal = _this.openRegexModal.bind(_assertThisInitialized(_this));
    _this.closeRegexModal = _this.closeRegexModal.bind(_assertThisInitialized(_this));
    _this.showEditRegexModal = _this.showEditRegexModal.bind(_assertThisInitialized(_this));
    _this.showAddRegexModal = _this.showAddRegexModal.bind(_assertThisInitialized(_this));
    _this.cmdRegexOperation = _this.cmdRegexOperation.bind(_assertThisInitialized(_this));
    _this.deleteRegex = _this.deleteRegex.bind(_assertThisInitialized(_this));
    _this.addRegex = _this.addRegex.bind(_assertThisInitialized(_this));
    _this.editRegex = _this.editRegex.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(AutoMembership, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadDefinitions",
    value: function loadDefinitions() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "definitions"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadDefinitions", "Get Auto Membership Plugin definitions", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          definitionRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadDefinitions failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "loadRegexes",
    value: function loadRegexes(defName) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "regexes", defName];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadRegexes", "Get Auto Membership Plugin regexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          regexRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadRegexes failed", errMsg.desc);
        }

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditDefinitionModal",
    value: function showEditDefinitionModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddDefinitionModal",
    value: function showAddDefinitionModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          definitionEntryModalShow: true,
          newDefinitionEntry: true,
          regexRows: [],
          definitionName: "",
          defaultGroup: "",
          filter: "",
          groupingAttrMember: [],
          groupingAttrEntry: "",
          scope: ""
        });
      } else {
        this.loadRegexes(name);
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Auto Membership Plugin definition entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var definitionEntry = JSON.parse(content).attrs;

          _this4.setState({
            definitionEntryModalShow: true,
            newDefinitionEntry: false,
            definitionName: definitionEntry["cn"] === undefined ? "" : definitionEntry["cn"][0],
            defaultGroup: definitionEntry["automemberdefaultgroup"] === undefined ? "" : definitionEntry["automemberdefaultgroup"][0],
            filter: definitionEntry["automemberfilter"] === undefined ? "" : definitionEntry["automemberfilter"][0],
            scope: definitionEntry["automemberscope"] === undefined ? "" : definitionEntry["automemberscope"][0]
          });

          if (definitionEntry["automembergroupingattr"] === undefined) {
            _this4.setState({
              groupingAttrMember: [],
              groupingAttrEntry: ""
            });
          } else {
            var groupingAttr = definitionEntry["automembergroupingattr"][0];

            _this4.setState({
              groupingAttrMember: [groupingAttr.split(":")[0]],
              groupingAttrEntry: groupingAttr.split(":")[1]
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            definitionEntryModalShow: true,
            newDefinitionEntry: true,
            regexRows: [],
            definitionName: "",
            defaultGroup: "",
            filter: "",
            groupingAttrMember: [],
            groupingAttrEntry: "",
            scope: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "showEditRegexModal",
    value: function showEditRegexModal(rowData) {
      this.openRegexModal(rowData.cn[0]);
    }
  }, {
    key: "showAddRegexModal",
    value: function showAddRegexModal(rowData) {
      this.openRegexModal();
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        definitionEntryModalShow: false
      });
    }
  }, {
    key: "closeRegexModal",
    value: function closeRegexModal() {
      this.setState({
        regexEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this5 = this;

      var _this$state = this.state,
          definitionName = _this$state.definitionName,
          defaultGroup = _this$state.defaultGroup,
          filter = _this$state.filter,
          groupingAttrMember = _this$state.groupingAttrMember,
          groupingAttrEntry = _this$state.groupingAttrEntry,
          scope = _this$state.scope;

      if (definitionName === "" || scope === "" || filter === "" || groupingAttrMember.length == 0 || groupingAttrEntry === "") {
        this.props.addNotification("warning", "Name, Scope, Filter and Grouping Attribute are required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, action, "--default-group", defaultGroup || action == "add" ? defaultGroup : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete"];
        cmd = [].concat(_toConsumableArray(cmd), ["--grouping-attr"]);

        if (groupingAttrMember.length != 0 && groupingAttrEntry.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), ["".concat(groupingAttrMember[0].id, ":").concat(groupingAttrEntry)]);
        } else if (action == "add") {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("AutoMembershipOperation", "Result", content);

          _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(definitionName, "\" entry"));

          _this5.loadDefinitions();

          _this5.purgeRegexUpdate();

          _this5.closeModal();

          _this5.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          if (errMsg.desc.indexOf("nothing to set") === 0) {
            _this5.props.addNotification("error", "Error during the definition entry ".concat(action, " operation - ").concat(errMsg.desc));
          } else {
            _this5.purgeRegexUpdate();
          }

          _this5.loadDefinitions();

          _this5.closeModal();

          _this5.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "purgeRegexUpdate",
    value: function purgeRegexUpdate() {
      var _this6 = this;

      var _this$state2 = this.state,
          definitionName = _this$state2.definitionName,
          regexesToDelete = _this$state2.regexesToDelete,
          regexRows = _this$state2.regexRows;

      var _iterator = _createForOfIteratorHelper(regexesToDelete),
          _step;

      try {
        var _loop = function _loop() {
          var regexToDelete = _step.value;
          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this6.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexToDelete, "delete"];
          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipRegexOperation", "Do the delete operation on the Auto Membership Plugin Regex Entry", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            console.info("AutoMembershipRegexOperation", "Result", "The delete operation was successfully done on \"".concat(regexToDelete, "\" entry"));
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.addNotification("error", "Error during the regex \"".concat(regexToDelete, "\" entry delete operation - ").concat(errMsg.desc));
          });
        };

        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          _loop();
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(regexRows),
          _step2;

      try {
        var _loop2 = function _loop2() {
          var row = _step2.value;
          var action = "";
          var regexName = "";

          if (row.needsadd !== undefined) {
            action = "add";
            regexName = row.cn[0];
          } else if (row.needsupdate !== undefined) {
            action = "set";
            regexName = row.cn[0];
          } else {
            return "continue";
          }

          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this6.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexName, action];
          var regexTargetGroup = row.automembertargetgroup[0];
          var regexExclusive = row.automemberexclusiveregex;
          var regexInclusive = row.automemberinclusiveregex;

          if (!(action == "add" && regexTargetGroup == 0)) {
            cmd = [].concat(_toConsumableArray(cmd), ["--target-group"]);

            if (regexTargetGroup) {
              cmd = [].concat(_toConsumableArray(cmd), [regexTargetGroup]);
            } else if (action == "add") {
              cmd = [].concat(_toConsumableArray(cmd), [""]);
            } else {
              cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
            }
          }

          if (!(action == "add" && regexExclusive.length == 0)) {
            cmd = [].concat(_toConsumableArray(cmd), ["--exclusive"]);

            if (regexExclusive.length != 0) {
              var _iterator3 = _createForOfIteratorHelper(regexExclusive),
                  _step3;

              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var regex = _step3.value;
                  cmd = [].concat(_toConsumableArray(cmd), [regex]);
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }
            } else if (action == "add") {
              cmd = [].concat(_toConsumableArray(cmd), [""]);
            } else {
              cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
            }
          }

          if (!(action == "add" && regexInclusive.length == 0)) {
            cmd = [].concat(_toConsumableArray(cmd), ["--inclusive"]);

            if (regexInclusive.length != 0) {
              var _iterator4 = _createForOfIteratorHelper(regexInclusive),
                  _step4;

              try {
                for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                  var _regex = _step4.value;
                  cmd = [].concat(_toConsumableArray(cmd), [_regex]);
                }
              } catch (err) {
                _iterator4.e(err);
              } finally {
                _iterator4.f();
              }
            } else if (action == "add") {
              cmd = [].concat(_toConsumableArray(cmd), [""]);
            } else {
              cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
            }
          }

          Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("AutoMembershipRegexOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin Regex Entry"), cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            console.info("AutoMembershipRegexOperation", "Result", "The ".concat(action, " operation was successfully done on \"").concat(regexName, "\" entry"));
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this6.props.addNotification("error", "Error during the regex \"".concat(regexName, "\" entry ").concat(action, " operation - ").concat(errMsg.desc));
          });
        };

        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _ret = _loop2();

          if (_ret === "continue") continue;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }
  }, {
    key: "deleteDefinition",
    value: function deleteDefinition(rowData) {
      var _this7 = this;

      var definitionName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteDefinition", "Delete the Auto Membership Plugin definition entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteDefinition", "Result", content);

        _this7.props.addNotification("success", "Definition entry ".concat(definitionName, " was successfully deleted"));

        _this7.loadDefinitions();

        _this7.closeModal();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the definition entry removal operation - ".concat(errMsg.desc));

        _this7.loadDefinitions();

        _this7.closeModal();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addDefinition",
    value: function addDefinition() {
      this.cmdOperation("add");
    }
  }, {
    key: "editDefinition",
    value: function editDefinition() {
      this.cmdOperation("set");
    }
  }, {
    key: "openRegexModal",
    value: function openRegexModal(name) {
      if (name) {
        var regexEntry = this.state.regexRows.filter(function (row) {
          return row.cn[0] === name;
        })[0];
        var exclusiveRegexList = [];
        var inclusiveRegexList = []; // Get all the attributes and matching rules now

        if (regexEntry["automemberexclusiveregex"] === undefined) {
          this.setState({
            regexExclusive: []
          });
        } else {
          var _iterator5 = _createForOfIteratorHelper(regexEntry["automemberexclusiveregex"]),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var value = _step5.value;
              exclusiveRegexList = [].concat(_toConsumableArray(exclusiveRegexList), [value]);
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          this.setState({
            regexExclusive: exclusiveRegexList
          });
        }

        if (regexEntry["automemberinclusiveregex"] === undefined) {
          this.setState({
            regexInclusive: []
          });
        } else {
          var _iterator6 = _createForOfIteratorHelper(regexEntry["automemberinclusiveregex"]),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var _value = _step6.value;
              inclusiveRegexList = [].concat(_toConsumableArray(inclusiveRegexList), [_value]);
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }

          this.setState({
            regexInclusive: inclusiveRegexList
          });
        }

        this.setState({
          regexEntryModalShow: true,
          newRegexEntry: false,
          regexName: regexEntry["cn"][0],
          regexTargetGroup: regexEntry["automembertargetgroup"] === undefined ? "" : regexEntry["automembertargetgroup"][0]
        });
      } else {
        this.setState({
          regexEntryModalShow: true,
          newRegexEntry: true,
          regexName: "",
          regexExclusive: [],
          regexInclusive: [],
          regexTargetGroup: ""
        });
      }
    }
  }, {
    key: "cmdRegexOperation",
    value: function cmdRegexOperation(action) {
      var _this$state3 = this.state,
          regexRows = _this$state3.regexRows,
          regexName = _this$state3.regexName,
          regexExclusive = _this$state3.regexExclusive,
          regexInclusive = _this$state3.regexInclusive,
          regexTargetGroup = _this$state3.regexTargetGroup;
      var regexExists = false;

      if (regexRows.some(function (row) {
        return row.cn[0] === regexName;
      })) {
        regexExists = true;
      }

      if (regexName === "" || regexTargetGroup === "") {
        this.props.addNotification("warning", "Name and Target Group are required.");
      } else {
        if (action == "add") {
          if (!regexExists) {
            this.setState(function (prevState) {
              return {
                regexRows: [].concat(_toConsumableArray(prevState.regexRows), [{
                  cn: [regexName],
                  automembertargetgroup: [regexTargetGroup],
                  automemberexclusiveregex: regexExclusive.length !== 0 ? regexExclusive.map(function (regex) {
                    return regex;
                  }) : [],
                  automemberinclusiveregex: regexInclusive.length !== 0 ? regexInclusive.map(function (regex) {
                    return regex;
                  }) : [],
                  needsadd: true
                }])
              };
            });
          } else {
            this.props.addNotification("error", "Regex \"".concat(regexName, "\" already exists"));
          }
        } else if (action == "set") {
          if (regexExists) {
            this.setState({
              regexRows: regexRows.filter(function (row) {
                return row.cn[0] !== regexName;
              })
            });
            this.setState(function (prevState) {
              return {
                regexRows: [].concat(_toConsumableArray(prevState.regexRows), [{
                  cn: [regexName],
                  automembertargetgroup: [regexTargetGroup],
                  automemberexclusiveregex: regexExclusive.length !== 0 ? regexExclusive.map(function (regex) {
                    return regex;
                  }) : [],
                  automemberinclusiveregex: regexInclusive.length !== 0 ? regexInclusive.map(function (regex) {
                    return regex;
                  }) : [],
                  needsupdate: true
                }])
              };
            });
          } else {
            this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - \"").concat(action, "\" is impossible"));
          }
        }

        this.closeRegexModal();
      }
    }
  }, {
    key: "deleteRegex",
    value: function deleteRegex(rowData) {
      var regexRows = this.state.regexRows;
      var regexName = rowData.cn[0];

      if (regexRows.some(function (row) {
        return row.cn[0] === regexName;
      })) {
        this.setState({
          regexRows: regexRows.filter(function (row) {
            return row.cn[0] !== regexName;
          })
        });
        this.setState(function (prevState) {
          return {
            regexesToDelete: [].concat(_toConsumableArray(prevState.regexesToDelete), [regexName])
          };
        });
      } else {
        this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - impossible to delete"));
      }
    }
  }, {
    key: "addRegex",
    value: function addRegex() {
      this.cmdRegexOperation("add");
    }
  }, {
    key: "editRegex",
    value: function editRegex() {
      this.cmdRegexOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this8 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator7 = _createForOfIteratorHelper(attrContent["items"]),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _content = _step7.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        _this8.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var _this$state4 = this.state,
          regexRows = _this$state4.regexRows,
          definitionEntryModalShow = _this$state4.definitionEntryModalShow,
          definitionName = _this$state4.definitionName,
          newDefinitionEntry = _this$state4.newDefinitionEntry,
          regexEntryModalShow = _this$state4.regexEntryModalShow,
          newRegexEntry = _this$state4.newRegexEntry,
          attributes = _this$state4.attributes,
          groupingAttrEntry = _this$state4.groupingAttrEntry,
          groupingAttrMember = _this$state4.groupingAttrMember,
          regexName = _this$state4.regexName,
          regexExclusive = _this$state4.regexExclusive,
          regexInclusive = _this$state4.regexInclusive,
          regexTargetGroup = _this$state4.regexTargetGroup;
      var modalDefinitionFields = {
        defaultGroup: {
          name: "Default Group",
          value: this.state.defaultGroup,
          help: "Sets default or fallback group to add the entry to as a member attribute in group entry (autoMemberDefaultGroup)"
        },
        scope: {
          name: "Scope",
          value: this.state.scope,
          help: "Sets the subtree DN to search for entries (autoMemberScope)"
        },
        filter: {
          name: "Filter",
          value: this.state.filter,
          help: "Sets a standard LDAP search filter to use to search for matching entries (autoMemberFilter)"
        }
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: definitionEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newDefinitionEntry ? "Add" : "Edit", " Auto Membership Plugin Definition Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "definitionName",
        controlId: "definitionName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Definition Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: definitionName,
        onChange: this.handleFieldChange,
        disabled: !newDefinitionEntry
      }))), Object.entries(modalDefinitionFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3,
          title: content.help
        }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this9.handleFieldChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "groupingAttrEntry",
        controlId: "groupingAttrEntry"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the name of the member attribute in the group entry and the attribute in the object entry that supplies the member attribute value, in the format group_member_attr:entry_attr (autoMemberGroupingAttr)"
      }, "Grouping Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this9.setState({
            groupingAttrMember: value
          });
        },
        selected: groupingAttrMember,
        options: attributes,
        newSelectionPrefix: "Set an attribute: ",
        placeholder: "Type an attribute..."
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 1
      }, ":"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: groupingAttrEntry,
        onChange: this.handleFieldChange
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AutoMembershipRegexTable"], {
        rows: regexRows,
        editConfig: this.showEditRegexModal,
        deleteConfig: this.deleteRegex
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddRegexModal
      }, "Add Regex")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newDefinitionEntry ? this.addDefinition : this.editDefinition
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: regexEntryModalShow,
        onHide: this.closeRegexModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeRegexModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Auto Membership Plugin Regex Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexName",
        controlId: "regexName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Regex Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: regexName,
        onChange: this.handleFieldChange,
        disabled: !newRegexEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexExclusive",
        controlId: "regexExclusive"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
      }, "Exclusive Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this9.setState({
            regexExclusive: value
          });
        },
        selected: regexExclusive,
        options: [],
        newSelectionPrefix: "Set an exclusive regex: ",
        placeholder: "Type a regex..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexInclusive",
        controlId: "regexInclusive"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
      }, "Inclusive Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this9.setState({
            regexInclusive: value
          });
        },
        selected: regexInclusive,
        options: [],
        newSelectionPrefix: "Set an inclusive regex: ",
        placeholder: "Type a regex..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "regexTargetGroup",
        controlId: "regexTargetGroup"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets which group to add the entry to as a member, if it meets the regular expression conditions (autoMemberTargetGroup)"
      }, "Target Group"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: regexTargetGroup,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeRegexModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newRegexEntry ? this.addRegex : this.editRegex
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Auto Membership Plugin",
        pluginName: "Auto Membership",
        cmdName: "automember",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["AutoMembershipDefinitionTable"], {
        rows: this.state.definitionRows,
        editConfig: this.showEditDefinitionModal,
        deleteConfig: this.deleteDefinition
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddDefinitionModal
      }, "Add Definition")))));
    }
  }]);

  return AutoMembership;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

AutoMembership.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
AutoMembership.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (AutoMembership);

/***/ }),

/***/ "./src/lib/plugins/dna.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/dna.jsx ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }











var DNA = /*#__PURE__*/function (_React$Component) {
  _inherits(DNA, _React$Component);

  var _super = _createSuper(DNA);

  _createClass(DNA, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadConfigs();
        }
      }
    }
  }]);

  function DNA(props) {
    var _this;

    _classCallCheck(this, DNA);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      configRows: [],
      sharedConfigRows: [],
      attributes: [],
      configName: "",
      type: [],
      prefix: "",
      nextValue: "",
      maxValue: "",
      interval: "",
      magicRegen: "",
      filter: "",
      scope: "",
      remoteBindDN: "",
      remoteBindCred: "",
      sharedConfigEntry: "",
      threshold: "",
      nextRange: "",
      rangeRequesTimeout: "",
      sharedBaseDN: "",
      sharedHostname: "",
      sharedPort: "",
      sharedSecurePort: "",
      sharedRemainingValues: "",
      sharedRemoteBindMethod: "",
      sharedRemoteConnProtocol: "",
      newEntry: false,
      newSharedEntry: false,
      configEntryModalShow: false,
      sharedConfigListModalShow: false,
      sharedConfigEntryModalShow: false,
      showConfirmSharedSave: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_this));
    _this.loadSharedConfigs = _this.loadSharedConfigs.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    _this.openSharedListModal = _this.openSharedListModal.bind(_assertThisInitialized(_this));
    _this.closeSharedListModal = _this.closeSharedListModal.bind(_assertThisInitialized(_this));
    _this.openSharedModal = _this.openSharedModal.bind(_assertThisInitialized(_this));
    _this.closeSharedModal = _this.closeSharedModal.bind(_assertThisInitialized(_this));
    _this.showEditSharedConfigModal = _this.showEditSharedConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddSharedConfigModal = _this.showAddSharedConfigModal.bind(_assertThisInitialized(_this));
    _this.cmdSharedOperation = _this.cmdSharedOperation.bind(_assertThisInitialized(_this));
    _this.deleteSharedConfig = _this.deleteSharedConfig.bind(_assertThisInitialized(_this));
    _this.addSharedConfig = _this.addSharedConfig.bind(_assertThisInitialized(_this));
    _this.editSharedConfig = _this.editSharedConfig.bind(_assertThisInitialized(_this));
    _this.showConfirmSharedSave = _this.showConfirmSharedSave.bind(_assertThisInitialized(_this));
    _this.closeConfirmSharedSave = _this.closeConfirmSharedSave.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(DNA, [{
    key: "showConfirmSharedSave",
    value: function showConfirmSharedSave() {
      if (this.state.sharedConfigEntry != "") {
        this.setState({
          showConfirmSharedSave: true
        });
      } else {
        this.props.addNotification("warning", "Shared Config Entry attribute is required for the 'Manage' operation");
      }
    }
  }, {
    key: "closeConfirmSharedSave",
    value: function closeConfirmSharedSave() {
      this.setState({
        showConfirmSharedSave: false
      });
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "configs"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("loadConfigs", "Get DNA Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "loadSharedConfigs",
    value: function loadSharedConfigs(basedn) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "shared-configs", basedn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("loadSharedConfigs", "Get DNA Plugin shared configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          sharedConfigRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadSharedConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          type: [],
          prefix: "",
          nextValue: "",
          maxValue: "",
          interval: "",
          magicRegen: "",
          filter: "",
          scope: "",
          remoteBindDN: "",
          remoteBindCred: "",
          sharedConfigEntry: "",
          threshold: "",
          nextRange: "",
          rangeRequesTimeout: ""
        });
      } else {
        var dnaTypeList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("openModal", "Fetch the DNA Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this4.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            prefix: configEntry["dnaprefix"] === undefined ? "" : configEntry["dnaprefix"][0],
            nextValue: configEntry["dnanextvalue"] === undefined ? "" : configEntry["dnanextvalue"][0],
            maxValue: configEntry["dnamaxvalue"] === undefined ? "" : configEntry["dnamaxvalue"][0],
            interval: configEntry["dnainterval"] === undefined ? "" : configEntry["dnainterval"][0],
            magicRegen: configEntry["dnamagicregen"] === undefined ? "" : configEntry["dnamagicregen"][0],
            filter: configEntry["dnafilter"] === undefined ? "" : configEntry["dnafilter"][0],
            scope: configEntry["dnascope"] === undefined ? "" : configEntry["dnascope"][0],
            remoteBindDN: configEntry["dnaremotebindDN"] === undefined ? "" : configEntry["dnaremotebindDN"][0],
            remoteBindCred: configEntry["dnaremotebindcred"] === undefined ? "" : configEntry["dnaremotebindcred"][0],
            sharedConfigEntry: configEntry["dnasharedcfgdn"] === undefined ? "" : configEntry["dnasharedcfgdn"][0],
            threshold: configEntry["dnathreshold"] === undefined ? "" : configEntry["dnathreshold"][0],
            nextRange: configEntry["dnanextrange"] === undefined ? "" : configEntry["dnanextrange"][0],
            rangeRequesTimeout: configEntry["dnarangerequesttimeout"] === undefined ? "" : configEntry["dnarangerequesttimeout"][0]
          });

          if (configEntry["dnatype"] === undefined) {
            _this4.setState({
              type: []
            });
          } else {
            var _iterator = _createForOfIteratorHelper(configEntry["dnatype"]),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var value = _step.value;
                dnaTypeList = [].concat(_toConsumableArray(dnaTypeList), [value]);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            _this4.setState({
              type: dnaTypeList
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            type: [],
            prefix: "",
            nextValue: "",
            maxValue: "",
            interval: "",
            magicRegen: "",
            filter: "",
            scope: "",
            remoteBindDN: "",
            remoteBindCred: "",
            sharedConfigEntry: "",
            threshold: "",
            nextRange: "",
            rangeRequesTimeout: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "showEditSharedConfigModal",
    value: function showEditSharedConfigModal(rowData) {
      this.openSharedModal(rowData.dnahostname[0], rowData.dnaportnum[0]);
    }
  }, {
    key: "showAddSharedConfigModal",
    value: function showAddSharedConfigModal(rowData) {
      this.openSharedModal();
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "closeSharedModal",
    value: function closeSharedModal() {
      this.setState({
        sharedConfigEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action, muteError) {
      var _this5 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          type = _this$state.type,
          prefix = _this$state.prefix,
          nextValue = _this$state.nextValue,
          maxValue = _this$state.maxValue,
          interval = _this$state.interval,
          magicRegen = _this$state.magicRegen,
          filter = _this$state.filter,
          scope = _this$state.scope,
          remoteBindDN = _this$state.remoteBindDN,
          remoteBindCred = _this$state.remoteBindCred,
          sharedConfigEntry = _this$state.sharedConfigEntry,
          threshold = _this$state.threshold,
          nextRange = _this$state.nextRange,
          rangeRequesTimeout = _this$state.rangeRequesTimeout;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, action, "--prefix", prefix || action == "add" ? prefix : "delete", "--next-value", nextValue || action == "add" ? nextValue : "delete", "--max-value", maxValue || action == "add" ? maxValue : "delete", "--interval", interval || action == "add" ? interval : "delete", "--magic-regen", magicRegen || action == "add" ? magicRegen : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete", "--remote-bind-dn", remoteBindDN || action == "add" ? remoteBindDN : "delete", "--remote-bind-cred", remoteBindCred || action == "add" ? remoteBindCred : "delete", "--shared-config-entry", sharedConfigEntry || action == "add" ? sharedConfigEntry : "delete", "--threshold", threshold || action == "add" ? threshold : "delete", "--next-range", nextRange || action == "add" ? nextRange : "delete", "--range-request-timeout", rangeRequesTimeout || action == "add" ? rangeRequesTimeout : "delete"]; // Delete attributes if the user set an empty value to the field

      if (!(action == "add" && type.length == 0)) {
        cmd = [].concat(_toConsumableArray(cmd), ["--type"]);

        if (type.length != 0) {
          var _iterator2 = _createForOfIteratorHelper(type),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var value = _step2.value;
              cmd = [].concat(_toConsumableArray(cmd), [value]);
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        } else if (action == "add") {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
        }
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("DNAOperation", "Do the ".concat(action, " operation on the DNA Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("DNAOperation", "Result", content);

        _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (muteError !== true) {
          _this5.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
        }

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this6 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("deleteConfig", "Delete the DNA Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this6.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this6.loadConfigs();

        _this6.closeModal();

        _this6.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this6.loadConfigs();

        _this6.closeModal();

        _this6.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig(muteError) {
      this.cmdOperation("add", muteError);
    }
  }, {
    key: "editConfig",
    value: function editConfig(muteError) {
      this.cmdOperation("set", muteError);
    }
  }, {
    key: "openSharedListModal",
    value: function openSharedListModal(sharedConfigEntry) {
      // Save the config entry that is being edited now
      if (this.state.newEntry) {
        this.addConfig(true);
      } else {
        this.editConfig(true);
      } // Get all of the sharedConfig entries located under the base DN


      this.loadSharedConfigs(sharedConfigEntry);
      this.setState({
        sharedConfigListModalShow: true
      });
    }
  }, {
    key: "closeSharedListModal",
    value: function closeSharedListModal() {
      this.setState({
        sharedConfigListModalShow: false
      });
    }
  }, {
    key: "openSharedModal",
    value: function openSharedModal(hostname, port) {
      var _this7 = this;

      if (hostname && port) {
        // Get all the attributes and matching rules now
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", hostname, port, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("openSharedModal", "Fetch the DNA Plugin shared config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this7.setState({
            sharedConfigEntryModalShow: true,
            newSharedEntry: false,
            sharedHostname: configEntry["dnahostname"] === undefined ? "" : configEntry["dnahostname"][0],
            sharedPort: configEntry["dnaportnum"] === undefined ? "" : configEntry["dnaportnum"][0],
            sharedSecurePort: configEntry["dnasecureportnum"] === undefined ? "" : configEntry["dnasecureportnum"][0],
            sharedRemainingValues: configEntry["dnaremainingvalues"] === undefined ? "" : configEntry["dnaremainingvalues"][0],
            sharedRemoteBindMethod: configEntry["dnaremotebindmethod"] === undefined ? "" : configEntry["dnaremotebindmethod"][0],
            sharedRemoteConnProtocol: configEntry["dnaremoteconnprotocol"] === undefined ? "" : configEntry["dnaremoteconnprotocol"][0]
          });

          _this7.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this7.setState({
            sharedConfigEntryModalShow: true,
            newSharedEntry: true,
            sharedBaseDN: "",
            sharedHostname: "",
            sharedPort: "",
            sharedSecurePort: "",
            sharedRemainingValues: "",
            sharedRemoteBindMethod: "",
            sharedRemoteConnProtocol: ""
          });

          _this7.props.toggleLoadingHandler();
        });
      } else {
        this.setState({
          sharedConfigEntryModalShow: true,
          newSharedEntry: true,
          sharedBaseDN: "",
          sharedHostname: "",
          sharedPort: "",
          sharedSecurePort: "",
          sharedRemainingValues: "",
          sharedRemoteBindMethod: "",
          sharedRemoteConnProtocol: ""
        });
      }
    }
  }, {
    key: "cmdSharedOperation",
    value: function cmdSharedOperation(action) {
      var _this8 = this;

      var _this$state2 = this.state,
          configName = _this$state2.configName,
          sharedHostname = _this$state2.sharedHostname,
          sharedPort = _this$state2.sharedPort,
          sharedSecurePort = _this$state2.sharedSecurePort,
          sharedRemainingValues = _this$state2.sharedRemainingValues,
          sharedRemoteBindMethod = _this$state2.sharedRemoteBindMethod,
          sharedRemoteConnProtocol = _this$state2.sharedRemoteConnProtocol;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, "shared-config-entry", sharedHostname, sharedPort, action, "--secure-port", sharedSecurePort || action == "add" ? sharedSecurePort : "delete", "--remote-bind-method", sharedRemoteBindMethod || action == "add" ? sharedRemoteBindMethod : "delete", "--remote-conn-protocol", sharedRemoteConnProtocol || action == "add" ? sharedRemoteConnProtocol : "delete", "--remaining-values", sharedRemainingValues || action == "add" ? sharedRemainingValues : "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("DNASharedOperation", "Do the ".concat(action, " operation on the DNA Plugin Shared Entry"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("DNASharedOperation", "Result", content);

        _this8.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(sharedHostname, ":").concat(sharedPort, "\" entry"));

        _this8.loadSharedConfigs(_this8.state.sharedConfigEntry);

        _this8.closeSharedModal();

        _this8.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this8.loadSharedConfigs(_this8.state.sharedConfigEntry);

        _this8.closeSharedModal();

        _this8.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteSharedConfig",
    value: function deleteSharedConfig(rowData) {
      var _this9 = this;

      var sharedHostname = rowData.dnahostname[0];
      var sharedPort = rowData.dnaportnum[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", sharedHostname, sharedPort, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("deleteSharedConfig", "Delete the DNA Plugin Shared config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteSharedConfig", "Result", content);

        _this9.props.addNotification("success", "Shared config entry ".concat(sharedHostname, " and ").concat(sharedPort, " was successfully deleted"));

        _this9.loadSharedConfigs(_this9.state.sharedConfigEntry);

        _this9.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Error during the shared config entry removal operation - ".concat(errMsg.desc));

        _this9.loadSharedConfigs(_this9.state.sharedConfigEntry);

        _this9.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addSharedConfig",
    value: function addSharedConfig() {
      this.cmdSharedOperation("add");
    }
  }, {
    key: "editSharedConfig",
    value: function editSharedConfig() {
      this.cmdSharedOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this10 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_8__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator3 = _createForOfIteratorHelper(attrContent["items"]),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _content = _step3.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this10.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this10.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var _this$state3 = this.state,
          sharedConfigRows = _this$state3.sharedConfigRows,
          configEntryModalShow = _this$state3.configEntryModalShow,
          configName = _this$state3.configName,
          newEntry = _this$state3.newEntry,
          type = _this$state3.type,
          sharedConfigEntry = _this$state3.sharedConfigEntry,
          sharedConfigListModalShow = _this$state3.sharedConfigListModalShow,
          sharedConfigEntryModalShow = _this$state3.sharedConfigEntryModalShow,
          sharedHostname = _this$state3.sharedHostname,
          sharedPort = _this$state3.sharedPort,
          newSharedEntry = _this$state3.newSharedEntry,
          attributes = _this$state3.attributes;
      var modalConfigFields = {
        prefix: {
          name: "Prefix",
          value: this.state.prefix,
          help: "Defines a prefix that can be prepended to the generated number values for the attribute (dnaPrefix)"
        },
        nextValue: {
          name: "Next Value",
          value: this.state.nextValue,
          help: "Gives the next available number which can be assigned (dnaNextValue)"
        },
        maxValue: {
          name: "Max Value",
          value: this.state.maxValue,
          help: "Sets the maximum value that can be assigned for the range (dnaMaxValue)"
        },
        interval: {
          name: "Interval",
          value: this.state.interval,
          help: "Sets an interval to use to increment through numbers in a range (dnaInterval)"
        },
        magicRegen: {
          name: "Magic Regen",
          value: this.state.magicRegen,
          help: "Sets a user-defined value that instructs the plug-in to assign a new value for the entry (dnaMagicRegen)"
        },
        filter: {
          name: "Filter",
          value: this.state.filter,
          help: "Sets an LDAP filter to use to search for and identify the entries to which to apply the distributed numeric assignment range (dnaFilter)"
        },
        scope: {
          name: "Scope",
          value: this.state.scope,
          help: "Sets the base DN to search for entries to which to apply the distributed numeric assignment (dnaScope)"
        },
        remoteBindDN: {
          name: "Remote Bind DN",
          value: this.state.remoteBindDN,
          help: "Specifies the Replication Manager DN (dnaRemoteBindDN)"
        },
        remoteBindCred: {
          name: "Remote Bind Credentials",
          value: this.state.remoteBindCred,
          help: "Specifies the Replication Manager's password (dnaRemoteBindCred)"
        },
        threshold: {
          name: "Threshold",
          value: this.state.threshold,
          help: "Sets a threshold of remaining available numbers in the range. When the server hits the threshold, it sends a request for a new range (dnaThreshold)"
        },
        nextRange: {
          name: "Next Range",
          value: this.state.nextRange,
          help: "Defines the next range to use when the current range is exhausted (dnaNextRange)"
        },
        rangeRequesTimeout: {
          name: "Range Request Timeout",
          value: this.state.rangeRequesTimeout,
          help: "Sets a timeout period, in seconds, for range requests so that the server does not stall waiting on a new range from one server and can request a range from a new server (dnaRangeRequestTimeout)"
        }
      };
      var modalSharedConfigFields = {
        sharedSecurePort: {
          name: "Secure Port",
          value: this.state.sharedSecurePort,
          help: "Gives the secure (TLS) port number to use to connect to the host identified in dnaHostname (dnaSecurePortNum)"
        },
        sharedRemainingValues: {
          name: "Remaining Values",
          value: this.state.sharedRemainingValues,
          help: "Specifies the remote bind method (dnaRemoteBindMethod)"
        },
        sharedRemoteBindMethod: {
          name: "Remote Bind Method",
          value: this.state.sharedRemoteBindMethod,
          help: "Specifies the remote connection protocol (dnaRemoteConnProtocol)"
        },
        sharedRemoteConnProtocol: {
          name: "Remote Connection Protocol",
          value: this.state.sharedRemoteConnProtocol,
          help: "Contains the number of values that are remaining and available to a server to assign to entries (dnaRemainingValues)"
        }
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " DNA Plugin Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configName",
        controlId: "configName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4
      }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedConfigEntry",
        controlId: "sharedConfigEntry"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Defines a shared identity that the servers can use to transfer ranges to one another (dnaSharedCfgDN)"
      }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: sharedConfigEntry,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.showConfirmSharedSave
      }, "Manage"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "type",
        controlId: "type"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets which attributes have unique numbers being generated for them (dnaType)"
      }, "Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this11.setState({
            type: value
          });
        },
        selected: type,
        options: attributes,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Type an attribute..."
      }))), Object.entries(modalConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 4,
          title: content.help
        }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this11.handleFieldChange
        })));
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: sharedConfigListModalShow,
        onHide: this.closeSharedListModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeSharedListModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "List DNA Plugin Shared Config Entries")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "DNA Config: "), " ", configName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Shared Config Base DN:"), " ", sharedConfigEntry)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__["DNASharedTable"], {
        rows: sharedConfigRows,
        editConfig: this.showEditSharedConfigModal,
        deleteConfig: this.deleteSharedConfig
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeSharedListModal
      }, "Close"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.showAddSharedConfigModal
      }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: sharedConfigEntryModalShow,
        onHide: this.closeSharedModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeSharedModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage DNA Plugin Shared Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedHostname",
        controlId: "sharedHostname"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Hostname")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: sharedHostname,
        onChange: this.handleFieldChange,
        disabled: !newSharedEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "sharedPort",
        controlId: "sharedPort"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], null, "Config Port")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: sharedPort,
        onChange: this.handleFieldChange,
        disabled: !newSharedEntry
      }))), Object.entries(modalSharedConfigFields).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            content = _ref4[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
          title: content.help
        }, content.name)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this11.handleFieldChange
        })));
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeSharedModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newSharedEntry ? this.addSharedConfig : this.editSharedConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Distributed Numeric Assignment Plugin",
        pluginName: "Distributed Numeric Assignment",
        cmdName: "dna",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_5__["DNATable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmSharedSave,
        closeHandler: this.closeConfirmSharedSave,
        actionFunc: this.openSharedListModal,
        actionParam: this.state.sharedConfigEntry,
        msg: "The current entry state will be saved to the directory. Also, make sure you've set the shared config entry area.",
        msgContent: "Are you ready to proceed?"
      }));
    }
  }]);

  return DNA;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

DNA.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func
};
DNA.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (DNA);

/***/ }),

/***/ "./src/lib/plugins/linkedAttributes.jsx":
/*!**********************************************!*\
  !*** ./src/lib/plugins/linkedAttributes.jsx ***!
  \**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var LinkedAttributes = /*#__PURE__*/function (_React$Component) {
  _inherits(LinkedAttributes, _React$Component);

  var _super = _createSuper(LinkedAttributes);

  _createClass(LinkedAttributes, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadConfigs();
        }
      }
    }
  }]);

  function LinkedAttributes(props) {
    var _this;

    _classCallCheck(this, LinkedAttributes);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      configRows: [],
      attributes: [],
      configName: "",
      linkType: [],
      managedType: [],
      linkScope: "",
      newEntry: false,
      showConfigModal: false,
      showConfirmDeleteConfig: false
    };
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_this));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(LinkedAttributes, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      }); // Get all the attributes and matching rules now

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadConfigs", "Get Linked Attributes Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          linkType: [],
          managedType: [],
          linkScope: ""
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Linked Attributes Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            linkType: configEntry["linktype"] === undefined ? [] : [configEntry["linktype"][0]],
            managedType: configEntry["managedtype"] === undefined ? [] : [configEntry["managedtype"][0]],
            linkScope: configEntry["linkscope"] === undefined ? "" : configEntry["linkscope"][0]
          });

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configName: "",
            linkType: [],
            managedType: [],
            linkScope: ""
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          linkType = _this$state.linkType,
          managedType = _this$state.managedType,
          linkScope = _this$state.linkScope;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", configName, action, "--link-scope", linkScope || action == "add" ? linkScope : "delete"];
      cmd = [].concat(_toConsumableArray(cmd), ["--link-type"]);

      if (linkType.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [linkType[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--managed-type"]);

      if (managedType.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [managedType[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("linkedAttributesOperation", "Do the ".concat(action, " operation on the Linked Attributes Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("linkedAttributesOperation", "Result", content);

        _this4.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this5 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Linked Attributes Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this6 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator = _createForOfIteratorHelper(attrContent["items"]),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _content = _step.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this6.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this7 = this;

      var _this$state2 = this.state,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configName = _this$state2.configName,
          linkType = _this$state2.linkType,
          managedType = _this$state2.managedType,
          linkScope = _this$state2.linkScope,
          newEntry = _this$state2.newEntry,
          attributes = _this$state2.attributes;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newEntry ? "Add" : "Edit", " Linked Attributes Plugin Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "The Linked Attributes configuration name"
      }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "linkType"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the attribute that is managed manually by administrators (linkType)"
      }, "Link Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this7.setState({
            linkType: value
          });
        },
        selected: linkType,
        options: attributes,
        newSelectionPrefix: "Add a managed attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "managedType"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the attribute that is created dynamically by the plugin (managedType)"
      }, "Managed Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this7.setState({
            managedType: value
          });
        },
        selected: managedType,
        options: attributes,
        newSelectionPrefix: "Add a dynamic attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "linkScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the base DN that restricts the plugin to a specific part of the directory tree (linkScope)"
      }, "Link Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: linkScope,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Linked Attributes",
        pluginName: "Linked Attributes",
        cmdName: "linked-attr",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["LinkedAttributesTable"], {
        rows: this.state.configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config")))));
    }
  }]);

  return LinkedAttributes;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

LinkedAttributes.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
LinkedAttributes.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (LinkedAttributes);

/***/ }),

/***/ "./src/lib/plugins/managedEntries.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/managedEntries.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var ManagedEntries = /*#__PURE__*/function (_React$Component) {
  _inherits(ManagedEntries, _React$Component);

  var _super = _createSuper(ManagedEntries);

  _createClass(ManagedEntries, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function ManagedEntries(props) {
    var _this;

    _classCallCheck(this, ManagedEntries);

    _this = _super.call(this, props);
    _this.state = {
      configArea: "",
      configRows: [],
      attributes: [],
      configName: "",
      originScope: "",
      originFilter: "",
      managedBase: "",
      managedTemplate: "",
      templateDN: "",
      templateRDNAttr: [],
      templateStaticAttr: [],
      templateMappedAttr: [],
      newConfigEntry: false,
      configEntryModalShow: false,
      newTemplateEntry: false,
      templateEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.loadConfigs = _this.loadConfigs.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.showEditConfigModal = _this.showEditConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddConfigModal = _this.showAddConfigModal.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    _this.openTemplateModal = _this.openTemplateModal.bind(_assertThisInitialized(_this));
    _this.closeTemplateModal = _this.closeTemplateModal.bind(_assertThisInitialized(_this));
    _this.cmdTemplateOperation = _this.cmdTemplateOperation.bind(_assertThisInitialized(_this));
    _this.deleteTemplate = _this.deleteTemplate.bind(_assertThisInitialized(_this));
    _this.addTemplate = _this.addTemplate.bind(_assertThisInitialized(_this));
    _this.editTemplate = _this.editTemplate.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ManagedEntries, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "loadConfigs",
    value: function loadConfigs() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "list", "configs"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadConfigs", "Get Managed Entries Plugin configs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          configRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "showEditConfigModal",
    value: function showEditConfigModal(rowData) {
      this.openModal(rowData.cn[0]);
    }
  }, {
    key: "showAddConfigModal",
    value: function showAddConfigModal(rowData) {
      this.openModal();
    }
  }, {
    key: "openModal",
    value: function openModal(name) {
      var _this3 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          configEntryModalShow: true,
          newConfigEntry: true,
          configName: "",
          originScope: "",
          originFilter: "",
          managedBase: "",
          managedTemplate: ""
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the Managed Entries Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newConfigEntry: false,
            configName: configEntry["cn"] === undefined ? "" : configEntry["cn"][0],
            originScope: configEntry["originscope"] === undefined ? "" : configEntry["originscope"][0],
            originFilter: configEntry["originfilter"] === undefined ? "" : configEntry["originfilter"][0],
            managedBase: configEntry["managedbase"] === undefined ? "" : configEntry["managedbase"][0],
            managedTemplate: configEntry["managedtemplate"] === undefined ? "" : configEntry["managedtemplate"][0]
          });

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newConfigEntry: true,
            configName: "",
            originScope: "",
            originFilter: "",
            managedBase: "",
            managedTemplate: ""
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig(rowData) {
      var _this4 = this;

      var configName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", configName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Managed Entries Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(configName, " was successfully deleted"));

        _this4.loadConfigs();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.loadConfigs();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this5 = this;

      var _this$state = this.state,
          configName = _this$state.configName,
          originScope = _this$state.originScope,
          originFilter = _this$state.originFilter,
          managedBase = _this$state.managedBase,
          managedTemplate = _this$state.managedTemplate;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", configName, action, "--scope", originScope || action == "add" ? originScope : "delete", "--filter", originFilter || action == "add" ? originFilter : "delete", "--managed-base", managedBase || action == "add" ? managedBase : "delete", "--managed-template", managedTemplate || action == "add" ? managedTemplate : "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("cmdOperation", "Do the ".concat(action, " operation on the Managed Entries Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("cmdOperation", "Result", content);

        _this5.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this5.loadConfigs();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Managed Entries";
        });
        this.setState({
          configArea: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0]
        });
        this.loadConfigs();
      }
    }
  }, {
    key: "openTemplateModal",
    value: function openTemplateModal() {
      var _this6 = this;

      this.getAttributes();

      if (!this.state.managedTemplate) {
        this.setState({
          templateEntryModalShow: true,
          newTemplateEntry: true,
          templateDN: "",
          templateRDNAttr: [],
          templateStaticAttr: [],
          templateMappedAttr: []
        });
      } else {
        var templateMappedAttrObjectList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", this.state.managedTemplate, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openTemplateModal", "Fetch the Managed Entries Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this6.setState({
            templateEntryModalShow: true,
            newTemplateEntry: false,
            templateDN: _this6.state.managedTemplate,
            templateRDNAttr: configEntry["meprdnattr"] === undefined ? [] : [configEntry["meprdnattr"][0]],
            templateStaticAttr: configEntry["mepstaticattr"] === undefined ? [] : [configEntry["mepstaticattr"][0]]
          });

          if (configEntry["mepmappedattr"] === undefined) {
            _this6.setState({
              templateMappedAttr: []
            });
          } else {
            var _iterator = _createForOfIteratorHelper(configEntry["mepmappedattr"]),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var value = _step.value;
                templateMappedAttrObjectList = [].concat(_toConsumableArray(templateMappedAttrObjectList), [value]);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            _this6.setState({
              templateMappedAttr: templateMappedAttrObjectList
            });
          }

          _this6.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this6.setState({
            templateEntryModalShow: true,
            newTemplateEntry: true,
            templateDN: _this6.state.managedTemplate,
            templateRDNAttr: [],
            templateStaticAttr: [],
            templateMappedAttr: []
          });

          _this6.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeTemplateModal",
    value: function closeTemplateModal() {
      this.setState({
        templateEntryModalShow: false
      });
    }
  }, {
    key: "cmdTemplateOperation",
    value: function cmdTemplateOperation(action) {
      var _this7 = this;

      var _this$state2 = this.state,
          templateDN = _this$state2.templateDN,
          templateRDNAttr = _this$state2.templateRDNAttr,
          templateStaticAttr = _this$state2.templateStaticAttr,
          templateMappedAttr = _this$state2.templateMappedAttr;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, action];
      cmd = [].concat(_toConsumableArray(cmd), ["--rdn-attr"]);

      if (templateRDNAttr.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [templateRDNAttr[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--static-attr"]);

      if (templateStaticAttr.length != 0) {
        cmd = [].concat(_toConsumableArray(cmd), [templateStaticAttr[0]]);
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--mapped-attr"]);

      if (templateMappedAttr.length != 0) {
        var _iterator2 = _createForOfIteratorHelper(templateMappedAttr),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var value = _step2.value;
            cmd = [].concat(_toConsumableArray(cmd), [value]);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("managedEntriesOperation", "Do the ".concat(action, " operation on the Managed Entries Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("managedEntriesOperation", "Result", content);

        _this7.props.addNotification("success", "Config entry ".concat(templateDN, " was successfully ").concat(action, "ed"));

        _this7.closeTemplateModal();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this7.closeTemplateModal();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteTemplate",
    value: function deleteTemplate() {
      var _this8 = this;

      var templateDN = this.state.templateDN;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteConfig", "Delete the Managed Entries Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this8.props.addNotification("success", "Config entry ".concat(templateDN, " was successfully deleted"));

        _this8.closeTemplateModal();

        _this8.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this8.closeTemplateModal();

        _this8.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addTemplate",
    value: function addTemplate() {
      this.cmdTemplateOperation("add");
    }
  }, {
    key: "editTemplate",
    value: function editTemplate() {
      this.cmdTemplateOperation("set");
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this9 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator3 = _createForOfIteratorHelper(attrContent["items"]),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _content = _step3.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this9.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this10 = this;

      var _this$state3 = this.state,
          configArea = _this$state3.configArea,
          configRows = _this$state3.configRows,
          attributes = _this$state3.attributes,
          configName = _this$state3.configName,
          originScope = _this$state3.originScope,
          originFilter = _this$state3.originFilter,
          managedBase = _this$state3.managedBase,
          managedTemplate = _this$state3.managedTemplate,
          templateDN = _this$state3.templateDN,
          templateRDNAttr = _this$state3.templateRDNAttr,
          templateStaticAttr = _this$state3.templateStaticAttr,
          templateMappedAttr = _this$state3.templateMappedAttr,
          newConfigEntry = _this$state3.newConfigEntry,
          configEntryModalShow = _this$state3.configEntryModalShow,
          newTemplateEntry = _this$state3.newTemplateEntry,
          templateEntryModalShow = _this$state3.templateEntryModalShow;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "set", "--config-area", configArea || "delete"];
      var modalConfigFields = {
        originScope: {
          name: "Scope",
          value: originScope,
          help: "Sets the search base DN to use to see which entries the plug-in monitors (originScope)"
        },
        originFilter: {
          name: "Filter",
          value: originFilter,
          help: "Sets the search filter to use to search for and identify the entries within the subtree which require a managed entry (originFilter)"
        },
        managedBase: {
          name: "Managed Base",
          value: managedBase,
          help: "Sets the subtree under which to create the managed entries (managedBase)"
        }
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newConfigEntry ? "Add" : "Edit", " Managed Entries Plugin Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configName",
        controlId: "configName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: configName,
        onChange: this.handleFieldChange,
        disabled: !newConfigEntry
      }))), Object.entries(modalConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3,
          title: content.help
        }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "managedTemplate",
        controlId: "managedTemplate"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Identifies the template entry to use to create the managed entry (managedTemplate)"
      }, "Managed Template"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: managedTemplate,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openTemplateModal
      }, "Manage"))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newConfigEntry ? this.addConfig : this.editConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: templateEntryModalShow,
        onHide: this.closeTemplateModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeTemplateModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Handle Managed Entries Plugin Template Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "templateDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "DN of the template entry"
      }, "Template DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: templateDN,
        onChange: this.handleFieldChange,
        disabled: !newTemplateEntry
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateRDNAttr",
        controlId: "templateRDNAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets which attribute to use as the naming attribute in the automatically-generated entry (mepRDNAttr)"
      }, "RDN Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateRDNAttr: value
          });
        },
        selected: templateRDNAttr,
        options: attributes,
        newSelectionPrefix: "Add a RDN attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateStaticAttr",
        controlId: "templateStaticAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets an attribute with a defined value that must be added to the automatically-generated entry (mepStaticAttr)"
      }, "Static Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateStaticAttr: value
          });
        },
        selected: templateStaticAttr,
        options: attributes,
        newSelectionPrefix: "Add a static attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "templateMappedAttr",
        controlId: "templateMappedAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 4,
        title: "Sets attributes in the Managed Entries template entry which must exist in the generated entry (mepMappedAttr)"
      }, "Mapped Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this10.setState({
            templateMappedAttr: value
          });
        },
        selected: templateMappedAttr,
        options: attributes,
        newSelectionPrefix: "Add a mapped attribute: ",
        placeholder: "Type an attribute..."
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeTemplateModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteTemplate,
        disabled: newTemplateEntry
      }, "Delete"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editTemplate,
        disabled: newTemplateEntry
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addTemplate,
        disabled: !newTemplateEntry
      }, "Add")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Managed Entries",
        pluginName: "Managed Entries",
        cmdName: "managed-entries",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configArea",
        controlId: "configArea"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "DN of the shared config entry (nsslapd-pluginConfigArea)"
      }, "Shared Config Area"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configArea,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["ManagedEntriesTable"], {
        rows: configRows,
        editConfig: this.showEditConfigModal,
        deleteConfig: this.deleteConfig
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddConfigModal
      }, "Add Config"))));
    }
  }]);

  return ManagedEntries;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

ManagedEntries.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ManagedEntries.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ManagedEntries);

/***/ }),

/***/ "./src/lib/plugins/memberOf.jsx":
/*!**************************************!*\
  !*** ./src/lib/plugins/memberOf.jsx ***!
  \**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var MemberOf = /*#__PURE__*/function (_React$Component) {
  _inherits(MemberOf, _React$Component);

  var _super = _createSuper(MemberOf);

  _createClass(MemberOf, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.getObjectClasses();
          this.getAttributes();
          this.updateFields();
        }
      }
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function MemberOf(props) {
    var _this;

    _classCallCheck(this, MemberOf);

    _this = _super.call(this, props);
    _this.getObjectClasses = _this.getObjectClasses.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    _this.runFixup = _this.runFixup.bind(_assertThisInitialized(_this));
    _this.toggleFixupModal = _this.toggleFixupModal.bind(_assertThisInitialized(_this));
    _this.state = {
      firstLoad: true,
      objectClasses: [],
      attributeTypes: [],
      memberOfAttr: [],
      memberOfGroupAttr: [],
      memberOfEntryScope: "",
      memberOfEntryScopeExcludeSubtree: "",
      memberOfAutoAddOC: [],
      memberOfAllBackends: false,
      memberOfSkipNested: false,
      memberOfConfigEntry: "",
      configEntryModalShow: false,
      fixupModalShow: false,
      configDN: "",
      configAttr: [],
      configGroupAttr: [],
      configEntryScope: "",
      configEntryScopeExcludeSubtree: "",
      configAutoAddOC: [],
      configAllBackends: false,
      configSkipNested: false,
      newEntry: true,
      fixupDN: "",
      fixupFilter: ""
    };
    return _this;
  }

  _createClass(MemberOf, [{
    key: "toggleFixupModal",
    value: function toggleFixupModal() {
      this.setState(function (prevState) {
        return {
          fixupModalShow: !prevState.fixupModalShow,
          fixupDN: "",
          fixupFilter: ""
        };
      });
    }
  }, {
    key: "runFixup",
    value: function runFixup() {
      var _this2 = this;

      if (!this.state.fixupDN) {
        this.props.addNotification("warning", "Fixup DN is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "fixup", this.state.fixupDN];

        if (this.state.fixupFilter) {
          cmd = [].concat(_toConsumableArray(cmd), ["--filter", this.state.fixupFilter]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("runFixup", "Run fixup MemberOf Plugin ", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.props.addNotification("success", "Fixup task for ".concat(_this2.state.fixupDN, " was successfull"));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.addNotification("error", "Fixup task for ".concat(_this2.state.fixupDN, " has failed ").concat(errMsg.desc));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        });
      }
    }
  }, {
    key: "openModal",
    value: function openModal() {
      var _this3 = this;

      this.getObjectClasses();
      this.getAttributes();

      if (!this.state.memberOfConfigEntry) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          configAttr: [],
          configGroupAttr: [],
          configEntryScope: "",
          configEntryScopeExcludeSubtree: "",
          configAutoAddOC: [],
          configAllBackends: false,
          configSkipNested: false
        });
      } else {
        var configAttrObjectList = [];
        var configGroupAttrObjectList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "show", this.state.memberOfConfigEntry];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openMemberOfModal", "Fetch the MemberOf Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var configEntry = JSON.parse(content).attrs;

          _this3.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this3.state.memberOfConfigEntry,
            configAutoAddOC: configEntry["memberofautoaddoc"] === undefined ? [] : [configEntry["memberofautoaddoc"][0]],
            configAllBackends: !(configEntry["memberofallbackends"] === undefined || configEntry["memberofallbackends"][0] == "off"),
            configSkipNested: !(configEntry["memberofskipnested"] === undefined || configEntry["memberofskipnested"][0] == "off"),
            configConfigEntry: configEntry["nsslapd-pluginConfigArea"] === undefined ? "" : configEntry["nsslapd-pluginConfigArea"][0],
            configEntryScope: configEntry["memberofentryscope"] === undefined ? "" : configEntry["memberofentryscope"][0],
            configEntryScopeExcludeSubtree: configEntry["memberofentryscopeexcludesubtree"] === undefined ? "" : configEntry["memberofentryscopeexcludesubtree"][0]
          });

          if (configEntry["memberofattr"] === undefined) {
            _this3.setState({
              configAttr: []
            });
          } else {
            var _iterator = _createForOfIteratorHelper(configEntry["memberofattr"]),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var value = _step.value;
                configAttrObjectList = [].concat(_toConsumableArray(configAttrObjectList), [value]);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            _this3.setState({
              configAttr: configAttrObjectList
            });
          }

          if (configEntry["memberofgroupattr"] === undefined) {
            _this3.setState({
              configGroupAttr: []
            });
          } else {
            var _iterator2 = _createForOfIteratorHelper(configEntry["memberofgroupattr"]),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var _value = _step2.value;
                configGroupAttrObjectList = [].concat(_toConsumableArray(configGroupAttrObjectList), [_value]);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }

            _this3.setState({
              configGroupAttr: configGroupAttrObjectList
            });
          }

          _this3.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this3.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this3.state.memberOfConfigEntry,
            configAttr: [],
            configGroupAttr: [],
            configEntryScope: "",
            configEntryScopeExcludeSubtree: "",
            configAutoAddOC: [],
            configAllBackends: false,
            configSkipNested: false
          });

          _this3.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this4 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          configAttr = _this$state.configAttr,
          configGroupAttr = _this$state.configGroupAttr,
          configEntryScope = _this$state.configEntryScope,
          configEntryScopeExcludeSubtree = _this$state.configEntryScopeExcludeSubtree,
          configAutoAddOC = _this$state.configAutoAddOC,
          configAllBackends = _this$state.configAllBackends,
          configSkipNested = _this$state.configSkipNested;

      if (configAttr.length == 0 || configGroupAttr.length == 0) {
        this.props.addNotification("warning", "Config Attribute and Group Attribute are required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", action, configDN, "--scope", configEntryScope || action == "add" ? configEntryScope : "delete", "--exclude", configEntryScopeExcludeSubtree || action == "add" ? configEntryScopeExcludeSubtree : "delete", "--allbackends", configAllBackends ? "on" : "off", "--skipnested", configSkipNested ? "on" : "off"];
        cmd = [].concat(_toConsumableArray(cmd), ["--autoaddoc"]);

        if (configAutoAddOC.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), [configAutoAddOC[0]]);
        } else if (action == "add") {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
        } // Delete attributes if the user set an empty value to the field


        cmd = [].concat(_toConsumableArray(cmd), ["--attr"]);

        if (configAttr.length != 0) {
          var _iterator3 = _createForOfIteratorHelper(configAttr),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var value = _step3.value;
              cmd = [].concat(_toConsumableArray(cmd), [value]);
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }
        }

        cmd = [].concat(_toConsumableArray(cmd), ["--groupattr"]);

        if (configGroupAttr.length != 0) {
          var _iterator4 = _createForOfIteratorHelper(configGroupAttr),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var _value2 = _step4.value;
              cmd = [].concat(_toConsumableArray(cmd), [_value2]);
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("memberOfOperation", "Do the ".concat(action, " operation on the MemberOf Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("memberOfOperation", "Result", content);

          _this4.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

          _this4.props.pluginListHandler();

          _this4.closeModal();

          _this4.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this4.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

          _this4.props.pluginListHandler();

          _this4.closeModal();

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the MemberOf Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this5.props.addNotification("success", "Config entry ".concat(_this5.state.configDN, " was successfully deleted"));

        _this5.props.pluginListHandler();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this5.props.pluginListHandler();

        _this5.closeModal();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var memberOfAttrObjectList = [];
      var memberOfGroupAttrObjectList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "MemberOf Plugin";
        });
        this.setState({
          memberOfAutoAddOC: pluginRow["memberofautoaddoc"] === undefined ? [] : [pluginRow["memberofautoaddoc"][0]],
          memberOfAllBackends: !(pluginRow["memberofallbackends"] === undefined || pluginRow["memberofallbackends"][0] == "off"),
          memberOfSkipNested: !(pluginRow["memberofskipnested"] === undefined || pluginRow["memberofskipnested"][0] == "off"),
          memberOfConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
          memberOfEntryScope: pluginRow["memberofentryscope"] === undefined ? "" : pluginRow["memberofentryscope"][0],
          memberOfEntryScopeExcludeSubtree: pluginRow["memberofentryscopeexcludesubtree"] === undefined ? "" : pluginRow["memberofentryscopeexcludesubtree"][0]
        });

        if (pluginRow["memberofattr"] === undefined) {
          this.setState({
            memberOfAttr: []
          });
        } else {
          var _iterator5 = _createForOfIteratorHelper(pluginRow["memberofattr"]),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var value = _step5.value;
              memberOfAttrObjectList = [].concat(_toConsumableArray(memberOfAttrObjectList), [value]);
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          this.setState({
            memberOfAttr: memberOfAttrObjectList
          });
        }

        if (pluginRow["memberofgroupattr"] === undefined) {
          this.setState({
            memberOfGroupAttr: []
          });
        } else {
          var _iterator6 = _createForOfIteratorHelper(pluginRow["memberofgroupattr"]),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var _value3 = _step6.value;
              memberOfGroupAttrObjectList = [].concat(_toConsumableArray(memberOfGroupAttrObjectList), [_value3]);
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }

          this.setState({
            memberOfGroupAttr: memberOfGroupAttrObjectList
          });
        }
      }
    }
  }, {
    key: "getObjectClasses",
    value: function getObjectClasses() {
      var _this6 = this;

      this.setState({
        firstLoad: false
      });
      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getObjectClasses", "Get objectClasses", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var ocContent = JSON.parse(content);
        var ocs = [];

        var _iterator7 = _createForOfIteratorHelper(ocContent["items"]),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _content = _step7.value;
            ocs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        _this6.setState({
          objectClasses: ocs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to get objectClasses - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this7 = this;

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get getAttributes", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var atContent = JSON.parse(content);
        var attrs = [];

        var _iterator8 = _createForOfIteratorHelper(atContent["items"]),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var _content2 = _step8.value;
            attrs.push(_content2.name[0]);
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }

        _this7.setState({
          attributeTypes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var _this$state2 = this.state,
          objectClasses = _this$state2.objectClasses,
          attributeTypes = _this$state2.attributeTypes,
          memberOfAttr = _this$state2.memberOfAttr,
          memberOfGroupAttr = _this$state2.memberOfGroupAttr,
          memberOfEntryScope = _this$state2.memberOfEntryScope,
          memberOfEntryScopeExcludeSubtree = _this$state2.memberOfEntryScopeExcludeSubtree,
          memberOfAutoAddOC = _this$state2.memberOfAutoAddOC,
          memberOfAllBackends = _this$state2.memberOfAllBackends,
          memberOfSkipNested = _this$state2.memberOfSkipNested,
          memberOfConfigEntry = _this$state2.memberOfConfigEntry,
          configDN = _this$state2.configDN,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configAttr = _this$state2.configAttr,
          configGroupAttr = _this$state2.configGroupAttr,
          configEntryScope = _this$state2.configEntryScope,
          configEntryScopeExcludeSubtree = _this$state2.configEntryScopeExcludeSubtree,
          configAutoAddOC = _this$state2.configAutoAddOC,
          configAllBackends = _this$state2.configAllBackends,
          configSkipNested = _this$state2.configSkipNested,
          newEntry = _this$state2.newEntry,
          fixupModalShow = _this$state2.fixupModalShow,
          fixupDN = _this$state2.fixupDN,
          fixupFilter = _this$state2.fixupFilter;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "set", "--scope", memberOfEntryScope || "delete", "--exclude", memberOfEntryScopeExcludeSubtree || "delete", "--config-entry", memberOfConfigEntry || "delete", "--allbackends", memberOfAllBackends ? "on" : "off", "--skipnested", memberOfSkipNested ? "on" : "off"];
      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--autoaddoc"]);

      if (memberOfAutoAddOC.length != 0) {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [memberOfAutoAddOC[0]]);
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      } // Delete attributes if the user set an empty value to the field


      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--attr"]);

      if (memberOfAttr.length != 0) {
        var _iterator9 = _createForOfIteratorHelper(memberOfAttr),
            _step9;

        try {
          for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
            var value = _step9.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [value]);
          }
        } catch (err) {
          _iterator9.e(err);
        } finally {
          _iterator9.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--groupattr"]);

      if (memberOfGroupAttr.length != 0) {
        var _iterator10 = _createForOfIteratorHelper(memberOfGroupAttr),
            _step10;

        try {
          for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
            var _value4 = _step10.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [_value4]);
          }
        } catch (err) {
          _iterator10.e(err);
        } finally {
          _iterator10.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: fixupModalShow,
        onHide: this.toggleFixupModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleFixupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Fixup MemberOf Task")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupDN",
        key: "fixupDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Base DN that contains entries to fix up"
      }, "Base DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupDN,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupFilter",
        key: "fixupFilter"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Filter for entries to fix up. If omitted, all entries with objectclass inetuser/inetadmin/nsmemberof under the specified base will have their memberOf attribute regenerated."
      }, "Filter DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupFilter,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleFixupModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runFixup
      }, "Run")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage MemberOf Plugin Shared Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The config entry full DN"
      }, "Config DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configAttr",
        controlId: "configAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
      }, "Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            configAttr: values
          });
        },
        selected: configAttr,
        newSelectionPrefix: "Add a member: ",
        options: ["memberOf"],
        placeholder: "Type a member attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configGroupAttr",
        controlId: "configGroupAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
      }, "Group Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            configGroupAttr: values
          });
        },
        selected: configGroupAttr,
        newSelectionPrefix: "Add a group member attribute: ",
        options: attributeTypes,
        placeholder: "Type a member group attribute..."
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScope",
        controlId: "configEntryScope",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
      }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScope,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "configAllBackends",
        checked: configAllBackends,
        onChange: this.handleCheckboxChange,
        title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)"
      }, "All Backends"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScopeExcludeSubtree",
        controlId: "configEntryScopeExcludeSubtree",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
      }, "Entry Scope Exclude Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScopeExcludeSubtree,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "configSkipNested",
        checked: configSkipNested,
        onChange: this.handleCheckboxChange,
        title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)"
      }, "Skip Nested")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configAutoAddOC",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
      }, "Auto Add OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            configAutoAddOC: value
          });
        },
        selected: configAutoAddOC,
        options: objectClasses,
        newSelectionPrefix: "Add a memberOf objectClass: ",
        placeholder: "Type an objectClass..."
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "MemberOf Plugin",
        pluginName: "MemberOf",
        cmdName: "memberof",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfAttr",
        controlId: "memberOfAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
      }, "Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            memberOfAttr: values
          });
        },
        selected: memberOfAttr,
        newSelectionPrefix: "Add a member attrbiute: ",
        options: ["member", "memberCertificate", "uniqueMember"],
        placeholder: "Type a member attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfGroupAttr",
        controlId: "memberOfGroupAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
      }, "Group Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this8.setState({
            memberOfGroupAttr: values
          });
        },
        selected: memberOfGroupAttr,
        newSelectionPrefix: "Add a group member attribute: ",
        options: attributeTypes,
        placeholder: "Type a member group attribute..."
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfEntryScope",
        controlId: "memberOfEntryScope",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
      }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfEntryScope,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "memberOfAllBackends",
        checked: memberOfAllBackends,
        onChange: this.handleCheckboxChange,
        title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)"
      }, "All Backends"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfEntryScopeExcludeSubtree",
        controlId: "memberOfEntryScopeExcludeSubtree",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
      }, "Entry Scope Exclude Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfEntryScopeExcludeSubtree,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "memberOfSkipNested",
        checked: memberOfSkipNested,
        onChange: this.handleCheckboxChange,
        title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)"
      }, "Skip Nested")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "memberOfConfigEntry",
        controlId: "memberOfConfigEntry"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "The value to set as nsslapd-pluginConfigArea"
      }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: memberOfConfigEntry,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "memberOfAutoAddOC",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
      }, "Auto Add OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this8.setState({
            memberOfAutoAddOC: value
          });
        },
        selected: memberOfAutoAddOC,
        options: objectClasses,
        newSelectionPrefix: "Add a memberOf objectClass: ",
        placeholder: "Type an objectClass..."
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.toggleFixupModal
      }, "Run Fixup Task")))));
    }
  }]);

  return MemberOf;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

MemberOf.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
MemberOf.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (MemberOf);

/***/ }),

/***/ "./src/lib/plugins/passthroughAuthentication.jsx":
/*!*******************************************************!*\
  !*** ./src/lib/plugins/passthroughAuthentication.jsx ***!
  \*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }










var PassthroughAuthentication = /*#__PURE__*/function (_React$Component) {
  _inherits(PassthroughAuthentication, _React$Component);

  var _super = _createSuper(PassthroughAuthentication);

  _createClass(PassthroughAuthentication, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadPAMConfigs();
          this.loadURLs();
        }
      }
    }
  }]);

  function PassthroughAuthentication(props) {
    var _this;

    _classCallCheck(this, PassthroughAuthentication);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      pamConfigRows: [],
      urlRows: [],
      attributes: [],
      pamConfigName: "",
      pamExcludeSuffix: [],
      pamIncludeSuffix: [],
      pamMissingSuffix: "",
      pamFilter: "",
      pamIDAttr: [],
      pamIDMapMethod: "",
      pamFallback: false,
      pamSecure: false,
      pamService: "",
      oldURL: "",
      urlConnType: "ldap",
      urlAuthDS: "",
      urlSubtree: "",
      urlMaxConns: "3",
      urlMaxOps: "5",
      urlTimeout: "300",
      urlLDVer: "3",
      urlConnLifeTime: "300",
      urlStartTLS: false,
      newPAMConfigEntry: false,
      newURLEntry: false,
      pamConfigEntryModalShow: false,
      urlEntryModalShow: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    _this.loadPAMConfigs = _this.loadPAMConfigs.bind(_assertThisInitialized(_this));
    _this.loadURLs = _this.loadURLs.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.openPAMModal = _this.openPAMModal.bind(_assertThisInitialized(_this));
    _this.closePAMModal = _this.closePAMModal.bind(_assertThisInitialized(_this));
    _this.showEditPAMConfigModal = _this.showEditPAMConfigModal.bind(_assertThisInitialized(_this));
    _this.showAddPAMConfigModal = _this.showAddPAMConfigModal.bind(_assertThisInitialized(_this));
    _this.cmdPAMOperation = _this.cmdPAMOperation.bind(_assertThisInitialized(_this));
    _this.deletePAMConfig = _this.deletePAMConfig.bind(_assertThisInitialized(_this));
    _this.addPAMConfig = _this.addPAMConfig.bind(_assertThisInitialized(_this));
    _this.editPAMConfig = _this.editPAMConfig.bind(_assertThisInitialized(_this));
    _this.openURLModal = _this.openURLModal.bind(_assertThisInitialized(_this));
    _this.closeURLModal = _this.closeURLModal.bind(_assertThisInitialized(_this));
    _this.showEditURLModal = _this.showEditURLModal.bind(_assertThisInitialized(_this));
    _this.showAddURLModal = _this.showAddURLModal.bind(_assertThisInitialized(_this));
    _this.cmdURLOperation = _this.cmdURLOperation.bind(_assertThisInitialized(_this));
    _this.deleteURL = _this.deleteURL.bind(_assertThisInitialized(_this));
    _this.addURL = _this.addURL.bind(_assertThisInitialized(_this));
    _this.editURL = _this.editURL.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(PassthroughAuthentication, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "loadPAMConfigs",
    value: function loadPAMConfigs() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "pam-configs"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadPAMConfigs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          pamConfigRows: myObject.items.map(function (item) {
            return JSON.parse(item).attrs;
          })
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadPAMConfigs failed", errMsg.desc);
        }
      });
    }
  }, {
    key: "loadURLs",
    value: function loadURLs() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "urls"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("loadURLs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this3.setState({
          urlRows: myObject.items
        });

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadURLs failed", errMsg.desc);
        }

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditPAMConfigModal",
    value: function showEditPAMConfigModal(rowData) {
      this.openPAMModal(rowData.cn[0]);
    }
  }, {
    key: "showAddPAMConfigModal",
    value: function showAddPAMConfigModal(rowData) {
      this.openPAMModal();
    }
  }, {
    key: "openPAMModal",
    value: function openPAMModal(name) {
      var _this4 = this;

      this.getAttributes();

      if (!name) {
        this.setState({
          pamConfigEntryModalShow: true,
          newPAMConfigEntry: true,
          pamConfigName: "",
          pamExcludeSuffix: [],
          pamIncludeSuffix: [],
          pamMissingSuffix: "",
          pamFilter: "",
          pamIDAttr: [],
          pamIDMapMethod: "",
          pamFallback: false,
          pamSecure: false,
          pamService: ""
        });
      } else {
        var pamExcludeSuffixList = [];
        var pamIncludeSuffixList = [];
        var pamIDAttrList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", name, "show"];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("openModal", "Fetch the PAM Passthough Authentication Plugin pamConfig entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var pamConfigEntry = JSON.parse(content).attrs;

          _this4.setState({
            pamConfigEntryModalShow: true,
            newPAMConfigEntry: false,
            pamConfigName: pamConfigEntry["cn"] === undefined ? "" : pamConfigEntry["cn"][0],
            pamMissingSuffix: pamConfigEntry["pammissingsuffix"] === undefined ? "" : pamConfigEntry["pammissingsuffix"][0],
            pamFilter: pamConfigEntry["pamfilter"] === undefined ? "" : pamConfigEntry["pamfilter"][0],
            pamIDMapMethod: pamConfigEntry["pamidmapmethod"] === undefined ? "" : pamConfigEntry["pamidmapmethod"][0],
            pamFallback: !(pamConfigEntry["pamfallback"] === undefined || pamConfigEntry["pamfallback"][0] == "FALSE"),
            pamSecure: !(pamConfigEntry["pamsecure"] === undefined || pamConfigEntry["pamsecure"][0] == "FALSE"),
            pamService: pamConfigEntry["pamservice"] === undefined ? "" : pamConfigEntry["pamservice"][0]
          });

          if (pamConfigEntry["pamexcludesuffix"] === undefined) {
            _this4.setState({
              pamExcludeSuffix: []
            });
          } else {
            var _iterator = _createForOfIteratorHelper(pamConfigEntry["pamexcludesuffix"]),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var value = _step.value;
                pamExcludeSuffixList = [].concat(_toConsumableArray(pamExcludeSuffixList), [value]);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            _this4.setState({
              pamExcludeSuffix: pamExcludeSuffixList
            });
          }

          if (pamConfigEntry["pamincludesuffix"] === undefined) {
            _this4.setState({
              pamIncludeSuffix: []
            });
          } else {
            var _iterator2 = _createForOfIteratorHelper(pamConfigEntry["pamincludesuffix"]),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var _value = _step2.value;
                pamIncludeSuffixList = [].concat(_toConsumableArray(pamIncludeSuffixList), [_value]);
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }

            _this4.setState({
              pamIncludeSuffix: pamIncludeSuffixList
            });
          }

          if (pamConfigEntry["pamidattr"] === undefined) {
            _this4.setState({
              pamIDAttr: []
            });
          } else {
            var _iterator3 = _createForOfIteratorHelper(pamConfigEntry["pamidattr"]),
                _step3;

            try {
              for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                var _value2 = _step3.value;
                pamIDAttrList = [].concat(_toConsumableArray(pamIDAttrList), [_value2]);
              }
            } catch (err) {
              _iterator3.e(err);
            } finally {
              _iterator3.f();
            }

            _this4.setState({
              pamIDAttr: pamIDAttrList
            });
          }

          _this4.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this4.setState({
            pamConfigEntryModalShow: true,
            newPAMConfigEntry: true,
            pamConfigName: "",
            pamExcludeSuffix: [],
            pamIncludeSuffix: [],
            pamMissingSuffix: "",
            pamFilter: "",
            pamIDAttr: [],
            pamIDMapMethod: "",
            pamFallback: false,
            pamSecure: false,
            pamService: ""
          });

          _this4.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closePAMModal",
    value: function closePAMModal() {
      this.setState({
        pamConfigEntryModalShow: false
      });
    }
  }, {
    key: "deletePAMConfig",
    value: function deletePAMConfig(rowData) {
      var _this5 = this;

      var pamConfigName = rowData.cn[0];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", pamConfigName, "delete"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deletePAMConfig", "Delete the PAM Passthough Authentication Plugin pamConfig entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deletePAMConfig", "Result", content);

        _this5.props.addNotification("success", "PAMConfig entry ".concat(pamConfigName, " was successfully deleted"));

        _this5.loadPAMConfigs();

        _this5.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during the pamConfig entry removal operation - ".concat(errMsg.desc));

        _this5.loadPAMConfigs();

        _this5.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addPAMConfig",
    value: function addPAMConfig() {
      this.cmdPAMOperation("add");
    }
  }, {
    key: "editPAMConfig",
    value: function editPAMConfig() {
      this.cmdPAMOperation("set");
    }
  }, {
    key: "cmdPAMOperation",
    value: function cmdPAMOperation(action) {
      var _this6 = this;

      // Save table here too
      var _this$state = this.state,
          pamConfigName = _this$state.pamConfigName,
          pamExcludeSuffix = _this$state.pamExcludeSuffix,
          pamIncludeSuffix = _this$state.pamIncludeSuffix,
          pamMissingSuffix = _this$state.pamMissingSuffix,
          pamFilter = _this$state.pamFilter,
          pamIDAttr = _this$state.pamIDAttr,
          pamIDMapMethod = _this$state.pamIDMapMethod,
          pamFallback = _this$state.pamFallback,
          pamSecure = _this$state.pamSecure,
          pamService = _this$state.pamService;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", pamConfigName, action, "--missing-suffix", pamMissingSuffix || action == "add" ? pamMissingSuffix : "delete", "--filter", pamFilter || action == "add" ? pamFilter : "delete", "--id_map_method", pamIDMapMethod || action == "add" ? pamIDMapMethod : "delete", "--fallback", pamFallback ? "TRUE" : "FALSE", "--secure", pamSecure ? "TRUE" : "FALSE", "--service", pamService || action == "add" ? pamService : "delete"];
      cmd = [].concat(_toConsumableArray(cmd), ["--exclude-suffix"]);

      if (pamExcludeSuffix.length != 0) {
        var _iterator4 = _createForOfIteratorHelper(pamExcludeSuffix),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var value = _step4.value;
            cmd = [].concat(_toConsumableArray(cmd), [value]);
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--include-suffix"]);

      if (pamIncludeSuffix.length != 0) {
        var _iterator5 = _createForOfIteratorHelper(pamIncludeSuffix),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var _value3 = _step5.value;
            cmd = [].concat(_toConsumableArray(cmd), [_value3]);
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      cmd = [].concat(_toConsumableArray(cmd), ["--id-attr"]);

      if (pamIDAttr.length != 0) {
        var _iterator6 = _createForOfIteratorHelper(pamIDAttr),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var _value4 = _step6.value;
            cmd = [].concat(_toConsumableArray(cmd), [_value4]);
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("pamPassthroughAuthOperation", "Do the ".concat(action, " operation on the PAM Passthough Authentication Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("pamPassthroughAuthOperation", "Result", content);

        _this6.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(pamConfigName, "\" entry"));

        _this6.loadPAMConfigs();

        _this6.closePAMModal();

        _this6.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Error during the pamConfig entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this6.loadPAMConfigs();

        _this6.closePAMModal();

        _this6.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "showEditURLModal",
    value: function showEditURLModal(rowData) {
      this.openURLModal(rowData.url);
    }
  }, {
    key: "showAddURLModal",
    value: function showAddURLModal(rowData) {
      this.openURLModal();
    }
  }, {
    key: "openURLModal",
    value: function openURLModal(url) {
      if (!url) {
        this.setState({
          urlEntryModalShow: true,
          newURLEntry: true,
          oldURL: "",
          urlConnType: "ldap",
          urlAuthDS: "",
          urlSubtree: "",
          urlMaxConns: "3",
          urlMaxOps: "5",
          urlTimeout: "300",
          urlLDVer: "3",
          urlConnLifeTime: "300",
          urlStartTLS: false
        });
      } else {
        var link = url.split(" ")[0];
        var params = url.split(" ")[1];
        this.setState({
          urlEntryModalShow: true,
          oldURL: url,
          newURLEntry: false,
          urlConnType: link.split(":")[0],
          urlAuthDS: link.split("/")[2],
          urlSubtree: link.split("/")[3],
          urlMaxConns: params.split(",")[0],
          urlMaxOps: params.split(",")[1],
          urlTimeout: params.split(",")[2],
          urlLDVer: params.split(",")[3],
          urlConnLifeTime: params.split(",")[4],
          urlStartTLS: !(params.split(",")[5] == "0")
        });
      }
    }
  }, {
    key: "closeURLModal",
    value: function closeURLModal() {
      this.setState({
        urlEntryModalShow: false
      });
    }
  }, {
    key: "deleteURL",
    value: function deleteURL(rowData) {
      var _this7 = this;

      var url = rowData.url;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", "delete", url];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("deleteURL", "Delete the Passthough Authentication Plugin URL entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteURL", "Result", content);

        _this7.props.addNotification("success", "URL ".concat(url, " was successfully deleted"));

        _this7.loadURLs();

        _this7.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error during the URL removal operation - ".concat(errMsg.desc));

        _this7.loadURLs();

        _this7.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addURL",
    value: function addURL() {
      this.cmdURLOperation("add");
    }
  }, {
    key: "editURL",
    value: function editURL() {
      this.cmdURLOperation("modify");
    }
  }, {
    key: "cmdURLOperation",
    value: function cmdURLOperation(action) {
      var _this8 = this;

      var _this$state2 = this.state,
          oldURL = _this$state2.oldURL,
          urlConnType = _this$state2.urlConnType,
          urlAuthDS = _this$state2.urlAuthDS,
          urlSubtree = _this$state2.urlSubtree,
          urlMaxConns = _this$state2.urlMaxConns,
          urlMaxOps = _this$state2.urlMaxOps,
          urlTimeout = _this$state2.urlTimeout,
          urlLDVer = _this$state2.urlLDVer,
          urlConnLifeTime = _this$state2.urlConnLifeTime,
          urlStartTLS = _this$state2.urlStartTLS;

      if (!urlAuthDS || !urlSubtree) {
        this.props.addNotification("warning", "Authentication Hostname and Subtree fields are required.");
      } else {
        var constructedURL = "".concat(urlConnType, "://").concat(urlAuthDS, "/").concat(urlSubtree, " ").concat(urlMaxConns, ",").concat(urlMaxOps, ",").concat(urlTimeout, ",").concat(urlLDVer, ",").concat(urlConnLifeTime, ",").concat(urlStartTLS ? "1" : "0");
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", action];

        if (oldURL != "" && action == "modify") {
          cmd = [].concat(_toConsumableArray(cmd), [oldURL, constructedURL]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), [constructedURL]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("PassthroughAuthOperation", "Do the ".concat(action, " operation on the Passthough Authentication Plugin"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("PassthroughAuthOperation", "Result", content);

          _this8.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(constructedURL, "\" entry"));

          _this8.loadURLs();

          _this8.closeURLModal();

          _this8.props.toggleLoadingHandler();
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this8.props.addNotification("error", "Error during the URL ".concat(action, " operation - ").concat(errMsg.desc));

          _this8.loadURLs();

          _this8.closeURLModal();

          _this8.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this9 = this;

      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator7 = _createForOfIteratorHelper(attrContent["items"]),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _content = _step7.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        _this9.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this10 = this;

      var _this$state3 = this.state,
          urlRows = _this$state3.urlRows,
          pamConfigRows = _this$state3.pamConfigRows,
          attributes = _this$state3.attributes,
          pamConfigName = _this$state3.pamConfigName,
          pamMissingSuffix = _this$state3.pamMissingSuffix,
          pamExcludeSuffix = _this$state3.pamExcludeSuffix,
          pamIncludeSuffix = _this$state3.pamIncludeSuffix,
          pamFilter = _this$state3.pamFilter,
          pamIDAttr = _this$state3.pamIDAttr,
          pamIDMapMethod = _this$state3.pamIDMapMethod,
          pamFallback = _this$state3.pamFallback,
          pamSecure = _this$state3.pamSecure,
          pamService = _this$state3.pamService,
          urlConnType = _this$state3.urlConnType,
          urlLDVer = _this$state3.urlLDVer,
          urlAuthDS = _this$state3.urlAuthDS,
          urlSubtree = _this$state3.urlSubtree,
          urlMaxConns = _this$state3.urlMaxConns,
          urlMaxOps = _this$state3.urlMaxOps,
          urlTimeout = _this$state3.urlTimeout,
          urlConnLifeTime = _this$state3.urlConnLifeTime,
          urlStartTLS = _this$state3.urlStartTLS,
          newPAMConfigEntry = _this$state3.newPAMConfigEntry,
          newURLEntry = _this$state3.newURLEntry,
          pamConfigEntryModalShow = _this$state3.pamConfigEntryModalShow,
          urlEntryModalShow = _this$state3.urlEntryModalShow;
      var modalPAMConfigFields = {
        pamFilter: {
          name: "Filter",
          value: pamFilter,
          help: "Sets an LDAP filter to use to identify specific entries within the included suffixes for which to use PAM pass-through authentication (pamFilter)"
        },
        pamIDMapMethod: {
          name: "Map Method",
          value: pamIDMapMethod,
          help: "Gives the method to use to map the LDAP bind DN to a PAM identity (pamIDMapMethod)"
        },
        pamService: {
          name: "Service",
          value: pamService,
          help: "Contains the service name to pass to PAM (pamService)"
        }
      };
      var modalURLFields = {
        urlAuthDS: {
          name: "Authentication Hostname",
          value: urlAuthDS,
          help: "The authenticating directory host name. The port number of the Directory Server can be given by adding a colon and then the port number. For example, dirserver.example.com:389. If the port number is not specified, the PTA server attempts to connect using either of the standard ports: Port 389 if ldap:// is specified in the URL. Port 636 if ldaps:// is specified in the URL."
        },
        urlSubtree: {
          name: "Subtree",
          value: urlSubtree,
          help: "The pass-through subtree. The PTA Directory Server passes through bind requests to the authenticating Directory Server from all clients whose DN is in this subtree."
        },
        urlMaxConns: {
          name: "Maximum Number of Connections",
          value: urlMaxConns,
          help: "The maximum number of connections the PTA directory can simultaneously open to the authenticating directory."
        },
        urlMaxOps: {
          name: "Maximum Number of Simultaneous Operations",
          value: urlMaxOps,
          help: "The maximum number of simultaneous operations (usually bind requests) the PTA directory can send to the authenticating directory within a single connection."
        },
        urlTimeout: {
          name: "Timeout",
          value: urlTimeout,
          help: "The time limit, in seconds, that the PTA directory waits for a response from the authenticating Directory Server. If this timeout is exceeded, the server returns an error to the client. The default is 300 seconds (five minutes). Specify zero (0) to indicate no time limit should be enforced."
        },
        urlConnLifeTime: {
          name: "Connection Life Time",
          value: urlConnLifeTime,
          help: "The time limit, in seconds, within which a connection may be used."
        }
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: pamConfigEntryModalShow,
        onHide: this.closePAMModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closePAMModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newPAMConfigEntry ? "Add" : "Edit", " PAM Passthough Authentication Plugin Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamConfigName",
        controlId: "pamConfigName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        required: true,
        type: "text",
        value: pamConfigName,
        onChange: this.handleFieldChange,
        disabled: !newPAMConfigEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamExcludeSuffix",
        controlId: "pamExcludeSuffix",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a suffix to exclude from PAM authentication (pamExcludeSuffix)"
      }, "Exclude Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this10.setState({
            pamExcludeSuffix: values
          });
        },
        selected: pamExcludeSuffix,
        options: [""],
        newSelectionPrefix: "Add a suffix: ",
        placeholder: "Type a suffix DN..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamIncludeSuffix",
        controlId: "pamIncludeSuffix",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets a suffix to include for PAM authentication (pamIncludeSuffix)"
      }, "Include Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          _this10.setState({
            pamIncludeSuffix: values
          });
        },
        selected: pamIncludeSuffix,
        options: [""],
        newSelectionPrefix: "Add a suffix: ",
        placeholder: "Type a suffix DN..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamIDAttr",
        controlId: "pamIDAttr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Contains the attribute name which is used to hold the PAM user ID (pamIDAttr)"
      }, "ID Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this10.setState({
            pamIDAttr: value
          });
        },
        selected: pamIDAttr,
        options: attributes,
        newSelectionPrefix: "Add an attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamMissingSuffix",
        controlId: "pamMissingSuffix",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Identifies how to handle missing include or exclude suffixes (pamMissingSuffix)"
      }, "Missing Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "ERROR",
        name: "ERROR",
        inline: true,
        checked: pamMissingSuffix === "ERROR",
        onChange: this.handleFieldChange
      }, "ERROR"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "ALLOW",
        name: "ALLOW",
        inline: true,
        checked: pamMissingSuffix === "ALLOW",
        onChange: this.handleFieldChange
      }, "ALLOW"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "pamMissingSuffix",
        value: "IGNORE",
        name: "IGNORE",
        inline: true,
        checked: pamMissingSuffix === "IGNORE",
        onChange: this.handleFieldChange
      }, "IGNORE")))), Object.entries(modalPAMConfigFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            content = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3,
          title: content.help
        }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "pamCheckboxes",
        controlId: "pamCheckboxes"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        smOffset: 1,
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "pamFallback",
        checked: pamFallback,
        onChange: this.handleCheckboxChange,
        title: "Sets whether to fallback to regular LDAP authentication if PAM authentication fails (pamFallback)"
      }, "Fallback Enabled"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        smOffset: 1,
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "pamSecure",
        checked: pamSecure,
        onChange: this.handleCheckboxChange,
        title: "Requires secure TLS connection for PAM authentication (pamSecure)"
      }, "Require Secure Connection")))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closePAMModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newPAMConfigEntry ? this.addPAMConfig : this.editPAMConfig
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: urlEntryModalShow,
        onHide: this.closeURLModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeURLModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, newPAMConfigEntry ? "Add " : "Edit ", "Passthough Authentication Plugin URL")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlConnType",
        controlId: "urlConnType",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5,
        title: "Defines whether TLS is used for communication between the two Directory Servers."
      }, "Connection Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlConnType",
        value: "ldap",
        name: "ldap",
        inline: true,
        checked: urlConnType === "ldap",
        onChange: this.handleFieldChange
      }, "ldap"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlConnType",
        value: "ldaps",
        name: "ldaps",
        inline: true,
        checked: urlConnType === "ldaps",
        onChange: this.handleFieldChange
      }, "ldaps")))), Object.entries(modalURLFields).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            content = _ref4[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 5,
          title: content.help
        }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 7
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: content.value,
          onChange: _this10.handleFieldChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlLDVer",
        controlId: "urlLDVer",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5,
        title: "The version of the LDAP protocol used to connect to the authenticating directory. Directory Server supports LDAP version 2 and 3. The default is version 3, and Red Hat strongly recommends against using LDAPv2, which is old and will be deprecated."
      }, "Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlLDVer",
        value: "2",
        name: "LDAPv2",
        inline: true,
        checked: urlLDVer === "2",
        onChange: this.handleFieldChange
      }, "LDAPv2"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Radio"], {
        id: "urlLDVer",
        value: "3",
        name: "LDAPv3",
        inline: true,
        checked: urlLDVer === "3",
        onChange: this.handleFieldChange
      }, "LDAPv3")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "urlStartTLS",
        controlId: "urlStartTLS"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "urlStartTLS",
        checked: urlStartTLS,
        onChange: this.handleCheckboxChange,
        title: "A flag of whether to use Start TLS for the connection to the authenticating directory. Start TLS establishes a secure connection over the standard port, so it is useful for connecting using LDAP instead of LDAPS. The TLS server and CA certificates need to be available on both of the servers. To use Start TLS, the LDAP URL must use ldap:, not ldaps:."
      }, "Enable StartTLS"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "resultURL",
        controlId: "resultURL"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 5,
        title: "The URL that will be added or modified after you click 'Save'"
      }, "Result URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, urlConnType, "://", urlAuthDS, "/", urlSubtree, " ", urlMaxConns, ",", urlMaxOps, ",", urlTimeout, ",", urlLDVer, ",", urlConnLifeTime, ",", urlStartTLS ? "1" : "0")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeURLModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: newURLEntry ? this.addURL : this.editURL
      }, "Save")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Pass Through Authentication",
        pluginName: "Pass Through Authentication",
        cmdName: "pass-through-auth",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["PassthroughAuthURLsTable"], {
        rows: urlRows,
        editConfig: this.showEditURLModal,
        deleteConfig: this.deleteURL
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddURLModal
      }, "Add URL"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__["PassthroughAuthConfigsTable"], {
        rows: pamConfigRows,
        editConfig: this.showEditPAMConfigModal,
        deleteConfig: this.deletePAMConfig
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.showAddPAMConfigModal
      }, "Add Config")))));
    }
  }]);

  return PassthroughAuthentication;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

PassthroughAuthentication.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
PassthroughAuthentication.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PassthroughAuthentication);

/***/ }),

/***/ "./src/lib/plugins/pluginBasicConfig.jsx":
/*!***********************************************!*\
  !*** ./src/lib/plugins/pluginBasicConfig.jsx ***!
  \***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var PluginBasicConfig = /*#__PURE__*/function (_React$Component) {
  _inherits(PluginBasicConfig, _React$Component);

  var _super = _createSuper(PluginBasicConfig);

  _createClass(PluginBasicConfig, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function PluginBasicConfig(props) {
    var _this;

    _classCallCheck(this, PluginBasicConfig);

    _this = _super.call(this, props);
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.updateSwitch = _this.updateSwitch.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.state = {
      disableSwitch: false,
      currentPluginEnabled: true,
      currentPluginType: "",
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: ""
    };
    return _this;
  }

  _createClass(PluginBasicConfig, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      var _this2 = this;

      var _this$props = this.props,
          pluginName = _this$props.pluginName,
          cmdName = _this$props.cmdName,
          serverId = _this$props.serverId,
          pluginListHandler = _this$props.pluginListHandler,
          addNotification = _this$props.addNotification,
          toggleLoadingHandler = _this$props.toggleLoadingHandler;
      var new_status = this.state.currentPluginEnabled ? "disable" : "enable";
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", cmdName, new_status];
      toggleLoadingHandler();
      this.setState({
        disableSwitch: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("handleSwitchChange", "Switch plugin states from the plugin tab", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);
        pluginListHandler();
        addNotification("success", "".concat(pluginName, " plugin was successfully ").concat(new_status, "d.\n                        Please, restart the instance."));
        toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        addNotification("error", "Error during ".concat(pluginName, " plugin modification - ").concat(errMsg.desc));
        toggleLoadingHandler();

        _this2.setState({
          disableSwitch: false
        });
      });
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var _this3 = this;

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === _this3.props.cn;
        });
        this.setState({
          currentPluginType: pluginRow["nsslapd-pluginType"][0],
          currentPluginPath: pluginRow["nsslapd-pluginPath"][0],
          currentPluginInitfunc: pluginRow["nsslapd-pluginInitfunc"][0],
          currentPluginId: pluginRow["nsslapd-pluginId"][0],
          currentPluginVendor: pluginRow["nsslapd-pluginVendor"][0],
          currentPluginVersion: pluginRow["nsslapd-pluginVersion"][0],
          currentPluginDescription: pluginRow["nsslapd-pluginDescription"][0],
          currentPluginDependsOnType: pluginRow["nsslapd-plugin-depends-on-type"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-type"][0],
          currentPluginDependsOnNamed: pluginRow["nsslapd-plugin-depends-on-named"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-named"][0],
          currentPluginPrecedence: pluginRow["nsslapd-pluginprecedence"] === undefined ? "" : pluginRow["nsslapd-pluginprecedence"][0]
        });
      }

      this.updateSwitch();
    }
  }, {
    key: "updateSwitch",
    value: function updateSwitch() {
      var _this4 = this;

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === _this4.props.cn;
        });
        var pluginEnabled;

        if (pluginRow["nsslapd-pluginEnabled"][0] === "on") {
          pluginEnabled = true;
        } else if (pluginRow["nsslapd-pluginEnabled"][0] === "off") {
          pluginEnabled = false;
        } else {
          console.error("openPluginModal failed", "wrong nsslapd-pluginenabled attribute value", pluginRow["nsslapd-pluginEnabled"][0]);
        }

        this.setState({
          currentPluginEnabled: pluginEnabled,
          disableSwitch: false
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this5 = this;

      var _this$state = this.state,
          currentPluginEnabled = _this$state.currentPluginEnabled,
          currentPluginType = _this$state.currentPluginType,
          currentPluginPath = _this$state.currentPluginPath,
          currentPluginInitfunc = _this$state.currentPluginInitfunc,
          currentPluginId = _this$state.currentPluginId,
          currentPluginVendor = _this$state.currentPluginVendor,
          currentPluginVersion = _this$state.currentPluginVersion,
          currentPluginDescription = _this$state.currentPluginDescription,
          currentPluginDependsOnType = _this$state.currentPluginDependsOnType,
          currentPluginDependsOnNamed = _this$state.currentPluginDependsOnNamed,
          currentPluginPrecedence = _this$state.currentPluginPrecedence,
          disableSwitch = _this$state.disableSwitch;
      var modalFieldsCol1 = {
        currentPluginType: this.state.currentPluginType,
        currentPluginPath: this.state.currentPluginPath,
        currentPluginInitfunc: this.state.currentPluginInitfunc
      };
      var modalFieldsCol2 = {
        currentPluginVendor: this.state.currentPluginVendor,
        currentPluginVersion: this.state.currentPluginVersion,
        currentPluginDescription: this.state.currentPluginDescription,
        currentPluginId: this.state.currentPluginId,
        currentPluginPrecedence: this.state.currentPluginPrecedence
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        inline: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6,
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "ds-plugin-tab-header"
      }, this.props.pluginName))), this.props.removeSwitch || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        smOffset: 1,
        sm: 4,
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "switchPluginStatus",
        controlId: "switchPluginStatus"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        className: "toolbar-pf-find ds-float-left ds-right-indent"
      }, "Status"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "bsSize-example",
        value: currentPluginEnabled,
        onChange: function onChange() {
          return _this5.handleSwitchChange(currentPluginEnabled);
        },
        animate: false,
        disabled: disableSwitch
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, this.props.children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, Object.entries(modalFieldsCol1).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            value = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, _this5.props.memberOfAttr, " Plugin", " ", id.replace("currentPlugin", "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: value,
          onChange: _this5.handleFieldChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "currentPluginDependsOnType",
        controlId: "currentPluginDependsOnType",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Plugin Depends On Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: this.state.currentPluginDependsOnType,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "currentPluginDependsOnNamed",
        controlId: "currentPluginDependsOnNamed",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3
      }, "Plugin Depends On Named"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: this.state.currentPluginDependsOnNamed,
        onChange: this.handleFieldChange
      }))), Object.entries(modalFieldsCol2).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            value = _ref4[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, "Plugin ", id.replace("currentPlugin", "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
          type: "text",
          value: value,
          onChange: _this5.handleFieldChange
        })));
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          return _this5.props.savePluginHandler({
            name: _this5.props.cn,
            type: currentPluginType,
            path: currentPluginPath,
            initfunc: currentPluginInitfunc,
            id: currentPluginId,
            vendor: currentPluginVendor,
            version: currentPluginVersion,
            description: currentPluginDescription,
            dependsOnType: currentPluginDependsOnType,
            dependsOnNamed: currentPluginDependsOnNamed,
            precedence: currentPluginPrecedence,
            specificPluginCMD: _this5.props.specificPluginCMD
          });
        }
      }, "Save Config"))));
    }
  }]);

  return PluginBasicConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

PluginBasicConfig.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.any.isRequired,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  cn: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  pluginName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  cmdName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  removeSwitch: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  specificPluginCMD: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PluginBasicConfig.defaultProps = {
  rows: [],
  serverId: "",
  cn: "",
  pluginName: "",
  cmdName: "",
  removeSwitch: false,
  specificPluginCMD: [],
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (PluginBasicConfig);

/***/ }),

/***/ "./src/lib/plugins/pluginModal.jsx":
/*!*****************************************!*\
  !*** ./src/lib/plugins/pluginModal.jsx ***!
  \*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





var PluginEditModal = /*#__PURE__*/function (_React$Component) {
  _inherits(PluginEditModal, _React$Component);

  var _super = _createSuper(PluginEditModal);

  function PluginEditModal() {
    _classCallCheck(this, PluginEditModal);

    return _super.apply(this, arguments);
  }

  _createClass(PluginEditModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          handleSwitchChange = _this$props.handleSwitchChange,
          savePluginHandler = _this$props.savePluginHandler;
      var _this$props$pluginDat = this.props.pluginData,
          currentPluginName = _this$props$pluginDat.currentPluginName,
          currentPluginEnabled = _this$props$pluginDat.currentPluginEnabled,
          currentPluginType = _this$props$pluginDat.currentPluginType,
          currentPluginPath = _this$props$pluginDat.currentPluginPath,
          currentPluginInitfunc = _this$props$pluginDat.currentPluginInitfunc,
          currentPluginId = _this$props$pluginDat.currentPluginId,
          currentPluginVendor = _this$props$pluginDat.currentPluginVendor,
          currentPluginVersion = _this$props$pluginDat.currentPluginVersion,
          currentPluginDescription = _this$props$pluginDat.currentPluginDescription,
          currentPluginDependsOnType = _this$props$pluginDat.currentPluginDependsOnType,
          currentPluginDependsOnNamed = _this$props$pluginDat.currentPluginDependsOnNamed,
          currentPluginPrecedence = _this$props$pluginDat.currentPluginPrecedence;
      var modalFields = {
        currentPluginType: currentPluginType,
        currentPluginPath: currentPluginPath,
        currentPluginInitfunc: currentPluginInitfunc,
        currentPluginId: currentPluginId,
        currentPluginVendor: currentPluginVendor,
        currentPluginVersion: currentPluginVersion,
        currentPluginDescription: currentPluginDescription,
        currentPluginPrecedence: currentPluginPrecedence
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Edit Plugin - ", currentPluginName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginEnabled",
        controlId: "currentPluginEnabled",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Status"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "pluginEnableSwitch",
        value: currentPluginEnabled,
        onChange: function onChange() {
          return handleSwitchChange(currentPluginEnabled);
        },
        animate: false
      }))), Object.entries(modalFields).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            value = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
          key: id,
          controlId: id,
          disabled: false
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 5
        }, "Plugin ", id.replace("currentPlugin", "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
          type: "text",
          value: value,
          onChange: handleChange
        })));
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginDependsOnType",
        controlId: "currentPluginDependsOnType",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Depends On Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: currentPluginDependsOnType,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "currentPluginDependsOnNamed",
        controlId: "currentPluginDependsOnNamed",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "Plugin Depends On Named"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: currentPluginDependsOnNamed,
        onChange: handleChange
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          return savePluginHandler({
            name: currentPluginName,
            enabled: currentPluginEnabled,
            type: currentPluginType,
            path: currentPluginPath,
            initfunc: currentPluginInitfunc,
            id: currentPluginId,
            vendor: currentPluginVendor,
            version: currentPluginVersion,
            description: currentPluginDescription,
            dependsOnType: currentPluginDependsOnType,
            dependsOnNamed: currentPluginDependsOnNamed,
            precedence: currentPluginPrecedence
          });
        }
      }, "Save"))));
    }
  }]);

  return PluginEditModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PluginEditModal.propTypes = {
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleSwitchChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  pluginData: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.exact({
    currentPluginName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginType: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginEnabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
    currentPluginPath: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginInitfunc: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginVendor: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginVersion: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDescription: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDependsOnType: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginDependsOnNamed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
    currentPluginPrecedence: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
  }),
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
PluginEditModal.defaultProps = {
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleSwitchChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pluginData: {
    currentPluginName: "",
    currentPluginType: "",
    currentPluginEnabled: false,
    currentPluginPath: "",
    currentPluginInitfunc: "",
    currentPluginId: "",
    currentPluginVendor: "",
    currentPluginVersion: "",
    currentPluginDescription: "",
    currentPluginDependsOnType: "",
    currentPluginDependsOnNamed: "",
    currentPluginPrecedence: ""
  },
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  showModal: false
};
/* harmony default export */ __webpack_exports__["default"] = (PluginEditModal);

/***/ }),

/***/ "./src/lib/plugins/pluginTables.jsx":
/*!******************************************!*\
  !*** ./src/lib/plugins/pluginTables.jsx ***!
  \******************************************/
/*! exports provided: PluginTable, AttrUniqConfigTable, LinkedAttributesTable, DNATable, DNASharedTable, AutoMembershipDefinitionTable, AutoMembershipRegexTable, ManagedEntriesTable, PassthroughAuthURLsTable, PassthroughAuthConfigsTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PluginTable", function() { return PluginTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttrUniqConfigTable", function() { return AttrUniqConfigTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinkedAttributesTable", function() { return LinkedAttributesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNATable", function() { return DNATable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNASharedTable", function() { return DNASharedTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoMembershipDefinitionTable", function() { return AutoMembershipDefinitionTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoMembershipRegexTable", function() { return AutoMembershipRegexTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagedEntriesTable", function() { return ManagedEntriesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PassthroughAuthURLsTable", function() { return PassthroughAuthURLsTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PassthroughAuthConfigsTable", function() { return PassthroughAuthConfigsTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var PluginTable = /*#__PURE__*/function (_React$Component) {
  _inherits(PluginTable, _React$Component);

  var _super = _createSuper(PluginTable);

  function PluginTable(props) {
    var _this;

    _classCallCheck(this, PluginTable);

    _this = _super.call(this, props);
    _this.state = {
      searchFilterValue: "",
      fieldsToSearch: ["cn", "nsslapd-pluginType"],
      columns: [{
        property: "cn",
        header: {
          label: "Plugin Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginType",
        header: {
          label: "Plugin Type",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginEnabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this.props.loadModalHandler(rowData);
              }
            }, "Edit Plugin"))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(PluginTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        rowKey: "cn",
        rows: this.props.rows,
        toolBarSearchField: "Plugins",
        toolBarDisableLoadingSpinner: true
      }));
    }
  }]);

  return PluginTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PluginTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  loadModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PluginTable.defaultProps = {
  rows: [],
  loadModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AttrUniqConfigTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(AttrUniqConfigTable, _React$Component2);

  var _super2 = _createSuper(AttrUniqConfigTable);

  function AttrUniqConfigTable(props) {
    var _this2;

    _classCallCheck(this, AttrUniqConfigTable);

    _this2 = _super2.call(this, props);
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    _this2.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "uniqueness-attribute-name"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "uniqueness-attribute-name",
        header: {
          label: "Attribute",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nsslapd-pluginenabled",
        header: {
          label: "Enabled",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.deleteConfig(rowData.cn[0]);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this2;
  }

  _createClass(AttrUniqConfigTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AttrUniqConfigTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AttrUniqConfigTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AttrUniqConfigTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var LinkedAttributesTable = /*#__PURE__*/function (_React$Component3) {
  _inherits(LinkedAttributesTable, _React$Component3);

  var _super3 = _createSuper(LinkedAttributesTable);

  function LinkedAttributesTable(props) {
    var _this3;

    _classCallCheck(this, LinkedAttributesTable);

    _this3 = _super3.call(this, props);
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_this3));
    _this3.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "linkType", "managedType", "linkScope"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "linktype",
        header: {
          label: "Link Type",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "managedtype",
        header: {
          label: "Managed Type",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "linkscope",
        header: {
          label: "Link Scope",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this3.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this3.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this3;
  }

  _createClass(LinkedAttributesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return LinkedAttributesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

LinkedAttributesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
LinkedAttributesTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var DNATable = /*#__PURE__*/function (_React$Component4) {
  _inherits(DNATable, _React$Component4);

  var _super4 = _createSuper(DNATable);

  function DNATable(props) {
    var _this4;

    _classCallCheck(this, DNATable);

    _this4 = _super4.call(this, props);
    _this4.getColumns = _this4.getColumns.bind(_assertThisInitialized(_this4));
    _this4.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "dnanextvalue", "dnafilter", "dnascope"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnascope",
        header: {
          label: "Scope",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnafilter",
        header: {
          label: "Filter",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnanextvalue",
        header: {
          label: "Next Value",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this4.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this4.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this4;
  }

  _createClass(DNATable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return DNATable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DNATable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
DNATable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var DNASharedTable = /*#__PURE__*/function (_React$Component5) {
  _inherits(DNASharedTable, _React$Component5);

  var _super5 = _createSuper(DNASharedTable);

  function DNASharedTable(props) {
    var _this5;

    _classCallCheck(this, DNASharedTable);

    _this5 = _super5.call(this, props);
    _this5.getColumns = _this5.getColumns.bind(_assertThisInitialized(_this5));
    _this5.state = {
      searchField: "Configs",
      fieldsToSearch: ["dnahostname", "dnaportnum", "dnaremainingvalues"],
      columns: [{
        property: "dnahostname",
        header: {
          label: "Hostname",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnaportnum",
        header: {
          label: "Port",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "dnaremainingvalues",
        header: {
          label: "Remaining Values",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.entrydn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.entrydn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this5.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this5.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this5;
  }

  _createClass(DNASharedTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "entrydn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return DNASharedTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

DNASharedTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
DNASharedTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AutoMembershipDefinitionTable = /*#__PURE__*/function (_React$Component6) {
  _inherits(AutoMembershipDefinitionTable, _React$Component6);

  var _super6 = _createSuper(AutoMembershipDefinitionTable);

  function AutoMembershipDefinitionTable(props) {
    var _this6;

    _classCallCheck(this, AutoMembershipDefinitionTable);

    _this6 = _super6.call(this, props);
    _this6.getColumns = _this6.getColumns.bind(_assertThisInitialized(_this6));
    _this6.state = {
      searchField: "Definitions",
      fieldsToSearch: ["cn", "automemberdefaultgroup", "automemberfilter", "automembergroupingattr", "automemberscope"],
      columns: [{
        property: "cn",
        header: {
          label: "Definition Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberdefaultgroup",
        header: {
          label: "Default Group",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberscope",
        header: {
          label: "Scope",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberfilter",
        header: {
          label: "Filter",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this6.props.editConfig(rowData);
              }
            }, "Edit Definition"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this6.props.deleteConfig(rowData);
              }
            }, "Delete Definition")))];
          }]
        }
      }]
    };
    return _this6;
  }

  _createClass(AutoMembershipDefinitionTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AutoMembershipDefinitionTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AutoMembershipDefinitionTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AutoMembershipDefinitionTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var AutoMembershipRegexTable = /*#__PURE__*/function (_React$Component7) {
  _inherits(AutoMembershipRegexTable, _React$Component7);

  var _super7 = _createSuper(AutoMembershipRegexTable);

  function AutoMembershipRegexTable(props) {
    var _this7;

    _classCallCheck(this, AutoMembershipRegexTable);

    _this7 = _super7.call(this, props);
    _this7.getColumns = _this7.getColumns.bind(_assertThisInitialized(_this7));
    _this7.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "automemberexclusiveregex", "automemberinclusiveregex", "automembertargetgroup"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberexclusiveregex",
        header: {
          label: "Exclusive Regex",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automemberinclusiveregex",
        header: {
          label: "Inclusive Regex",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "automembertargetgroup",
        header: {
          label: "Target Group",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref7) {
            var rowData = _ref7.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this7.props.editConfig(rowData);
              }
            }, "Edit Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this7.props.deleteConfig(rowData);
              }
            }, "Delete Regex")))];
          }]
        }
      }]
    };
    return _this7;
  }

  _createClass(AutoMembershipRegexTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return AutoMembershipRegexTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AutoMembershipRegexTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
AutoMembershipRegexTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var ManagedEntriesTable = /*#__PURE__*/function (_React$Component8) {
  _inherits(ManagedEntriesTable, _React$Component8);

  var _super8 = _createSuper(ManagedEntriesTable);

  function ManagedEntriesTable(props) {
    var _this8;

    _classCallCheck(this, ManagedEntriesTable);

    _this8 = _super8.call(this, props);
    _this8.getColumns = _this8.getColumns.bind(_assertThisInitialized(_this8));
    _this8.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "originscope", "originfilter", "managedbase"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "originscope",
        header: {
          label: "Scope",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "originfilter",
        header: {
          label: "Filter",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "managedbase",
        header: {
          label: "Managed Base",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref8) {
            var rowData = _ref8.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this8.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this8.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this8;
  }

  _createClass(ManagedEntriesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return ManagedEntriesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ManagedEntriesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ManagedEntriesTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var PassthroughAuthURLsTable = /*#__PURE__*/function (_React$Component9) {
  _inherits(PassthroughAuthURLsTable, _React$Component9);

  var _super9 = _createSuper(PassthroughAuthURLsTable);

  function PassthroughAuthURLsTable(props) {
    var _this9;

    _classCallCheck(this, PassthroughAuthURLsTable);

    _this9 = _super9.call(this, props);
    _this9.getColumns = _this9.getColumns.bind(_assertThisInitialized(_this9));
    _this9.state = {
      searchField: "URLs",
      fieldsToSearch: ["url"],
      columns: [{
        property: "url",
        header: {
          label: "URL",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref9) {
            var rowData = _ref9.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.id[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.id[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this9.props.editConfig(rowData);
              }
            }, "Edit URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this9.props.deleteConfig(rowData);
              }
            }, "Delete URL")))];
          }]
        }
      }]
    };
    return _this9;
  }

  _createClass(PassthroughAuthURLsTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "id",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return PassthroughAuthURLsTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PassthroughAuthURLsTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PassthroughAuthURLsTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

var PassthroughAuthConfigsTable = /*#__PURE__*/function (_React$Component10) {
  _inherits(PassthroughAuthConfigsTable, _React$Component10);

  var _super10 = _createSuper(PassthroughAuthConfigsTable);

  function PassthroughAuthConfigsTable(props) {
    var _this10;

    _classCallCheck(this, PassthroughAuthConfigsTable);

    _this10 = _super10.call(this, props);
    _this10.getColumns = _this10.getColumns.bind(_assertThisInitialized(_this10));
    _this10.state = {
      searchField: "Configs",
      fieldsToSearch: ["cn", "pamfilter", "pamidattr", "pamidmapmethod"],
      columns: [{
        property: "cn",
        header: {
          label: "Config Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamidattr",
        header: {
          label: "Attribute",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamidmapmethod",
        header: {
          label: "Map Method",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "pamfilter",
        header: {
          label: "Filter",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref10) {
            var rowData = _ref10.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              bsStyle: "default",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this10.props.editConfig(rowData);
              }
            }, "Edit Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this10.props.deleteConfig(rowData);
              }
            }, "Delete Config")))];
          }]
        }
      }]
    };
    return _this10;
  }

  _createClass(PassthroughAuthConfigsTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        toolBarSearchField: this.state.searchField,
        rowKey: "cn",
        rows: this.props.rows,
        disableLoadingSpinner: true,
        toolBarPagination: [6, 12, 24, 48, 96],
        toolBarPaginationPerPage: 6
      }));
    }
  }]);

  return PassthroughAuthConfigsTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

PassthroughAuthConfigsTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteConfig: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
PassthroughAuthConfigsTable.defaultProps = {
  rows: [],
  editConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/plugins/referentialIntegrity.jsx":
/*!**************************************************!*\
  !*** ./src/lib/plugins/referentialIntegrity.jsx ***!
  \**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var ReferentialIntegrity = /*#__PURE__*/function (_React$Component) {
  _inherits(ReferentialIntegrity, _React$Component);

  var _super = _createSuper(ReferentialIntegrity);

  _createClass(ReferentialIntegrity, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.getAttributes();
          this.updateFields();
        }
      }
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function ReferentialIntegrity(props) {
    var _this;

    _classCallCheck(this, ReferentialIntegrity);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      updateDelay: "",
      membershipAttr: [],
      entryScope: "",
      excludeEntryScope: "",
      containerScope: "",
      logFile: "",
      referintConfigEntry: "",
      configEntryModalShow: false,
      configDN: "",
      configUpdateDelay: "",
      configMembershipAttr: [],
      configEntryScope: "",
      configExcludeEntryScope: "",
      configContainerScope: "",
      configLogFile: "",
      newEntry: true,
      attributes: []
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.getAttributes = _this.getAttributes.bind(_assertThisInitialized(_this));
    _this.openModal = _this.openModal.bind(_assertThisInitialized(_this));
    _this.closeModal = _this.closeModal.bind(_assertThisInitialized(_this));
    _this.addConfig = _this.addConfig.bind(_assertThisInitialized(_this));
    _this.editConfig = _this.editConfig.bind(_assertThisInitialized(_this));
    _this.deleteConfig = _this.deleteConfig.bind(_assertThisInitialized(_this));
    _this.cmdOperation = _this.cmdOperation.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReferentialIntegrity, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "openModal",
    value: function openModal() {
      var _this2 = this;

      this.getAttributes();

      if (!this.state.referintConfigEntry) {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: "",
          configUpdateDelay: "",
          configMembershipAttr: [],
          configEntryScope: "",
          configExcludeEntryScope: "",
          configContainerScope: "",
          configLogFile: ""
        });
      } else {
        var membershipAttrList = [];
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "show", this.state.referintConfigEntry];
        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("openModal", "Fetch the Referential Integrity Plugin config entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var pluginRow = JSON.parse(content).attrs;

          _this2.setState({
            configEntryModalShow: true,
            newEntry: false,
            configDN: _this2.state.referintConfigEntry,
            configUpdateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
            configEntryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
            configExcludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
            configContainerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
            configLogFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
          });

          if (pluginRow["referint-membership-attr"] === undefined) {
            _this2.setState({
              configMembershipAttr: []
            });
          } else {
            var _iterator = _createForOfIteratorHelper(pluginRow["referint-membership-attr"]),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var value = _step.value;
                membershipAttrList = [].concat(_toConsumableArray(membershipAttrList), [value]);
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }

            _this2.setState({
              configMembershipAttr: membershipAttrList
            });
          }

          _this2.props.toggleLoadingHandler();
        }).fail(function (_) {
          _this2.setState({
            configEntryModalShow: true,
            newEntry: true,
            configDN: _this2.state.referintConfigEntry,
            configUpdateDelay: "",
            configMembershipAttr: [],
            configEntryScope: "",
            configExcludeEntryScope: "",
            configContainerScope: "",
            configLogFile: ""
          });

          _this2.props.toggleLoadingHandler();
        });
      }
    }
  }, {
    key: "closeModal",
    value: function closeModal() {
      this.setState({
        configEntryModalShow: false
      });
    }
  }, {
    key: "cmdOperation",
    value: function cmdOperation(action) {
      var _this3 = this;

      var _this$state = this.state,
          configDN = _this$state.configDN,
          configUpdateDelay = _this$state.configUpdateDelay,
          configMembershipAttr = _this$state.configMembershipAttr,
          configEntryScope = _this$state.configEntryScope,
          configExcludeEntryScope = _this$state.configExcludeEntryScope,
          configContainerScope = _this$state.configContainerScope,
          configLogFile = _this$state.configLogFile;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", action, configDN, "--update-delay", configUpdateDelay || action == "add" ? configUpdateDelay : "delete", "--entry-scope", configEntryScope || action == "add" ? configEntryScope : "delete", "--exclude-entry-scope", configExcludeEntryScope || action == "add" ? configExcludeEntryScope : "delete", "--container-scope", configContainerScope || action == "add" ? configContainerScope : "delete", "--log-file", configLogFile || action == "add" ? configLogFile : "delete"]; // Delete attributes if the user set an empty value to the field

      cmd = [].concat(_toConsumableArray(cmd), ["--membership-attr"]);

      if (configMembershipAttr.length != 0) {
        var _iterator2 = _createForOfIteratorHelper(configMembershipAttr),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var value = _step2.value;
            cmd = [].concat(_toConsumableArray(cmd), [value]);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else if (action == "add") {
        cmd = [].concat(_toConsumableArray(cmd), [""]);
      } else {
        cmd = [].concat(_toConsumableArray(cmd), ["delete"]);
      }

      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("referintOperation", "Do the ".concat(action, " operation on the Referential Integrity Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("referintOperation", "Result", content);

        _this3.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));

        _this3.props.pluginListHandler();

        _this3.closeModal();

        _this3.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "deleteConfig",
    value: function deleteConfig() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "delete", this.state.configDN];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("deleteConfig", "Delete the Referential Integrity Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteConfig", "Result", content);

        _this4.props.addNotification("success", "Config entry ".concat(_this4.state.configDN, " was successfully deleted"));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));

        _this4.props.pluginListHandler();

        _this4.closeModal();

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "addConfig",
    value: function addConfig() {
      this.cmdOperation("add");
    }
  }, {
    key: "editConfig",
    value: function editConfig() {
      this.cmdOperation("set");
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var membershipAttrList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "referential integrity postoperation";
        });
        this.setState({
          updateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
          entryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
          excludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
          containerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
          referintConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
          logFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
        });

        if (pluginRow["referint-membership-attr"] === undefined) {
          this.setState({
            membershipAttr: []
          });
        } else {
          var _iterator3 = _createForOfIteratorHelper(pluginRow["referint-membership-attr"]),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var value = _step3.value;
              membershipAttrList = [].concat(_toConsumableArray(membershipAttrList), [value]);
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }

          this.setState({
            membershipAttr: membershipAttrList
          });
        }
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this5 = this;

      this.setState({
        firstLoad: false
      });
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator4 = _createForOfIteratorHelper(attrContent["items"]),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var _content = _step4.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        _this5.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var _this$state2 = this.state,
          updateDelay = _this$state2.updateDelay,
          membershipAttr = _this$state2.membershipAttr,
          entryScope = _this$state2.entryScope,
          excludeEntryScope = _this$state2.excludeEntryScope,
          containerScope = _this$state2.containerScope,
          logFile = _this$state2.logFile,
          referintConfigEntry = _this$state2.referintConfigEntry,
          attributes = _this$state2.attributes,
          configDN = _this$state2.configDN,
          configUpdateDelay = _this$state2.configUpdateDelay,
          configMembershipAttr = _this$state2.configMembershipAttr,
          configEntryScope = _this$state2.configEntryScope,
          configExcludeEntryScope = _this$state2.configExcludeEntryScope,
          configContainerScope = _this$state2.configContainerScope,
          configEntryModalShow = _this$state2.configEntryModalShow,
          configLogFile = _this$state2.configLogFile,
          newEntry = _this$state2.newEntry;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "set", "--update-delay", updateDelay || "delete", "--entry-scope", entryScope || "delete", "--exclude-entry-scope", excludeEntryScope || "delete", "--container-scope", containerScope || "delete", "--config-entry", referintConfigEntry || "delete", "--log-file", logFile || "delete"]; // Delete attributes if the user set an empty value to the field

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--membership-attr"]);

      if (membershipAttr.length != 0) {
        var _iterator5 = _createForOfIteratorHelper(membershipAttr),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var value = _step5.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [value]);
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: configEntryModalShow,
        onHide: this.closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Manage Referential Integrity Plugin Shared Config Entry")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "configDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "The config entry full DN"
      }, "Config DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configDN,
        onChange: this.handleFieldChange,
        disabled: !newEntry
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configUpdateDelay",
        controlId: "configUpdateDelay"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the update interval. Special values: 0 - The check is performed immediately, -1 - No check is performed (referint-update-delay)"
      }, "Update Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configUpdateDelay,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configMembershipAttr",
        controlId: "configMembershipAttr"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies attributes to check for and update (referint-membership-attr)"
      }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this6.setState({
            configMembershipAttr: value
          });
        },
        selected: configMembershipAttr,
        options: attributes,
        newSelectionPrefix: "Add a membership attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configEntryScope",
        controlId: "configEntryScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
      }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configEntryScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configExcludeEntryScope",
        controlId: "configExcludeEntryScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
      }, "Exclude Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configExcludeEntryScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configContainerScope",
        controlId: "configContainerScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)"
      }, "Container Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configContainerScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "configLogFile",
        controlId: "configLogFile"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
      }, "Logfile"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: configLogFile,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.deleteConfig,
        disabled: newEntry
      }, "Delete"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.editConfig,
        disabled: newEntry
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.addConfig,
        disabled: !newEntry
      }, "Add")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "referential integrity postoperation",
        pluginName: "Referential Integrity",
        cmdName: "referential-integrity",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "updateDelay",
        controlId: "updateDelay"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Sets the update interval. Special values: 0 - The check is performed immediately, -1 - No check is performed (referint-update-delay)"
      }, "Update Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: updateDelay,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "membershipAttr",
        controlId: "membershipAttr"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies attributes to check for and update (referint-membership-attr)"
      }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_3__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this6.setState({
            membershipAttr: value
          });
        },
        selected: membershipAttr,
        options: attributes,
        newSelectionPrefix: "Add a membership attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "entryScope",
        controlId: "entryScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
      }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: entryScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "excludeEntryScope",
        controlId: "excludeEntryScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
      }, "Exclude Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: excludeEntryScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "containerScope",
        controlId: "containerScope"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)"
      }, "Container Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: containerScope,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "logFile",
        controlId: "logFile"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
      }, "Logfile"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: logFile,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "referintConfigEntry",
        controlId: "referintConfigEntry"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "The value to set as nsslapd-pluginConfigArea"
      }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: referintConfigEntry,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.openModal
      }, "Manage"))))))));
    }
  }]);

  return ReferentialIntegrity;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

ReferentialIntegrity.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
ReferentialIntegrity.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (ReferentialIntegrity);

/***/ }),

/***/ "./src/lib/plugins/retroChangelog.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/retroChangelog.jsx ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var RetroChangelog = /*#__PURE__*/function (_React$Component) {
  _inherits(RetroChangelog, _React$Component);

  var _super = _createSuper(RetroChangelog);

  _createClass(RetroChangelog, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.getAttributes();
          this.updateFields();
        }
      }
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function RetroChangelog(props) {
    var _this;

    _classCallCheck(this, RetroChangelog);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      isReplicated: false,
      attribute: [],
      directory: "",
      maxAge: "",
      excludeSuffix: "",
      attributes: []
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(RetroChangelog, [{
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Retro Changelog Plugin";
        });
        this.setState({
          isReplicated: !(pluginRow["isReplicated"] === undefined || pluginRow["isReplicated"][0] == "FALSE"),
          attribute: pluginRow["nsslapd-attribute"] === undefined ? [] : [pluginRow["nsslapd-attribute"][0]],
          directory: pluginRow["nsslapd-changelogdir"] === undefined ? "" : pluginRow["nsslapd-changelogdir"][0],
          maxAge: pluginRow["nsslapd-changelogmaxage"] === undefined ? "" : pluginRow["nsslapd-changelogmaxage"][0],
          excludeSuffix: pluginRow["nsslapd-exclude-suffix"] === undefined ? "" : pluginRow["nsslapd-exclude-suffix"][0]
        });
      }
    }
  }, {
    key: "getAttributes",
    value: function getAttributes() {
      var _this2 = this;

      this.setState({
        firstLoad: false
      });
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_6__["log_cmd"])("getAttributes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator = _createForOfIteratorHelper(attrContent["items"]),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _content = _step.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this2.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var _this$state = this.state,
          isReplicated = _this$state.isReplicated,
          attribute = _this$state.attribute,
          directory = _this$state.directory,
          maxAge = _this$state.maxAge,
          excludeSuffix = _this$state.excludeSuffix,
          attributes = _this$state.attributes;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "retro-changelog", "set", "--is-replicated", isReplicated ? "TRUE" : "FALSE", "--attribute", attribute.length != 0 ? attribute[0] : "delete", "--directory", directory || "delete", "--max-age", maxAge || "delete", "--exclude-suffix", excludeSuffix || "delete"];
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Retro Changelog Plugin",
        pluginName: "Retro Changelog",
        cmdName: "retro-changelog",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "attribute",
        controlId: "attribute"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies another Directory Server attribute which must be included in the retro changelog entries (nsslapd-attribute)"
      }, "Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(value) {
          _this3.setState({
            attribute: value
          });
        },
        selected: attribute,
        options: attributes,
        newSelectionPrefix: "Add an attribute: ",
        placeholder: "Type an attribute..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "directory",
        controlId: "directory"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Specifies the name of the directory in which the changelog database is created the first time the plug-in is run"
      }, "Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: directory,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "maxAge",
        controlId: "maxAge"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "This attribute specifies the maximum age of any entry in the changelog (nsslapd-changelogmaxage)"
      }, "Max Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: maxAge,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "excludeSuffix",
        controlId: "excludeSuffix"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "This attribute specifies the suffix which will be excluded from the scope of the plugin (nsslapd-exclude-suffix)"
      }, "Exclude Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: excludeSuffix,
        onChange: this.handleFieldChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "isReplicated",
        checked: isReplicated,
        onChange: this.handleCheckboxChange,
        title: "Sets a flag to indicate on a change in the changelog whether the change is newly made on that server or whether it was replicated over from another server (isReplicated)"
      }, "Is Replicated"))))))));
    }
  }]);

  return RetroChangelog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

RetroChangelog.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RetroChangelog.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (RetroChangelog);

/***/ }),

/***/ "./src/lib/plugins/rootDNAccessControl.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/rootDNAccessControl.jsx ***!
  \*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var RootDNAccessControl = /*#__PURE__*/function (_React$Component) {
  _inherits(RootDNAccessControl, _React$Component);

  var _super = _createSuper(RootDNAccessControl);

  _createClass(RootDNAccessControl, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function RootDNAccessControl(props) {
    var _this;

    _classCallCheck(this, RootDNAccessControl);

    _this = _super.call(this, props);
    _this.state = {
      allowHost: [],
      denyHost: [],
      allowIP: [],
      denyIP: [],
      openTime: "",
      closeTime: "",
      daysAllowed: ""
    };
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(RootDNAccessControl, [{
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      var allowHostList = [];
      var denyHostList = [];
      var allowIPList = [];
      var denyIPList = [];

      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "RootDN Access Control";
        });
        this.setState({
          openTime: pluginRow["rootdn-open-time"] === undefined ? "" : pluginRow["rootdn-open-time"][0],
          closeTime: pluginRow["rootdn-close-time"] === undefined ? "" : pluginRow["rootdn-close-time"][0],
          daysAllowed: pluginRow["rootdn-days-allowed"] === undefined ? "" : pluginRow["rootdn-days-allowed"][0]
        });

        if (pluginRow["rootdn-allow-host"] === undefined) {
          this.setState({
            allowHost: []
          });
        } else {
          var _iterator = _createForOfIteratorHelper(pluginRow["rootdn-allow-host"]),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var value = _step.value;
              allowHostList = [].concat(_toConsumableArray(allowHostList), [value]);
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          this.setState({
            allowHost: allowHostList
          });
        }

        if (pluginRow["rootdn-deny-host"] === undefined) {
          this.setState({
            denyHost: []
          });
        } else {
          var _iterator2 = _createForOfIteratorHelper(pluginRow["rootdn-deny-host"]),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var _value = _step2.value;
              denyHostList = [].concat(_toConsumableArray(denyHostList), [_value]);
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }

          this.setState({
            denyHost: denyHostList
          });
        }

        if (pluginRow["rootdn-allow-ip"] === undefined) {
          this.setState({
            allowIP: []
          });
        } else {
          var _iterator3 = _createForOfIteratorHelper(pluginRow["rootdn-allow-ip"]),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var _value2 = _step3.value;
              allowIPList = [].concat(_toConsumableArray(allowIPList), [_value2]);
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }

          this.setState({
            allowIP: allowIPList
          });
        }

        if (pluginRow["rootdn-deny-ip"] === undefined) {
          this.setState({
            denyIP: []
          });
        } else {
          var _iterator4 = _createForOfIteratorHelper(pluginRow["rootdn-deny-ip"]),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var _value3 = _step4.value;
              denyIPList = [].concat(_toConsumableArray(denyIPList), [_value3]);
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }

          this.setState({
            denyIP: denyIPList
          });
        }
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;

      var _this$state = this.state,
          allowHost = _this$state.allowHost,
          denyHost = _this$state.denyHost,
          allowIP = _this$state.allowIP,
          denyIP = _this$state.denyIP,
          openTime = _this$state.openTime,
          closeTime = _this$state.closeTime,
          daysAllowed = _this$state.daysAllowed;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "root-dn", "set", "--open-time", openTime || "delete", "--close-time", closeTime || "delete", "--days-allowed", daysAllowed || "delete"]; // Delete attributes if the user set an empty value to the field

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--allow-host"]);

      if (allowHost.length != 0) {
        var _iterator5 = _createForOfIteratorHelper(allowHost),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var value = _step5.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [value]);
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--deny-host"]);

      if (denyHost.length != 0) {
        var _iterator6 = _createForOfIteratorHelper(denyHost),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var _value4 = _step6.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [_value4]);
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--allow-ip"]);

      if (allowIP.length != 0) {
        var _iterator7 = _createForOfIteratorHelper(allowIP),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _value5 = _step7.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [_value5]);
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["--allow-host"]);

      if (allowHost.length != 0) {
        var _iterator8 = _createForOfIteratorHelper(allowHost),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var _value6 = _step8.value;
            specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), [_value6]);
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }
      } else {
        specificPluginCMD = [].concat(_toConsumableArray(specificPluginCMD), ["delete"]);
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "RootDN Access Control",
        pluginName: "RootDN Access Control",
        cmdName: "root-dn",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "allowHost",
        controlId: "allowHost"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what hosts, by fully-qualified domain name, the root user is allowed to use to access the Directory Server. Any hosts not listed are implicitly denied (rootdn-allow-host)"
      }, "Allow Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            allowHost: value
          });
        },
        selected: allowHost,
        options: [],
        newSelectionPrefix: "Add a host to allow: ",
        placeholder: "Type a hostname (wild cards are allowed)..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "denyHost",
        controlId: "denyHost"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what hosts, by fully-qualified domain name, the root user is not allowed to use to access the Directory Server Any hosts not listed are implicitly allowed (rootdn-deny-host). If an host address is listed in both the rootdn-allow-host and rootdn-deny-host attributes, it is denied access."
      }, "Deny Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            denyHost: value
          });
        },
        selected: denyHost,
        options: [],
        newSelectionPrefix: "Add a host to deny: ",
        placeholder: "Type a hostname (wild cards are allowed)..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "allowIP",
        controlId: "allowIP"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is allowed to use to access the Directory Server Any IP addresses not listed are implicitly denied (rootdn-allow-ip)"
      }, "Allow IP address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            allowIP: value
          });
        },
        selected: allowIP,
        options: [],
        newSelectionPrefix: "Add an IP address to allow: ",
        placeholder: "Type an IP address (wild cards are allowed)..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "denyIP",
        controlId: "denyIP"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is not allowed to use to access the Directory Server. Any IP addresses not listed are implicitly allowed (rootdn-deny-ip) If an IP address is listed in both the rootdn-allow-ip and rootdn-deny-ip attributes, it is denied access."
      }, "Deny IP address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(value) {
          _this2.setState({
            denyIP: value
          });
        },
        selected: denyIP,
        options: [],
        newSelectionPrefix: "Add an IP address to deny: ",
        placeholder: "Type an IP address (wild cards are allowed)..."
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "openTime",
        controlId: "openTime"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access begins (rootdn-open-time)"
      }, "Open Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: openTime,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "closeTime",
        controlId: "closeTime"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access ends (rootdn-close-time)"
      }, "Close Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: closeTime,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "daysAllowed",
        controlId: "daysAllowed"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 3,
        title: "Gives a comma-separated list of what days the root user is allowed to use to access the Directory Server. Any days listed are implicitly denied (rootdn-days-allowed)"
      }, "Days Allowed"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: daysAllowed,
        onChange: this.handleFieldChange
      }))))))));
    }
  }]);

  return RootDNAccessControl;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

RootDNAccessControl.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RootDNAccessControl.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (RootDNAccessControl);

/***/ }),

/***/ "./src/lib/plugins/usn.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/usn.jsx ***!
  \*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var USN = /*#__PURE__*/function (_React$Component) {
  _inherits(USN, _React$Component);

  var _super = _createSuper(USN);

  _createClass(USN, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.loadSuffixList();
          this.updateSwitch();
        }
      }
    }
  }]);

  function USN(props) {
    var _this;

    _classCallCheck(this, USN);

    _this = _super.call(this, props);
    _this.runCleanup = _this.runCleanup.bind(_assertThisInitialized(_this));
    _this.toggleCleanupModal = _this.toggleCleanupModal.bind(_assertThisInitialized(_this));
    _this.updateSwitch = _this.updateSwitch.bind(_assertThisInitialized(_this));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.loadSuffixList = _this.loadSuffixList.bind(_assertThisInitialized(_this));
    _this.state = {
      firstLoad: true,
      globalMode: false,
      disableSwitch: false,
      cleanupModalShow: false,
      cleanupSuffix: "",
      cleanupMaxUSN: "",
      suffixList: []
    };
    return _this;
  }

  _createClass(USN, [{
    key: "loadSuffixList",
    value: function loadSuffixList() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "list", "--suffix"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("loadSuffixList", "Get a list of all the suffixes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var suffixList = JSON.parse(content);

        _this2.setState({
          suffixList: suffixList.items,
          cleanupSuffix: suffixList.items[0]
        });
      });
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      var _this3 = this;

      var _this$props = this.props,
          serverId = _this$props.serverId,
          addNotification = _this$props.addNotification,
          toggleLoadingHandler = _this$props.toggleLoadingHandler;
      var new_status = this.state.globalMode ? "off" : "on";
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", "usn", "global", new_status];
      toggleLoadingHandler();
      this.setState({
        disableSwitch: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("handleSwitchChange", "Switch global USN mode from the USN plugin tab", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);

        _this3.updateSwitch();

        addNotification("success", "Global USN mode was successfully set to ".concat(new_status, "."));
        toggleLoadingHandler();

        _this3.setState({
          disableSwitch: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        addNotification("error", "Error during global USN mode modification - ".concat(errMsg.desc));
        toggleLoadingHandler();

        _this3.setState({
          disableSwitch: false
        });
      });
    }
  }, {
    key: "updateSwitch",
    value: function updateSwitch() {
      var _this4 = this;

      this.setState({
        firstLoad: false,
        disableSwitch: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-entryusn-global"];
      this.props.toggleLoadingHandler();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("updateSwitch", "Get global USN status", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);
        var usnGlobalAttr = myObject.attrs["nsslapd-entryusn-global"][0];

        _this4.setState({
          globalMode: !(usnGlobalAttr == "off")
        });

        _this4.setState({
          disableSwitch: false
        });

        _this4.props.toggleLoadingHandler();
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("Get global USN failed", errMsg.desc);
        }

        _this4.setState({
          disableSwitch: false
        });

        _this4.props.toggleLoadingHandler();
      });
    }
  }, {
    key: "toggleCleanupModal",
    value: function toggleCleanupModal() {
      this.setState(function (prevState) {
        return {
          cleanupModalShow: !prevState.cleanupModalShow,
          cleanupSuffix: prevState.suffixList[0],
          cleanupMaxUSN: ""
        };
      });
    }
  }, {
    key: "runCleanup",
    value: function runCleanup() {
      var _this5 = this;

      if (!this.state.cleanupSuffix) {
        this.props.addNotification("warning", "Suffix is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "usn", "cleanup"];

        if (this.state.cleanupSuffix) {
          cmd = [].concat(_toConsumableArray(cmd), ["--suffix", this.state.cleanupSuffix]);
        }

        if (this.state.cleanupMaxUSN) {
          cmd = [].concat(_toConsumableArray(cmd), ["--max-usn", this.state.cleanupMaxUSN]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("runCleanup", "Run cleanup USN tombstones", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this5.props.addNotification("success", "Cleanup USN Tombstones task was successfull");

          _this5.props.toggleLoadingHandler();

          _this5.setState({
            cleanupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this5.props.addNotification("error", "Cleanup USN Tombstones task has failed ".concat(errMsg.desc));

          _this5.props.toggleLoadingHandler();

          _this5.setState({
            cleanupModalShow: false
          });
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this6 = this;

      var _this$state = this.state,
          globalMode = _this$state.globalMode,
          disableSwitch = _this$state.disableSwitch,
          cleanupModalShow = _this$state.cleanupModalShow,
          cleanupSuffix = _this$state.cleanupSuffix,
          cleanupMaxUSN = _this$state.cleanupMaxUSN,
          suffixList = _this$state.suffixList;
      var suffixes = suffixList.map(function (name) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          key: name,
          value: name
        }, name);
      });
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: cleanupModalShow,
        onHide: this.toggleCleanupModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleCleanupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "Fixup MemberOf Task")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "cleanupSuffix",
        key: "cleanupSuffix"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Gives the suffix in the Directory Server to run the cleanup operation against"
      }, "Cleanup Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        id: "cleanupSuffix",
        onChange: this.handleFieldChange,
        defaultValue: cleanupSuffix
      }, suffixes))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "cleanupMaxUSN",
        key: "cleanupMaxUSN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Gives the highest USN value to delete when removing tombstone entries. All tombstone entries up to and including that number are deleted. Tombstone entries with higher USN values (that means more recent entries) are not deleted"
      }, "Cleanup Max USN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "number",
        min: "1",
        value: cleanupMaxUSN,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleCleanupModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runCleanup
      }, "Run")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "USN",
        pluginName: "Update Sequence Numbers",
        cmdName: "usn",
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "globalMode",
        controlId: "globalMode"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 3,
        title: "Defines if the USN plug-in assigns unique update sequence numbers (USN) across all back end databases or to each database individually"
      }, "USN Global"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Switch"], {
        bsSize: "normal",
        title: "normal",
        id: "bsSize-example",
        value: globalMode,
        onChange: function onChange() {
          return _this6.handleSwitchChange(globalMode);
        },
        animate: false,
        disabled: disableSwitch
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        className: "ds-margin-top",
        bsStyle: "primary",
        onClick: this.toggleCleanupModal
      }, "Run Fixup Task")))));
    }
  }]);

  return USN;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

USN.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
USN.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (USN);

/***/ }),

/***/ "./src/lib/plugins/winsync.jsx":
/*!*************************************!*\
  !*** ./src/lib/plugins/winsync.jsx ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var WinSync = /*#__PURE__*/function (_React$Component) {
  _inherits(WinSync, _React$Component);

  var _super = _createSuper(WinSync);

  _createClass(WinSync, [{
    key: "componentDidMount",
    value: function componentDidMount(prevProps) {
      this.updateFields();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.rows !== prevProps.rows) {
        this.updateFields();
      }
    }
  }]);

  function WinSync(props) {
    var _this;

    _classCallCheck(this, WinSync);

    _this = _super.call(this, props);
    _this.handleCheckboxChange = _this.handleCheckboxChange.bind(_assertThisInitialized(_this));
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.updateFields = _this.updateFields.bind(_assertThisInitialized(_this));
    _this.runFixup = _this.runFixup.bind(_assertThisInitialized(_this));
    _this.toggleFixupModal = _this.toggleFixupModal.bind(_assertThisInitialized(_this));
    _this.state = {
      posixWinsyncCreateMemberOfTask: false,
      posixWinsyncLowerCaseUID: false,
      posixWinsyncMapMemberUID: false,
      posixWinsyncMapNestedGrouping: false,
      posixWinsyncMsSFUSchema: false,
      fixupModalShow: false,
      fixupDN: "",
      fixupFilter: ""
    };
    return _this;
  }

  _createClass(WinSync, [{
    key: "toggleFixupModal",
    value: function toggleFixupModal() {
      this.setState(function (prevState) {
        return {
          fixupModalShow: !prevState.fixupModalShow,
          fixupDN: "",
          fixupFilter: ""
        };
      });
    }
  }, {
    key: "runFixup",
    value: function runFixup() {
      var _this2 = this;

      if (!this.state.fixupDN) {
        this.props.addNotification("warning", "Fixup DN is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "fixup", this.state.fixupDN];

        if (this.state.fixupFilter) {
          cmd = [].concat(_toConsumableArray(cmd), ["--filter", this.state.fixupFilter]);
        }

        this.props.toggleLoadingHandler();
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])("runFixup", "Run Member UID task", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          _this2.props.addNotification("success", "Fixup task for ".concat(_this2.state.fixupDN, " was successfull"));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this2.props.addNotification("error", "Fixup task for ".concat(_this2.state.fixupDN, " has failed ").concat(errMsg.desc));

          _this2.props.toggleLoadingHandler();

          _this2.setState({
            fixupModalShow: false
          });
        });
      }
    }
  }, {
    key: "handleCheckboxChange",
    value: function handleCheckboxChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "updateFields",
    value: function updateFields() {
      if (this.props.rows.length > 0) {
        var pluginRow = this.props.rows.find(function (row) {
          return row.cn[0] === "Posix Winsync API";
        });
        this.setState({
          posixWinsyncCreateMemberOfTask: !(pluginRow["posixwinsynccreatememberoftask"] === undefined || pluginRow["posixwinsynccreatememberoftask"][0] == "false"),
          posixWinsyncLowerCaseUID: !(pluginRow["posixwinsynclowercaseuid"] === undefined || pluginRow["posixwinsynclowercaseuid"][0] == "false"),
          posixWinsyncMapMemberUID: !(pluginRow["posixwinsyncmapmemberuid"] === undefined || pluginRow["posixwinsyncmapmemberuid"][0] == "false"),
          posixWinsyncMapNestedGrouping: !(pluginRow["posixwinsyncmapnestedgrouping"] === undefined || pluginRow["posixwinsyncmapnestedgrouping"][0] == "false"),
          posixWinsyncMsSFUSchema: !(pluginRow["posixwinsyncmssfuschema"] === undefined || pluginRow["posixwinsyncmssfuschema"][0] == "false")
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$state = this.state,
          posixWinsyncCreateMemberOfTask = _this$state.posixWinsyncCreateMemberOfTask,
          posixWinsyncLowerCaseUID = _this$state.posixWinsyncLowerCaseUID,
          posixWinsyncMapMemberUID = _this$state.posixWinsyncMapMemberUID,
          posixWinsyncMapNestedGrouping = _this$state.posixWinsyncMapNestedGrouping,
          posixWinsyncMsSFUSchema = _this$state.posixWinsyncMsSFUSchema,
          fixupModalShow = _this$state.fixupModalShow,
          fixupDN = _this$state.fixupDN,
          fixupFilter = _this$state.fixupFilter;
      var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "set", "--create-memberof-task", posixWinsyncCreateMemberOfTask ? "true" : "false", "--lower-case-uid", posixWinsyncLowerCaseUID ? "true" : "false", "--map-member-uid", posixWinsyncMapMemberUID ? "true" : "false", "--map-nested-grouping", posixWinsyncMapNestedGrouping ? "true" : "false", "--ms-sfu-schema", posixWinsyncMsSFUSchema ? "true" : "false"];
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"], {
        show: fixupModalShow,
        onHide: this.toggleFixupModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", {
        className: "close",
        onClick: this.toggleFixupModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Title, null, "MemberOf Task")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupDN",
        key: "fixupDN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Base DN that contains entries to fix up"
      }, "Base DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupDN,
        onChange: this.handleFieldChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        controlId: "fixupFilter",
        key: "fixupFilter"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"], {
        title: "Filter for entries to fix up. If omitted, all entries with objectclass inetuser/inetadmin/nsmemberof under the specified base will have their memberOf attribute regenerated."
      }, "Filter DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormControl"], {
        type: "text",
        value: fixupFilter,
        onChange: this.handleFieldChange
      }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.toggleFixupModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.runFixup
      }, "Run")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
        rows: this.props.rows,
        serverId: this.props.serverId,
        cn: "Posix Winsync API",
        pluginName: "Posix Winsync API",
        cmdName: "posix-winsync",
        specificPluginCMD: specificPluginCMD,
        savePluginHandler: this.props.savePluginHandler,
        pluginListHandler: this.props.pluginListHandler,
        addNotification: this.props.addNotification,
        toggleLoadingHandler: this.props.toggleLoadingHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncCreateMemberOfTask",
        controlId: "posixWinsyncCreateMemberOfTask"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to run the memberOf fix-up task immediately after a sync run in order to update group memberships for synced users"
      }, "Create MemberOf Task"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncCreateMemberOfTask",
        checked: posixWinsyncCreateMemberOfTask,
        onChange: this.handleCheckboxChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncLowerCaseUID",
        controlId: "posixWinsyncLowerCaseUID"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to store (and, if necessary, convert) the UID value in the memberUID attribute in lower case"
      }, "Lower Case UID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncLowerCaseUID",
        checked: posixWinsyncLowerCaseUID,
        onChange: this.handleCheckboxChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMapMemberUID",
        controlId: "posixWinsyncMapMemberUID"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to map the memberUID attribute in an Active Directory group to the uniqueMember attribute in a Directory Server group"
      }, "Map Member UID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMapMemberUID",
        checked: posixWinsyncMapMemberUID,
        onChange: this.handleCheckboxChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMapNestedGrouping",
        controlId: "posixWinsyncMapNestedGrouping"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        title: "Manages if nested groups are updated when memberUID attributes in an Active Directory POSIX group change",
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6
      }, "Map Nested Grouping"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMapNestedGrouping",
        checked: posixWinsyncMapNestedGrouping,
        onChange: this.handleCheckboxChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["FormGroup"], {
        key: "posixWinsyncMsSFUSchema",
        controlId: "posixWinsyncMsSFUSchema"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
        sm: 6,
        title: "Sets whether to the older Microsoft System Services  for Unix 3.0 (msSFU30) schema when syncing Posix attributes  from Active Directory"
      }, "Microsoft System Services for Unix 3.0 (msSFU30) schema"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Checkbox"], {
        id: "posixWinsyncMsSFUSchema",
        checked: posixWinsyncMsSFUSchema,
        onChange: this.handleCheckboxChange
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
        bsStyle: "primary",
        onClick: this.toggleFixupModal,
        title: "Corrects mismatched member and uniquemember values"
      }, "Run MemberOf Task")))));
    }
  }]);

  return WinSync;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

WinSync.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  savePluginHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  pluginListHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  toggleLoadingHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
WinSync.defaultProps = {
  rows: [],
  serverId: "",
  savePluginHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  pluginListHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"],
  toggleLoadingHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (WinSync);

/***/ }),

/***/ "./src/lib/replication/replAgmts.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replAgmts.jsx ***!
  \*******************************************/
/*! exports provided: ReplAgmts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmts", function() { return ReplAgmts; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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; }









var ReplAgmts = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplAgmts, _React$Component);

  var _super = _createSuper(ReplAgmts);

  function ReplAgmts(props) {
    var _this;

    _classCallCheck(this, ReplAgmts);

    _this = _super.call(this, props);

    _defineProperty(_assertThisInitialized(_this), "_mounted", false);

    _this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      modalMsg: "",
      modalScheduleMsg: "",
      savingAgmt: false,
      mounted: false,
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "",
      agmtProtocol: "LDAP",
      agmtBindMethod: "SIMPLE",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtStripAttrs: [],
      agmtFracAttrs: [],
      agmtFracInitAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0",
      agmtEndTime: "0",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: []
    };
    _this.showCreateAgmtModal = _this.showCreateAgmtModal.bind(_assertThisInitialized(_this));
    _this.closeCreateAgmtModal = _this.closeCreateAgmtModal.bind(_assertThisInitialized(_this));
    _this.closeEditAgmtModal = _this.closeEditAgmtModal.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleModalChange = _this.handleModalChange.bind(_assertThisInitialized(_this));
    _this.handleTAFracInitAttrChange = _this.handleTAFracInitAttrChange.bind(_assertThisInitialized(_this));
    _this.handleTAFracAttrChange = _this.handleTAFracAttrChange.bind(_assertThisInitialized(_this));
    _this.handleTAStripAttrChange = _this.handleTAStripAttrChange.bind(_assertThisInitialized(_this));
    _this.handleTAFracInitAttrChangeEdit = _this.handleTAFracInitAttrChangeEdit.bind(_assertThisInitialized(_this));
    _this.handleTAFracAttrChangeEdit = _this.handleTAFracAttrChangeEdit.bind(_assertThisInitialized(_this));
    _this.handleTAStripAttrChangeEdit = _this.handleTAStripAttrChangeEdit.bind(_assertThisInitialized(_this));
    _this.createAgmt = _this.createAgmt.bind(_assertThisInitialized(_this));
    _this.showEditAgmt = _this.showEditAgmt.bind(_assertThisInitialized(_this));
    _this.saveAgmt = _this.saveAgmt.bind(_assertThisInitialized(_this));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_this));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_this));
    _this.enableAgmt = _this.enableAgmt.bind(_assertThisInitialized(_this));
    _this.disableAgmt = _this.disableAgmt.bind(_assertThisInitialized(_this));
    _this.deleteAgmt = _this.deleteAgmt.bind(_assertThisInitialized(_this));
    _this.showConfirmDeleteAgmt = _this.showConfirmDeleteAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmDeleteAgmt = _this.closeConfirmDeleteAgmt.bind(_assertThisInitialized(_this));
    _this.showConfirmInitAgmt = _this.showConfirmInitAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmInitAgmt = _this.closeConfirmInitAgmt.bind(_assertThisInitialized(_this));
    _this.confirmToggle = _this.confirmToggle.bind(_assertThisInitialized(_this));
    _this.closeConfirmEnableAgmt = _this.closeConfirmEnableAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmDisableAgmt = _this.closeConfirmDisableAgmt.bind(_assertThisInitialized(_this));
    _this.watchAgmtInit = _this.watchAgmtInit.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplAgmts, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._mounted = true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._mounted = false;
    }
  }, {
    key: "listEqual",
    value: function listEqual(old_values, new_values) {
      if (old_values.length != new_values.length) {
        return false;
      }

      for (var i = old_values.length; i--;) {
        if (old_values[i] != new_values[i]) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var time_val = "";
      var valueErr = false;
      var errObj = this.state.errObj;
      var all_good = true;
      var modal_msg = "";
      var modal_schedule_msg = "";
      var edit = false;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;

      if (e.target.name == "agmt-modal-edit") {
        var orig_attr = "_" + e.target.id;
        var attr = e.target.id;
        all_good = false;

        if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtBindMethod' && this.state.agmtBindMethod != this.state._agmtBindMethod || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtStripAttrs' && !this.listEqual(this.state.agmtStripAttrs, this.state._agmtStripAttrs) || attr != 'agmtFracAttrs' && !this.listEqual(this.state.agmtFracAttrs, this.state._agmtFracAttrs) || attr != 'agmtFracInitAttrs' && !this.listEqual(this.state.agmtFracInitAttrs, this.state._agmtFracInitAttrs)) {
          all_good = true;
        }

        if (!this.state._agmtSync) {
          if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun) {
            all_good = true;
          }
        }

        if (attr != 'agmtStripAttrs' && attr != 'agmtFracAttrs' && attr != 'agmtFracInitAttrs' && value != this.state[orig_attr]) {
          all_good = true;
        } else if (attr == 'agmtStripAttrs' && !this.listEqual(value, this.state._agmtStripAttrs) || attr == 'agmtFracAttrs' && !this.listEqual(value, this.state._agmtFracAttrs) || attr == 'agmtFracInitAttrs' && !this.listEqual(value, this.state._agmtFracInitAttrs)) {
          all_good = true;
        }
      }

      if (e.target.type == "time") {
        // Strip out the colon from the time
        time_val = value.replace(':', '');
      }

      if (e.target.name.startsWith("agmt-modal")) {
        // Validate modal settings "live"
        if (e.target.id == 'agmtName') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtName == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtHost') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtHost == "") {
          all_good = false;
        } else if (edit && value == this.state._agmtHost) {
          all_good = false;
        }

        if (e.target.id == 'agmtPort') {
          if (value == "") {
            all_good = false;
          } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(value)) {
            all_good = false;
            errObj['agmtPort'] = true;
            modal_msg = "Invalid Consumer Port number";
          }
        } else if (this.state.agmtPort == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindDN') {
          if (value == "") {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtBindDN'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Bind DN";
          }
        } else if (this.state.agmtBindDN == "") {
          all_good = false;
        } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(this.state.agmtBindDN)) {
          modal_msg = "Invalid DN for Bind DN";
          errObj['agmtBindDN'] = true;
          all_good = false;
        }

        if (e.target.id == 'agmtBindPW') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPWConfirm) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPW == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindPWConfirm') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPW) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPWConfirm == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtSync') {
          if (!value) {
            if (this.state.agmtStartTime >= this.state.agmtEndTime) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            }
          }
        } else if (!this.state.agmtSync) {
          // Check the days first
          var have_days = false;
          var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

          for (var _i = 0, _days = days; _i < _days.length; _i++) {
            var day = _days[_i];

            if (e.target.id != day && this.state[day] || e.target.id == day && value) {
              have_days = true;
              break;
            }
          }

          if (!have_days) {
            modal_schedule_msg = "You must select at least one day for replication";
            all_good = false;
          } else if (e.target.id == 'agmtStartTime') {
            if (time_val == "") {
              all_good = false;
              errObj['agmtStartTime'] = true;
              modal_schedule_msg = "Schedule start time must be set";
            } else if (time_val >= this.state.agmtEndTime.replace(":", "")) {
              errObj['agmtStartTime'] = true;
              all_good = false;
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (e.target.id == 'agmtEndTime') {
            if (time_val == "") {
              errObj['agmtEndTime'] = true;
              all_good = false;
            } else if (this.state.agmtStartTime.replace(":", "") >= time_val) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
            modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            errObj['agmtStartTime'] = true;
            all_good = false;
          }
        } // End of agmt modal live validation

      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "agmtSaveOK", all_good), _defineProperty(_this$setState2, "modalMsg", modal_msg), _defineProperty(_this$setState2, "modalScheduleMsg", modal_schedule_msg), _this$setState2));
    }
  }, {
    key: "handleTAStripAttrChangeEdit",
    value: function handleTAStripAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtStripAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChangeEdit",
    value: function handleTAFracAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracInitAttrChangeEdit",
    value: function handleTAFracInitAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracInitAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAStripAttrChange",
    value: function handleTAStripAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtStripAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChange",
    value: function handleTAFracAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracInitAttrChange",
    value: function handleTAFracInitAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracInitAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "showConfirmDeleteAgmt",
    value: function showConfirmDeleteAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmDeleteAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmDeleteAgmt",
    value: function closeConfirmDeleteAgmt() {
      this.setState({
        showConfirmDeleteAgmt: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "showConfirmInitAgmt",
    value: function showConfirmInitAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmInitAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmInitAgmt",
    value: function closeConfirmInitAgmt() {
      this.setState({
        showConfirmInitAgmt: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "showCreateAgmtModal",
    value: function showCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: true,
        agmtName: "",
        agmtHost: "",
        agmtPort: "",
        agmtProtocol: "LDAP",
        agmtBindMethod: "SIMPLE",
        agmtBindDN: "",
        agmtBindPW: "",
        agmtBindPWConfirm: "",
        agmtStripAttrs: [],
        agmtFracAttrs: [],
        agmtFracInitAttrs: [],
        agmtSync: true,
        agmtSyncMon: true,
        agmtSyncTue: true,
        agmtSyncWed: true,
        agmtSyncThu: true,
        agmtSyncFri: true,
        agmtSyncSat: true,
        agmtSyncSun: true,
        agmtStartTime: "00:00",
        agmtEndTime: "23:59",
        agmtInit: "noinit",
        agmtSaveOK: false,
        modalScheduleMsg: "",
        errObj: {
          // Marks all the fields as required
          agmtName: true,
          agmtHost: true,
          agmtPort: true,
          agmtBindDN: true,
          agmtBindPW: true,
          agmtBindPWConfirm: true,
          agmtStartTime: false,
          agmtEndTime: false
        }
      });
    }
  }, {
    key: "closeCreateAgmtModal",
    value: function closeCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: false
      });
    }
  }, {
    key: "closeEditAgmtModal",
    value: function closeEditAgmtModal() {
      this.setState({
        showEditAgmtModal: false
      });
    }
  }, {
    key: "showEditAgmt",
    value: function showEditAgmt(agmtName) {
      var _this2 = this;

      // Search for the agmt to get all the details
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('showEditAgmt', 'Edit replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var agmtName = "";
        var agmtHost = "";
        var agmtPort = "";
        var agmtProtocol = "";
        var agmtBindMethod = "";
        var agmtBindDN = "";
        var agmtBindPW = "";
        var agmtBindPWConfirm = "";
        var agmtStripAttrs = [];
        var agmtFracAttrs = [];
        var agmtFracInitAttrs = [];
        var agmtSync = true;
        var agmtSyncMon = false;
        var agmtSyncTue = false;
        var agmtSyncWed = false;
        var agmtSyncThu = false;
        var agmtSyncFri = false;
        var agmtSyncSat = false;
        var agmtSyncSun = false;
        var agmtStartTime = "";
        var agmtEndTime = "";

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "cn") {
            agmtName = val;
          }

          if (attr == "nsds5replicahost") {
            agmtHost = val;
          }

          if (attr == "nsds5replicaport") {
            agmtPort = val;
          }

          if (attr == "nsds5replicatransportinfo") {
            agmtProtocol = val;
          }

          if (attr == "nsds5replicabindmethod") {
            agmtBindMethod = val.toUpperCase();
          }

          if (attr == "nsds5replicabinddn") {
            agmtBindDN = val;
          }

          if (attr == "nsds5replicacredentials") {
            agmtBindPW = val;
            agmtBindPWConfirm = val;
          }

          if (attr == "nsds5replicatedattributelist") {
            var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
            agmtFracAttrs = attrs.split(' ');
          }

          if (attr == "nsds5replicatedattributelisttotal") {
            var _attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();

            agmtFracInitAttrs = _attrs.split(' ');
          }

          if (attr == "nsds5replicastripattrs") {
            agmtStripAttrs = val.split(' ');
          }

          if (attr == "nsds5replicaupdateschedule") {
            agmtSync = false; // Parse schedule

            var parts = val.split(' ');
            var times = parts[0].split('-');
            var days = parts[1]; // Do the times

            agmtStartTime = times[0].substring(0, 2) + ":" + times[0].substring(2, 4);
            agmtEndTime = times[1].substring(0, 2) + ":" + times[1].substring(2, 4); // Do the days

            if (days.includes("0")) {
              agmtSyncSun = true;
            }

            if (days.includes("1")) {
              agmtSyncMon = true;
            }

            if (days.includes("2")) {
              agmtSyncTue = true;
            }

            if (days.includes("3")) {
              agmtSyncWed = true;
            }

            if (days.includes("4")) {
              agmtSyncThu = true;
            }

            if (days.includes("5")) {
              agmtSyncFri = true;
            }

            if (days.includes("6")) {
              agmtSyncSat = true;
            }
          }
        }

        if (_this2._mounted) {
          _this2.setState({
            showEditAgmtModal: true,
            agmtName: agmtName,
            agmtHost: agmtHost,
            agmtPort: agmtPort,
            agmtProtocol: agmtProtocol,
            agmtBindMethod: agmtBindMethod,
            agmtBindDN: agmtBindDN,
            agmtBindPW: agmtBindPW,
            agmtBindPWConfirm: agmtBindPWConfirm,
            agmtStripAttrs: agmtStripAttrs,
            agmtFracAttrs: agmtFracAttrs,
            agmtFracInitAttrs: agmtFracInitAttrs,
            agmtSync: agmtSync,
            agmtSyncMon: agmtSyncMon,
            agmtSyncTue: agmtSyncTue,
            agmtSyncWed: agmtSyncWed,
            agmtSyncThu: agmtSyncThu,
            agmtSyncFri: agmtSyncFri,
            agmtSyncSat: agmtSyncSat,
            agmtSyncSun: agmtSyncSun,
            agmtStartTime: agmtStartTime,
            agmtEndTime: agmtEndTime,
            agmtSaveOK: false,
            // Record original values before editing
            _agmtName: agmtName,
            _agmtHost: agmtHost,
            _agmtPort: agmtPort,
            _agmtProtocol: agmtProtocol,
            _agmtBindMethod: agmtBindMethod,
            _agmtBindDN: agmtBindDN,
            _agmtBindPW: agmtBindPW,
            _agmtBindPWConfirm: agmtBindPWConfirm,
            _agmtStripAttrs: agmtStripAttrs,
            _agmtFracAttrs: agmtFracAttrs,
            _agmtFracInitAttrs: agmtFracInitAttrs,
            _agmtSync: agmtSync,
            _agmtSyncMon: agmtSyncMon,
            _agmtSyncTue: agmtSyncTue,
            _agmtSyncWed: agmtSyncWed,
            _agmtSyncThu: agmtSyncThu,
            _agmtSyncFri: agmtSyncFri,
            _agmtSyncSat: agmtSyncSat,
            _agmtSyncSun: agmtSyncSun,
            _agmtStartTime: agmtStartTime,
            _agmtEndTime: agmtEndTime
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveAgmt",
    value: function saveAgmt() {
      var _this3 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } else if (this.state.agmtSync != this.state._agmtSync && this.state.agmtSync) {
        // We disabled custom scheduleRow
        cmd.push('--schedule=');
      }

      if (this.state.agmtBindMethod != this.state._agmtBindMethod) {
        cmd.push('--bind-method=' + this.state.agmtBindMethod);
      }

      if (this.state.agmtProtocol != this.state._agmtProtocol) {
        cmd.push('--conn-protocol=' + this.state.agmtProtocol);
      }

      if (this.state.agmtBindPW != this.state._agmtBindPW) {
        cmd.push('--bind-passwd=' + this.state.agmtBindPW);
      }

      if (this.state.agmtBindDN != this.state._agmtBindDN) {
        cmd.push('--bind-dn=' + this.state.agmtBindDN);
      }

      if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtFracInitAttrs != this.state._agmtFracInitAttrs) {
        cmd.push('--frac-list-total=' + this.state.agmtFracInitAttrs.join(' '));
      }

      if (this.state.agmtStripAttrs != this.state._agmtStripAttrs) {
        cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
      }

      if (this.state.agmtHost != this.state._agmtHost) {
        cmd.push('--host=' + this.state.agmtHost);
      }

      if (this.state.agmtPort != this.state._agmtPort) {
        cmd.push('--port=' + this.state.agmtPort);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('saveAgmt', 'update replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        if (_this3._mounted) {
          _this3.setState({
            savingAgmt: false,
            showEditAgmtModal: false
          });
        }

        _this3.props.addNotification('success', 'Successfully updated replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to update replication agreement - ".concat(errMsg.desc));

        _this3.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(agmtName) {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('pokeAgmt', 'send updates now', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification('success', 'Successfully poked replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification('error', "Failed to poke replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt(agmtName) {
      var _this5 = this;

      var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('initAgmt', 'Initialize agreement', init_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(init_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        var agmtIntervalCount = _this5.state.agmtInitCounter + 1;
        var intervals = _this5.state.agmtInitIntervals;

        _this5.props.reload(_this5.props.suffix);

        intervals[agmtIntervalCount] = setInterval(_this5.watchAgmtInit, 2000, _this5.state.agmtName, agmtIntervalCount);

        if (_this5._mounted) {
          _this5.setState({
            agmtInitCounter: agmtIntervalCount,
            agmtInitIntervals: intervals,
            showConfirmInitAgmt: false
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification('error', "Failed to initialize replication agreement - ".concat(errMsg.desc));

        _this5.setState({
          showConfirmInitAgmt: false
        });
      });
    }
  }, {
    key: "confirmToggle",
    value: function confirmToggle(agmtName, state) {
      if (state == 'Enabled') {
        this.setState({
          agmtName: agmtName,
          showConfirmDisableAgmt: true
        });
      } else {
        this.setState({
          agmtName: agmtName,
          showConfirmEnableAgmt: true
        });
      }
    }
  }, {
    key: "closeConfirmEnableAgmt",
    value: function closeConfirmEnableAgmt() {
      this.setState({
        showConfirmEnableAgmt: false
      });
    }
  }, {
    key: "closeConfirmDisableAgmt",
    value: function closeConfirmDisableAgmt() {
      this.setState({
        showConfirmDisableAgmt: false
      });
    }
  }, {
    key: "enableAgmt",
    value: function enableAgmt(agmtName) {
      var _this6 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'enable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('enableAgmt', 'enable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification('success', 'Successfully enabled replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to enabled replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "disableAgmt",
    value: function disableAgmt(agmtName) {
      var _this7 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'disable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('disableAgmt', 'Disable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.props.reload(_this7.props.suffix);

        _this7.props.addNotification('success', 'Successfully disabled replication agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to disable replication agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteAgmt",
    value: function deleteAgmt() {
      var _this8 = this;

      this.setState({
        deleteSpinning: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('deleteAgmt', 'Delete agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this8.props.reload(_this8.props.suffix);

        _this8.props.addNotification('success', 'Successfully deleted replication agreement');

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to delete replication agreement - ".concat(errMsg.desc));

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      });
    }
  }, {
    key: "createAgmt",
    value: function createAgmt() {
      var _this9 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--bind-method=' + this.state.agmtBindMethod, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } // Handle fractional and stripped attributes


      if (this.state.agmtFracAttrs.length > 0) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtFracInitAttrs.length > 0) {
        cmd.push('--frac-list-total=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtStripAttrs.length > 0) {
        cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('createAgmt', 'Create replication agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.reload(_this9.props.suffix);

        if (_this9._mounted) {
          _this9.setState({
            savingAgmt: false,
            showCreateAgmtModal: false
          });
        }

        _this9.props.addNotification('success', 'Successfully created replication agreement');

        if (_this9.state.agmtInit == 'online-init') {
          _this9.initAgmt(_this9.state.agmtName);
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to create replication agreement - ".concat(errMsg.desc));

        _this9.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "watchAgmtInit",
    value: function watchAgmtInit(agmtName, idx) {
      var _this10 = this;

      // Watch the init, then clear the interval index
      var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(status_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (data) {
        var init_status = JSON.parse(data);

        if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
          // Either way we're done, stop watching the status
          clearInterval(_this10.state.agmtInitIntervals[idx]);
        }

        _this10.props.reload(_this10.props.suffix);
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplAgmtTable"], {
        rows: this.props.rows,
        edit: this.showEditAgmt,
        poke: this.pokeAgmt,
        init: this.showConfirmInitAgmt,
        enable: this.confirmToggle,
        "delete": this.showConfirmDeleteAgmt
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top ds-container ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showCreateAgmtModal
      }, "Create Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-left-margin",
        bsStyle: "default",
        onClick: function onClick() {
          _this11.props.reload(_this11.props.suffix);
        }
      }, "Refresh Agreements")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmtModal"], {
        showModal: this.state.showCreateAgmtModal,
        closeHandler: this.closeCreateAgmtModal,
        handleChange: this.handleChange,
        handleStripChange: this.handleTAStripAttrChange,
        handleFracChange: this.handleTAFracAttrChange,
        handleFracInitChange: this.handleTAFracInitAttrChange,
        saveHandler: this.createAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtBindMethod: this.state.agmtBindMethod,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmtModal"], {
        showModal: this.state.showEditAgmtModal,
        closeHandler: this.closeEditAgmtModal,
        handleChange: this.handleChange,
        handleStripChange: this.handleTAStripAttrChangeEdit,
        handleFracChange: this.handleTAFracAttrChangeEdit,
        handleFracInitChange: this.handleTAFracInitAttrChangeEdit,
        saveHandler: this.saveAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtBindMethod: this.state.agmtBindMethod,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK,
        edit: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDeleteAgmt,
        closeHandler: this.closeConfirmDeleteAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.deleteAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Delete Replication Agreement",
        mMsg: "Are you sure you want to delete this replication agreement?",
        mSpinningMsg: "Deleting Replication Agreement ...",
        mBtnName: "Delete Agreement"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmInitAgmt,
        closeHandler: this.closeConfirmInitAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.initAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Replication Agreement",
        mMsg: "Are you sure you want to initialize this replication agreement?",
        mSpinningMsg: "Initializing Replication Agreement ...",
        mBtnName: "Initialize Agreement"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmEnableAgmt,
        closeHandler: this.closeConfirmEnableAgmt,
        actionFunc: this.enableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to enable this replication agreement?",
        msgContent: this.state.agmtName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisableAgmt,
        closeHandler: this.closeConfirmDisableAgmt,
        actionFunc: this.disableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to disable this replication agreement?",
        msgContent: this.state.agmtName
      }));
    }
  }]);

  return ReplAgmts;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
ReplAgmts.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array
};
ReplAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  attrs: []
};

/***/ }),

/***/ "./src/lib/replication/replChangelog.jsx":
/*!***********************************************!*\
  !*** ./src/lib/replication/replChangelog.jsx ***!
  \***********************************************/
/*! exports provided: Changelog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Changelog", function() { return Changelog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var Changelog = /*#__PURE__*/function (_React$Component) {
  _inherits(Changelog, _React$Component);

  var _super = _createSuper(Changelog);

  function Changelog(props) {
    var _this;

    _classCallCheck(this, Changelog);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      errObj: {},
      showConfirmDelete: false,
      // Changelog settings
      clDir: _this.props.clDir,
      clMaxEntries: _this.props.clMaxEntries,
      clMaxAge: _this.props.clMaxAge,
      clCompactInt: _this.props.clCompactInt,
      clTrimInt: _this.props.clTrimInt,
      clEncrypt: _this.props.clEncrypt,
      // Preserve original settings
      _clDir: _this.props.clDir,
      _clMaxEntries: _this.props.clMaxEntries,
      _clMaxAge: _this.props.clMaxAge,
      _clCompactInt: _this.props.clCompactInt,
      _clTrimInt: _this.props.clTrimInt,
      _clEncrypt: _this.props.clEncrypt
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.saveSettings = _this.saveSettings.bind(_assertThisInitialized(_this));
    _this.createChangelog = _this.createChangelog.bind(_assertThisInitialized(_this));
    _this.confirmChangelogDelete = _this.confirmChangelogDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_this));
    _this.deleteChangelog = _this.deleteChangelog.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Changelog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "createChangelog",
    value: function createChangelog() {
      var _this2 = this;

      this.setState({
        saving: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'create-changelog'];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.props.reload();

        _this2.props.addNotification("success", "Successfully created replication changelog");

        _this2.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload();

        _this2.setState({
          saving: false
        });

        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.props.addNotification("error", "Error creating changelog - ".concat(msg));
      });
    }
  }, {
    key: "confirmChangelogDelete",
    value: function confirmChangelogDelete() {
      this.setState({
        showConfirmDelete: true
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        showConfirmDelete: false
      });
    }
  }, {
    key: "deleteChangelog",
    value: function deleteChangelog() {
      var _this3 = this;

      this.setState({
        saving: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'delete-changelog'];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this3.props.reload();

        _this3.props.addNotification("success", "Successfully deleted replication changelog");

        _this3.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reload();

        _this3.setState({
          saving: false
        });

        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.props.addNotification("error", "Error deleting changelog - ".concat(msg));
      });
    }
  }, {
    key: "saveSettings",
    value: function saveSettings() {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set-changelog'];

      if (this.state.clDir != this.state._clDir) {
        if (this.state.clDir == "") {
          // Changelog directory can not be empty
          var errObj = this.state.errObj;
          errObj["clDir"] = true;
          this.setState({
            errObj: errObj
          });
          return;
        }

        cmd.push("--cl-dir=" + this.state.clDir);
      }

      if (this.state.clMaxEntries != this.state._clMaxEntries) {
        cmd.push("--max-entries=" + this.state.clMaxEntries);
      }

      if (this.state.clMaxAge != this.state._clMaxAge) {
        cmd.push("--max-age=" + this.state.clMaxAge);
      }

      if (this.state.clCompactInt != this.state._clCompactInt) {
        cmd.push("--compact-interval=" + this.state.clCompactInt);
      }

      if (this.state.clTrimInt != this.state._clTrimInt) {
        cmd.push("--trim-interval=" + this.state.clTrimInt);
      }

      if (this.state.clEncrypt != this.state._clEncrypt) {// TODO - Not implemented in dsconf yet
        // cmd.push("--encrypt=" + this.state.clEncrypt);
      }

      if (cmd.length > 5) {
        this.setState({
          // Start the spinner
          saving: true
        });
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveSettings", "Applying replication changelog changes", cmd);
        var msg = "Successfully updated changelog configuration.";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this4.props.reload();

          _this4.props.addNotification("success", msg);

          _this4.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this4.props.reload();

          _this4.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this4.props.addNotification("error", "Error updating changelog configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (e.target.id == "clDir" && value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "render",
    value: function render() {
      var clPage;

      if (this.state._clDir == "") {
        // No changelog, only show clDir and Create button
        clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 12,
          className: "ds-word-wrap"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"], {
          className: "ds-suffix-header"
        }, "Replication Changelog", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh changelog settings",
          onClick: this.props.reload
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-med ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, "There is no Replication Changelog"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top-lg",
          title: "Create the replication changelog"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
          bsStyle: "primary",
          onClick: this.createChangelog
        }, "Create Changelog"))));
      } else if (this.state.saving) {
        clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving changelog configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      } else if (this.props.loading) {
        clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading changelog configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      } else {
        clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 5,
          className: "ds-word-wrap"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Replication Changelog", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh changelog settings",
          onClick: this.props.reload
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 7
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
          className: "ds-float-right",
          bsStyle: "danger",
          onClick: this.confirmChangelogDelete
        }, "Delete Changelog"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top",
          title: "The filesystem location of the replication changelog database"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clDir,
          id: "clDir",
          onChange: this.handleChange,
          className: this.state.errObj.clDir ? "ds-input-auto-bad" : "ds-input-auto"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top",
          title: "Changelog trimming parameter.  Set the maximum number of changelog entries allowed in the database (nsslapd-changelogmaxentries)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Maximum Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clMaxEntries,
          id: "clMaxEntries",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top",
          title: "Changelog trimming parameter.  This set the maximum age of a changelog entry.  It is recommended to use the same value as the Replication Purge Delay.  (nsslapd-changelogmaxage)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Maximum Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clMaxAge,
          id: "clMaxAge",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top",
          title: "The changelog trimming interval.  Set how often the changelog checks if there are entries that can be purged from the changelog based on the trimming parameters (nsslapd-changelogtrim-interval)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Trimming Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clTrimInt,
          id: "clTrimInt",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top",
          title: "The changelog compaction interval.  Set how often the changelog will compact itself, meaning remove empty/trimmed database slots.  The default is 30 days. (nsslapd-changelogcompactdb-interval)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Compaction Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          value: this.state.clCompactInt,
          id: "clCompactInt",
          onChange: this.handleChange,
          className: "ds-input-auto"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          hidden: true,
          className: "ds-margin-top",
          title: "TLS must first be enabled in the server for change encryption to work.  Please consult Administration Guide for more details."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["ControlLabel"],
          sm: 4
        }, "Changelog Encryption"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Checkbox"], {
          id: "clEncrypt",
          checked: this.state.clEncrypt,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Row"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Button"], {
          bsStyle: "primary",
          onClick: this.saveSettings
        }, "Save")))));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, clPage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        actionFunc: this.deleteChangelog,
        msg: "Are you sure you want to delete the changelog?",
        msgContent: "This will invalidate all replication agreements, and they will need to be reinitialized."
      }));
    }
  }]);

  return Changelog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
Changelog.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clDir: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clMaxEntries: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clMaxAge: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clCompactInt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clTrimInt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  clEncrypt: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func
};
Changelog.defaultProps = {
  serverId: "",
  clDir: "",
  clMaxEntries: "",
  clMaxAge: "",
  clCompactInt: "",
  clTrimInt: "",
  clEncrypt: false,
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"]
};

/***/ }),

/***/ "./src/lib/replication/replConfig.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replConfig.jsx ***!
  \********************************************/
/*! exports provided: ReplConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplConfig", function() { return ReplConfig; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








 // import PropTypes from "prop-types";

var ReplConfig = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplConfig, _React$Component);

  var _super = _createSuper(ReplConfig);

  function ReplConfig(props) {
    var _this;

    _classCallCheck(this, ReplConfig);

    _this = _super.call(this, props);
    _this.state = {
      saving: false,
      showConfirmManagerDelete: false,
      showAddManagerModal: false,
      showPromoteDemoteModal: false,
      addManagerSpinning: false,
      roleChangeSpinning: false,
      manager: "cn=replication manager,cn=config",
      manager_passwd: "",
      manager_passwd_confirm: "",
      newRole: _this.props.role == "Master" ? "Hub" : "Master",
      newRID: "1",
      modalChecked: false,
      errObj: {},
      // Config Settings
      nsds5replicabinddn: _this.props.data['nsds5replicabinddn'],
      nsds5replicabinddngroup: _this.props.data['nsds5replicabinddngroup'],
      nsds5replicabinddngroupcheckinterval: _this.props.data['nsds5replicabinddngroupcheckinterval'],
      nsds5replicareleasetimeout: _this.props.data['nsds5replicareleasetimeout'],
      nsds5replicapurgedelay: _this.props.data['nsds5replicapurgedelay'],
      nsds5replicatombstonepurgeinterval: _this.props.data['nsds5replicatombstonepurgeinterval'],
      nsds5replicaprecisetombstonepurging: _this.props.data['nsds5replicaprecisetombstonepurging'],
      nsds5replicaprotocoltimeout: _this.props.data['nsds5replicaprotocoltimeout'],
      nsds5replicabackoffmin: _this.props.data['nsds5replicabackoffmin'],
      nsds5replicabackoffmax: _this.props.data['nsds5replicabackoffmax'],
      // Original settings
      _nsds5replicabinddn: _this.props.data['nsds5replicabinddn'],
      _nsds5replicabinddngroup: _this.props.data['nsds5replicabinddngroup'],
      _nsds5replicabinddngroupcheckinterval: _this.props.data['nsds5replicabinddngroupcheckinterval'],
      _nsds5replicareleasetimeout: _this.props.data['nsds5replicareleasetimeout'],
      _nsds5replicapurgedelay: _this.props.data['nsds5replicapurgedelay'],
      _nsds5replicatombstonepurgeinterval: _this.props.data['nsds5replicatombstonepurgeinterval'],
      _nsds5replicaprecisetombstonepurging: _this.props.data['nsds5replicaprecisetombstonepurging'],
      _nsds5replicaprotocoltimeout: _this.props.data['nsds5replicaprotocoltimeout'],
      _nsds5replicabackoffmin: _this.props.data['nsds5replicabackoffmin'],
      _nsds5replicabackoffmax: _this.props.data['nsds5replicabackoffmax']
    };
    _this.confirmManagerDelete = _this.confirmManagerDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmManagerDelete = _this.closeConfirmManagerDelete.bind(_assertThisInitialized(_this));
    _this.deleteManager = _this.deleteManager.bind(_assertThisInitialized(_this));
    _this.showAddManager = _this.showAddManager.bind(_assertThisInitialized(_this));
    _this.closeAddManagerModal = _this.closeAddManagerModal.bind(_assertThisInitialized(_this));
    _this.addManager = _this.addManager.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleManagerChange = _this.handleManagerChange.bind(_assertThisInitialized(_this));
    _this.showPromoteDemoteModal = _this.showPromoteDemoteModal.bind(_assertThisInitialized(_this));
    _this.closePromoteDemoteModal = _this.closePromoteDemoteModal.bind(_assertThisInitialized(_this));
    _this.doRoleChange = _this.doRoleChange.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplConfig, [{
    key: "doRoleChange",
    value: function doRoleChange(changeType) {
      var _this2 = this;

      var action = "demote";

      if (changeType == "Promoting") {
        action = "promote";
      }

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', action, '--suffix=' + this.props.suffix, "--newrole=" + this.state.newRole];

      if (this.state.newRole == "Master") {
        var ridNum = parseInt(this.state.newRID, 10);

        if (ridNum < 1 || ridNum >= 65535) {
          this.props.addNotification("error", "A Master replica requires a unique numerical identifier.  Please enter an ID between 1 and 65534");
          return;
        }

        cmd.push("--replica-id=" + this.state.newRID);
      }

      this.setState({
        roleChangeSpinning: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('doRoleChange', 'change replica role', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload();

        _this2.props.addNotification("success", "Successfully ".concat(action, "d replica to a ").concat(_this2.state.newRole));

        _this2.setState({
          roleChangeSpinning: false,
          showPromoteDemoteModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.reload();

        _this2.props.addNotification("error", "Failed to ".concat(action, " replica - ").concat(errMsg.desc));

        _this2.setState({
          roleChangeSpinning: false,
          showPromoteDemoteModal: false
        });
      });
    }
  }, {
    key: "closePromoteDemoteModal",
    value: function closePromoteDemoteModal() {
      this.setState({
        showPromoteDemoteModal: false
      });
    }
  }, {
    key: "showPromoteDemoteModal",
    value: function showPromoteDemoteModal() {
      this.setState({
        showPromoteDemoteModal: true,
        modalChecked: false
      });
    }
  }, {
    key: "closeAddManagerModal",
    value: function closeAddManagerModal() {
      this.setState({
        showAddManagerModal: false
      });
    }
  }, {
    key: "showAddManager",
    value: function showAddManager() {
      this.setState({
        showAddManagerModal: true,
        manager: "cn=replication manager,cn=config",
        manager_passwd: "",
        manager_passwd_confirm: "",
        errObj: {
          manager_passwd: true,
          manager_passwd_confirm: true
        }
      });
    }
  }, {
    key: "addManager",
    value: function addManager() {
      var _this3 = this;

      // Validate DN
      if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["valid_dn"])(this.state.manager)) {
        this.props.addNotification("error", "Invalid DN for the Replication Manager: ".concat(this.state.manager));
        return;
      }

      if (this.state.manager_passwd == "" || this.state.manager_passwd_confirm == "") {
        this.props.addNotification("error", "You must provide a password for the Replication Manager");
        return;
      }

      if (this.state.manager_passwd != this.state.manager_passwd_confirm) {
        this.props.addNotification("error", "Passwords do not match");
        return;
      }

      this.setState({
        addManagerSpinning: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "create-manager", "--suffix=" + this.props.suffix, "--name=" + this.state.manager, "--passwd=" + this.state.manager_passwd];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("addManager", "Adding Replication Manager", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reloadConfig(_this3.props.suffix);

        _this3.props.addNotification("success", "Successfully added Replication Manager");

        _this3.setState({
          addManagerSpinning: false,
          showAddManagerModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.reloadConfig(_this3.props.suffix);

        _this3.props.addNotification("error", "Failure adding Replication Manager - ".concat(errMsg.desc));

        _this3.setState({
          addManagerSpinning: false,
          showAddManagerModal: false
        });
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleManagerChange",
    value: function handleManagerChange(e) {
      var _this$setState2;

      var value = e.target.value;
      var attr = e.target.id;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      } // Handle password chnages


      if (attr == "manager_passwd") {
        if (value != this.state.manager_passwd_confirm) {
          // No match
          valueErr = true;
        } else {
          errObj[attr] = false;
          errObj['manager_passwd_confirm'] = false;
        }
      } else if (attr == "manager_passwd_confirm") {
        if (value != this.state.manager_passwd) {
          // No match
          valueErr = true;
        } else {
          errObj[attr] = false;
          errObj['manager_passwd'] = false;
        }
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2));
    }
  }, {
    key: "confirmManagerDelete",
    value: function confirmManagerDelete(item) {
      this.setState({
        showConfirmManagerDelete: true,
        manager: item.name
      });
    }
  }, {
    key: "closeConfirmManagerDelete",
    value: function closeConfirmManagerDelete() {
      this.setState({
        showConfirmManagerDelete: false,
        manager: ""
      });
    }
  }, {
    key: "deleteManager",
    value: function deleteManager(dn) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "delete-manager", "--suffix=" + this.props.suffix, "--name=" + dn];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteManager", "Deleting Replication Manager", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this4.props.reloadConfig(_this4.props.suffix);

        _this4.props.addNotification("success", "Successfully removed Replication Manager");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.reloadConfig(_this4.props.suffix);

        _this4.props.addNotification("error", "Failure removing Replication Manager - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this5 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set', '--suffix=' + this.props.suffix];

      if (this.state.nsds5replicabackoffmax != this.state._nsds5replicabackoffmax) {
        cmd.push("--repl-backoff-max=" + this.state.nsds5replicabackoffmax);
      }

      if (this.state.nsds5replicabackoffmin != this.state._nsds5replicabackoffmin) {
        cmd.push("--repl-backoff-min=" + this.state.nsds5replicabackoffmin);
      }

      if (this.state.nsds5replicaprotocoltimeout != this.state._nsds5replicaprotocoltimeout) {
        cmd.push("--repl-protocol-timeout=" + this.state.nsds5replicaprotocoltimeout);
      }

      if (this.state.nsds5replicaprecisetombstonepurging != this.state._nsds5replicaprecisetombstonepurging) {
        if (this.state.nsds5replicaprecisetombstonepurging) {
          cmd.push("--repl-fast-tombstone-purging=on");
        } else {
          cmd.push("--repl-fast-tombstone-purging=off");
        }
      }

      if (this.state.nsds5replicatombstonepurgeinterval != this.state._nsds5replicatombstonepurgeinterval) {
        cmd.push("--repl-tombstone-purge-interval=" + this.state.nsds5replicatombstonepurgeinterval);
      }

      if (this.state.nsds5replicabinddngroup != this.state._nsds5replicabinddngroup) {
        cmd.push("--repl-bind-group=" + this.state.nsds5replicabinddngroup);
      }

      if (this.state.nsds5replicabinddngroupcheckinterval != this.state._nsds5replicabinddngroupcheckinterval) {
        cmd.push("--repl-bind-group-interval=" + this.state.nsds5replicabinddngroupcheckinterval);
      }

      if (this.state.nsds5replicareleasetimeout != this.state._nsds5replicareleasetimeout) {
        cmd.push("--repl-release-timeout=" + this.state.nsds5replicareleasetimeout);
      }

      if (this.state.nsds5replicapurgedelay != this.state._nsds5replicapurgedelay) {
        cmd.push("--repl-purge-delay=" + this.state.nsds5replicapurgedelay);
      }

      if (cmd.length > 6) {
        this.setState({
          // Start the spinner
          saving: true
        });
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Applying replication changes", cmd);
        var msg = "Successfully updated replication configuration.";
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this5.props.reloadConfig(_this5.props.suffix);

          _this5.props.addNotification("success", msg);

          _this5.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this5.props.reloadConfig(_this5.props.suffix);

          _this5.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this5.props.addNotification("error", "Error updating replication configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var content = "";
      var roleButton = "";
      var manager_rows = [];

      var _iterator = _createForOfIteratorHelper(this.props.data.nsds5replicabinddn),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;
          manager_rows.push({
            'name': row
          });
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (this.props.role == "Master") {
        roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Demote this Master replica to a Hub or Consumer",
          className: "ds-inline-btn"
        }, "Demote");
      } else if (this.props.role == "Hub") {
        roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Promote or Demote this Hub replica to a Master or Consumer",
          className: "ds-inline-btn"
        }, "Promote/Demote");
      } else {
        // Consumer
        roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showPromoteDemoteModal,
          title: "Promte this Consumer replica to a Master or Hub",
          className: "ds-inline-btn"
        }, "Promote");
      }

      if (this.state.saving) {
        content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xxlg ds-loading-spinner-tree ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving replication configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xxlg ds-left-margin"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-xlg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica Role")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          type: "text",
          defaultValue: this.props.role,
          size: "10",
          disabled: true
        }), roleButton)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica ID")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
          type: "text",
          defaultValue: this.props.data.nsds5replicaid,
          size: "10",
          disabled: true
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_5__["ManagerTable"], {
          rows: manager_rows,
          confirmDelete: this.confirmManagerDelete
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.showAddManager
        }, "Add Replication Manager"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-lg",
          title: "The DN of the replication manager"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Bind DN Group"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabinddngroup",
          type: "text",
          defaultValue: this.state.nsds5replicabinddngroup,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "The interval to check for any changes in the group memebrship specified in the Bind DN Group and automatically rebuilds the list for the replication managers accordingly.  (nsds5replicabinddngroupcheckinterval)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Bind DN Group Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabinddngroupcheckinterval",
          type: "text",
          defaultValue: this.state.nsds5replicabinddngroupcheckinterval,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This controls the maximum age of deleted entries (tombstone entries), and entry state information.  (nsds5replicapurgedelay)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Purge Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicapurgedelay",
          type: "text",
          defaultValue: this.state.nsds5replicapurgedelay,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This attribute specifies the time interval in seconds between purge operation cycles.  (nsds5replicatombstonepurgeinterval)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Tombstone Purge Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicatombstonepurgeinterval",
          type: "text",
          defaultValue: this.state.nsds5replicatombstonepurgeinterval,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "A time limit (in seconds) that tells a replication session to yield if other replicas are trying to acquire this one (nsds5replicareleasetimeout)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Replica Release Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicareleasetimeout",
          type: "text",
          defaultValue: this.state.nsds5replicareleasetimeout,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "A timeout on how long to wait before stopping a replication session when the server is being stopped, replication is being disabled, or when removing a replication agreement. (nsds5replicaprotocoltimeout)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Replication Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicaprotocoltimeout",
          type: "text",
          defaultValue: this.state.nsds5replicaprotocoltimeout,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This is the minimum amount of time in seconds that a replication will go into a backoff state  (nsds5replicabackoffmin)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Back Off Minimum"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabackoffmin",
          type: "text",
          defaultValue: this.state.nsds5replicabackoffmin,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "This is the maximum amount of time in seconds that a replication will go into a backoff state  (nsds5replicabackoffmax)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Back Off Maximum"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["FormControl"], {
          id: "nsds5replicabackoffmax",
          type: "text",
          defaultValue: this.state.nsds5replicabackoffmax,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top",
          title: "Enables faster tombstone purging (nsds5replicaprecisetombstonepurging)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, "Fast Tombstone Purging"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Checkbox"], {
          id: "nsds5replicaprecisetombstonepurging",
          defaultChecked: this.props.data.nsds5replicaprecisetombstonepurging,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"],
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
          bsStyle: "primary",
          onClick: this.saveConfig
        }, "Save Configuration"))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
          showModal: this.state.showConfirmManagerDelete,
          closeHandler: this.closeConfirmManagerDelete,
          actionFunc: this.deleteManager,
          actionParam: this.state.manager,
          msg: "Are you sure you want to remove this Replication Manager?",
          msgContent: this.state.manager
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_6__["AddManagerModal"], {
          showModal: this.state.showAddManagerModal,
          closeHandler: this.closeAddManagerModal,
          handleChange: this.handleManagerChange,
          saveHandler: this.addManager,
          spinning: this.state.addManagerSpinning,
          error: this.state.errObj
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_6__["ChangeReplRoleModal"], {
          showModal: this.state.showPromoteDemoteModal,
          closeHandler: this.closePromoteDemoteModal,
          handleChange: this.handleChange,
          saveHandler: this.doRoleChange,
          spinning: this.state.roleChangeSpinning,
          role: this.props.role,
          newRole: this.state.newRole,
          checked: this.state.modalChecked
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, content);
    }
  }]);

  return ReplConfig;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

/***/ }),

/***/ "./src/lib/replication/replModals.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replModals.jsx ***!
  \********************************************/
/*! exports provided: WinsyncAgmtModal, ReplAgmtModal, ChangeReplRoleModal, AddManagerModal, EnableReplModal, ExportModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmtModal", function() { return WinsyncAgmtModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmtModal", function() { return ReplAgmtModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeReplRoleModal", function() { return ChangeReplRoleModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddManagerModal", function() { return AddManagerModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnableReplModal", function() { return EnableReplModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExportModal", function() { return ExportModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var WinsyncAgmtModal = /*#__PURE__*/function (_React$Component) {
  _inherits(WinsyncAgmtModal, _React$Component);

  var _super = _createSuper(WinsyncAgmtModal);

  function WinsyncAgmtModal() {
    _classCallCheck(this, WinsyncAgmtModal);

    return _super.apply(this, arguments);
  }

  _createClass(WinsyncAgmtModal, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          saveHandler = _this$props.saveHandler,
          handleChange = _this$props.handleChange,
          handleFracChange = _this$props.handleFracChange,
          spinning = _this$props.spinning,
          agmtName = _this$props.agmtName,
          agmtHost = _this$props.agmtHost,
          agmtPort = _this$props.agmtPort,
          agmtProtocol = _this$props.agmtProtocol,
          agmtBindDN = _this$props.agmtBindDN,
          agmtBindPW = _this$props.agmtBindPW,
          agmtBindPWConfirm = _this$props.agmtBindPWConfirm,
          agmtFracAttrs = _this$props.agmtFracAttrs,
          agmtSync = _this$props.agmtSync,
          agmtSyncMon = _this$props.agmtSyncMon,
          agmtSyncTue = _this$props.agmtSyncTue,
          agmtSyncWed = _this$props.agmtSyncWed,
          agmtSyncThu = _this$props.agmtSyncThu,
          agmtSyncFri = _this$props.agmtSyncFri,
          agmtSyncSat = _this$props.agmtSyncSat,
          agmtSyncSun = _this$props.agmtSyncSun,
          agmtStartTime = _this$props.agmtStartTime,
          agmtEndTime = _this$props.agmtEndTime,
          agmtSyncGroups = _this$props.agmtSyncGroups,
          agmtSyncUsers = _this$props.agmtSyncUsers,
          agmtWinDomain = _this$props.agmtWinDomain,
          agmtWinSubtree = _this$props.agmtWinSubtree,
          agmtDSSubtree = _this$props.agmtDSSubtree,
          agmtOneWaySync = _this$props.agmtOneWaySync,
          agmtSyncInterval = _this$props.agmtSyncInterval,
          availAttrs = _this$props.availAttrs,
          error = _this$props.error,
          errorMsg = _this$props.errorMsg,
          errorScheduleMsg = _this$props.errorScheduleMsg;
      var spinner = "";
      var saveDisabled = !this.props.saveOK;
      var title = "Create";
      var initRow = "";
      var errMsgClass = "ds-center ds-modal-error";
      var errMsg = errorMsg;
      var name = "agmt-modal";

      if (this.props.edit) {
        title = "Edit";
        name = "agmt-modal-edit";
      } else {
        initRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 4
        }, "Consumer Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "agmtInit",
          name: name,
          onChange: handleChange
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "noinit"
        }, "Do Not Initialize"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "online-init"
        }, "Do Online Initialization"))));
      }

      if (errMsg == "") {
        // To keep the modal nice and stable during input validation
        // We need text that is invisible to keep the modal input from
        // jumping around
        errMsgClass = "ds-center ds-clear-text";
        errMsg = "No errors";
      }

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Creating winsync agreement ..."));
      }

      var scheduleRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Custom Synchronization Schedule"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncMon",
        onChange: handleChange,
        name: name,
        title: "Monday",
        defaultChecked: agmtSyncMon
      }, "Mon")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncWed",
        onChange: handleChange,
        title: "Wednesday",
        name: name,
        defaultChecked: agmtSyncWed
      }, "Wed")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncFri",
        onChange: handleChange,
        title: "Friday",
        name: name,
        defaultChecked: agmtSyncFri
      }, "Fri")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSun",
        onChange: handleChange,
        title: "Sunday",
        name: name,
        defaultChecked: agmtSyncSun
      }, "Sun"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncTue",
        onChange: handleChange,
        title: "Tuesday",
        name: name,
        defaultChecked: agmtSyncTue
      }, "Tue")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncThu",
        onChange: handleChange,
        title: "Thursday",
        name: name,
        defaultChecked: agmtSyncThu
      }, "Thu")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSat",
        onChange: handleChange,
        title: "Saturday",
        name: name,
        defaultChecked: agmtSyncSat
      }, "Sat")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-modal-error"
      }, errorScheduleMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to start initiating replication sessions"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Start Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtStartTime",
        type: "time",
        name: name,
        className: error.agmtStartTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtStartTime
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to initiating replication sessions"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication End Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtEndTime",
        type: "time",
        name: name,
        className: error.agmtEndTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtEndTime
      }))));

      if (agmtSync) {
        scheduleRow = "";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, title, " Winsync Agreement")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: errMsgClass
      }, errMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Agreement Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtName",
        type: "text",
        name: name,
        className: error.agmtName ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtName,
        disabled: this.props.edit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows AD Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtHost",
        type: "text",
        name: name,
        className: error.agmtHost ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtHost
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows AD Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtPort",
        type: "text",
        name: name,
        className: error.agmtPort ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtPort
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindDN",
        type: "text",
        name: name,
        className: error.agmtBindDN ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "false",
        defaultValue: agmtBindDN
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPW",
        type: "password",
        name: name,
        className: error.agmtBindPW ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPW
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPWConfirm",
        type: "password",
        name: name,
        className: error.agmtBindPWConfirm ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPWConfirm
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows Domain Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtWinDomain",
        name: name,
        className: error.agmtWinDomain ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtWinDomain
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The Active Directory subtree to synchronize"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Windows Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtWinSubtree",
        name: name,
        className: error.agmtWinSubtree ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtWinSubtree,
        placeholder: "e.g. cn=Users,dc=domain,dc=com"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Directory Server subtree to synchronize"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "DS Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtDSSubtree",
        name: name,
        className: error.agmtDSSubtree ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtDSSubtree,
        placeholder: "e.g. ou=People,dc=domain,dc=com"
      }))), initRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top",
        textOpened: "Hide Advanced Settings",
        textClosed: "Show Advanced Setting"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "agmtProtocol",
        defaultValue: agmtProtocol,
        name: name,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAPS"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Currently not recommended"
      }, "StartTLS")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Synchronization Direction"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        defaultValue: agmtOneWaySync,
        id: "agmtOneWaySync",
        name: name,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Synchronization in both directions (default behavior)."
      }, "both"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Only synchronize Directory Server updates to Windows."
      }, "toWindows"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Only synchronize Windows updates to Directory Server."
      }, "fromWindows")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The interval to check for updates on Windows.  Default is 300 seconds"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Synchronization Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "agmtSyncInterval",
        name: name,
        className: error.agmtSyncInterval ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtSyncInterval
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replication"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracChange,
        selected: agmtFracAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracAttrs"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-med"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncGroups",
        onChange: handleChange,
        name: name,
        defaultChecked: agmtSyncGroups
      }, "Synchronize New Windows Groups"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncUsers",
        onChange: handleChange,
        name: name,
        defaultChecked: agmtSyncUsers
      }, "Synchronize New Windows Users"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSync",
        defaultChecked: agmtSync,
        onChange: handleChange,
        name: name,
        title: "Always keep replication in synchronization, or use a specific schedule by unchecking the box."
      }, "Keep Replication In Constant Synchronization"))), scheduleRow)), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: saveDisabled
      }, "Save Agreement"))));
    }
  }]);

  return WinsyncAgmtModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ReplAgmtModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(ReplAgmtModal, _React$Component2);

  var _super2 = _createSuper(ReplAgmtModal);

  function ReplAgmtModal() {
    _classCallCheck(this, ReplAgmtModal);

    return _super2.apply(this, arguments);
  }

  _createClass(ReplAgmtModal, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          saveHandler = _this$props2.saveHandler,
          handleChange = _this$props2.handleChange,
          handleStripChange = _this$props2.handleStripChange,
          handleFracChange = _this$props2.handleFracChange,
          handleFracInitChange = _this$props2.handleFracInitChange,
          spinning = _this$props2.spinning,
          agmtName = _this$props2.agmtName,
          agmtHost = _this$props2.agmtHost,
          agmtPort = _this$props2.agmtPort,
          agmtProtocol = _this$props2.agmtProtocol,
          agmtBindMethod = _this$props2.agmtBindMethod,
          agmtBindDN = _this$props2.agmtBindDN,
          agmtBindPW = _this$props2.agmtBindPW,
          agmtBindPWConfirm = _this$props2.agmtBindPWConfirm,
          agmtStripAttrs = _this$props2.agmtStripAttrs,
          agmtFracAttrs = _this$props2.agmtFracAttrs,
          agmtFracInitAttrs = _this$props2.agmtFracInitAttrs,
          agmtSync = _this$props2.agmtSync,
          agmtSyncMon = _this$props2.agmtSyncMon,
          agmtSyncTue = _this$props2.agmtSyncTue,
          agmtSyncWed = _this$props2.agmtSyncWed,
          agmtSyncThu = _this$props2.agmtSyncThu,
          agmtSyncFri = _this$props2.agmtSyncFri,
          agmtSyncSat = _this$props2.agmtSyncSat,
          agmtSyncSun = _this$props2.agmtSyncSun,
          agmtStartTime = _this$props2.agmtStartTime,
          agmtEndTime = _this$props2.agmtEndTime,
          availAttrs = _this$props2.availAttrs,
          error = _this$props2.error,
          errorMsg = _this$props2.errorMsg,
          errorScheduleMsg = _this$props2.errorScheduleMsg;
      var spinner = "";
      var saveDisabled = !this.props.saveOK;
      var title = "Create";
      var initRow = "";
      var errMsgClass = "ds-center ds-modal-error";
      var errMsg = errorMsg;
      var name = "agmt-modal";

      if (this.props.edit) {
        title = "Edit";
        name = "agmt-modal-edit";
      } else {
        initRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 4
        }, "Consumer Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "agmtInit",
          name: name,
          onChange: handleChange
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "noinit"
        }, "Do Not Initialize"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          value: "online-init"
        }, "Do Online Initialization"))));
      }

      if (errMsg == "") {
        // To keep the modal nice and stable during input validation
        // We need text that is invisible to keep the modal input from
        // jumping around
        errMsgClass = "ds-center ds-clear-text";
        errMsg = "No errors";
      }

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Creating replication agreement ..."));
      }

      var scheduleRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Custom Synchronization Schedule"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncMon",
        onChange: handleChange,
        name: name,
        title: "Monday",
        defaultChecked: agmtSyncMon
      }, "Mon")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncWed",
        onChange: handleChange,
        title: "Wednesday",
        name: name,
        defaultChecked: agmtSyncWed
      }, "Wed")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncFri",
        onChange: handleChange,
        title: "Friday",
        name: name,
        defaultChecked: agmtSyncFri
      }, "Fri")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSun",
        onChange: handleChange,
        title: "Sunday",
        name: name,
        defaultChecked: agmtSyncSun
      }, "Sun"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncTue",
        onChange: handleChange,
        title: "Tuesday",
        name: name,
        defaultChecked: agmtSyncTue
      }, "Tue")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncThu",
        onChange: handleChange,
        title: "Thursday",
        name: name,
        defaultChecked: agmtSyncThu
      }, "Thu")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSyncSat",
        onChange: handleChange,
        title: "Saturday",
        name: name,
        defaultChecked: agmtSyncSat
      }, "Sat")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-modal-error"
      }, errorScheduleMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to start initiating replication sessions"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Start Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtStartTime",
        type: "time",
        name: name,
        className: error.agmtStartTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtStartTime
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Time to initiating replication sessions"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication End Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtEndTime",
        type: "time",
        name: name,
        className: error.agmtEndTime ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtEndTime
      }), "                    ")));

      if (agmtSync) {
        scheduleRow = "";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, title, " Replication Agreement")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: errMsgClass
      }, errMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Agreement Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtName",
        type: "text",
        name: name,
        className: error.agmtName ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtName,
        disabled: this.props.edit
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Consumer Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtHost",
        type: "text",
        name: name,
        className: error.agmtHost ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtHost
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Consumer Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtPort",
        type: "text",
        name: name,
        className: error.agmtPort ? "ds-input-bad" : "",
        onChange: handleChange,
        defaultValue: agmtPort
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindDN",
        type: "text",
        name: name,
        className: error.agmtBindDN ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "false",
        defaultValue: agmtBindDN
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPW",
        type: "password",
        name: name,
        className: error.agmtBindPW ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPW
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "agmtBindPWConfirm",
        type: "password",
        name: name,
        className: error.agmtBindPWConfirm ? "ds-input-bad" : "",
        onChange: handleChange,
        autoComplete: "new-password",
        defaultValue: agmtBindPWConfirm
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "agmtProtocol",
        defaultValue: agmtProtocol,
        name: name,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAP"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "LDAPS"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Currently not recommended"
      }, "StartTLS")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Authentication Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        defaultValue: agmtBindMethod,
        id: "agmtBindMethod",
        name: name,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use bind DN and password"
      }, "SIMPLE"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SSL Client Certificate"
      }, "SSLCLIENTAUTH"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SASL Digest-MD5"
      }, "SASL/DIGEST-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
        title: "Use SASL GSSAPI"
      }, "SASL/GSSAPI")))), initRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        className: "ds-margin-top",
        textOpened: "Hide Advanced Settings",
        textClosed: "Show Advanced Settings"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replication"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracChange,
        selected: agmtFracAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracAttrs"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attribute to exclude from replica Initializations"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Exclude Init Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleFracInitChange,
        selected: agmtFracInitAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtFracInitAttrs"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Attributes to strip from a replication update"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Strip Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_4__["Typeahead"], {
        multiple: true,
        onChange: handleStripChange,
        selected: agmtStripAttrs,
        options: availAttrs,
        name: name,
        newSelectionPrefix: "Add a attribute: ",
        placeholder: "Start typing an attribute...",
        id: "agmtStripAttrs"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-med"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "agmtSync",
        defaultChecked: agmtSync,
        onChange: handleChange,
        name: name,
        title: "Always keep replication in synchronization, or use a specific schedule by unchecking the box."
      }, "Keep Replication In Constant Synchronization"))), scheduleRow)), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: saveDisabled
      }, "Save Agreement"))));
    }
  }]);

  return ReplAgmtModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ChangeReplRoleModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(ChangeReplRoleModal, _React$Component3);

  var _super3 = _createSuper(ChangeReplRoleModal);

  function ChangeReplRoleModal(props) {
    var _this;

    _classCallCheck(this, ChangeReplRoleModal);

    _this = _super3.call(this, props);
    _this.state = {
      showConfirmPromote: false,
      showConfirmDemote: false
    };
    return _this;
  }

  _createClass(ChangeReplRoleModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          role = _this$props3.role,
          spinning = _this$props3.spinning,
          checked = _this$props3.checked;
      var spinner = "";
      var changeType = "";
      var roleOptions = [];
      var ridRow = "";
      var newRole = this.props.newRole;
      var saveDisabled = !checked; // Set the change type

      if (role == "Master") {
        changeType = "Demoting";
        roleOptions = ["Hub", "Consumer"];
      } else if (role == "Consumer") {
        changeType = "Promoting";
        roleOptions = ["Master", "Hub"];
      } else {
        // Hub
        if (newRole == "Master") {
          changeType = "Promoting";
        } else {
          changeType = "Demoting";
        }

        roleOptions = ["Master", "Consumer"];
      }

      if (newRole == "Master") {
        ridRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top-lg",
          title: "Master Replica Identifier.  This must be unique across all the Master replicas in your environment"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
          sm: 2
        }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          id: "newRID",
          type: "number",
          min: "1",
          max: "65534",
          onChange: handleChange,
          defaultValue: "1",
          size: "10"
        })));
      }

      var selectOptions = roleOptions.map(function (role) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: role,
          value: role
        }, role);
      });

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), changeType, " replica ..."));
        saveDisabled = true;
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Change Replica Role")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Please choose the new replication role you would like for this suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 2
      }, "New Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "newRole",
        onChange: handleChange
      }, selectOptions))), ridRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 12,
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "modalChecked",
        defaultChecked: checked,
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "Yes"), ", I am sure."))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: function onClick() {
          saveHandler(changeType);
        },
        disabled: saveDisabled
      }, "Change Role"))));
    }
  }]);

  return ChangeReplRoleModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var AddManagerModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(AddManagerModal, _React$Component4);

  var _super4 = _createSuper(AddManagerModal);

  function AddManagerModal() {
    _classCallCheck(this, AddManagerModal);

    return _super4.apply(this, arguments);
  }

  _createClass(AddManagerModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          spinning = _this$props4.spinning,
          error = _this$props4.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Adding Replication Manager..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Replication Manager")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Create a Replication Manager entry, and add it to the replication configuration for this suffix.  If the entry already exists it will be overwritten with the new credentials."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The DN of the replication manager"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "manager",
        defaultValue: "cn=replication manager,cn=config",
        className: error.manager ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "manager_passwd",
        className: error.manager_passwd ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "manager_passwd_confirm",
        className: error.manager_passwd_confirm ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Replication Manager"))));
    }
  }]);

  return AddManagerModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var EnableReplModal = /*#__PURE__*/function (_React$Component5) {
  _inherits(EnableReplModal, _React$Component5);

  var _super5 = _createSuper(EnableReplModal);

  function EnableReplModal() {
    _classCallCheck(this, EnableReplModal);

    return _super5.apply(this, arguments);
  }

  _createClass(EnableReplModal, [{
    key: "render",
    value: function render() {
      var _this$props5 = this.props,
          showModal = _this$props5.showModal,
          closeHandler = _this$props5.closeHandler,
          handleChange = _this$props5.handleChange,
          saveHandler = _this$props5.saveHandler,
          spinning = _this$props5.spinning,
          role = _this$props5.role,
          error = _this$props5.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "md"
        }), "Enabling Replication ..."));
      }

      var replicaIDRow = "";

      if (role == "Master") {
        replicaIDRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 3,
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"]
        }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", {
          id: "enableRID",
          type: "number",
          min: "1",
          max: "65534",
          onChange: handleChange,
          defaultValue: "1",
          size: "10"
        })));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Enable Replication")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Choose the replication role for this suffix.  If it is a Master replica then you must pick a unique ID to identify it among the other Master replicas in your environment.  The replication changelog will also automatically be created if it does not exist."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3,
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"]
      }, "Replication Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "enableRole",
        defaultValue: "Master",
        onChange: handleChange
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Master"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Hub"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "Consumer")))), replicaIDRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", {
        className: "ds-margin-top-xxlg"
      }, "You can optionally define the authentication information for this replicated suffix.  Either a Manager DN and Password, a Bind Group DN, or both, can be provided.  The Manager DN should be an entry under \"cn=config\" and if it does not exist it will be created, while the Bind Group DN is usually an existing group located in the database suffix.  Typically, just the Manager DN and Password are used when enabling replication for a suffix."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg",
        title: "The DN of the replication manager.  If you supply a password the entry will be created in the server (it will also overwrite the entry is it already exists)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Replication Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "enableBindDN",
        defaultValue: "cn=replication manager,cn=config",
        className: error.enableBindDN ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Replication Manager password"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "enableBindPW",
        className: error.enableBindPW ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Confirm the Replication Manager password"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "password",
        id: "enableBindPWConfirm",
        className: error.enableBindPWConfirm ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The DN of a group that contains users that can perform replication updates"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 4
      }, "Bind Group DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "enableBindGroupDN",
        className: error.enableBindGroupDN ? "ds-input-auto-bad" : "ds-input-auto",
        onChange: handleChange
      }))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: this.props.disabled
      }, "Enable Replication"))));
    }
  }]);

  return EnableReplModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var ExportModal = /*#__PURE__*/function (_React$Component6) {
  _inherits(ExportModal, _React$Component6);

  var _super6 = _createSuper(ExportModal);

  function ExportModal() {
    _classCallCheck(this, ExportModal);

    return _super6.apply(this, arguments);
  }

  _createClass(ExportModal, [{
    key: "render",
    value: function render() {
      var _this$props6 = this.props,
          showModal = _this$props6.showModal,
          closeHandler = _this$props6.closeHandler,
          handleChange = _this$props6.handleChange,
          saveHandler = _this$props6.saveHandler,
          spinning = _this$props6.spinning,
          saveOK = _this$props6.saveOK;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Exporting database... ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "2"
        }, "(You can safely close this window)")));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Create Replication Initialization LDIF File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 11,
        className: "ds-left-indent-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "Enter the name of the LDIF file, do not use a path as the file will only be written to the server's LDIF directory"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top-lg",
        title: "Name of the exported LDIF file"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("b", null, "LDIF Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "ldifLocation",
        className: saveOK ? "" : "ds-input-bad",
        onChange: handleChange
      }))), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler,
        disabled: !saveOK
      }, "Export Replica"))));
    }
  }]);

  return ExportModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
EnableReplModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
EnableReplModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  disabled: false,
  error: {}
};
AddManagerModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
AddManagerModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};
ChangeReplRoleModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  role: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  newRole: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
ChangeReplRoleModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  role: "",
  newRole: ""
};
ReplAgmtModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleStripChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracInitChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  availAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtHost: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtPort: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtProtocol: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindMethod: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindDN: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPW: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPWConfirm: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtStripAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtFracAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtFracInitAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtSync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncMon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncTue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncWed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncThu: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncFri: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSun: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtStartTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtEndTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  errorMsg: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ReplAgmtModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleStripChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracInitChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "",
  agmtProtocol: "LDAP",
  agmtBindMethod: "SIMPLE",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtStripAttrs: [],
  agmtFracAttrs: [],
  agmtFracInitAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  saveOK: false,
  error: {},
  errorMsg: "",
  edit: false
};
WinsyncAgmtModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleFracChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  availAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtHost: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtPort: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtProtocol: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindDN: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPW: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtBindPWConfirm: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtFracAttrs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  agmtSync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncMon: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncTue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncWed: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncThu: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncFri: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSat: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncSun: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtStartTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtEndTime: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtSyncGroups: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtSyncUsers: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  agmtWinDomain: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtWinSubtree: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtDSSubtree: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtOneWaySync: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  agmtSyncInterval: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  errorMsg: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
WinsyncAgmtModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFracChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "",
  agmtProtocol: "LDAPS",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtFracAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  agmtSyncGroups: false,
  agmtSyncUsers: false,
  agmtWinDomain: "",
  agmtWinSubtree: "",
  agmtDSSubtree: "",
  agmtOneWaySync: "both",
  // "both", "toWindows", "fromWindows"
  agmtSyncInterval: "",
  saveOK: false,
  error: {},
  errorMsg: "",
  edit: false
};
ExportModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveOK: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
ExportModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveOK: false,
  spinning: false
};

/***/ }),

/***/ "./src/lib/replication/replSuffix.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replSuffix.jsx ***!
  \********************************************/
/*! exports provided: ReplSuffix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplSuffix", function() { return ReplSuffix; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _replConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replConfig.jsx */ "./src/lib/replication/replConfig.jsx");
/* harmony import */ var _winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./winsyncAgmts.jsx */ "./src/lib/replication/winsyncAgmts.jsx");
/* harmony import */ var _replAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replAgmts.jsx */ "./src/lib/replication/replAgmts.jsx");
/* harmony import */ var _replTasks_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replTasks.jsx */ "./src/lib/replication/replTasks.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }












var ReplSuffix = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplSuffix, _React$Component);

  var _super = _createSuper(ReplSuffix);

  function ReplSuffix(props) {
    var _this;

    _classCallCheck(this, ReplSuffix);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      activeKey: 1,
      showDisableConfirm: false,
      replicationEnabled: false,
      errObj: {},
      replEnabled: _this.props.replicated,
      // Enable replication settings
      showEnableReplModal: false,
      enableRole: "Master",
      enableRID: "1",
      enableBindDN: "cn=replication manager,cn=config",
      enableBindPW: "",
      enableBindPWConfirm: "",
      enableBindGroupDN: "",
      disabled: false,
      // Disable repl enable button
      // Disable replication
      showDisableReplModal: false,
      disableChecked: false,
      disableSpinning: false,
      modalChecked: false,
      modalSpinning: false
    }; // General bindings

    _this.handleReplChange = _this.handleReplChange.bind(_assertThisInitialized(_this));
    _this.handleEnableChange = _this.handleEnableChange.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.disableReplication = _this.disableReplication.bind(_assertThisInitialized(_this));
    _this.enableReplication = _this.enableReplication.bind(_assertThisInitialized(_this));
    _this.closeEnableReplModal = _this.closeEnableReplModal.bind(_assertThisInitialized(_this));
    _this.closeDisableReplModal = _this.closeDisableReplModal.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplSuffix, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.props.enableTree();
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleReplChange",
    value: function handleReplChange() {
      if (this.props.replicated) {
        // Disable Replication
        this.setState({
          showDisableReplModal: true,
          modalChecked: false,
          modalSpinning: false
        });
      } else {
        // Enable replication
        this.setState({
          showEnableReplModal: true
        });
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleEnableChange",
    value: function handleEnableChange(e) {
      var _this$setState2;

      var value = e.target.value;
      var attr = e.target.id;
      var valueErr = false;
      var errObj = this.state.errObj;
      var disable = false;

      if (attr == "enableBindDN" && value != "" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(value) || !value.includes(','))) {
        valueErr = true;
      }

      if (attr == "enableBindGroupDN" && value != "" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(value) || !value.includes(','))) {
        valueErr = true;
      }

      if (attr == "enableBindPW") {
        if (value != this.state.enableBindPWConfirm) {
          valueErr = true;
        } else {
          errObj.enableBindPW = false;
          errObj.enableBindPWConfirm = false;
        }
      }

      if (attr == "enableBindPWConfirm") {
        if (value != this.state.enableBindPW) {
          valueErr = true;
        } else {
          errObj.enableBindPW = false;
          errObj.enableBindPWConfirm = false;
        }
      } // Validate form and disable enable button if something is wrong.


      if (valueErr) {
        disable = true;
      } else {
        if (attr != "enableBindPW" && attr != "enableBindPWConfirm" && this.state.enableBindPW != this.state.enableBindPWConfirm || this.state.enableBindDN != "" && attr != "enableBindDN" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindDN) || !this.state.enableBindDN.includes(',')) || this.state.enableBindGroupDN != "" && attr != "enableBindGroupDN" && (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindGroupDN) || !this.state.enableBindGroupDN.includes(','))) {
          disable = true;
        }
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "disabled", disable), _this$setState2));
    }
  }, {
    key: "closeEnableReplModal",
    value: function closeEnableReplModal() {
      this.setState({
        showEnableReplModal: false
      });
    }
  }, {
    key: "enableReplication",
    value: function enableReplication() {
      var _this2 = this;

      // First, Validate
      if (this.state.enableBindDN != "" && !Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindDN)) {
        this.props.addNotification("error", "The Bind DN is not a valid DN (Distinguished Name) ".concat(this.state.enableBindDN));
        return;
      }

      if (this.state.enableBindGroupDN != "" && !Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["valid_dn"])(this.state.enableBindGroupDN)) {
        this.props.addNotification("error", "The Group DN is not a valid DN (Distinguished Name)");
        return;
      }

      if (this.state.enableBindPW != this.state.enableBindPWConfirm) {
        this.props.addNotification("error", "The Bind DN passwords do not match");
        return;
      }

      if (this.state.enableRID != "" && (this.state.enableRID < 1 || this.state.enableRID > 65534)) {
        this.props.addNotification("error", "The Replica ID is not in the valid range of 1 - 65534");
        return;
      } // Now enable replication


      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'enable', '--suffix=' + this.props.suffix, '--role=' + this.state.enableRole];

      if (this.state.enableBindDN != "") {
        cmd.push('--bind-dn=' + this.state.enableBindDN);
      }

      if (this.state.enableBindPW != "") {
        cmd.push('--bind-passwd=' + this.state.enableBindPW);
      }

      if (this.state.enableBindGroupDN != "") {
        cmd.push('--bind-group-dn=' + this.state.enableBindGroupDN);
      }

      if (this.state.enableRole == "Master") {
        cmd.push('--replica-id=' + this.state.enableRID);
      }

      this.props.disableTree();
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])('enableReplication', 'Enable replication', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this2.props.reload(1);

        _this2.props.addNotification("success", "Successfully enabled replication for \"".concat(_this2.props.suffix, "\""));
      }).fail(function (err) {
        _this2.props.reload(1);

        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to enable replication for \"".concat(_this2.props.suffix, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "closeDisableReplModal",
    value: function closeDisableReplModal() {
      this.setState({
        showDisableReplModal: false
      });
    }
  }, {
    key: "disableReplication",
    value: function disableReplication() {
      var _this3 = this;

      this.props.disableTree();
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'disable', '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_10__["log_cmd"])('disableReplication', 'Disable replication', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(1);

        _this3.props.addNotification("success", "Successfully disabled replication for \"".concat(_this3.props.suffix, "\""));
      }).fail(function (err) {
        _this3.props.reload(1);

        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to disable replication for \"".concat(_this3.props.suffix, "\" - ").concat(errMsg.desc));
      });
    } //
    // Render the component
    //

  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var spinning = "";
      var spintext = "";
      var suffixIcon = "tree";

      if (this.props.replicated) {
        suffixIcon = "clone";
      } else {
        if (this.props.repl == "subsuffix") {
          suffixIcon = "leaf";
        }
      }

      if (this.props.spinning) {
        spinning = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Spinner"], {
          className: "ds-margin-top ds-margin-left ds-inline-spinner",
          loading: true,
          inline: true,
          size: "sm"
        });
        spintext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
          size: "2"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", null, "Refreshing"));
      }

      var suffixClass = "ds-margin-top-xlg";

      if (this.props.disabled) {
        suffixClass = "ds-margin-top-xlg ds-disabled";
      }

      var replAgmtNavTitle = 'Replication Agreements <font size="2">(' + this.props.agmtRows.length + ')</font>';
      var winsyncNavTitle = 'Winsync Agreements <font size="2">(' + this.props.winsyncRows.length + ')</font>';
      var enabledContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: suffixClass
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContainer"], {
        id: "basic-tabs-pf",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Configuration'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: replAgmtNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: winsyncNavTitle
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["NavItem"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: "RUV's & Tasks"
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["ReplConfig"], {
        suffix: this.props.suffix,
        role: this.props.role,
        data: this.props.data,
        serverId: this.props.serverId,
        addNotification: this.props.addNotification,
        reload: this.props.reload,
        reloadConfig: this.props.reloadConfig
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__["ReplAgmts"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.agmtRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadAgmts,
        attrs: this.props.attrs,
        disableTable: this.props.disableAgmtTable,
        key: this.props.agmtRows
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_3__["WinsyncAgmts"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.winsyncRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadWinsyncAgmts,
        attrs: this.props.attrs,
        disableTable: this.props.disableWSAgmtTable,
        key: this.props.winsyncRows
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["TabPane"], {
        eventKey: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replTasks_jsx__WEBPACK_IMPORTED_MODULE_5__["ReplRUV"], {
        suffix: this.props.suffix,
        serverId: this.props.serverId,
        rows: this.props.ruvRows,
        addNotification: this.props.addNotification,
        reload: this.props.reloadRUV,
        localRID: this.props.data.nsds5replicaid,
        key: this.props.ruvRows
      }))))));
      var replActionButton = "";

      if (this.props.replicated) {
        replActionButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
          bsStyle: "danger",
          onClick: this.handleReplChange,
          title: "Disable replication, and remove all replication agreements."
        }, "Disable");
      } else {
        enabledContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-center ds-margin-top-xlg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Replication is not enabled for this suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Button"], {
          bsStyle: "primary",
          onClick: this.handleReplChange,
          className: "ds-margin-top-lg"
        }, "Enable Replication"));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        id: "suffix-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 8,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"], {
        className: "ds-suffix-header"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Icon"], {
        type: "fa",
        name: suffixIcon
      }), " " + this.props.suffix, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh replication settings for this suffix",
        onClick: function onClick() {
          _this4.props.reload(false);
        }
      }), spinning, " ", spintext)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_8__["Col"], {
        className: "ds-no-padding ds-container",
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["ControlLabel"],
        sm: 12
      }, replActionButton)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), enabledContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_7__["EnableReplModal"], {
        showModal: this.state.showEnableReplModal,
        closeHandler: this.closeEnableReplModal,
        handleChange: this.handleEnableChange,
        saveHandler: this.enableReplication,
        spinning: this.state.addManagerSpinning,
        role: this.state.enableRole,
        disabled: this.state.disabled,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_6__["DoubleConfirmModal"], {
        showModal: this.state.showDisableReplModal,
        closeHandler: this.closeDisableReplModal,
        handleChange: this.handleChange,
        actionHandler: this.disableReplication,
        spinning: this.state.modalSpinning,
        item: this.props.suffix,
        checked: this.state.modalChecked,
        mTitle: "Disable Replication",
        mMsg: "Are you sure you want to disable replication for this suffix?",
        mSpinningMsg: "Disabling Replication ...",
        mBtnName: "Disable Replication"
      }));
    }
  }]);

  return ReplSuffix;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
ReplSuffix.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  role: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  agmtRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  winsyncRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  ruvRows: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  reloadAgmts: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reloadRUV: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reloadConfig: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  replicated: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.array,
  enableTree: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  disableTree: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool,
  disabled: prop_types__WEBPACK_IMPORTED_MODULE_9___default.a.bool
};
ReplSuffix.defaultProps = {
  serverId: "",
  suffix: "",
  role: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  agmtRows: [],
  winsyncRows: [],
  ruvRows: [],
  reloadAgmts: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadRUV: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reloadConfig: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  replicated: false,
  attrs: [],
  enableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  disableTree: patternfly_react__WEBPACK_IMPORTED_MODULE_8__["noop"],
  spinning: false,
  disabled: false
};

/***/ }),

/***/ "./src/lib/replication/replTables.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replTables.jsx ***!
  \********************************************/
/*! exports provided: ReplAgmtTable, ManagerTable, RUVTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplAgmtTable", function() { return ReplAgmtTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagerTable", function() { return ManagerTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RUVTable", function() { return RUVTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ReplAgmtTable = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplAgmtTable, _React$Component);

  var _super = _createSuper(ReplAgmtTable);

  function ReplAgmtTable(props) {
    var _this;

    _classCallCheck(this, ReplAgmtTable);

    _this = _super.call(this, props);
    _this.state = {
      searchField: "Agreements",
      fieldsToSearch: ["name"],
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Agreement Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "host",
        header: {
          label: "Replica Hostname",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "port",
        header: {
          label: "Replica Port",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "state",
        header: {
          label: "State",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "status",
        header: {
          label: "Last Update Status",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "initstatus",
        header: {
          label: "Last Init Status",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          }
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 6,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 6
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              pullRight: true,
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this.props.edit(rowData.name[0]);
              }
            }, "Edit Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this.props.init(rowData.name[0]);
              }
            }, "Initialize Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this.props.poke(rowData.name[0]);
              },
              title: "Awaken agreement if it is sleeping"
            }, "Poke Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "4",
              onClick: function onClick() {
                _this.props.enable(rowData.name[0], rowData.state[0]);
              }
            }, "Disable/Enable Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "3",
              onClick: function onClick() {
                _this.props["delete"](rowData.name[0], rowData.state[0]);
              }
            }, "Delete Agreement")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplAgmtTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Agreements",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var agmtTable;

      if (this.props.rows.length == 0) {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Agreements"
          }]
        });
      } else {
        agmtTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          fieldsToSearch: this.state.fieldsToSearch,
          toolBarSearchField: this.state.searchField,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-margin-top-xlg"
      }, agmtTable);
    }
  }]);

  return ReplAgmtTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var ManagerTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(ManagerTable, _React$Component2);

  var _super2 = _createSuper(ManagerTable);

  function ManagerTable(props) {
    var _this2;

    _classCallCheck(this, ManagerTable);

    _this2 = _super2.call(this, props);
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Replication Manager",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "default",
              onClick: function onClick() {
                _this2.props.confirmDelete(rowData);
              },
              title: "Delete replication manager"
            }, "Delete"))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    _this2.getSingleColumn = _this2.getSingleColumn.bind(_assertThisInitialized(_this2));
    return _this2;
  }

  _createClass(ManagerTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Replication Managers",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var managerTable;

      if (this.props.rows.length == 0) {
        managerTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Replication Managers"
          }]
        });
      } else {
        managerTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, managerTable);
    }
  }]);

  return ManagerTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

var RUVTable = /*#__PURE__*/function (_React$Component3) {
  _inherits(RUVTable, _React$Component3);

  var _super3 = _createSuper(RUVTable);

  function RUVTable(props) {
    var _this3;

    _classCallCheck(this, RUVTable);

    _this3 = _super3.call(this, props);
    _this3.state = {
      rowKey: "rid",
      columns: [{
        property: "rid",
        header: {
          label: "Replica ID",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "url",
        header: {
          label: "Replica LDAP URL",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "maxcsn",
        header: {
          label: "Max CSN",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          label: "",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.rid[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              bsStyle: "default",
              onClick: function onClick() {
                _this3.props.confirmDelete(rowData.rid[0]);
              },
              title: "Attempt to clean and remove this Replica ID from this suffix"
            }, "Clean"))];
          }]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_this3));
    _this3.getSingleColumn = _this3.getSingleColumn.bind(_assertThisInitialized(_this3));
    return _this3;
  }

  _createClass(RUVTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Remote RUV's",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var ruvTable;

      if (this.props.rows.length == 0) {
        ruvTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No RUV's"
          }]
        });
      } else {
        ruvTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, ruvTable);
    }
  }]);

  return RUVTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ReplAgmtTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  edit: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  poke: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  init: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  enable: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  "delete": prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ReplAgmtTable.defaultProps = {
  rows: [],
  edit: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  poke: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  init: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  enable: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  "delete": patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
ManagerTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
ManagerTable.defaultProps = {
  rows: [],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};
RUVTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  confirmDelete: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
RUVTable.defaultProps = {
  rows: [],
  confirmDelete: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/replication/replTasks.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replTasks.jsx ***!
  \*******************************************/
/*! exports provided: ReplRUV */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplRUV", function() { return ReplRUV; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var ReplRUV = /*#__PURE__*/function (_React$Component) {
  _inherits(ReplRUV, _React$Component);

  var _super = _createSuper(ReplRUV);

  function ReplRUV(props) {
    var _this;

    _classCallCheck(this, ReplRUV);

    _this = _super.call(this, props);
    _this.state = {
      errObj: {},
      rid: "",
      localRID: "",
      ldifLocatio: "",
      saveOK: false,
      showConfirmCleanRUV: false,
      modalChecked: false,
      modalSpinning: false
    };
    _this.showConfirmCleanRUV = _this.showConfirmCleanRUV.bind(_assertThisInitialized(_this));
    _this.closeConfirmCleanRUV = _this.closeConfirmCleanRUV.bind(_assertThisInitialized(_this));
    _this.showConfirmExport = _this.showConfirmExport.bind(_assertThisInitialized(_this));
    _this.closeConfirmExport = _this.closeConfirmExport.bind(_assertThisInitialized(_this));
    _this.handleLDIFChange = _this.handleLDIFChange.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.cleanRUV = _this.cleanRUV.bind(_assertThisInitialized(_this));
    _this.doExport = _this.doExport.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ReplRUV, [{
    key: "showConfirmCleanRUV",
    value: function showConfirmCleanRUV(rid) {
      this.setState({
        rid: rid,
        showConfirmCleanRUV: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "closeConfirmCleanRUV",
    value: function closeConfirmCleanRUV() {
      this.setState({
        showConfirmCleanRUV: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "showConfirmExport",
    value: function showConfirmExport() {
      this.setState({
        saveOK: false,
        showConfirmExport: true
      });
    }
  }, {
    key: "closeConfirmExport",
    value: function closeConfirmExport() {
      this.setState({
        showConfirmExport: false
      });
    }
  }, {
    key: "cleanRUV",
    value: function cleanRUV() {
      var _this2 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-tasks', 'cleanallruv', '--replica-id=' + this.state.rid, '--force-cleaning', '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('cleanRUV', 'Clean the rid', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.props.reload(_this2.props.suffix);

        _this2.props.addNotification('success', 'Successfully started CleanAllRUV task');

        _this2.closeConfirmCleanRUV();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to start CleanAllRUV task - ".concat(errMsg.desc));

        _this2.closeConfirmCleanRUV();
      });
    }
  }, {
    key: "handleLDIFChange",
    value: function handleLDIFChange(e) {
      var _this$setState;

      var value = e.target.value;
      var saveOK = true;

      if (value == "" || Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["bad_file_name"])(value)) {
        saveOK = false;
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "saveOK", saveOK), _this$setState));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "doExport",
    value: function doExport() {
      var _this3 = this;

      // Do Export
      var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.props.suffix, "--ldif=" + this.state.ldifLocation, '--replication', "--encrypted"];
      this.setState({
        exportSpinner: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("doExport", "replication do online export", export_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(export_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.addNotification("success", "Database export complete");

        _this3.setState({
          showConfirmExport: false,
          exportSpinner: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));

        _this3.setState({
          showConfirmExport: false,
          exportSpinner: false
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      // Strip outthe loca RUV and display it diffent then onmly allow cleaning of remote rids
      var remote_rows = [];
      var localRID = "";
      var localURL = "";
      var localCSN = "";
      var localRawCSN = "";
      var localMinCSN = "";
      var localRawMinCSN = "";

      var _iterator = _createForOfIteratorHelper(this.props.rows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          if (row.rid == this.props.localRID) {
            localRID = row.rid;
            localURL = row.url;
            localCSN = row.maxcsn;
            localRawCSN = row.raw_maxcsn;
            localMinCSN = row.csn;
            localRawMinCSN = row.raw_csn;
          } else {
            remote_rows.push(row);
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var localRUV = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
        className: "ds-margin-top-med"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Replica ID")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localRID))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "LDAP URL")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localURL))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Min CSN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localMinCSN), " (", localRawMinCSN, ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], null, "Max CSN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, localCSN), " (", localRawCSN, ")")));

      if (localRID == "") {
        localRUV = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-indent"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "There is no local RUV, the database might not have been initialized yet."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-xlg ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], {
        className: "ds-h4"
      }, "Local RUV", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the RUV for this suffix",
        onClick: function onClick() {
          _this4.props.reload(_this4.props.suffix);
        }
      })), localRUV, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Col"], {
        sm: 12,
        className: "ds-word-wrap"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["ControlLabel"], {
        className: "ds-h4"
      }, "Remote RUV's", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the RUV for this suffix",
        onClick: function onClick() {
          _this4.props.reload(_this4.props.suffix);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["RUVTable"], {
        rows: remote_rows,
        confirmDelete: this.showConfirmCleanRUV
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Create Initialization LDIF File"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-left-indent-md ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Export this suffix with the replication metadata needed to initialize another replica")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showConfirmExport,
        className: "ds-margin-top",
        title: "See Database Tab -> Backups & LDIFs to manage the new LDIF"
      }, "Export To LDIF")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmCleanRUV,
        closeHandler: this.closeConfirmCleanRUV,
        handleChange: this.handleChange,
        actionHandler: this.cleanRUV,
        spinning: this.state.modalSpinning,
        item: "Replica ID " + this.state.rid,
        checked: this.state.modalChecked,
        mTitle: "Remove RUV Element (CleanAllRUV)",
        mMsg: "Are you sure you want to attempt to clean this Replica ID from the suffix?",
        mSpinningMsg: "Starting cleaning task (CleanAllRUV) ...",
        mBtnName: "Remove RUV Element"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ExportModal"], {
        showModal: this.state.showConfirmExport,
        closeHandler: this.closeConfirmExport,
        handleChange: this.handleLDIFChange,
        saveHandler: this.doExport,
        spinning: this.state.exportSpinner,
        saveOK: this.state.saveOK
      }));
    }
  }]);

  return ReplRUV;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
ReplRUV.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  localRID: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  reload: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
ReplRUV.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"],
  localRID: "",
  reload: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};

/***/ }),

/***/ "./src/lib/replication/winsyncAgmts.jsx":
/*!**********************************************!*\
  !*** ./src/lib/replication/winsyncAgmts.jsx ***!
  \**********************************************/
/*! exports provided: WinsyncAgmts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WinsyncAgmts", function() { return WinsyncAgmts; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

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; }









var WinsyncAgmts = /*#__PURE__*/function (_React$Component) {
  _inherits(WinsyncAgmts, _React$Component);

  var _super = _createSuper(WinsyncAgmts);

  function WinsyncAgmts(props) {
    var _this;

    _classCallCheck(this, WinsyncAgmts);

    _this = _super.call(this, props);

    _defineProperty(_assertThisInitialized(_this), "_mounted", false);

    _this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      modalMsg: "",
      modalScheduleMsg: "",
      savingAgmt: false,
      mounted: false,
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "",
      agmtProtocol: "LDAPS",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtFracAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0",
      agmtEndTime: "0",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Winsync specific settings
      agmtSyncGroups: false,
      agmtSyncUsers: true,
      agmtWinDomain: "",
      agmtWinSubtree: "",
      agmtDSSubtree: "",
      agmtOneWaySync: "both",
      // "both", "toWindows", "fromWindows"
      agmtSyncInterval: "",
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: []
    };
    _this.showCreateAgmtModal = _this.showCreateAgmtModal.bind(_assertThisInitialized(_this));
    _this.closeCreateAgmtModal = _this.closeCreateAgmtModal.bind(_assertThisInitialized(_this));
    _this.closeEditAgmtModal = _this.closeEditAgmtModal.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleModalChange = _this.handleModalChange.bind(_assertThisInitialized(_this));
    _this.handleTAFracAttrChange = _this.handleTAFracAttrChange.bind(_assertThisInitialized(_this));
    _this.handleTAFracAttrChangeEdit = _this.handleTAFracAttrChangeEdit.bind(_assertThisInitialized(_this));
    _this.createAgmt = _this.createAgmt.bind(_assertThisInitialized(_this));
    _this.showEditAgmt = _this.showEditAgmt.bind(_assertThisInitialized(_this));
    _this.saveAgmt = _this.saveAgmt.bind(_assertThisInitialized(_this));
    _this.pokeAgmt = _this.pokeAgmt.bind(_assertThisInitialized(_this));
    _this.initAgmt = _this.initAgmt.bind(_assertThisInitialized(_this));
    _this.enableAgmt = _this.enableAgmt.bind(_assertThisInitialized(_this));
    _this.disableAgmt = _this.disableAgmt.bind(_assertThisInitialized(_this));
    _this.deleteAgmt = _this.deleteAgmt.bind(_assertThisInitialized(_this));
    _this.showConfirmDeleteAgmt = _this.showConfirmDeleteAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmDeleteAgmt = _this.closeConfirmDeleteAgmt.bind(_assertThisInitialized(_this));
    _this.showConfirmInitAgmt = _this.showConfirmInitAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmInitAgmt = _this.closeConfirmInitAgmt.bind(_assertThisInitialized(_this));
    _this.confirmToggle = _this.confirmToggle.bind(_assertThisInitialized(_this));
    _this.closeConfirmEnableAgmt = _this.closeConfirmEnableAgmt.bind(_assertThisInitialized(_this));
    _this.closeConfirmDisableAgmt = _this.closeConfirmDisableAgmt.bind(_assertThisInitialized(_this));
    _this.watchAgmtInit = _this.watchAgmtInit.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(WinsyncAgmts, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this._mounted = true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this._mounted = false;
    }
  }, {
    key: "listEqual",
    value: function listEqual(old_values, new_values) {
      if (old_values.length != new_values.length) {
        return false;
      }

      for (var i = old_values.length; i--;) {
        if (old_values[i] != new_values[i]) {
          return false;
        }
      }

      return true;
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.checked));
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var time_val = "";
      var valueErr = false;
      var errObj = this.state.errObj;
      var all_good = true;
      var modal_msg = "";
      var modal_schedule_msg = "";
      var edit = false;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;

      if (e.target.name == "agmt-modal-edit") {
        var orig_attr = "_" + e.target.id;
        var attr = e.target.id;
        all_good = false;

        if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtSyncGroups' && this.state.agmtSyncGroups != this.state._agmtSyncGroups || attr != 'agmtSyncUsers' && this.state.agmtSyncUsers != this.state._agmtSyncUsers || attr != 'agmtWinDomain' && this.state.agmtWinDomain != this.state._agmtWinDomain || attr != 'agmtWinSubtree' && this.state.agmtWinSubtree != this.state._agmtWinSubtree || attr != 'agmtDSSubtree' && this.state.agmtDSSubtree != this.state._agmtDSSubtree || attr != 'agmtOneWaySync' && this.state.agmtOneWaySync != this.state._agmtOneWaySync || attr != 'agmtSyncInterval' && this.state.agmtSyncInterval != this.state._agmtSyncInterval || attr != 'agmtFracAttrs' && !this.listEqual(this.state.agmtFracAttrs, this.state._agmtFracAttrs)) {
          all_good = true;
        }

        if (!this.state._agmtSync) {
          if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun) {
            all_good = true;
          }
        }

        if (attr != 'agmtFracAttrs' && value != this.state[orig_attr]) {
          all_good = true;
        } else if (attr == 'agmtFracAttrs' && !this.listEqual(value, this.state._agmtFracAttrs)) {
          all_good = true;
        }
      }

      if (e.target.type == "time") {
        // Strip out the colon from the time
        time_val = value.replace(':', '');
      }

      if (e.target.name.startsWith("agmt-modal")) {
        // Validate modal settings "live"
        if (e.target.id == 'agmtName') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtName == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtHost') {
          if (value == "") {
            all_good = false;
          }
        } else if (this.state.agmtHost == "") {
          all_good = false;
        } else if (edit && value == this.state._agmtHost) {
          all_good = false;
        }

        if (e.target.id == 'agmtPort') {
          if (value == "") {
            all_good = false;
          } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_port"])(value)) {
            all_good = false;
            errObj['agmtPort'] = true;
            modal_msg = "Invalid Consumer Port number";
          }
        } else if (this.state.agmtPort == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindDN') {
          if (value == "") {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtBindDN'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Bind DN";
          }
        } else if (this.state.agmtBindDN == "") {
          all_good = false;
        } else if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(this.state.agmtBindDN)) {
          modal_msg = "Invalid DN for Bind DN";
          errObj['agmtBindDN'] = true;
          all_good = false;
        }

        if (e.target.id == 'agmtBindPW') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPWConfirm) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPW == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtBindPWConfirm') {
          if (value == "") {
            all_good = false;
          } else if (value != this.state.agmtBindPW) {
            modal_msg = "Passwords Do Not Match";
            errObj['agmtBindPW'] = true;
            errObj['agmtBindPWConfirm'] = true;
            all_good = false;
          } else {
            errObj['agmtBindPW'] = false;
            errObj['agmtBindPWConfirm'] = false;
          }
        } else if (this.state.agmtBindPWConfirm == "") {
          all_good = false;
        }

        if (e.target.id == 'agmtSync') {
          if (!value) {
            if (this.state.agmtStartTime >= this.state.agmtEndTime) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            }
          }
        } else if (!this.state.agmtSync) {
          // Check the days first
          var have_days = false;
          var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

          for (var _i = 0, _days = days; _i < _days.length; _i++) {
            var day = _days[_i];

            if (e.target.id != day && this.state[day] || e.target.id == day && value) {
              have_days = true;
              break;
            }
          }

          if (!have_days) {
            modal_schedule_msg = "You must select at least one day for replication";
            all_good = false;
          } else if (e.target.id == 'agmtStartTime') {
            if (time_val == "") {
              all_good = false;
              errObj['agmtStartTime'] = true;
            } else if (time_val >= this.state.agmtEndTime.replace(":", "")) {
              errObj['agmtStartTime'] = true;
              all_good = false;
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (e.target.id == 'agmtEndTime') {
            if (time_val == "") {
              errObj['agmtEndTime'] = true;
              all_good = false;
            } else if (this.state.agmtStartTime.replace(":", "") >= time_val) {
              modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
              errObj['agmtStartTime'] = true;
              all_good = false;
            } else {
              // All good, reset form
              modal_schedule_msg = "";
              errObj['agmtStartTime'] = false;
              errObj['agmtEndTime'] = false;
            }
          } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
            modal_schedule_msg = "Schedule start time is greater than or equal to the end time";
            errObj['agmtStartTime'] = true;
            all_good = false;
          }
        }

        if (e.target.id == 'agmtSyncGroups') {
          if (edit && value == this.state._agmtSyncGroups) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtSyncUsers') {
          if (edit && value == this.state._agmtSyncUsers) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtWinSubtree') {
          if (value == "") {
            all_good = false;
          } else if (edit && value == this.state._agmtWinSubtree) {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtWinSubtree'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Windows Subtree";
          }
        }

        if (e.target.id == 'agmtDSSubtree') {
          if (value == "") {
            all_good = false;
          } else if (edit && value == this.state._agmtDSSubtree) {
            all_good = false;
          }

          if (!Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["valid_dn"])(value)) {
            errObj['agmtDSSubtree'] = true;
            all_good = false;
            modal_msg = "Invalid DN for Directory Server Subtree";
          }
        }

        if (e.target.id == 'agmtSyncInterval') {
          if (value != "" && isNaN(value)) {
            errObj['agmtSyncInterval'] = true;
            all_good = false;
            modal_msg = "Invalid value, value must be a number";
          } else if (edit && value == this.state._agmtSyncInterval) {
            all_good = false;
          }
        }

        if (e.target.id == 'agmtOneWaySync') {
          if (edit && value == this.state._agmtOneWaySync) {
            all_good = false;
          }
        } // End of agmt modal live validation

      }

      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _defineProperty(_this$setState2, "agmtSaveOK", all_good), _defineProperty(_this$setState2, "modalMsg", modal_msg), _defineProperty(_this$setState2, "modalScheduleMsg", modal_schedule_msg), _this$setState2));
    }
  }, {
    key: "handleTAFracAttrChangeEdit",
    value: function handleTAFracAttrChangeEdit(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal-edit',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "handleTAFracAttrChange",
    value: function handleTAFracAttrChange(values) {
      // TypeAhead handling
      var e = {
        target: {
          name: 'agmt-modal',
          id: 'agmtFracAttrs',
          value: values,
          type: 'input'
        }
      };
      this.handleChange(e);
    }
  }, {
    key: "showConfirmDeleteAgmt",
    value: function showConfirmDeleteAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmDeleteAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeConfirmDeleteAgmt",
    value: function closeConfirmDeleteAgmt() {
      this.setState({
        showConfirmDeleteAgmt: false,
        modalChecked: false
      });
    }
  }, {
    key: "showConfirmInitAgmt",
    value: function showConfirmInitAgmt(agmtName) {
      this.setState({
        agmtName: agmtName,
        showConfirmInitAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "closeConfirmInitAgmt",
    value: function closeConfirmInitAgmt() {
      this.setState({
        showConfirmInitAgmt: false,
        modalChecked: false
      });
    }
  }, {
    key: "showCreateAgmtModal",
    value: function showCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: true,
        agmtName: "",
        agmtHost: "",
        agmtPort: "",
        agmtProtocol: "LDAP",
        agmtBindDN: "",
        agmtBindPW: "",
        agmtBindPWConfirm: "",
        agmtFracAttrs: [],
        agmtSync: true,
        agmtSyncMon: true,
        agmtSyncTue: true,
        agmtSyncWed: true,
        agmtSyncThu: true,
        agmtSyncFri: true,
        agmtSyncSat: true,
        agmtSyncSun: true,
        agmtStartTime: "00:00",
        agmtEndTime: "23:59",
        agmtInit: "noinit",
        agmtSaveOK: false,
        agmtSyncGroups: false,
        agmtSyncUsers: true,
        agmtWinDomain: "",
        agmtWinSubtree: "",
        agmtDSSubtree: "",
        agmtOneWaySync: "both",
        // "both", "toWindows", "fromWindows"
        agmtSyncInterval: "",
        modalScheduleMsg: "",
        errObj: {
          // Marks all the fields as required
          agmtName: true,
          agmtHost: true,
          agmtPort: true,
          agmtBindDN: true,
          agmtBindPW: true,
          agmtBindPWConfirm: true,
          agmtStartTime: false,
          agmtEndTime: false,
          agmtWinDomain: true,
          agmtWinSubtree: true,
          agmtDSSubtree: true
        }
      });
    }
  }, {
    key: "closeCreateAgmtModal",
    value: function closeCreateAgmtModal() {
      this.setState({
        showCreateAgmtModal: false
      });
    }
  }, {
    key: "closeEditAgmtModal",
    value: function closeEditAgmtModal() {
      this.setState({
        showEditAgmtModal: false
      });
    }
  }, {
    key: "showEditAgmt",
    value: function showEditAgmt(agmtName) {
      var _this2 = this;

      // Search for the agmt to get all the details
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('showEditAgmt', 'Edit winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var agmtName = "";
        var agmtHost = "";
        var agmtPort = "";
        var agmtProtocol = "";
        var agmtBindDN = "";
        var agmtBindPW = "";
        var agmtBindPWConfirm = "";
        var agmtFracAttrs = [];
        var agmtSync = true;
        var agmtSyncMon = false;
        var agmtSyncTue = false;
        var agmtSyncWed = false;
        var agmtSyncThu = false;
        var agmtSyncFri = false;
        var agmtSyncSat = false;
        var agmtSyncSun = false;
        var agmtStartTime = "";
        var agmtEndTime = "";
        var agmtSyncGroups = false;
        var agmtSyncUsers = false;
        var agmtWinDomain = "";
        var agmtWinSubtree = "";
        var agmtDSSubtree = "";
        var agmtOneWaySync = "both";
        var agmtSyncInterval = "";

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "winsyncinterval") {
            agmtSyncInterval = val;
          }

          if (attr == "onewaysync") {
            agmtOneWaySync = val;
          }

          if (attr == "nsds7directoryreplicasubtree") {
            agmtDSSubtree = val;
          }

          if (attr == "nsds7windowsreplicasubtree") {
            agmtWinSubtree = val;
          }

          if (attr == "nsds7windowsdomain") {
            agmtWinDomain = val;
          }

          if (attr == "nsds7newwinusersyncenabled") {
            if (val.toLowerCase() == "on") {
              agmtSyncUsers = true;
            }
          }

          if (attr == "nsds7newwingroupsyncenabled") {
            if (val.toLowerCase() == "on") {
              agmtSyncGroups = true;
            }
          }

          if (attr == "cn") {
            agmtName = val;
          }

          if (attr == "nsds5replicahost") {
            agmtHost = val;
          }

          if (attr == "nsds5replicaport") {
            agmtPort = val;
          }

          if (attr == "nsds5replicatransportinfo") {
            agmtProtocol = val;
          }

          if (attr == "nsds5replicabinddn") {
            agmtBindDN = val;
          }

          if (attr == "nsds5replicacredentials") {
            agmtBindPW = val;
            agmtBindPWConfirm = val;
          }

          if (attr == "nsds5replicatedattributelist") {
            var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
            agmtFracAttrs = attrs.split(' ');
          }

          if (attr == "nsds5replicaupdateschedule") {
            agmtSync = false; // Parse schedule

            var parts = val.split(' ');
            var times = parts[0].split('-');
            var days = parts[1]; // Do the times

            agmtStartTime = times[0].substring(0, 2) + ":" + times[0].substring(2, 4);
            agmtEndTime = times[1].substring(0, 2) + ":" + times[1].substring(2, 4); // Do the days

            if (days.includes("0")) {
              agmtSyncSun = true;
            }

            if (days.includes("1")) {
              agmtSyncMon = true;
            }

            if (days.includes("2")) {
              agmtSyncTue = true;
            }

            if (days.includes("3")) {
              agmtSyncWed = true;
            }

            if (days.includes("4")) {
              agmtSyncThu = true;
            }

            if (days.includes("5")) {
              agmtSyncFri = true;
            }

            if (days.includes("6")) {
              agmtSyncSat = true;
            }
          }
        }

        if (_this2._mounted) {
          _this2.setState({
            showEditAgmtModal: true,
            errObj: {},
            agmtName: agmtName,
            agmtHost: agmtHost,
            agmtPort: agmtPort,
            agmtProtocol: agmtProtocol,
            agmtBindDN: agmtBindDN,
            agmtBindPW: agmtBindPW,
            agmtBindPWConfirm: agmtBindPWConfirm,
            agmtFracAttrs: agmtFracAttrs,
            agmtSync: agmtSync,
            agmtSyncMon: agmtSyncMon,
            agmtSyncTue: agmtSyncTue,
            agmtSyncWed: agmtSyncWed,
            agmtSyncThu: agmtSyncThu,
            agmtSyncFri: agmtSyncFri,
            agmtSyncSat: agmtSyncSat,
            agmtSyncSun: agmtSyncSun,
            agmtStartTime: agmtStartTime,
            agmtEndTime: agmtEndTime,
            agmtSyncGroups: agmtSyncGroups,
            agmtSyncUsers: agmtSyncUsers,
            agmtWinDomain: agmtWinDomain,
            agmtWinSubtree: agmtWinSubtree,
            agmtDSSubtree: agmtDSSubtree,
            agmtOneWaySync: agmtOneWaySync,
            agmtSyncInterval: agmtSyncInterval,
            agmtSaveOK: false,
            // Record original values before editing
            _agmtName: agmtName,
            _agmtHost: agmtHost,
            _agmtPort: agmtPort,
            _agmtProtocol: agmtProtocol,
            _agmtBindDN: agmtBindDN,
            _agmtBindPW: agmtBindPW,
            _agmtBindPWConfirm: agmtBindPWConfirm,
            _agmtFracAttrs: agmtFracAttrs,
            _agmtSync: agmtSync,
            _agmtSyncMon: agmtSyncMon,
            _agmtSyncTue: agmtSyncTue,
            _agmtSyncWed: agmtSyncWed,
            _agmtSyncThu: agmtSyncThu,
            _agmtSyncFri: agmtSyncFri,
            _agmtSyncSat: agmtSyncSat,
            _agmtSyncSun: agmtSyncSun,
            _agmtStartTime: agmtStartTime,
            _agmtEndTime: agmtEndTime,
            _agmtSyncGroups: agmtSyncGroups,
            _agmtSyncUsers: agmtSyncUsers,
            _agmtWinDomain: agmtWinDomain,
            _agmtWinSubtree: agmtWinSubtree,
            _agmtDSSubtree: agmtDSSubtree,
            _agmtOneWaySync: agmtOneWaySync,
            _agmtSyncInterval: agmtSyncInterval
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
      });
    }
  }, {
    key: "saveAgmt",
    value: function saveAgmt() {
      var _this3 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      } else if (this.state.agmtSync != this.state._agmtSync && this.state.agmtSync) {
        // We disabled custom scheduleRow
        cmd.push('--schedule=');
      }

      if (this.state.agmtSyncGroups != this.state._agmtSyncGroups) {
        var val = "off";

        if (this.state.agmtSyncGroups) {
          val = "on";
        }

        cmd.push('--sync-groups=' + val);
      }

      if (this.state.agmtSyncUsers != this.state._agmtSyncUsers) {
        var _val = "off";

        if (this.state.agmtSyncUsers) {
          _val = "on";
        }

        cmd.push('--sync-users=' + _val);
      }

      if (this.state.agmtWinDomain != this.state._agmtWinDomain) {
        cmd.push('--win-domain=' + this.state.agmtWinDomain);
      }

      if (this.state.agmtWinSubtree != this.state._agmtWinSubtree) {
        cmd.push('--win-subtree=' + this.state.agmtWinSubtree);
      }

      if (this.state.agmtDSSubtree != this.state._agmtDSSubtree) {
        cmd.push('--ds-subtree=' + this.state.agmtDSSubtree);
      }

      if (this.state.agmtOneWaySync != this.state._agmtOneWaySync) {
        cmd.push('--one-way-sync=' + this.state.agmtOneWaySync);
      }

      if (this.state.agmtSyncInterval != this.state._agmtSyncInterval) {
        cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
      }

      if (this.state.agmtProtocol != this.state._agmtProtocol) {
        cmd.push('--conn-protocol=' + this.state.agmtProtocol);
      }

      if (this.state.agmtBindPW != this.state._agmtBindPW) {
        cmd.push('--bind-passwd=' + this.state.agmtBindPW);
      }

      if (this.state.agmtBindDN != this.state._agmtBindDN) {
        cmd.push('--bind-passwd=' + this.state.agmtBindDN);
      }

      if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtHost != this.state._agmtHost) {
        cmd.push('--host=' + this.state.agmtHost);
      }

      if (this.state.agmtPort != this.state._agmtPort) {
        cmd.push('--port=' + this.state.agmtPort);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('saveAgmt', 'update winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this3.props.reload(_this3.props.suffix);

        if (_this3._mounted) {
          _this3.setState({
            savingAgmt: false,
            showEditAgmtModal: false
          });
        }

        _this3.props.addNotification('success', 'Successfully updated winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Failed to update winsync agreement - ".concat(errMsg.desc));

        _this3.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "pokeAgmt",
    value: function pokeAgmt(agmtName) {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('pokeAgmt', 'send updates now', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.props.reload(_this4.props.suffix);

        _this4.props.addNotification('success', 'Successfully poked winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.props.addNotification('error', "Failed to poke winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "initAgmt",
    value: function initAgmt() {
      var _this5 = this;

      var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('initAgmt', 'Initialize agreement', init_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(init_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        var agmtIntervalCount = _this5.state.agmtInitCounter + 1;
        var intervals = _this5.state.agmtInitIntervals;

        _this5.props.reload(_this5.props.suffix);

        intervals[agmtIntervalCount] = setInterval(_this5.watchAgmtInit, 2000, _this5.state.agmtName, agmtIntervalCount); // This triggers error and does not actually work

        if (_this5._mounted) {
          _this5.setState({
            agmtInitCounter: agmtIntervalCount,
            agmtInitIntervals: intervals,
            showConfirmInitAgmt: false
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification('error', "Failed to initialize winsync agreement - ".concat(errMsg.desc));

        _this5.setState({
          showConfirmInitAgmt: false
        });
      });
    }
  }, {
    key: "confirmToggle",
    value: function confirmToggle(agmtName, state) {
      if (state == 'Enabled') {
        this.setState({
          agmtName: agmtName,
          showConfirmDisableAgmt: true
        });
      } else {
        this.setState({
          agmtName: agmtName,
          showConfirmEnableAgmt: true
        });
      }
    }
  }, {
    key: "closeConfirmEnableAgmt",
    value: function closeConfirmEnableAgmt() {
      this.setState({
        showConfirmEnableAgmt: false
      });
    }
  }, {
    key: "closeConfirmDisableAgmt",
    value: function closeConfirmDisableAgmt() {
      this.setState({
        showConfirmDisableAgmt: false
      });
    }
  }, {
    key: "enableAgmt",
    value: function enableAgmt(agmtName) {
      var _this6 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'enable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('enableAgmt', 'enable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.props.reload(_this6.props.suffix);

        _this6.props.addNotification('success', 'Successfully enabled winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.props.addNotification("error", "Failed to enabled winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "disableAgmt",
    value: function disableAgmt(agmtName) {
      var _this7 = this;

      // Enable/disable agmt
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'disable', agmtName, '--suffix=' + this.props.suffix];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('disableAgmt', 'Disable agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.props.reload(_this7.props.suffix);

        _this7.props.addNotification('success', 'Successfully disabled winsync agreement');
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Failed to disable winsync agreement - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteAgmt",
    value: function deleteAgmt() {
      var _this8 = this;

      this.setState({
        deleteSpinning: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('deleteAgmt', 'Delete agmt', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this8.props.reload(_this8.props.suffix);

        _this8.props.addNotification('success', 'Successfully deleted winsync agreement');

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Failed to delete winsync agreement - ".concat(errMsg.desc));

        _this8.setState({
          showDeleteConfirm: false,
          deleteSpinning: false
        });
      });
    }
  }, {
    key: "createAgmt",
    value: function createAgmt() {
      var _this9 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW, '--ds-subtree=' + this.state.agmtDSSubtree, '--win-subtree=' + this.state.agmtWinSubtree, '--win-domain=' + this.state.agmtWinDomain, '--one-way-sync=' + this.state.agmtOneWaySync]; // Handle Schedule

      if (!this.state.agmtSync) {
        var agmt_days = "";

        if (this.state.agmtSyncSun) {
          agmt_days += "0";
        }

        if (this.state.agmtSyncMon) {
          agmt_days += "1";
        }

        if (this.state.agmtSyncTue) {
          agmt_days += "2";
        }

        if (this.state.agmtSyncWed) {
          agmt_days += "3";
        }

        if (this.state.agmtSyncThu) {
          agmt_days += "4";
        }

        if (this.state.agmtSyncFri) {
          agmt_days += "5";
        }

        if (this.state.agmtSyncSat) {
          agmt_days += "6";
        }

        cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
      }

      if (this.state.agmtFracAttrs.length > 0) {
        cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
      }

      if (this.state.agmtSyncGroups) {
        cmd.push('--sync-groups=on');
      }

      if (this.state.agmtSyncUsers) {
        cmd.push('--sync-users=on');
      }

      if (this.state.agmtSyncInterval != "") {
        cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
      }

      this.setState({
        savingAgmt: true
      });
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('createAgmt', 'Create winsync agreement', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this9.props.reload(_this9.props.suffix);

        if (_this9._mounted) {
          _this9.setState({
            savingAgmt: false,
            showCreateAgmtModal: false
          });
        }

        _this9.props.addNotification('success', 'Successfully created winsync agreement');

        if (_this9.state.agmtInit == 'online-init') {
          _this9.initAgmt(_this9.state.agmtName);
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Failed to create winsync agreement - ".concat(errMsg.desc));

        _this9.setState({
          savingAgmt: false
        });
      });
    }
  }, {
    key: "watchAgmtInit",
    value: function watchAgmtInit(agmtName, idx) {
      var _this10 = this;

      // Watch the init, then clear the interval index
      var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_5__["log_cmd"])('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(status_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (data) {
        var init_status = JSON.parse(data);

        if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
          // Either way we're done, stop watching the status
          clearInterval(_this10.state.agmtInitIntervals[idx]);
        }

        _this10.props.reload(_this10.props.suffix);
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-right"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplAgmtTable"], {
        rows: this.props.rows,
        edit: this.showEditAgmt,
        poke: this.pokeAgmt,
        init: this.showConfirmInitAgmt,
        enable: this.confirmToggle,
        "delete": this.showConfirmDeleteAgmt
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top ds-container ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        bsStyle: "primary",
        onClick: this.showCreateAgmtModal
      }, "Create Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_7__["Button"], {
        className: "ds-left-margin",
        bsStyle: "default",
        onClick: function onClick() {
          _this11.props.reload(_this11.props.suffix);
        }
      }, "Refresh Agreements")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["WinsyncAgmtModal"], {
        showModal: this.state.showCreateAgmtModal,
        closeHandler: this.closeCreateAgmtModal,
        handleChange: this.handleChange,
        handleFracChange: this.handleTAFracAttrChange,
        saveHandler: this.createAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        agmtSyncGroups: this.state.agmtSyncGroups,
        agmtSyncUsers: this.state.agmtSyncUsers,
        agmtWinDomain: this.state.agmtWinDomain,
        agmtWinSubtree: this.state.agmtWinSubtree,
        agmtDSSubtree: this.state.agmtDSSubtree,
        agmtOneWaySync: this.state.agmtOneWaySync,
        agmtSyncInterval: this.state.agmtSyncInterval,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__["WinsyncAgmtModal"], {
        showModal: this.state.showEditAgmtModal,
        closeHandler: this.closeEditAgmtModal,
        handleChange: this.handleChange,
        handleFracChange: this.handleTAFracAttrChangeEdit,
        saveHandler: this.saveAgmt,
        spinning: this.state.savingAgmt,
        agmtName: this.state.agmtName,
        agmtHost: this.state.agmtHost,
        agmtPort: this.state.agmtPort,
        agmtBindDN: this.state.agmtBindDN,
        agmtBindPW: this.state.agmtBindPW,
        agmtBindPWConfirm: this.state.agmtBindPWConfirm,
        agmtProtocol: this.state.agmtProtocol,
        agmtStripAttrs: this.state.agmtStripAttrs,
        agmtFracAttrs: this.state.agmtFracAttrs,
        agmtFracInitAttrs: this.state.agmtFracInitAttrs,
        agmtSync: this.state.agmtSync,
        agmtSyncMon: this.state.agmtSyncMon,
        agmtSyncTue: this.state.agmtSyncTue,
        agmtSyncWed: this.state.agmtSyncWed,
        agmtSyncThu: this.state.agmtSyncThu,
        agmtSyncFri: this.state.agmtSyncFri,
        agmtSyncSat: this.state.agmtSyncSat,
        agmtSyncSun: this.state.agmtSyncSun,
        agmtStartTime: this.state.agmtStartTime,
        agmtEndTime: this.state.agmtEndTime,
        agmtSyncGroups: this.state.agmtSyncGroups,
        agmtSyncUsers: this.state.agmtSyncUsers,
        agmtWinDomain: this.state.agmtWinDomain,
        agmtWinSubtree: this.state.agmtWinSubtree,
        agmtDSSubtree: this.state.agmtDSSubtree,
        agmtOneWaySync: this.state.agmtOneWaySync,
        agmtSyncInterval: this.state.agmtSyncInterval,
        availAttrs: this.props.attrs,
        error: this.state.errObj,
        errorMsg: this.state.modalMsg,
        errorScheduleMsg: this.state.modalScheduleMsg,
        saveOK: this.state.agmtSaveOK,
        edit: true
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDeleteAgmt,
        closeHandler: this.closeConfirmDeleteAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.deleteAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Delete Winsync Agreement",
        mMsg: "Are you sure you want to delete this winsync agreement",
        mSpinningMsg: "Deleting Winsync Agreement ...",
        mBtnName: "Delete Agreement"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmInitAgmt,
        closeHandler: this.closeConfirmInitAgmt,
        handleChange: this.handleModalChange,
        actionHandler: this.initAgmt,
        spinning: this.state.modalSpinning,
        item: this.state.agmtName,
        checked: this.state.modalChecked,
        mTitle: "Initialize Winsync Agreement",
        mMsg: "Are you sure you want to initialize this winsync agreement",
        mSpinningMsg: "Initializing Winsync Agreement ...",
        mBtnName: "Initialize Agreement"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmEnableAgmt,
        closeHandler: this.closeConfirmEnableAgmt,
        actionFunc: this.enableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to enable this winsync agreement?",
        msgContent: this.state.agmtName
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisableAgmt,
        closeHandler: this.closeConfirmDisableAgmt,
        actionFunc: this.disableAgmt,
        actionParam: this.state.agmtName,
        msg: "Are you sure you want to disable this winsync agreement?",
        msgContent: this.state.agmtName
      }));
    }
  }]);

  return WinsyncAgmts;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
WinsyncAgmts.propTypes = {
  suffix: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  rows: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
WinsyncAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_7__["noop"]
};

/***/ }),

/***/ "./src/lib/schema/schemaModals.jsx":
/*!*****************************************!*\
  !*** ./src/lib/schema/schemaModals.jsx ***!
  \*****************************************/
/*! exports provided: ObjectClassModal, AttributeTypeModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectClassModal", function() { return ObjectClassModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeTypeModal", function() { return AttributeTypeModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ObjectClassModal = /*#__PURE__*/function (_React$Component) {
  _inherits(ObjectClassModal, _React$Component);

  var _super = _createSuper(ObjectClassModal);

  function ObjectClassModal() {
    _classCallCheck(this, ObjectClassModal);

    return _super.apply(this, arguments);
  }

  _createClass(ObjectClassModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          newOcEntry = _this$props.newOcEntry,
          ocModalViewOnly = _this$props.ocModalViewOnly,
          addHandler = _this$props.addHandler,
          editHandler = _this$props.editHandler,
          handleTypeaheadChange = _this$props.handleTypeaheadChange,
          handleFieldChange = _this$props.handleFieldChange,
          objectclasses = _this$props.objectclasses,
          attributes = _this$props.attributes,
          ocName = _this$props.ocName,
          ocDesc = _this$props.ocDesc,
          ocOID = _this$props.ocOID,
          ocParent = _this$props.ocParent,
          ocKind = _this$props.ocKind,
          ocMust = _this$props.ocMust,
          ocMay = _this$props.ocMay,
          objectclassModalShow = _this$props.objectclassModalShow,
          closeModal = _this$props.closeModal,
          loading = _this$props.loading;
      var spinner = "";

      if (loading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Saving objectClass..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: objectclassModalShow,
        onHide: closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, ocModalViewOnly ? "View ObjectClass - ".concat(ocName) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, newOcEntry ? "Add" : "Edit", " ObjectClass", ocName != "" ? " - ".concat(ocName) : "", " "))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "ocName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Name of the objectClass"
      }, "Objectclass Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "ocName",
        type: "text",
        value: ocName,
        onChange: handleFieldChange,
        disabled: ocModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "ocDesc"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Describes what is the objectClass's purpose"
      }, "Description")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: ocDesc,
        onChange: handleFieldChange,
        disabled: ocModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "ocOID"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Object identifier"
      }, "OID (optional)")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: ocOID,
        onChange: handleFieldChange,
        disabled: ocModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "ocParent",
        controlId: "ocParent",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An objectClass's parent"
      }, "Parent Objectclass")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(values) {
          handleTypeaheadChange("ocParent", values);
        },
        selected: ocParent,
        newSelectionPrefix: "Add a parent: ",
        options: objectclasses,
        placeholder: "Type a parent objectClass...",
        disabled: ocModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "ocKind",
        controlId: "ocKind",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An objectClass kind"
      }, "Objectclass Kind")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "ocKind",
        className: "btn btn-default dropdown",
        onChange: handleFieldChange,
        value: ocKind,
        disabled: ocModalViewOnly
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "STRUCTURAL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "ABSTRACT"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "AUXILIARY")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "ocMust",
        controlId: "ocMust",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "A must attribute name"
      }, "Required Attributes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          handleTypeaheadChange("ocMust", values);
        },
        selected: ocMust,
        newSelectionPrefix: "Add a required attribute: ",
        options: attributes,
        placeholder: "Type an attribute name...",
        disabled: ocModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "ocMay",
        controlId: "ocMay",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "A may attribute name"
      }, "Allowed Attributes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          handleTypeaheadChange("ocMay", values);
        },
        selected: ocMay,
        newSelectionPrefix: "Add an allowed attribute: ",
        options: attributes,
        placeholder: "Type an attribute name...",
        disabled: ocModalViewOnly
      })))), spinner), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, ocModalViewOnly ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeModal
      }, "Close") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: newOcEntry ? addHandler : editHandler
      }, newOcEntry ? "Add" : "Save"))))));
    }
  }]);

  return ObjectClassModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ObjectClassModal.propTypes = {
  addHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  editHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  newOcEntry: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  ocModalViewOnly: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleFieldChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  objectclasses: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  ocName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  ocDesc: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  ocOID: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  ocParent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  ocKind: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  ocMust: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  ocMay: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  objectclassModalShow: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
ObjectClassModal.defaultProps = {
  addHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  editHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  newOcEntry: true,
  ocModalViewOnly: false,
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFieldChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  objectclasses: [],
  attributes: [],
  ocName: "",
  ocDesc: "",
  ocOID: "",
  ocParent: [],
  ocKind: "",
  ocMust: [],
  ocMay: [],
  objectclassModalShow: false,
  closeModal: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  loading: false
};

var AttributeTypeModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(AttributeTypeModal, _React$Component2);

  var _super2 = _createSuper(AttributeTypeModal);

  function AttributeTypeModal() {
    _classCallCheck(this, AttributeTypeModal);

    return _super2.apply(this, arguments);
  }

  _createClass(AttributeTypeModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          atName = _this$props2.atName,
          atDesc = _this$props2.atDesc,
          atOID = _this$props2.atOID,
          atParent = _this$props2.atParent,
          atSyntax = _this$props2.atSyntax,
          atUsage = _this$props2.atUsage,
          atMultivalued = _this$props2.atMultivalued,
          atNoUserMod = _this$props2.atNoUserMod,
          atAlias = _this$props2.atAlias,
          atEqMr = _this$props2.atEqMr,
          atOrder = _this$props2.atOrder,
          atSubMr = _this$props2.atSubMr,
          atModalViewOnly = _this$props2.atModalViewOnly,
          attributeModalShow = _this$props2.attributeModalShow,
          newAtEntry = _this$props2.newAtEntry,
          addHandler = _this$props2.addHandler,
          editHandler = _this$props2.editHandler,
          handleTypeaheadChange = _this$props2.handleTypeaheadChange,
          handleFieldChange = _this$props2.handleFieldChange,
          attributes = _this$props2.attributes,
          syntaxes = _this$props2.syntaxes,
          matchingrules = _this$props2.matchingrules,
          closeModal = _this$props2.closeModal,
          loading = _this$props2.loading;
      var spinner = "";

      if (loading) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-margin-top-lg ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Saving attribute..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: attributeModalShow,
        onHide: closeModal
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeModal,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, atModalViewOnly ? "View Attribute - ".concat(atName) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, newAtEntry ? "Add" : "Edit", " Attribute", atName != "" ? " - ".concat(atName) : "", " "))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "atName"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Name of the attribute"
      }, "Attribute Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "atName",
        type: "text",
        value: atName,
        onChange: handleFieldChange,
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "atDesc"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Describes what is the attribute's purpose"
      }, "Description")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: atDesc,
        onChange: handleFieldChange,
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        controlId: "atOID"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "Object identifier"
      }, "OID (optional)")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        value: atOID,
        onChange: handleFieldChange,
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atParent",
        controlId: "atParent",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An attribute's parent"
      }, "Parent Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        onChange: function onChange(values) {
          handleTypeaheadChange("atParent", values);
        },
        selected: atParent,
        newSelectionPrefix: "Add a parent: ",
        options: attributes,
        placeholder: "Type a parent attribute...",
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atSyntax",
        controlId: "atSyntax",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An attribute's syntax"
      }, "Syntax Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        onChange: function onChange(values) {
          handleTypeaheadChange("atSyntax", values);
        },
        selected: atSyntax,
        newSelectionPrefix: "Add a syntax: ",
        options: syntaxes,
        placeholder: "Type a syntax name...",
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atUsage",
        controlId: "atUsage",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An attribute usage purpose"
      }, "Attribute Usage")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "atUsage",
        className: "btn btn-default dropdown",
        onChange: handleFieldChange,
        value: atUsage,
        disabled: atModalViewOnly
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "userApplications"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "directoryOperation"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "distributedOperation"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", null, "dSAOperation")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atMultivalued",
        controlId: "atMultivalued"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "If attribute can have a multiple values"
      }, "Multivalued Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "atMultivalued",
        checked: atMultivalued,
        title: "If attribute can have a multiple values",
        onChange: handleFieldChange,
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atNoUserMod",
        controlId: "atNoUserMod"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "If attribute is not modifiable by a client application"
      }, "Not Modifiable By A User")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "atNoUserMod",
        checked: atNoUserMod,
        title: "If attribute is not modifiable by a client application",
        onChange: handleFieldChange,
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atAlias",
        controlId: "atAlias",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An alias name for the attribute"
      }, "Alias Names")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        allowNew: true,
        multiple: true,
        onChange: function onChange(values) {
          handleTypeaheadChange("atAlias", values);
        },
        selected: atAlias,
        options: [],
        newSelectionPrefix: "Add an alias: ",
        placeholder: "Type an alias name...",
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atEqMr",
        controlId: "atEqMr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An equality matching rule"
      }, "Equality Matching Rule")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        onChange: function onChange(values) {
          handleTypeaheadChange("atEqMr", values);
        },
        selected: atEqMr,
        newSelectionPrefix: "Add an matching rule: ",
        options: matchingrules,
        placeholder: "Type an matching rule...",
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atOrder",
        controlId: "atOrder",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "An order matching rule"
      }, "Order Matching Rule")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        onChange: function onChange(values) {
          handleTypeaheadChange("atOrder", values);
        },
        selected: atOrder,
        newSelectionPrefix: "Add an matching rule: ",
        options: matchingrules,
        placeholder: "Type an matching rule...",
        disabled: atModalViewOnly
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormGroup"], {
        key: "atSubMr",
        controlId: "atSubMr",
        disabled: false
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], {
        title: "A substring matching rule"
      }, "Substring Matching Rule")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_2__["Typeahead"], {
        onChange: function onChange(values) {
          handleTypeaheadChange("atSubMr", values);
        },
        selected: atSubMr,
        newSelectionPrefix: "Add an matching rule: ",
        options: matchingrules,
        placeholder: "Type an matching rule...",
        disabled: atModalViewOnly
      })))), spinner), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, atModalViewOnly ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeModal
      }, "Close") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeModal
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: newAtEntry ? addHandler : editHandler
      }, newAtEntry ? "Add" : "Save"))))));
    }
  }]);

  return AttributeTypeModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AttributeTypeModal.propTypes = {
  addHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  editHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleTypeaheadChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  handleFieldChange: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  attributes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  matchingrules: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  syntaxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atName: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  atDesc: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  atOID: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  atParent: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atSyntax: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atUsage: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.string,
  atMultivalued: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  atNoUserMod: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  atAlias: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atEqMr: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atOrder: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atSubMr: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  atModalViewOnly: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  attributeModalShow: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  newAtEntry: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool,
  closeModal: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
AttributeTypeModal.defaultProps = {
  addHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  editHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleTypeaheadChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleFieldChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  attributes: [],
  matchingrules: [],
  syntaxes: [],
  atName: "",
  atDesc: "",
  atOID: "",
  atParent: [],
  atSyntax: [],
  atUsage: "userApplications",
  atMultivalued: false,
  atNoUserMod: false,
  atAlias: [],
  atEqMr: [],
  atOrder: [],
  atSubMr: [],
  atModalViewOnly: false,
  attributeModalShow: false,
  newAtEntry: true,
  closeModal: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  loading: false
};


/***/ }),

/***/ "./src/lib/schema/schemaTables.jsx":
/*!*****************************************!*\
  !*** ./src/lib/schema/schemaTables.jsx ***!
  \*****************************************/
/*! exports provided: ObjectClassesTable, AttributesTable, MatchingRulesTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectClassesTable", function() { return ObjectClassesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributesTable", function() { return AttributesTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatchingRulesTable", function() { return MatchingRulesTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ObjectClassesTable = /*#__PURE__*/function (_React$Component) {
  _inherits(ObjectClassesTable, _React$Component);

  var _super = _createSuper(ObjectClassesTable);

  function ObjectClassesTable(props) {
    var _this;

    _classCallCheck(this, ObjectClassesTable);

    _this = _super.call(this, props);
    _this.state = {
      searchFilterValue: "",
      fieldsToSearch: ["name", "oid"],
      columns: [{
        property: "name",
        header: {
          label: "ObjectClass Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "oid",
        header: {
          label: "OID",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "must",
        header: {
          label: "Required Attributes",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, value.join(" "))];
          }]
        }
      }, {
        property: "may",
        header: {
          label: "Allowed Attributes",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, value.join(" "))];
          }]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref3) {
            var rowData = _ref3.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, rowData.x_origin === null || rowData.x_origin === undefined || rowData.x_origin[0].toLowerCase() != "user defined" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this.props.viewModalHandler(rowData);
              }
            }, "View Objectclass") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              bsStyle: "default",
              title: "Choose Action...",
              className: "ds-schema-dropdown"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              className: "ds-schema-dropdown",
              onClick: function onClick() {
                _this.props.editModalHandler(rowData);
              }
            }, "Edit ObjectClass"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              className: "ds-schema-dropdown",
              onClick: function onClick() {
                _this.props.deleteHandler(rowData.name[0]);
              }
            }, "Delete ObjectClass")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ObjectClassesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        rowKey: "name",
        rows: this.props.rows,
        toolBarSearchField: "ObjectClasses",
        toolBarLoading: this.props.loading
      }));
    }
  }]);

  return ObjectClassesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

ObjectClassesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  viewModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
ObjectClassesTable.defaultProps = {
  rows: [],
  editModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  viewModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  loading: false
};

var AttributesTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(AttributesTable, _React$Component2);

  var _super2 = _createSuper(AttributesTable);

  function AttributesTable(props) {
    var _this2;

    _classCallCheck(this, AttributesTable);

    _this2 = _super2.call(this, props);
    _this2.state = {
      searchFilterValue: "",
      fieldsToSearch: ["name", "oid"],
      columns: [{
        property: "name",
        header: {
          label: "Attribute Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "oid",
        header: {
          label: "OID",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "syntax",
        header: {
          label: "Syntax",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [function (value, _ref4) {
            var rowData = _ref4.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, _this2.props.syntaxes.filter(function (attr) {
              return attr.id === value[0];
            })[0]["label"])];
          }]
        }
      }, {
        property: "multivalued",
        header: {
          label: "Multivalued",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [function (value, _ref5) {
            var rowData = _ref5.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, value ? "yes" : "no")];
          }]
        }
      }, {
        property: "actions",
        header: {
          label: "Actions",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref6) {
            var rowData = _ref6.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, rowData.x_origin === null || rowData.x_origin === undefined || rowData.x_origin[0].toLowerCase() != "user defined" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
              onClick: function onClick() {
                _this2.props.viewModalHandler(rowData);
              }
            }, "View Attribute") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              bsStyle: "default",
              title: "Choose Action...",
              className: "ds-schema-dropdown"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              className: "ds-schema-dropdown",
              onClick: function onClick() {
                _this2.props.editModalHandler(rowData);
              }
            }, "Edit Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              className: "ds-schema-dropdown",
              onClick: function onClick() {
                _this2.props.deleteHandler(rowData.name[0]);
              }
            }, "Delete Attribute")))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    return _this2;
  }

  _createClass(AttributesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        rowKey: "name",
        rows: this.props.rows,
        toolBarSearchField: "Attributes",
        toolBarLoading: this.props.loading
      }));
    }
  }]);

  return AttributesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

AttributesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  viewModalHandler: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  syntaxes: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  loading: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.bool
};
AttributesTable.defaultProps = {
  rows: [],
  editModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  viewModalHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  syntaxes: [],
  loading: false
};

var MatchingRulesTable = /*#__PURE__*/function (_React$Component3) {
  _inherits(MatchingRulesTable, _React$Component3);

  var _super3 = _createSuper(MatchingRulesTable);

  function MatchingRulesTable(props) {
    var _this3;

    _classCallCheck(this, MatchingRulesTable);

    _this3 = _super3.call(this, props);
    _this3.state = {
      searchFilterValue: "",
      fieldsToSearch: ["name", "oid"],
      columns: [{
        property: "name",
        header: {
          label: "Matching Rule Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "oid",
        header: {
          label: "OID",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "syntax",
        header: {
          label: "Syntax",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "desc",
        header: {
          label: "Description",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }]
    };
    _this3.getColumns = _this3.getColumns.bind(_assertThisInitialized(_this3));
    return _this3;
  }

  _createClass(MatchingRulesTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
        getColumns: this.getColumns,
        fieldsToSearch: this.state.fieldsToSearch,
        rowKey: "oid",
        rows: this.props.rows,
        toolBarSearchField: "Matching Rules",
        toolBarDisableLoadingSpinner: true
      }));
    }
  }]);

  return MatchingRulesTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);

MatchingRulesTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array
};
MatchingRulesTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/security/certificateManagement.jsx":
/*!****************************************************!*\
  !*** ./src/lib/security/certificateManagement.jsx ***!
  \****************************************************/
/*! exports provided: CertificateManagement, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CertificateManagement", function() { return CertificateManagement; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./securityTables.jsx */ "./src/lib/security/securityTables.jsx");
/* harmony import */ var _securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var CertificateManagement = /*#__PURE__*/function (_React$Component) {
  _inherits(CertificateManagement, _React$Component);

  var _super = _createSuper(CertificateManagement);

  function CertificateManagement(props) {
    var _this;

    _classCallCheck(this, CertificateManagement);

    _this = _super.call(this, props);
    _this.state = {
      activeKey: 1,
      ServerCerts: _this.props.ServerCerts,
      CACerts: _this.props.CACerts,
      showEditModal: false,
      showAddModal: false,
      modalSpinner: false,
      showConfirmDelete: false,
      certName: "",
      certFile: "",
      flags: "",
      errObj: {},
      isCACert: false,
      showConfirmCAChange: false,
      loading: false,
      modalSpinning: false,
      modalChecked: false
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.addCACert = _this.addCACert.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.addCert = _this.addCert.bind(_assertThisInitialized(_this));
    _this.showAddModal = _this.showAddModal.bind(_assertThisInitialized(_this));
    _this.closeAddModal = _this.closeAddModal.bind(_assertThisInitialized(_this));
    _this.showAddCAModal = _this.showAddCAModal.bind(_assertThisInitialized(_this));
    _this.closeAddCAModal = _this.closeAddCAModal.bind(_assertThisInitialized(_this));
    _this.showEditModal = _this.showEditModal.bind(_assertThisInitialized(_this));
    _this.closeEditModal = _this.closeEditModal.bind(_assertThisInitialized(_this));
    _this.showEditCAModal = _this.showEditCAModal.bind(_assertThisInitialized(_this));
    _this.handleFlagChange = _this.handleFlagChange.bind(_assertThisInitialized(_this));
    _this.editCert = _this.editCert.bind(_assertThisInitialized(_this));
    _this.doEditCert = _this.doEditCert.bind(_assertThisInitialized(_this));
    _this.closeConfirmCAChange = _this.closeConfirmCAChange.bind(_assertThisInitialized(_this));
    _this.showDeleteConfirm = _this.showDeleteConfirm.bind(_assertThisInitialized(_this));
    _this.delCert = _this.delCert.bind(_assertThisInitialized(_this));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_this));
    _this.reloadCerts = _this.reloadCerts.bind(_assertThisInitialized(_this));
    _this.reloadCACerts = _this.reloadCACerts.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(CertificateManagement, [{
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "showAddModal",
    value: function showAddModal() {
      this.setState({
        showAddModal: true,
        errObj: {
          certName: true,
          certFile: true
        }
      });
    }
  }, {
    key: "closeAddModal",
    value: function closeAddModal() {
      this.setState({
        showAddModal: false,
        certName: "",
        certFile: ""
      });
    }
  }, {
    key: "showAddCAModal",
    value: function showAddCAModal() {
      this.setState({
        showAddCAModal: true,
        errObj: {
          certName: true,
          certFile: true
        }
      });
    }
  }, {
    key: "closeAddCAModal",
    value: function closeAddCAModal() {
      this.setState({
        showAddCAModal: false,
        certName: "",
        certFile: ""
      });
    }
  }, {
    key: "addCert",
    value: function addCert() {
      var _this2 = this;

      if (this.state.certName == "") {
        this.props.addNotification("warning", "Missing certificate nickname");
        return;
      } else if (this.state.certFile == "") {
        this.props.addNotification("warning", "Missing certificate file name");
        return;
      }

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("addCert", "Adding server cert", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this2.reloadCACerts();

        _this2.setState({
          showAddModal: false,
          certFile: '',
          certName: '',
          modalSpinner: false
        });

        _this2.props.addNotification("success", "Successfully added certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.setState({
          modalSpinner: false,
          loading: false
        });

        _this2.props.addNotification("error", "Error adding certificate - ".concat(msg));
      });
    }
  }, {
    key: "addCACert",
    value: function addCACert() {
      var _this3 = this;

      if (this.state.certName == "") {
        this.props.addNotification("warning", "Missing certificate nickname");
        return;
      } else if (this.state.certFile == "") {
        this.props.addNotification("warning", "Missing certificate file name");
        return;
      }

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("addCACert", "Adding CA certificate", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this3.reloadCACerts();

        _this3.setState({
          showAddCAModal: false,
          certFile: '',
          certName: '',
          modalSpinner: false
        });

        _this3.props.addNotification("success", "Successfully added certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.setState({
          modalSpinner: false,
          loading: false
        });

        _this3.props.addNotification("error", "Error adding certificate - ".concat(msg));
      });
    }
  }, {
    key: "showDeleteConfirm",
    value: function showDeleteConfirm(dataRow) {
      this.setState({
        showConfirmDelete: true,
        certName: dataRow.nickname[0],
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "delCert",
    value: function delCert() {
      var _this4 = this;

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "del", this.state.certName];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("delCert", "Deleting certificate", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this4.reloadCACerts();

        _this4.setState({
          certName: '',
          modalSpinner: false,
          showConfirmDelete: false
        });

        _this4.props.addNotification("success", "Successfully deleted certificate");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this4.setState({
          certName: '',
          modalSpinner: false,
          loading: false
        });

        _this4.props.addNotification("error", "Error deleting certificate - ".concat(msg));
      });
    }
  }, {
    key: "showEditModal",
    value: function showEditModal(rowData) {
      this.setState({
        showEditModal: true,
        certName: rowData.nickname[0],
        flags: rowData.flags[0],
        isCACert: false
      });
    }
  }, {
    key: "closeEditModal",
    value: function closeEditModal() {
      this.setState({
        showEditModal: false,
        flags: ''
      });
    }
  }, {
    key: "showEditCAModal",
    value: function showEditCAModal(rowData) {
      this.setState({
        showEditModal: true,
        certName: rowData.nickname[0],
        flags: rowData.flags[0],
        isCACert: true
      });
    }
  }, {
    key: "editCert",
    value: function editCert() {
      // Check if CA cert flags were removed
      if (this.state.isCACert) {
        var SSLFlags = '';
        SSLFlags = this.state.flags.split(',', 1);

        if (!SSLFlags[0].includes('C') || !SSLFlags[0].includes('T')) {
          // This could remove the CA cert properties, better warn user
          this.setState({
            showConfirmCAChange: true,
            modalSpinning: false,
            modalChecked: false
          });
          return;
        }
      }

      this.doEditCert();
    }
  }, {
    key: "closeConfirmCAChange",
    value: function closeConfirmCAChange() {
      this.setState({
        showConfirmCAChange: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "doEditCert",
    value: function doEditCert() {
      var _this5 = this;

      this.setState({
        modalSpinner: true,
        loading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "set-trust-flags", this.state.certName, "--flags=" + this.state.flags];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("doEditCert", "Editing trust flags", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this5.reloadCACerts();

        _this5.setState({
          showEditModal: false,
          flags: '',
          certName: '',
          modalSpinner: false
        });

        _this5.props.addNotification("success", "Successfully changed certificate's trust flags");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this5.setState({
          showEditModal: false,
          flags: '',
          certName: '',
          modalSpinner: false,
          loading: false
        });

        _this5.props.addNotification("error", "Error setting trust flags - ".concat(msg));
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleFlagChange",
    value: function handleFlagChange(e) {
      var checked = e.target.checked;
      var id = e.target.id;
      var flags = this.state.flags;
      var SSLFlags = '';
      var EmailFlags = '';
      var OSFlags = '';

      var _flags$split = flags.split(',');

      var _flags$split2 = _slicedToArray(_flags$split, 3);

      SSLFlags = _flags$split2[0];
      EmailFlags = _flags$split2[1];
      OSFlags = _flags$split2[2];

      if (id.endsWith('SSL')) {
        for (var _i2 = 0, _arr2 = ['C', 'T', 'c', 'P', 'p']; _i2 < _arr2.length; _i2++) {
          var trustFlag = _arr2[_i2];

          if (id.startsWith(trustFlag)) {
            if (checked) {
              SSLFlags += trustFlag;
            } else {
              SSLFlags = SSLFlags.replace(trustFlag, '');
            }
          }
        }
      } else if (id.endsWith('Email')) {
        for (var _i3 = 0, _arr3 = ['C', 'T', 'c', 'P', 'p']; _i3 < _arr3.length; _i3++) {
          var _trustFlag = _arr3[_i3];

          if (id.startsWith(_trustFlag)) {
            if (checked) {
              EmailFlags += _trustFlag;
            } else {
              EmailFlags = EmailFlags.replace(_trustFlag, '');
            }
          }
        }
      } else {
        // Object Signing (OS)
        for (var _i4 = 0, _arr4 = ['C', 'T', 'c', 'P', 'p']; _i4 < _arr4.length; _i4++) {
          var _trustFlag2 = _arr4[_i4];

          if (id.startsWith(_trustFlag2)) {
            if (checked) {
              OSFlags += _trustFlag2;
            } else {
              OSFlags = OSFlags.replace(_trustFlag2, '');
            }
          }
        }
      }

      this.setState({
        flags: SSLFlags + "," + EmailFlags + "," + OSFlags
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        showConfirmDelete: false,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }, {
    key: "reloadCerts",
    value: function reloadCerts() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("reloadCerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);
        var certNames = [];

        var _iterator = _createForOfIteratorHelper(certs),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var cert = _step.value;
            certNames.push(cert.attrs['nickname']);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this6.setState({
          ServerCerts: certs,
          loading: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this6.props.addNotification("error", "Error loading server certificates - ".concat(msg));
      });
    }
  }, {
    key: "reloadCACerts",
    value: function reloadCACerts() {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_7__["log_cmd"])("reloadCACerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);

        _this7.setState({
          CACerts: certs,
          loading: false
        }, _this7.reloadCerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this7.props.addNotification("error", "Error loading CA certificates - ".concat(msg));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this8 = this;

      var CATitle = 'Trusted Certificate Authorites <font size="2">(' + this.state.CACerts.length + ')</font>';
      var ServerTitle = 'TLS Certificates <font size="2">(' + this.state.ServerCerts.length + ')</font>';
      var certificatePage = '';

      if (this.state.loading) {
        certificatePage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading certificates ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        certificatePage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tab-table"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContainer"], {
          id: "basic-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: CATitle
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: ServerTitle
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__["CertTable"], {
          certs: this.state.CACerts,
          key: this.state.CACerts,
          editCert: this.showEditCAModal,
          delCert: this.showDeleteConfirm
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: function onClick() {
            _this8.showAddCAModal();
          }
        }, "Add CA Certificate"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_4__["CertTable"], {
          certs: this.state.ServerCerts,
          key: this.state.ServerCerts,
          editCert: this.showEditModal,
          delCert: this.showDeleteConfirm
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: function onClick() {
            _this8.showAddModal();
          }
        }, "Add Server Certificate"))))))));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, certificatePage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["EditCertModal"], {
        showModal: this.state.showEditModal,
        closeHandler: this.closeEditModal,
        handleChange: this.handleFlagChange,
        saveHandler: this.editCert,
        flags: this.state.flags,
        spinning: this.state.modalSpinner
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["SecurityAddCertModal"], {
        showModal: this.state.showAddModal,
        closeHandler: this.closeAddModal,
        handleChange: this.handleChange,
        saveHandler: this.addCert,
        spinning: this.state.modalSpinner,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__["SecurityAddCACertModal"], {
        showModal: this.state.showAddCAModal,
        closeHandler: this.closeAddCAModal,
        handleChange: this.handleChange,
        saveHandler: this.addCACert,
        spinning: this.state.modalSpinner,
        error: this.state.errObj
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        handleChange: this.handleChange,
        actionHandler: this.delCert,
        spinning: this.state.modalSpinning,
        item: this.state.certName,
        checked: this.state.modalChecked,
        mTitle: "Delete Certificate",
        mMsg: "Are you sure you want to delete this certificate?",
        mSpinningMsg: "Deleting Certificate ...",
        mBtnName: "Delete Certificate"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmCAChange,
        closeHandler: this.closeConfirmCAChange,
        handleChange: this.handleChange,
        actionHandler: this.doEditCert,
        spinning: this.state.modalSpinning,
        item: this.state.certName,
        checked: this.state.modalChecked,
        mTitle: "Warning - ",
        mMsg: "Removing the 'C' or 'T' flags from the SSL trust catagory could break all TLS connectivity to and from the server, are you sure you want to proceed?",
        mSpinningMsg: "Editing CA Certificate ...",
        mBtnName: "Change Trust Flags"
      }));
    }
  }]);

  return CertificateManagement;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Props and defaults

CertificateManagement.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string,
  CACerts: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  ServerCerts: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.array,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func
};
CertificateManagement.defaultProps = {
  serverId: "",
  CACerts: [],
  ServerCerts: [],
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (CertificateManagement);

/***/ }),

/***/ "./src/lib/security/ciphers.jsx":
/*!**************************************!*\
  !*** ./src/lib/security/ciphers.jsx ***!
  \**************************************/
/*! exports provided: Ciphers, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ciphers", function() { return Ciphers; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var Ciphers = /*#__PURE__*/function (_React$Component) {
  _inherits(Ciphers, _React$Component);

  var _super = _createSuper(Ciphers);

  function Ciphers(props) {
    var _this;

    _classCallCheck(this, Ciphers);

    _this = _super.call(this, props);
    _this.state = {
      allowCiphers: [],
      denyCiphers: [],
      cipherPref: "default",
      prefs: _this.props.cipherPref,
      saving: false,
      availableCiphers: _this.props.supportedCiphers
    };
    _this.handlePrefChange = _this.handlePrefChange.bind(_assertThisInitialized(_this));
    _this.saveCipherPref = _this.saveCipherPref.bind(_assertThisInitialized(_this));
    _this.handleCipherChange = _this.handleCipherChange.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Ciphers, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var cipherPref = "default";
      var allowedCiphers = [];
      var deniedCiphers = [];
      var availableCiphers = this.props.supportedCiphers.slice(0); // Copy array
      // Parse SSL cipher attributes (nsSSL3Ciphers)

      if (this.props.cipherPref != "") {
        var rawCiphers = this.props.cipherPref.split(","); // First check the first element as it has special meaning

        if (rawCiphers[0].toLowerCase() == "default") {
          rawCiphers.shift();
        } else if (rawCiphers[0].toLowerCase() == "+all") {
          cipherPref = "+all";
          rawCiphers.shift();
        } else if (rawCiphers[0].toLowerCase() == "-all") {
          cipherPref = "-all";
          rawCiphers.shift();
        } // Process the remaining ciphers


        rawCiphers = rawCiphers.map(function (x) {
          return x.toUpperCase();
        });

        var _iterator = _createForOfIteratorHelper(rawCiphers),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var cipher = _step.value;

            if (cipher.startsWith("+")) {
              allowedCiphers.push(cipher.substring(1));
            } else if (cipher.startsWith("-")) {
              deniedCiphers.push(cipher.substring(1));
            }
          } // Now modify the available list

        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        for (var i = 0; i < availableCiphers.length; i++) {
          for (var ii = 0; ii < allowedCiphers.length; ii++) {
            if (availableCiphers[i] === allowedCiphers[ii]) {
              availableCiphers.splice(i, 1);
              i--;
              break;
            }
          }

          for (var _ii = 0; _ii < deniedCiphers.length; _ii++) {
            if (availableCiphers[i] === deniedCiphers[_ii]) {
              availableCiphers.splice(i, 1);
              i--;
              break;
            }
          }
        }
      }

      this.setState({
        cipherPref: cipherPref,
        allowCiphers: allowedCiphers,
        denyCiphers: deniedCiphers,
        availableCiphers: availableCiphers
      });
    }
  }, {
    key: "saveCipherPref",
    value: function saveCipherPref() {
      var _this2 = this;

      /* start the spinner */
      this.setState({
        saving: true
      });
      var prefs = this.state.cipherPref;

      var _iterator2 = _createForOfIteratorHelper(this.state.allowCiphers),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var cipher = _step2.value;
          prefs += ",+" + cipher;
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var _iterator3 = _createForOfIteratorHelper(this.state.denyCiphers),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var _cipher = _step3.value;
          prefs += ",-" + _cipher;
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "set", "--", prefs];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveCipherPref", "Saving cipher preferences", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this2.props.addNotification("success", "Successfully set cipher preferences.");

        _this2.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");

        _this2.setState({
          saving: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.props.addNotification("error", "Error setting cipher preferences - ".concat(msg));

        _this2.setState({
          saving: false
        });
      });
    }
  }, {
    key: "handlePrefChange",
    value: function handlePrefChange(e) {
      this.setState({
        cipherPref: e.target.value
      });
    }
  }, {
    key: "handleCipherChange",
    value: function handleCipherChange(type, values) {
      var availableCiphers = this.state.availableCiphers.slice(0); // Copy array

      for (var i = 0; i < availableCiphers.length; i++) {
        for (var ci = 0; ci < values.length; ci++) {
          if (availableCiphers[i] === values[ci]) {
            availableCiphers.splice(i, 1);
            i--;
            break;
          }
        }
      }

      if (type == "allow") {
        this.setState({
          allowCiphers: values,
          availableCiphers: availableCiphers
        });
      } else {
        this.setState({
          denyCiphers: values,
          availableCiphers: availableCiphers
        });
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var supportedCiphers = [];
      var enabledCiphers = [];
      var cipherPage;

      var _iterator4 = _createForOfIteratorHelper(this.props.supportedCiphers),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var cipher = _step4.value;

          if (!this.props.enabledCiphers.includes(cipher)) {
            // This cipher is not currently enabled, so list it as available
            supportedCiphers.push(cipher);
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      var _iterator5 = _createForOfIteratorHelper(this.props.enabledCiphers),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _cipher2 = _step5.value;
          enabledCiphers.push(_cipher2);
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var supportedList = supportedCiphers.map(function (name) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name
        }, name);
      });
      var enabledList = enabledCiphers.map(function (name) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name
        }, name);
      });
      var eCiphers = '<h4>Enabled Ciphers <font size="2">(' + enabledList.length + ')</font></h4>';
      var sCiphers = '<h4>Other Available Ciphers <font size="2">(' + supportedList.length + ')</font><h4>';

      if (this.state.saving) {
        cipherPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-center ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Saving cipher preferences ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        cipherPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-container"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: eCiphers
          }
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "ds-cipher-width",
          size: "16",
          title: "The current ciphers the server is accepting.  This is only updated after a server restart"
        }, enabledList))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-divider-lrg"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: sCiphers
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          className: "ds-cipher-width",
          size: "16"
        }, supportedList)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, "Cipher Suite"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
          id: "cipherPref",
          onChange: this.handlePrefChange,
          defaultValue: this.state.cipherPref
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "default",
          value: "default",
          key: "default"
        }, "Default Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "+all",
          value: "+all",
          key: "all"
        }, "All Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          title: "-all",
          value: "-all",
          key: "none"
        }, "No Ciphers")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, "Allow Specific Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__["Typeahead"], {
          multiple: true,
          onChange: function onChange(value) {
            _this3.handleCipherChange("allow", value);
          },
          selected: this.state.allowCiphers,
          options: this.state.availableCiphers,
          newSelectionPrefix: "Add a cipher: ",
          placeholder: "Type a cipher...",
          id: "allowCipher"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["ControlLabel"],
          sm: 3
        }, "Deny Specific Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Col"], {
          sm: 9
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__["Typeahead"], {
          multiple: true,
          onChange: function onChange(value) {
            _this3.handleCipherChange("deny", value);
          },
          selected: this.state.denyCiphers,
          options: this.state.availableCiphers,
          newSelectionPrefix: "Add a cipher: ",
          placeholder: "Type a cipher...",
          id: "denyCipher"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_2__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-lg",
          onClick: function onClick() {
            _this3.saveCipherPref();
          }
        }, "Save Cipher Preferences"));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "container-fluid"
      }, cipherPage);
    }
  }]);

  return Ciphers;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaults

Ciphers.propTypes = {
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  supportedCiphers: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  enabledCiphers: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.array,
  cipherPref: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func
};
Ciphers.defaultProps = {
  serverId: "",
  supportedCiphers: [],
  enabledCiphers: [],
  cipherPref: "",
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_2__["noop"]
};
/* harmony default export */ __webpack_exports__["default"] = (Ciphers);

/***/ }),

/***/ "./src/lib/security/securityModals.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityModals.jsx ***!
  \*********************************************/
/*! exports provided: SecurityAddCACertModal, SecurityAddCertModal, SecurityEnableModal, EditCertModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityAddCACertModal", function() { return SecurityAddCACertModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityAddCertModal", function() { return SecurityAddCertModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityEnableModal", function() { return SecurityEnableModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditCertModal", function() { return EditCertModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var SecurityAddCACertModal = /*#__PURE__*/function (_React$Component) {
  _inherits(SecurityAddCACertModal, _React$Component);

  var _super = _createSuper(SecurityAddCACertModal);

  function SecurityAddCACertModal() {
    _classCallCheck(this, SecurityAddCACertModal);

    return _super.apply(this, arguments);
  }

  _createClass(SecurityAddCACertModal, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          showModal = _this$props.showModal,
          closeHandler = _this$props.closeHandler,
          handleChange = _this$props.handleChange,
          saveHandler = _this$props.saveHandler,
          spinning = _this$props.spinning,
          error = _this$props.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Adding CA certificate..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Certificate Authority")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Add CA certificate to the security database."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter full path to and and including certificate file name"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certFile",
        className: error.certFile ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter name/nickname of the certificate"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate Nickname")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certName",
        className: error.certName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Certificate"))));
    }
  }]);

  return SecurityAddCACertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var SecurityAddCertModal = /*#__PURE__*/function (_React$Component2) {
  _inherits(SecurityAddCertModal, _React$Component2);

  var _super2 = _createSuper(SecurityAddCertModal);

  function SecurityAddCertModal() {
    _classCallCheck(this, SecurityAddCertModal);

    return _super2.apply(this, arguments);
  }

  _createClass(SecurityAddCertModal, [{
    key: "render",
    value: function render() {
      var _this$props2 = this.props,
          showModal = _this$props2.showModal,
          closeHandler = _this$props2.closeHandler,
          handleChange = _this$props2.handleChange,
          saveHandler = _this$props2.saveHandler,
          spinning = _this$props2.spinning,
          error = _this$props2.error;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Adding certificate..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Add Certificate")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "Add certificate to the security database."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter full path to and and including certificate file name"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate File")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certFile",
        className: error.certFile ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        title: "Enter name/nickname of the certificate"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Certificate Nickname")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        type: "text",
        id: "certName",
        className: error.certName ? "ds-input-bad" : "",
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Add Certificate"))));
    }
  }]);

  return SecurityAddCertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var SecurityEnableModal = /*#__PURE__*/function (_React$Component3) {
  _inherits(SecurityEnableModal, _React$Component3);

  var _super3 = _createSuper(SecurityEnableModal);

  function SecurityEnableModal() {
    _classCallCheck(this, SecurityEnableModal);

    return _super3.apply(this, arguments);
  }

  _createClass(SecurityEnableModal, [{
    key: "render",
    value: function render() {
      var _this$props3 = this.props,
          showModal = _this$props3.showModal,
          closeHandler = _this$props3.closeHandler,
          handleChange = _this$props3.handleChange,
          saveHandler = _this$props3.saveHandler,
          primaryName = _this$props3.primaryName,
          certs = _this$props3.certs,
          spinning = _this$props3.spinning; // Build list of cert names for the select list

      var certNames = [];

      var _iterator = _createForOfIteratorHelper(certs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var cert = _step.value;
          certNames.push(cert.attrs['nickname']);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var certNameOptions = certNames.map(function (name) {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("option", {
          key: name,
          value: name
        }, name);
      });
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Enabling security..."));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Enable Security")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h4", null, "You are choosing to enable security for the Directory Server which allows the server to accept incoming client TLS connections.  Please select which certificate the server should use."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The server certificate the Directory Server will use"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Available Certificates")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("select", {
        id: "certNameSelect",
        onChange: handleChange,
        defaultValue: primaryName
      }, certNameOptions))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Enable Security"))));
    }
  }]);

  return SecurityEnableModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
var EditCertModal = /*#__PURE__*/function (_React$Component4) {
  _inherits(EditCertModal, _React$Component4);

  var _super4 = _createSuper(EditCertModal);

  function EditCertModal() {
    _classCallCheck(this, EditCertModal);

    return _super4.apply(this, arguments);
  }

  _createClass(EditCertModal, [{
    key: "render",
    value: function render() {
      var _this$props4 = this.props,
          showModal = _this$props4.showModal,
          closeHandler = _this$props4.closeHandler,
          handleChange = _this$props4.handleChange,
          saveHandler = _this$props4.saveHandler,
          flags = _this$props4.flags,
          spinning = _this$props4.spinning;
      var spinner = "";

      if (spinning) {
        spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
          className: "ds-modal-spinner"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          loading: true,
          inline: true,
          size: "lg"
        }), "Saving certificate..."));
      } // Process the cert flags


      var CSSLChecked = false;
      var CEmailChecked = false;
      var COSChecked = false;
      var TSSLChecked = false;
      var TEmailChecked = false;
      var TOSChecked = false;
      var cSSLChecked = false;
      var cEmailChecked = false;
      var cOSChecked = false;
      var PSSLChecked = false;
      var PEmailChecked = false;
      var POSChecked = false;
      var pSSLChecked = false;
      var pEmailChecked = false;
      var pOSChecked = false;
      var uSSLChecked = false;
      var uEmailChecked = false;
      var uOSChecked = false;
      var SSLFlags = '';
      var EmailFlags = '';
      var OSFlags = '';

      if (flags != "") {
        var _flags$split = flags.split(',');

        var _flags$split2 = _slicedToArray(_flags$split, 3);

        SSLFlags = _flags$split2[0];
        EmailFlags = _flags$split2[1];
        OSFlags = _flags$split2[2];

        if (SSLFlags.includes('T')) {
          TSSLChecked = true;
        }

        if (EmailFlags.includes('T')) {
          TEmailChecked = true;
        }

        if (OSFlags.includes('T')) {
          TOSChecked = true;
        }

        if (SSLFlags.includes('C')) {
          CSSLChecked = true;
        }

        if (EmailFlags.includes('C')) {
          CEmailChecked = true;
        }

        if (OSFlags.includes('C')) {
          COSChecked = true;
        }

        if (SSLFlags.includes('c')) {
          cSSLChecked = true;
        }

        if (EmailFlags.includes('c')) {
          cEmailChecked = true;
        }

        if (OSFlags.includes('c')) {
          cOSChecked = true;
        }

        if (SSLFlags.includes('P')) {
          PSSLChecked = true;
        }

        if (EmailFlags.includes('P')) {
          PEmailChecked = true;
        }

        if (OSFlags.includes('P')) {
          POSChecked = true;
        }

        if (SSLFlags.includes('p')) {
          pSSLChecked = true;
        }

        if (EmailFlags.includes('p')) {
          pEmailChecked = true;
        }

        if (OSFlags.includes('p')) {
          pOSChecked = true;
        }

        if (SSLFlags.includes('u')) {
          uSSLChecked = true;
        }

        if (EmailFlags.includes('u')) {
          uEmailChecked = true;
        }

        if (OSFlags.includes('u')) {
          uOSChecked = true;
        }
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: showModal,
        onHide: closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, "Edit Certificate Trust Flags")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Flags")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "SSL")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Email")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"], null, "Object Signing"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted CA (flag 'C', also implies 'c' flag)"
      }, "(C) - Trusted CA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagSSL",
        checked: CSSLChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagEmail",
        checked: CEmailChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "CflagOS",
        checked: COSChecked,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted CA for client authentication (flag 'T')"
      }, "(T) - Trusted CA Client Auth"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagSSL",
        checked: TSSLChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagEmail",
        checked: TEmailChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "TflagOS",
        checked: TOSChecked,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Valid CA (flag 'c')"
      }, "(c) - Valid CA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagSSL",
        checked: cSSLChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagEmail",
        checked: cEmailChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "cflagOS",
        checked: cOSChecked,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Trusted Peer (flag 'P', implies flag 'p')"
      }, "(P) - Trusted Peer"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagSSL",
        checked: PSSLChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagEmail",
        checked: PEmailChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "PflagOS",
        checked: POSChecked,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "Valid Peer (flag 'p')"
      }, "(p) - Valid Peer"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagSSL",
        checked: pSSLChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagEmail",
        checked: pEmailChecked,
        onChange: handleChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "pflagOS",
        checked: pOSChecked,
        onChange: handleChange
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 4,
        title: "A private key is associated with the certificate. This is a dynamic flag and you cannot adjust it."
      }, "(u) - Private Key"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagSSL",
        checked: uSSLChecked,
        disabled: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagEmail",
        checked: uEmailChecked,
        disabled: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Checkbox"], {
        id: "uflagOS",
        checked: uOSChecked,
        disabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null), spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        onClick: saveHandler
      }, "Save"))));
    }
  }]);

  return EditCertModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
SecurityEnableModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  primaryName: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  certs: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.array,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
SecurityEnableModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  primaryName: "",
  certs: [],
  spinning: false
};
EditCertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  flags: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
EditCertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  flags: "",
  spinning: false
};
SecurityAddCertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
SecurityAddCertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};
SecurityAddCACertModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object
};
SecurityAddCACertModal.defaultProps = {
  showModal: false,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  spinning: false,
  error: {}
};

/***/ }),

/***/ "./src/lib/security/securityTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityTables.jsx ***!
  \*********************************************/
/*! exports provided: CertTable, CRLTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CertTable", function() { return CertTable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CRLTable", function() { return CRLTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var CertTable = /*#__PURE__*/function (_React$Component) {
  _inherits(CertTable, _React$Component);

  var _super = _createSuper(CertTable);

  function CertTable(props) {
    var _this;

    _classCallCheck(this, CertTable);

    _this = _super.call(this, props);
    _this.state = {
      rowKey: "nickname",
      columns: [{
        property: "nickname",
        header: {
          label: "Certificate Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "subject",
        header: {
          label: "Subject DN",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "issuer",
        header: {
          label: "Issued By",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "flags",
        header: {
          label: "Trust Flags",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "expires",
        header: {
          label: "Expiration Date",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "action",
        header: {
          label: "",
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.nickname[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.nickname[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this.props.editCert(rowData);
              }
            }, "Edit Trust Flags"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this.props.delCert(rowData);
              }
            }, "Delete Certificate")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(CertTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Certificates",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var certRows = [];
      var serverTable;

      var _iterator = _createForOfIteratorHelper(this.props.certs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var cert = _step.value;
          var obj = {
            'nickname': [cert.attrs['nickname']],
            'subject': [cert.attrs['subject']],
            'issuer': [cert.attrs['issuer']],
            'expires': [cert.attrs['expires']],
            'flags': [cert.attrs['flags']]
          };
          certRows.push(obj);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (certRows.length == 0) {
        serverTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Certificates"
          }],
          key: "nocerts"
        });
      } else {
        serverTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: certRows,
          key: certRows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, serverTable);
    }
  }]);

  return CertTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Future - https://pagure.io/389-ds-base/issue/50491


var CRLTable = /*#__PURE__*/function (_React$Component2) {
  _inherits(CRLTable, _React$Component2);

  var _super2 = _createSuper(CRLTable);

  function CRLTable(props) {
    var _this2;

    _classCallCheck(this, CRLTable);

    _this2 = _super2.call(this, props);
    _this2.state = {
      rowKey: "name",
      columns: [{
        property: "name",
        header: {
          label: "Issued By",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "effective",
        header: {
          label: "Effective Date",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nextUpdate",
        header: {
          label: "Next Updateo",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "type",
        header: {
          label: "Type",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "action",
        header: {
          label: "",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [function (value, _ref2) {
            var rowData = _ref2.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.name[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.name[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this2.props.editIndex(rowData);
              }
            }, "View CRL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this2.props.reindexIndex(rowData);
              }
            }, "Delete CRL")))];
          }]
        }
      }]
    };
    _this2.getColumns = _this2.getColumns.bind(_assertThisInitialized(_this2));
    return _this2;
  }

  _createClass(CRLTable, [{
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "Certificate Revocation Lists",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "render",
    value: function render() {
      var crlTable;

      if (this.props.rows.length == 0) {
        crlTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "None"
          }]
        });
      } else {
        crlTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          disableLoadingSpinner: true
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, crlTable);
    }
  }]);

  return CRLTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Props and defaults


CertTable.propTypes = {
  // serverId: PropTypes.string,
  certs: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editCert: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  delCert: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
CertTable.defaultProps = {
  // serverId: "",
  certs: [],
  editCert: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  delCert: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};


/***/ }),

/***/ "./src/lib/server/accessLog.jsx":
/*!**************************************!*\
  !*** ./src/lib/server/accessLog.jsx ***!
  \**************************************/
/*! exports provided: ServerAccessLog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerAccessLog", function() { return ServerAccessLog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var accesslog_levels = [4, 256, 512];
var settings_attrs = ['nsslapd-accesslog', 'nsslapd-accesslog-level', 'nsslapd-accesslog-logbuffering', 'nsslapd-accesslog-logging-enabled', 'accesslevel-4', 'accesslevel-256', 'accesslevel-512'];
var rotation_attrs = ['nsslapd-accesslog-logrotationsync-enabled', 'nsslapd-accesslog-logrotationsynchour', 'nsslapd-accesslog-logrotationsyncmin', 'nsslapd-accesslog-logrotationtime', 'nsslapd-accesslog-logrotationtimeunit', 'nsslapd-accesslog-maxlogsize', 'nsslapd-accesslog-maxlogsperdir'];
var exp_attrs = ['nsslapd-accesslog-logexpirationtime', 'nsslapd-accesslog-logexpirationtimeunit', 'nsslapd-accesslog-logmaxdiskspace', 'nsslapd-accesslog-logminfreediskspace'];
var ServerAccessLog = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerAccessLog, _React$Component);

  var _super = _createSuper(ServerAccessLog);

  function ServerAccessLog(props) {
    var _this;

    _classCallCheck(this, ServerAccessLog);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: _this.props.attrs
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerAccessLog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e, nav_tab) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableBtnName = "";
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
        disableBtnName = "saveSettingsDisabled";
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
        disableBtnName = "saveRotationDisabled";
      } else {
        config_attrs = exp_attrs;
        disableBtnName = "saveExpDisabled";
      } // Check if a setting was changed, if so enable the save button


      var _iterator = _createForOfIteratorHelper(config_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var config_attr = _step.value;

          if (attr == config_attr && this.state['_' + config_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(config_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _config_attr = _step2.value;

          if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, disableBtnName, disableSaveBtn), _this$setState));
    }
  }, {
    key: "saveConfig",
    value: function saveConfig(nav_tab) {
      var _this2 = this;

      var level_change = false;
      var new_level = 0;
      this.setState({
        loading: true
      });
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
      } else {
        config_attrs = exp_attrs;
      }

      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(config_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            if (attr.startsWith("accesslevel-")) {
              level_change = true;
              continue;
            }

            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      if (level_change) {
        var _iterator4 = _createForOfIteratorHelper(accesslog_levels),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var level = _step4.value;

            if (this.state['accesslevel-' + level.toString()]) {
              new_level += level;
            }
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        cmd.push("nsslapd-accesslog-level" + "=" + new_level.toString());
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Saving access log settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated Access Log settings");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error saving Access Log settings - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      var _this3 = this;

      this.setState({
        loading: true
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "load Access Log configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var enabled = false;
        var buffering = false;
        var level_val = parseInt(attrs['nsslapd-accesslog-level'][0]);
        var loglevel = {};

        if (attrs['nsslapd-accesslog-logging-enabled'][0] == "on") {
          enabled = true;
        }

        if (attrs['nsslapd-accesslog-logbuffering'][0] == "on") {
          buffering = true;
        }

        var _iterator5 = _createForOfIteratorHelper(accesslog_levels),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var level = _step5.value;

            if (level & level_val) {
              loglevel[level.toString()] = true;
            } else {
              loglevel[level.toString()] = false;
            }
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        _this3.setState(function () {
          return {
            loading: false,
            loaded: true,
            saveSettingsDisabled: true,
            saveRotationDisabled: true,
            saveExpDisabled: true,
            'nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
            'nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
            'accesslevel-4': loglevel['4'],
            'accesslevel-256': loglevel['256'],
            'accesslevel-512': loglevel['512'],
            'nsslapd-accesslog-logbuffering': buffering,
            'nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
            'nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
            'nsslapd-accesslog-logging-enabled': enabled,
            'nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
            'nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
            'nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
            'nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
            'nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
            'nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
            'nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
            'nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
            'nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0],
            // Record original values
            '_nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
            '_nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
            '_accesslevel-4': loglevel['4'],
            '_accesslevel-256': loglevel['256'],
            '_accesslevel-512': loglevel['512'],
            '_nsslapd-accesslog-logbuffering': buffering,
            '_nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
            '_nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
            '_nsslapd-accesslog-logging-enabled': enabled,
            '_nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
            '_nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
            '_nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
            '_nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
            '_nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
            '_nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
            '_nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
            '_nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
            '_nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0]
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error loading Access Log configuration - ".concat(errMsg.desc));

        _this3.setState({
          loading: false,
          loaded: true
        });
      });
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs;
      var enabled = false;
      var buffering = false;
      var level_val = parseInt(attrs['nsslapd-accesslog-level'][0]);
      var loglevel = {};

      if (attrs['nsslapd-accesslog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      if (attrs['nsslapd-accesslog-logbuffering'][0] == "on") {
        buffering = true;
      }

      var _iterator6 = _createForOfIteratorHelper(accesslog_levels),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var level = _step6.value;

          if (level & level_val) {
            loglevel[level.toString()] = true;
          } else {
            loglevel[level.toString()] = false;
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      this.setState({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
        'nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
        'accesslevel-4': loglevel['4'],
        'accesslevel-256': loglevel['256'],
        'accesslevel-512': loglevel['512'],
        'nsslapd-accesslog-logbuffering': buffering,
        'nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
        'nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
        'nsslapd-accesslog-logging-enabled': enabled,
        'nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
        'nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
        'nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
        'nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
        'nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
        'nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
        'nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
        'nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
        'nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
        '_nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
        '_accesslevel-4': loglevel['4'],
        '_accesslevel-256': loglevel['256'],
        '_accesslevel-512': loglevel['512'],
        '_nsslapd-accesslog-logbuffering': buffering,
        '_nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
        '_nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
        '_nsslapd-accesslog-logging-enabled': enabled,
        '_nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
        '_nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
        '_nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
        '_nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
        '_nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
        '_nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
        '_nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
        '_nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
        '_nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0]
      }, this.props.enableTree);
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        id: "access-log-settings",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Rotation Policy'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Deletion Policy'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-accesslog-logging-enabled)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        id: "nsslapd-accesslog-logging-enabled",
        defaultChecked: this.state['nsslapd-accesslog-logging-enabled'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }, "Enable Access Logging"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-accesslog)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Access Log Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog",
        type: "text",
        value: this.state['nsslapd-accesslog'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Disable access log buffering for faster troubleshooting, but this will impact server performance (nsslapd-accesslog-logbuffering)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        id: "nsslapd-accesslog-logbuffering",
        defaultChecked: this.state['nsslapd-accesslog-logbuffering'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }, "Access Log Buffering Enabled"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("table", {
        className: "table table-striped table-bordered table-hover ds-loglevel-table ds-margin-top-lg",
        id: "accesslog-level-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("thead", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("th", {
        className: "ds-table-checkbox"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("th", null, "Logging Level"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tbody", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "accesslevel-256",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['accesslevel-256'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Default Logging")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "accesslevel-4",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['accesslevel-4'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Internal Operations")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "accesslevel-512",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['accesslevel-512'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Entry Access and Referrals"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveSettingsDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("settings");
        }
      }, "Save Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The maximum number of logs that are archived (nsslapd-accesslog-maxlogsperdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-maxlogsperdir",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-maxlogsperdir'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg",
        title: "The maximum size of each log file in megabytes (nsslapd-errorlog-maxlogsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-maxlogsize",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-maxlogsize'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Rotate the log based this number of time units (nsslapd-accesslog-logrotationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Create New Log Every..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logrotationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-logrotationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-accesslog-logrotationtimeunit",
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        },
        value: this.state['nsslapd-accesslog-logrotationtimeunit']
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The hour whenthe log should be rotated (nsslapd-accesslog-logrotationsynchour)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logrotationsynchour",
        type: "number",
        min: "0",
        max: "23",
        value: this.state['nsslapd-accesslog-logrotationsynchour'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The minute within the hour to rotate the log (nsslapd-accesslog-logrotationsyncmin)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logrotationsyncmin",
        type: "number",
        min: "0",
        max: "59",
        value: this.state['nsslapd-accesslog-logrotationsyncmin'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveRotationDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("rotation");
        }
      }, "Save Rotation Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-accesslog-logmaxdiskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Total Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logmaxdiskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-logmaxdiskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-accesslog-logminfreediskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logminfreediskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-logminfreediskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-accesslog-logexpirationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Log File is Older Than..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-accesslog-logexpirationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-accesslog-logexpirationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-accesslog-logexpirationtimeunit",
        value: this.state['nsslapd-accesslog-logexpirationtimeunit'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveExpDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("exp");
        }
      }, "Save Deletion Settings")))))));

      if (this.state.loading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-accesslog-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "Access Log Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the Access Log settings",
        onClick: this.reloadConfig,
        disabled: this.state.loading
      })))), body);
    }
  }]);

  return ServerAccessLog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerAccessLog.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerAccessLog.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/auditLog.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/auditLog.jsx ***!
  \*************************************/
/*! exports provided: ServerAuditLog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerAuditLog", function() { return ServerAuditLog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var settings_attrs = ['nsslapd-auditlog', 'nsslapd-auditlog-logging-enabled'];
var rotation_attrs = ['nsslapd-auditlog-logrotationsync-enabled', 'nsslapd-auditlog-logrotationsynchour', 'nsslapd-auditlog-logrotationsyncmin', 'nsslapd-auditlog-logrotationtime', 'nsslapd-auditlog-logrotationtimeunit', 'nsslapd-auditlog-maxlogsize', 'nsslapd-auditlog-maxlogsperdir'];
var exp_attrs = ['nsslapd-auditlog-logexpirationtime', 'nsslapd-auditlog-logexpirationtimeunit', 'nsslapd-auditlog-logmaxdiskspace', 'nsslapd-auditlog-logminfreediskspace'];
var ServerAuditLog = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerAuditLog, _React$Component);

  var _super = _createSuper(ServerAuditLog);

  function ServerAuditLog(props) {
    var _this;

    _classCallCheck(this, ServerAuditLog);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: _this.props.attrs
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerAuditLog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e, nav_tab) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableBtnName = "";
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
        disableBtnName = "saveSettingsDisabled";
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
        disableBtnName = "saveRotationDisabled";
      } else {
        config_attrs = exp_attrs;
        disableBtnName = "saveExpDisabled";
      } // Check if a setting was changed, if so enable the save button


      var _iterator = _createForOfIteratorHelper(config_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var config_attr = _step.value;

          if (attr == config_attr && this.state['_' + config_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(config_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _config_attr = _step2.value;

          if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, disableBtnName, disableSaveBtn), _this$setState));
    }
  }, {
    key: "saveConfig",
    value: function saveConfig(nav_tab) {
      var _this2 = this;

      this.setState({
        loading: true
      });
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
      } else {
        config_attrs = exp_attrs;
      }

      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(config_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Saving audit log settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated Audit Log settings");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error saving Audit Log settings - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs;
      var enabled = false;

      if (attrs['nsslapd-auditlog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      this.setState({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
        'nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
        'nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
        'nsslapd-auditlog-logging-enabled': enabled,
        'nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
        'nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
        'nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
        'nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
        'nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
        'nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
        'nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
        'nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
        'nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
        '_nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
        '_nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
        '_nsslapd-auditlog-logging-enabled': enabled,
        '_nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
        '_nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
        '_nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
        '_nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
        '_nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
        '_nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
        '_nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
        '_nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
        '_nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0]
      }, this.props.enableTree);
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      var _this3 = this;

      this.setState({
        loading: true
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "load Audit Log configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var enabled = false;

        if (attrs['nsslapd-auditlog-logging-enabled'][0] == "on") {
          enabled = true;
        }

        _this3.setState(function () {
          return {
            loading: false,
            loaded: true,
            saveSettingsDisabled: true,
            saveRotationDisabled: true,
            saveExpDisabled: true,
            'nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
            'nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
            'nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
            'nsslapd-auditlog-logging-enabled': enabled,
            'nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
            'nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
            'nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
            'nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
            'nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
            'nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
            'nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
            'nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
            'nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0],
            // Record original values
            '_nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
            '_nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
            '_nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
            '_nsslapd-auditlog-logging-enabled': enabled,
            '_nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
            '_nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
            '_nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
            '_nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
            '_nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
            '_nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
            '_nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
            '_nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
            '_nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0]
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error loading Audit Log configuration - ".concat(errMsg.desc));

        _this3.setState({
          loading: false,
          loaded: true
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        id: "audit-log-settings",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Rotation Policy'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Deletion Policy'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-auditlog-logging-enabled)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        id: "nsslapd-auditlog-logging-enabled",
        defaultChecked: this.state['nsslapd-auditlog-logging-enabled'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }, "Enable Audit Logging"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-auditlog)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Audit Log Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog",
        type: "text",
        value: this.state['nsslapd-auditlog'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveSettingsDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("settings");
        }
      }, "Save Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The maximum number of logs that are archived (nsslapd-auditlog-maxlogsperdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-maxlogsperdir",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-maxlogsperdir'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg",
        title: "The maximum size of each log file in megabytes (nsslapd-auditlog-maxlogsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-maxlogsize",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-maxlogsize'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Rotate the log based this number of time units (nsslapd-auditlog-logrotationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Create New Log Every..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logrotationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-logrotationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-auditlog-logrotationtimeunit",
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        },
        value: this.state['nsslapd-auditlog-logrotationtimeunit']
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The hour whenthe log should be rotated (nsslapd-auditlog-logrotationsynchour)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logrotationsynchour",
        type: "number",
        min: "0",
        max: "23",
        value: this.state['nsslapd-auditlog-logrotationsynchour'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The minute within the hour to rotate the log (nsslapd-auditlog-logrotationsyncmin)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logrotationsyncmin",
        type: "number",
        min: "0",
        max: "59",
        value: this.state['nsslapd-auditlog-logrotationsyncmin'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveRotationDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("rotation");
        }
      }, "Save Rotation Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-auditlog-logmaxdiskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Total Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logmaxdiskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-logmaxdiskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-auditlog-logminfreediskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logminfreediskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-logminfreediskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-auditlog-logexpirationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Log File is Older Than..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditlog-logexpirationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditlog-logexpirationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-auditlog-logexpirationtimeunit",
        value: this.state['nsslapd-auditlog-logexpirationtimeunit'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveExpDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("exp");
        }
      }, "Save Deletion Settings")))))));

      if (this.state.loading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-auditlog-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "Audit Log Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the Access Log settings",
        onClick: this.reloadConfig,
        disabled: this.state.loading
      })))), body);
    }
  }]);

  return ServerAuditLog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerAuditLog.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerAuditLog.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/auditfailLog.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/auditfailLog.jsx ***!
  \*****************************************/
/*! exports provided: ServerAuditFailLog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerAuditFailLog", function() { return ServerAuditFailLog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var settings_attrs = ['nsslapd-auditfaillog', 'nsslapd-auditfaillog-logging-enabled'];
var rotation_attrs = ['nsslapd-auditfaillog-logrotationsync-enabled', 'nsslapd-auditfaillog-logrotationsynchour', 'nsslapd-auditfaillog-logrotationsyncmin', 'nsslapd-auditfaillog-logrotationtime', 'nsslapd-auditfaillog-logrotationtimeunit', 'nsslapd-auditfaillog-maxlogsize', 'nsslapd-auditfaillog-maxlogsperdir'];
var exp_attrs = ['nsslapd-auditfaillog-logexpirationtime', 'nsslapd-auditfaillog-logexpirationtimeunit', 'nsslapd-auditfaillog-logmaxdiskspace', 'nsslapd-auditfaillog-logminfreediskspace'];
var ServerAuditFailLog = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerAuditFailLog, _React$Component);

  var _super = _createSuper(ServerAuditFailLog);

  function ServerAuditFailLog(props) {
    var _this;

    _classCallCheck(this, ServerAuditFailLog);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: _this.props.attrs
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerAuditFailLog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e, nav_tab) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableBtnName = "";
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
        disableBtnName = "saveSettingsDisabled";
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
        disableBtnName = "saveRotationDisabled";
      } else {
        config_attrs = exp_attrs;
        disableBtnName = "saveExpDisabled";
      } // Check if a setting was changed, if so enable the save button


      var _iterator = _createForOfIteratorHelper(config_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var config_attr = _step.value;

          if (attr == config_attr && this.state['_' + config_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(config_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _config_attr = _step2.value;

          if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, disableBtnName, disableSaveBtn), _this$setState));
    }
  }, {
    key: "saveConfig",
    value: function saveConfig(nav_tab) {
      var _this2 = this;

      this.setState({
        loading: true
      });
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
      } else {
        config_attrs = exp_attrs;
      }

      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(config_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Saving audit log settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated Audit Failure Log settings");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error saving Audit Failure Log settings - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      var _this3 = this;

      this.setState({
        loading: true
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadConfig", "load Audit Failure Log configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var enabled = false;

        if (attrs['nsslapd-auditfaillog-logging-enabled'][0] == "on") {
          enabled = true;
        }

        _this3.setState(function () {
          return {
            loading: false,
            loaded: true,
            saveSettingsDisabled: true,
            saveRotationDisabled: true,
            saveExpDisabled: true,
            'nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
            'nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
            'nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
            'nsslapd-auditfaillog-logging-enabled': enabled,
            'nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
            'nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
            'nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
            'nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
            'nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
            'nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
            'nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
            'nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
            'nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0],
            // Record original values
            '_nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
            '_nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
            '_nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
            '_nsslapd-auditfaillog-logging-enabled': enabled,
            '_nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
            '_nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
            '_nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
            '_nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
            '_nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
            '_nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
            '_nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
            '_nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
            '_nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0]
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error loading Audit Failure Log configuration - ".concat(errMsg.desc));

        _this3.setState({
          loading: false
        });
      });
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs;
      var enabled = false;

      if (attrs['nsslapd-auditfaillog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      this.setState({
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
        'nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
        'nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
        'nsslapd-auditfaillog-logging-enabled': enabled,
        'nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
        'nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
        'nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
        'nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
        'nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
        'nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
        'nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
        'nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
        'nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
        '_nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
        '_nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
        '_nsslapd-auditfaillog-logging-enabled': enabled,
        '_nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
        '_nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
        '_nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
        '_nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
        '_nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
        '_nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
        '_nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
        '_nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
        '_nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0]
      }, this.props.enableTree);
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        id: "auditfail-log-settings",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Rotation Policy'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Deletion Policy'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-auditfaillog-logging-enabled)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        id: "nsslapd-auditfaillog-logging-enabled",
        defaultChecked: this.state['nsslapd-auditfaillog-logging-enabled'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }, "Enable Audit Failure Logging"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-auditfaillog)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Audit Failure Log Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog",
        type: "text",
        value: this.state['nsslapd-auditfaillog'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveSettingsDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("settings");
        }
      }, "Save Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The maximum number of logs that are archived (nsslapd-auditfaillog-maxlogsperdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-maxlogsperdir",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-maxlogsperdir'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg",
        title: "The maximum size of each log file in megabytes (nsslapd-auditfaillog-maxlogsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-maxlogsize",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-maxlogsize'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Rotate the log based this number of time units (nsslapd-auditfaillog-logrotationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Create New Log Every..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logrotationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-logrotationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-auditfaillog-logrotationtimeunit",
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        },
        value: this.state['nsslapd-auditfaillog-logrotationtimeunit']
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The hour whenthe log should be rotated (nsslapd-auditfaillog-logrotationsynchour)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logrotationsynchour",
        type: "number",
        min: "0",
        max: "23",
        value: this.state['nsslapd-auditfaillog-logrotationsynchour'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The minute within the hour to rotate the log (nsslapd-auditfaillog-logrotationsyncmin)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logrotationsyncmin",
        type: "number",
        min: "0",
        max: "59",
        value: this.state['nsslapd-auditfaillog-logrotationsyncmin'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveRotationDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("rotation");
        }
      }, "Save Rotation Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-auditfaillog-logmaxdiskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Total Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logmaxdiskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-logmaxdiskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-auditfaillog-logminfreediskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logminfreediskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-logminfreediskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-auditfaillog-logexpirationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Log File is Older Than..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-auditfaillog-logexpirationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-auditfaillog-logexpirationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-auditfaillog-logexpirationtimeunit",
        value: this.state['nsslapd-auditfaillog-logexpirationtimeunit'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveExpDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("exp");
        }
      }, "Save Deletion Settings")))))));

      if (this.state.loading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-auditfaillog-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "Audit Failure Log Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the Access Log settings",
        onClick: this.reloadConfig,
        disabled: this.state.loading
      })))), body);
    }
  }]);

  return ServerAuditFailLog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerAuditFailLog.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerAuditFailLog.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/errorLog.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/errorLog.jsx ***!
  \*************************************/
/*! exports provided: ServerErrorLog */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerErrorLog", function() { return ServerErrorLog; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var errorlog_levels = [1, 2, 4, 8, 16, 32, 64, 128, 2048, 4096, 8192, 32768, 65536, 262144];
var settings_attrs = ['nsslapd-errorlog', 'nsslapd-errorlog-level', 'nsslapd-errorlog-logging-enabled', 'errorlevel-1', 'errorlevel-2', 'errorlevel-4', 'errorlevel-8', 'errorlevel-16', 'errorlevel-32', 'errorlevel-64', 'errorlevel-128', 'errorlevel-2048', 'errorlevel-4096', 'errorlevel-8192', 'errorlevel-32768', 'errorlevel-65536', 'errorlevel-262144'];
var rotation_attrs = ['nsslapd-errorlog-logrotationsync-enabled', 'nsslapd-errorlog-logrotationsynchour', 'nsslapd-errorlog-logrotationsyncmin', 'nsslapd-errorlog-logrotationtime', 'nsslapd-errorlog-logrotationtimeunit', 'nsslapd-errorlog-maxlogsize', 'nsslapd-errorlog-maxlogsperdir'];
var exp_attrs = ['nsslapd-errorlog-logexpirationtime', 'nsslapd-errorlog-logexpirationtimeunit', 'nsslapd-errorlog-logmaxdiskspace', 'nsslapd-errorlog-logminfreediskspace'];
var ServerErrorLog = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerErrorLog, _React$Component);

  var _super = _createSuper(ServerErrorLog);

  function ServerErrorLog(props) {
    var _this;

    _classCallCheck(this, ServerErrorLog);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: _this.props.attrs
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerErrorLog, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e, nav_tab) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableBtnName = "";
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
        disableBtnName = "saveSettingsDisabled";
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
        disableBtnName = "saveRotationDisabled";
      } else {
        config_attrs = exp_attrs;
        disableBtnName = "saveExpDisabled";
      } // Check if a setting was changed, if so enable the save button


      var _iterator = _createForOfIteratorHelper(config_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var config_attr = _step.value;

          if (attr == config_attr && this.state['_' + config_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(config_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _config_attr = _step2.value;

          if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, disableBtnName, disableSaveBtn), _this$setState));
    }
  }, {
    key: "saveConfig",
    value: function saveConfig(nav_tab) {
      var _this2 = this;

      var level_change = false;
      var new_level = 0;
      this.setState({
        loading: true
      });
      var config_attrs = [];

      if (nav_tab == "settings") {
        config_attrs = settings_attrs;
      } else if (nav_tab == "rotation") {
        config_attrs = rotation_attrs;
      } else {
        config_attrs = exp_attrs;
      }

      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(config_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            if (attr.startsWith("errorlevel-")) {
              level_change = true;
              continue;
            }

            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      if (level_change) {
        var _iterator4 = _createForOfIteratorHelper(errorlog_levels),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var level = _step4.value;

            if (this.state['errorlevel-' + level.toString()]) {
              new_level += level;
            }
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        cmd.push("nsslapd-errorlog-level" + "=" + new_level.toString());
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Saving error log settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated Error Log settings");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.reloadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error saving Error Log settings - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs;
      var enabled = false;
      var level_val = parseInt(attrs['nsslapd-errorlog-level'][0]);
      var loglevel = {};

      if (attrs['nsslapd-errorlog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      var _iterator5 = _createForOfIteratorHelper(errorlog_levels),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var level = _step5.value;

          if (level & level_val) {
            loglevel[level.toString()] = true;
          } else {
            loglevel[level.toString()] = false;
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.setState({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
        'nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
        'errorlevel-1': loglevel['1'],
        'errorlevel-2': loglevel['2'],
        'errorlevel-4': loglevel['4'],
        'errorlevel-8': loglevel['8'],
        'errorlevel-16': loglevel['16'],
        'errorlevel-32': loglevel['32'],
        'errorlevel-64': loglevel['64'],
        'errorlevel-128': loglevel['128'],
        'errorlevel-2048': loglevel['2048'],
        'errorlevel-4096': loglevel['4096'],
        'errorlevel-8192': loglevel['8192'],
        'errorlevel-32768': loglevel['32768'],
        'errorlevel-65536': loglevel['65536'],
        'errorlevel-262144': loglevel['262144'],
        'nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
        'nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
        'nsslapd-errorlog-logging-enabled': enabled,
        'nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
        'nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
        'nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
        'nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
        'nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
        'nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
        'nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
        'nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
        'nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
        '_nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
        '_errorlevel-1': loglevel['1'],
        '_errorlevel-2': loglevel['2'],
        '_errorlevel-4': loglevel['4'],
        '_errorlevel-8': loglevel['8'],
        '_errorlevel-16': loglevel['16'],
        '_errorlevel-32': loglevel['32'],
        '_errorlevel-64': loglevel['64'],
        '_errorlevel-128': loglevel['128'],
        '_errorlevel-2048': loglevel['2048'],
        '_errorlevel-4096': loglevel['4096'],
        '_errorlevel-8192': loglevel['8192'],
        '_errorlevel-32768': loglevel['32768'],
        '_errorlevel-65536': loglevel['65536'],
        '_errorlevel-262144': loglevel['262144'],
        '_nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
        '_nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
        '_nsslapd-errorlog-logging-enabled': enabled,
        '_nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
        '_nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
        '_nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
        '_nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
        '_nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
        '_nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
        '_nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
        '_nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
        '_nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0]
      }, this.props.enableTree);
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      var _this3 = this;

      this.setState({
        loading: true
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "load Error Log configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var enabled = false;
        var level_val = parseInt(attrs['nsslapd-errorlog-level'][0]);
        var loglevel = {};

        if (attrs['nsslapd-errorlog-logging-enabled'][0] == "on") {
          enabled = true;
        }

        var _iterator6 = _createForOfIteratorHelper(errorlog_levels),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var level = _step6.value;

            if (level & level_val) {
              loglevel[level.toString()] = true;
            } else {
              loglevel[level.toString()] = false;
            }
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }

        _this3.setState(function () {
          return {
            loading: false,
            loaded: true,
            saveSettingsDisabled: true,
            saveRotationDisabled: true,
            saveExpDisabled: true,
            'nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
            'nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
            'errorlevel-1': loglevel['1'],
            'errorlevel-2': loglevel['2'],
            'errorlevel-4': loglevel['4'],
            'errorlevel-8': loglevel['8'],
            'errorlevel-16': loglevel['16'],
            'errorlevel-32': loglevel['32'],
            'errorlevel-64': loglevel['64'],
            'errorlevel-128': loglevel['128'],
            'errorlevel-2048': loglevel['2048'],
            'errorlevel-4096': loglevel['4096'],
            'errorlevel-8192': loglevel['8192'],
            'errorlevel-32768': loglevel['32768'],
            'errorlevel-65536': loglevel['65536'],
            'errorlevel-262144': loglevel['262144'],
            'nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
            'nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
            'nsslapd-errorlog-logging-enabled': enabled,
            'nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
            'nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
            'nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
            'nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
            'nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
            'nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
            'nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
            'nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
            'nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0],
            // Record original values
            '_nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
            '_nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
            '_errorlevel-1': loglevel['1'],
            '_errorlevel-2': loglevel['2'],
            '_errorlevel-4': loglevel['4'],
            '_errorlevel-8': loglevel['8'],
            '_errorlevel-16': loglevel['16'],
            '_errorlevel-32': loglevel['32'],
            '_errorlevel-64': loglevel['64'],
            '_errorlevel-128': loglevel['128'],
            '_errorlevel-2048': loglevel['2048'],
            '_errorlevel-4096': loglevel['4096'],
            '_errorlevel-8192': loglevel['8192'],
            '_errorlevel-32768': loglevel['32768'],
            '_errorlevel-65536': loglevel['65536'],
            '_errorlevel-262144': loglevel['262144'],
            '_nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
            '_nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
            '_nsslapd-errorlog-logging-enabled': enabled,
            '_nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
            '_nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
            '_nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
            '_nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
            '_nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
            '_nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
            '_nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
            '_nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
            '_nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0]
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.props.addNotification("error", "Error loading Error Log configuration - ".concat(errMsg.desc));

        _this3.setState({
          loading: false,
          loaded: true
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
        id: "error-log-settings",
        onSelect: this.handleNavSelect,
        activeKey: this.state.activeKey
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
        bsClass: "nav nav-tabs nav-tabs-pf"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Settings'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Rotation Policy'
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: 'Deletion Policy'
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-errorlog-logging-enabled)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        id: "nsslapd-errorlog-logging-enabled",
        defaultChecked: this.state['nsslapd-errorlog-logging-enabled'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }, "Enable Error Logging"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Enable access logging (nsslapd-errorlog)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Error Log Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog",
        type: "text",
        value: this.state['nsslapd-errorlog'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("table", {
        className: "table table-striped table-bordered table-hover ds-loglevel-table ds-margin-top-lg",
        id: "errorlog-level-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("thead", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("th", {
        className: "ds-table-checkbox"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("th", null, "Logging Level"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tbody", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-1",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-1'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Trace Function Calls")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-2",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-2'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Packet Handling")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-4",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-4'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Heavy Trace Output")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-8",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-8'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Connection Management")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-16",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-16'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Packets Sent & Received")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-32",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-32'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Search Filter Processing")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-64",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-64'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Config File Processing")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-128",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-128'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Access Control List Processing")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-256",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-2048'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Log Entry Parsing")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-4096",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-4096'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Housekeeping")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-8192",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-8192'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Replication")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-32768",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-32768'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Entry Cache")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-65536",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-65536'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Plugin")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-table-checkbox"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", {
        id: "errorlevel-262144",
        onChange: function onChange(e) {
          _this4.handleChange(e, "settings");
        },
        checked: this.state['errorlevel-262144'],
        type: "checkbox"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
        className: "ds-left-align"
      }, "Access Control Summary"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveSettingsDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("settings");
        }
      }, "Save Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The maximum number of logs that are archived (nsslapd-errorlog-maxlogsperdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-maxlogsperdir",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-maxlogsperdir'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-lg",
        title: "The maximum size of each log file in megabytes (nsslapd-errorlog-maxlogsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-maxlogsize",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-maxlogsize'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Rotate the log based this number of time units (nsslapd-errorlog-logrotationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Create New Log Every..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logrotationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-logrotationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-errorlog-logrotationtimeunit",
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        },
        value: this.state['nsslapd-errorlog-logrotationtimeunit']
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The hour whenthe log should be rotated (nsslapd-errorlog-logrotationsynchour)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Hour"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logrotationsynchour",
        type: "number",
        min: "0",
        max: "23",
        value: this.state['nsslapd-errorlog-logrotationsynchour'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The minute within the hour to rotate the log (nsslapd-errorlog-logrotationsyncmin)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "Minute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logrotationsyncmin",
        type: "number",
        min: "0",
        max: "59",
        value: this.state['nsslapd-errorlog-logrotationsyncmin'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "rotation");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveRotationDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("rotation");
        }
      }, "Save Rotation Settings")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
        eventKey: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top-xlg",
        title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-errorlog-logmaxdiskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Total Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logmaxdiskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-logmaxdiskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-errorlog-logminfreediskspace)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logminfreediskspace",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-logminfreediskspace'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        className: "ds-margin-top",
        title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-errorlog-logexpirationtime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 4
      }, "Log File is Older Than..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-errorlog-logexpirationtime",
        type: "number",
        min: "1",
        max: "2147483647",
        value: this.state['nsslapd-errorlog-logexpirationtime'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
        className: "btn btn-default dropdown",
        id: "nsslapd-errorlog-logexpirationtimeunit",
        value: this.state['nsslapd-errorlog-logexpirationtimeunit'],
        onChange: function onChange(e) {
          _this4.handleChange(e, "exp");
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "week"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "month")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveExpDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: function onClick() {
          _this4.saveConfig("exp");
        }
      }, "Save Deletion Settings")))))));

      if (this.state.loading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-errorlog-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "Error Log Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the Access Log settings",
        onClick: this.reloadConfig,
        disabled: this.state.loading
      })))), body);
    }
  }]);

  return ServerErrorLog;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerErrorLog.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerErrorLog.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/ldapi.jsx":
/*!**********************************!*\
  !*** ./src/lib/server/ldapi.jsx ***!
  \**********************************/
/*! exports provided: ServerLDAPI */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerLDAPI", function() { return ServerLDAPI; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var ldapi_attrs = ['nsslapd-ldapimaptoentries', 'nsslapd-ldapifilepath', 'nsslapd-ldapimaprootdn', 'nsslapd-ldapientrysearchbase', 'nsslapd-ldapigidnumbertype', 'nsslapd-ldapiuidnumbertype'];
var ServerLDAPI = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerLDAPI, _React$Component);

  var _super = _createSuper(ServerLDAPI);

  function ServerLDAPI(props) {
    var _this;

    _classCallCheck(this, ServerLDAPI);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      saveDisabled: true,
      attrs: _this.props.attrs // settings

    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerLDAPI, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator = _createForOfIteratorHelper(ldapi_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var ldapi_attr = _step.value;

          if (attr == ldapi_attr && this.state['_' + ldapi_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(ldapi_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _ldapi_attr = _step2.value;

          if (attr != _ldapi_attr && this.state['_' + _ldapi_attr] != this.state[_ldapi_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, "saveDisabled", disableSaveBtn), _this$setState));
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs;
      var mapToEntries = false;

      if ('nsslapd-ldapimaptoentries' in attrs) {
        if (attrs['nsslapd-ldapimaptoentries'][0] == "on") {
          mapToEntries = true;
        }
      }

      this.setState({
        loading: false,
        loaded: true,
        saveDisabled: true,
        'nsslapd-ldapimaptoentries': mapToEntries,
        'nsslapd-ldapifilepath': attrs['nsslapd-ldapifilepath'][0],
        'nsslapd-ldapimaprootdn': attrs['nsslapd-ldapimaprootdn'][0],
        'nsslapd-ldapientrysearchbase': attrs['nsslapd-ldapientrysearchbase'][0],
        'nsslapd-ldapigidnumbertype': attrs['nsslapd-ldapigidnumbertype'][0],
        'nsslapd-ldapiuidnumbertype': attrs['nsslapd-ldapiuidnumbertype'][0],
        // Record original values
        '_nsslapd-ldapimaptoentries': mapToEntries,
        '_nsslapd-ldapimaprootdn': attrs['nsslapd-ldapimaprootdn'][0],
        '_nsslapd-ldapifilepath': attrs['nsslapd-ldapifilepath'][0],
        '_nsslapd-ldapientrysearchbase': attrs['nsslapd-ldapientrysearchbase'][0],
        '_nsslapd-ldapigidnumbertype': attrs['nsslapd-ldapigidnumbertype'][0],
        '_nsslapd-ldapiuidnumbertype': attrs['nsslapd-ldapiuidnumbertype'][0]
      }, this.props.enableTree);
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this2 = this;

      this.setState({
        loading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(ldapi_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Saving LDAPI settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.loadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("success", "Successfully updated LDAPI configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.loadConfig();

        _this2.setState({
          loading: false
        });

        _this2.props.addNotification("error", "Error updating LDAPI configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var mapUserAttrs = "";

      if (this.state['nsslapd-ldapimaptoentries']) {
        mapUserAttrs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The Directory Server attribute to map system UIDs to user entries (nsslapd-ldapiuidnumbertype).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "LDAPI UID Number Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-ldapiuidnumbertype",
          type: "text",
          value: this.state['nsslapd-ldapiuidnumbertype'],
          onChange: this.handleChange,
          placeholder: "e.g.  uidNumber"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The Directory Server attribute to map system GUIDs to user entries (nsslapd-ldapigidnumbertype).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "LDAPI GID Number Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-ldapigidnumbertype",
          type: "text",
          value: this.state['nsslapd-ldapigidnumbertype'],
          onChange: this.handleChange,
          placeholder: "e.g.  gidNumber"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The subtree to search for user entries to use for autobind. (nsslapd-ldapientrysearchbase).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 3
        }, "LDAPI Entry Search Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-ldapientrysearchbase",
          type: "text",
          value: this.state['nsslapd-ldapientrysearchbase'],
          onChange: this.handleChange
        }))));
      }

      var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        title: "The Unix socket file (nsslapd-ldapifilepath).  The UI requires this exact path so it is a read-only setting.",
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "LDAPI Socket File Path"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-ldapifilepath",
        type: "text",
        value: this.state['nsslapd-ldapifilepath'],
        disabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        title: "Map the Unix root entry to this Directory Manager DN (nsslapd-ldapimaprootdn).  The UI requires this to be set to the current root DN so it is a read-only setting",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, "DN to map \"root\" To"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
        id: "nsslapd-ldapimaprootdn",
        type: "text",
        value: this.state['nsslapd-ldapimaprootdn'],
        disabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
        title: "Map regular system users to Directory Server entries (nsslapd-ldapimaptoentries).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
        checked: this.state['nsslapd-ldapimaptoentries'],
        id: "nsslapd-ldapimaptoentries",
        onChange: this.handleChange,
        className: "ds-margin-left-sm"
      }, "Map System Users to Database Entries"))), mapUserAttrs, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
        disabled: this.state.saveDisabled,
        bsStyle: "primary",
        className: "ds-margin-top-med",
        onClick: this.saveConfig
      }, "Save Settings")));

      if (this.state.lading || !this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-ldapi-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
        className: "ds-suffix-header ds-margin-top-lg"
      }, "LDAPI & AutoBind Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
        className: "ds-left-margin ds-refresh",
        type: "fa",
        name: "refresh",
        title: "Refresh the LDAPI settings",
        onClick: this.loadConfig,
        disabled: this.state.loading
      })))), body);
    }
  }]);

  return ServerLDAPI;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerLDAPI.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerLDAPI.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/sasl.jsx":
/*!*********************************!*\
  !*** ./src/lib/server/sasl.jsx ***!
  \*********************************/
/*! exports provided: ServerSASL */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerSASL", function() { return ServerSASL; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _serverTables_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serverTables.jsx */ "./src/lib/server/serverTables.jsx");
/* harmony import */ var _serverModals_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./serverModals.jsx */ "./src/lib/server/serverModals.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var ServerSASL = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerSASL, _React$Component);

  var _super = _createSuper(ServerSASL);

  function ServerSASL(props) {
    var _this;

    _classCallCheck(this, ServerSASL);

    _this = _super.call(this, props);
    _this.state = {
      configLoading: false,
      tableLoading: false,
      loaded: false,
      activeKey: 1,
      errObj: {},
      saveDisabled: true,
      supportedMechs: [],
      // Main settings
      allowedMechs: [],
      mappingFallback: false,
      maxBufSize: "",
      // Mapping modal
      showMapping: false,
      saveMappingDisabled: true,
      testRegexDisabled: true,
      testBtnDisabled: true,
      saslMapName: "",
      saslMapRegex: "",
      saslTestText: "",
      saslBase: "",
      saslFilter: "",
      saslPriority: "100",
      saslModalType: "Create",
      saslErrObj: {},
      showConfirmDelete: false,
      modalChecked: false
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleModalChange = _this.handleModalChange.bind(_assertThisInitialized(_this));
    _this.handleModalAddChange = _this.handleModalAddChange.bind(_assertThisInitialized(_this));
    _this.handleTestRegex = _this.handleTestRegex.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.loadMechs = _this.loadMechs.bind(_assertThisInitialized(_this));
    _this.loadSASLMappings = _this.loadSASLMappings.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    _this.showCreateMapping = _this.showCreateMapping.bind(_assertThisInitialized(_this));
    _this.showEditMapping = _this.showEditMapping.bind(_assertThisInitialized(_this));
    _this.closeMapping = _this.closeMapping.bind(_assertThisInitialized(_this));
    _this.showConfirmDelete = _this.showConfirmDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmDelete = _this.closeConfirmDelete.bind(_assertThisInitialized(_this));
    _this.createMapping = _this.createMapping.bind(_assertThisInitialized(_this));
    _this.editMapping = _this.editMapping.bind(_assertThisInitialized(_this));
    _this.deleteMapping = _this.deleteMapping.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerSASL, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleTestRegex",
    value: function handleTestRegex() {
      var test_string = this.state.saslTestText;
      var regex = this.state.saslMapRegex;
      var cleaned_regex = regex.replace(/\\\(/g, '(').replace(/\\\)/g, ')');
      var sasl_regex = RegExp(cleaned_regex);

      if (sasl_regex.test(test_string)) {
        this.props.addNotification("success", "The test string matches the Regular Expression");
      } else {
        this.props.addNotification("warning", "The test string does not match the Regular Expression");
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var attr = "";
      var value = "";
      var isArray = false;
      var chkBox = false;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObj; // Could be a typeahead change, check if "e" is an Array

      if (Array.isArray(e)) {
        isArray = true;
        attr = "allowedMechs";
        value = e;
      } else {
        value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
        attr = e.target.id;

        if (e.target.type === 'checkbox') {
          chkBox = true;
        }
      } // Check if a setting was changed, if so enable the save button


      if (attr == 'mappingFallback' && this.state._mappingFallback != value) {
        disableSaveBtn = false;
      } else if (attr == 'saslPriority' && this.state._saslPriority != value) {
        disableSaveBtn = false;
      } else if (attr == 'maxBufSize' && this.state._maxBufSize != value) {
        disableSaveBtn = false;
      } else if (attr == 'allowedMechs' && this.state._allowedMechs.join(' ') != value.join(' ')) {
        if (this.state._allowedMechs.length > value.length) {
          // The way allow mechanisms work if that once you set it initially
          // you can't edit it without removing all the current mecahisms.  So
          // if we remove one, just remove them all and make the user start over.
          // MARK THIS DOES NOT WORK
          value = [];
        }

        disableSaveBtn = false;
      } // Now check for differences in values that we did not touch


      if (attr != 'mappingFallback' && this.state._mappingFallback != this.state.mappingFallback) {
        disableSaveBtn = false;
      } else if (attr != 'saslPriority' && this.state._saslPriority != this.state.saslPriority) {
        disableSaveBtn = false;
      } else if (attr != 'maxBufSize' && this.state._maxBufSize != this.state.maxBufSize) {
        disableSaveBtn = false;
      } else if (attr != 'allowedMechs' && this.state._allowedMechs.join(' ') != this.state.allowedMechs.join(' ')) {
        disableSaveBtn = false;
      }

      if (!isArray && !chkBox && value == "") {
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, "saveDisabled", disableSaveBtn), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "handleModalAddChange",
    value: function handleModalAddChange(e) {
      var _this$setState2;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableRegexTestBtn = true;
      var valueErr = false;
      var errObj = this.state.errObj; // Check if a setting was changed, if so enable the save button

      if (attr == 'saslMapName' && value != "") {
        disableSaveBtn = false;
      } else if (attr == 'saslMapRegex' && value != "") {
        disableSaveBtn = false;
      } else if (attr == 'saslBase' && value != "") {
        disableSaveBtn = false;
      } else if (attr == 'saslPriority' && value != "0") {
        disableSaveBtn = false;
      } else if (attr == 'saslFilter' && value != "") {
        disableSaveBtn = false;
      }

      if (!disableSaveBtn) {
        // Make sure every other field is set
        if (attr != 'saslMapName' && this.state.saslMapName == "") {
          disableSaveBtn = true;
        }

        if (attr != 'saslMapRegex' && this.state.saslMapRegex == "") {
          disableSaveBtn = true;
        }

        if (attr != 'saslBase' && this.state.saslBase == "") {
          disableSaveBtn = true;
        }

        if (attr != 'saslFilter' && this.state.saslFilter == "") {
          disableSaveBtn = true;
        }
      } // Handle Test Text field and buttons


      if (attr == 'saslTestText' && value != "" && this.state.saslMapRegex != "") {
        disableRegexTestBtn = false;
      }

      if (attr != 'saslTestText' && this.state.saslMapRegex != "" && this.state.saslTestText != "") {
        disableRegexTestBtn = false;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "saveMappingDisabled", disableSaveBtn), _defineProperty(_this$setState2, "testBtnDisabled", disableRegexTestBtn), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2));
    }
  }, {
    key: "handleModalChange",
    value: function handleModalChange(e) {
      var _this$setState3;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var disableRegexTestBtn = true;
      var valueErr = false;
      var errObj = this.state.errObj; // Check if a setting was changed, if so enable the save button

      if (attr == 'saslMapName' && this.state._saslMapName != value) {
        disableSaveBtn = false;
      } else if (attr == 'saslMapRegex' && this.state._saslMapRegex != value) {
        disableSaveBtn = false;
      } else if (attr == 'saslBase' && this.state._saslBase != value) {
        disableSaveBtn = false;
      } else if (attr == 'saslFilter' && this.state._saslFilter != value) {
        disableSaveBtn = false;
      } else if (attr == 'saslPriority' && this.state._saslPriority != value) {
        disableSaveBtn = false;
      } // Now check for differences in values that we did not touch


      if (attr != 'saslMapName' && this.state._saslMapName != this.state.saslMapName) {
        disableSaveBtn = false;
      } else if (attr != 'saslMapRegex' && this.state._saslMapRegex != this.state.saslMapRegex) {
        disableSaveBtn = false;
      } else if (attr != 'saslBase' && this.state._saslBase != this.state.saslBase) {
        disableSaveBtn = false;
      } else if (attr != 'saslFilter' && this.state._saslFilter != this.state.saslFilter) {
        disableSaveBtn = false;
      } else if (attr != 'saslPriority' && this.state._saslPriority != this.state.saslPriority) {
        disableSaveBtn = false;
      } // Handle TEst Text filed and buttons


      if (attr == 'saslTestText' && value != "" && this.state.saslMapRegex != "") {
        disableRegexTestBtn = false;
      }

      if (attr != 'saslTestText' && this.state.saslMapRegex != "" && this.state.saslTestText != "") {
        disableRegexTestBtn = false;
      }

      if (value == "" && attr != "saslTestText") {
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState3 = {}, _defineProperty(_this$setState3, attr, value), _defineProperty(_this$setState3, "saveMappingDisabled", disableSaveBtn), _defineProperty(_this$setState3, "testBtnDisabled", disableRegexTestBtn), _defineProperty(_this$setState3, "errObj", errObj), _this$setState3));
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", this.props.serverId, "config", 'get'];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadConfig", "Get SASL settings", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var allowedMechsVal = attrs['nsslapd-allowed-sasl-mechanisms'][0];
        var allowedMechs = [];
        var fallback = false;

        if (attrs['nsslapd-sasl-mapping-fallback'][0] == "on") {
          fallback = true;
        }

        if (allowedMechsVal != "") {
          // Could be space or comma separated
          if (allowedMechsVal.indexOf(',') > -1) {
            allowedMechsVal = allowedMechsVal.trim();
            allowedMechs = allowedMechsVal.split(',');
          } else {
            allowedMechs = allowedMechsVal.split();
          }
        }

        _this2.setState({
          maxBufSize: attrs['nsslapd-sasl-max-buffer-size'][0],
          allowedMechs: allowedMechs,
          mappingFallback: fallback,
          saveDisabled: true,
          // Store original values
          _maxBufSize: attrs['nsslapd-sasl-max-buffer-size'][0],
          _allowedMechs: allowedMechs,
          _mappingFallback: fallback
        }, _this2.loadMechs());
      });
    }
  }, {
    key: "loadMechs",
    value: function loadMechs() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", this.props.serverId, "sasl", 'get-mechs'];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("loadMechs", "Get supported SASL mechanisms", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this3.setState({
          supportedMechs: config.items
        }, _this3.loadSASLMappings());
      });
    }
  }, {
    key: "loadSASLMappings",
    value: function loadSASLMappings() {
      var _this4 = this;

      var cmd = ["dsconf", '-j', this.props.serverId, 'sasl', 'list', '--details'];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])('get_and_set_sasl', 'Get SASL mappings', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var saslMapObj = JSON.parse(content);
        var mappings = [];

        var _iterator = _createForOfIteratorHelper(saslMapObj['items']),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var mapping = _step.value;

            if (!mapping['attrs'].hasOwnProperty('nssaslmappriority')) {
              mapping['attrs'].nssaslmappriority = ['100'];
            }

            mappings.push(mapping['attrs']);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this4.setState({
          mappings: mappings,
          loaded: true,
          tableLoading: false,
          configLoading: false
        }, _this4.props.enableTree);
      });
    }
  }, {
    key: "showCreateMapping",
    value: function showCreateMapping() {
      this.setState({
        showMappingModal: true,
        saveMappingDisabled: true,
        testRegexDisabled: true,
        saslModalType: "Create",
        saslMapName: "",
        saslMapRegex: "",
        saslTestText: "",
        saslBase: "",
        saslFilter: "",
        saslPriority: "100",
        saslErrObj: {}
      });
    }
  }, {
    key: "closeMapping",
    value: function closeMapping() {
      this.setState({
        showMappingModal: false
      });
    }
  }, {
    key: "showEditMapping",
    value: function showEditMapping(name, regex, base, filter, priority) {
      this.setState({
        showMappingModal: true,
        saveMappingDisabled: true,
        testRegexDisabled: true,
        saslModalType: "Edit",
        saslMapName: name,
        saslMapRegex: regex,
        saslTestText: "",
        saslBase: base,
        saslFilter: filter,
        saslPriority: priority,
        // Note original values
        _saslMapName: name,
        _saslMapRegex: regex,
        _saslTestText: "",
        _saslBase: base,
        _saslFilter: filter,
        _saslPriority: priority,
        saslErrObj: {}
      });
    }
  }, {
    key: "showConfirmDelete",
    value: function showConfirmDelete(name) {
      this.setState({
        saslMapName: name,
        modalChecked: false,
        showConfirmDelete: true
      });
    }
  }, {
    key: "closeConfirmDelete",
    value: function closeConfirmDelete() {
      this.setState({
        modalChecked: false,
        showConfirmDelete: false
      });
    }
  }, {
    key: "createMapping",
    value: function createMapping() {
      var _this5 = this;

      this.setState({
        tableLoading: true
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'sasl', 'create', '--cn=' + this.state.saslMapName, '--nsSaslMapFilterTemplate=' + this.state.saslFilter, '--nsSaslMapRegexString=' + this.state.saslMapRegex, '--nsSaslMapBaseDNTemplate=' + this.state.saslBase, '--nsSaslMapPriority=' + this.state.saslPriority];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("createMapping", "Create sasl mapping", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this5.loadConfig();

        _this5.closeMapping();

        _this5.props.addNotification("success", "Successfully create new SASL Mapping");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.loadConfig();

        _this5.props.addNotification("error", "Error creating new SASL Mapping - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "editMapping",
    value: function editMapping(name) {
      var _this6 = this;

      // Start spinning
      var new_mappings = this.state.mappings;

      var _iterator2 = _createForOfIteratorHelper(new_mappings),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var saslMap = _step2.value;

          if (saslMap.cn[0] == name) {
            saslMap.nssaslmapregexstring = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapregexstring[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmapbasedntemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapbasedntemplate[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmapfiltertemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapfiltertemplate[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmappriority = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmappriority[0],
              loading: true,
              size: "sm"
            })];
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState({
        mappings: new_mappings
      }); // Delete and create

      var delete_cmd = ['dsconf', '-j', this.props.serverId, 'sasl', 'delete', this.state._saslMapName];
      var create_cmd = ['dsconf', '-j', this.props.serverId, 'sasl', 'create', '--cn=' + this.state.saslMapName, '--nsSaslMapFilterTemplate=' + this.state.saslFilter, '--nsSaslMapRegexString=' + this.state.saslMapRegex, '--nsSaslMapBaseDNTemplate=' + this.state.saslBase, '--nsSaslMapPriority=' + this.state.saslPriority];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("editMapping", "deleting sasl mapping", delete_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(delete_cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("editMapping", "Create new sasl mapping", create_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(create_cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this6.closeMapping();

          _this6.loadConfig();

          _this6.props.addNotification("success", "Successfully updated SASL Mapping");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this6.closeMapping();

          _this6.loadConfig();

          _this6.props.addNotification("error", "Error updating SASL Mapping - ".concat(errMsg.desc));
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.loadConfig();

        _this6.closeMapping();

        _this6.props.addNotification("error", "Error replacing SASL Mapping - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "deleteMapping",
    value: function deleteMapping() {
      var _this7 = this;

      // Start spinning
      var new_mappings = this.state.mappings;

      var _iterator3 = _createForOfIteratorHelper(new_mappings),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var saslMap = _step3.value;

          if (saslMap.cn[0] == this.state.saslMapName) {
            saslMap.nssaslmapregexstring = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapregexstring[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmapbasedntemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapbasedntemplate[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmapfiltertemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmapfiltertemplate[0],
              loading: true,
              size: "sm"
            })];
            saslMap.nssaslmappriority = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
              className: "ds-lower-field",
              key: new_mappings[0].nssaslmappriority[0],
              loading: true,
              size: "sm"
            })];
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        mappings: new_mappings
      });
      var cmd = ['dsconf', '-j', this.props.serverId, 'sasl', 'delete', this.state.saslMapName];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("deleteMapping", "Delete sasl mapping", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this7.closeConfirmDelete();

        _this7.loadConfig();

        _this7.props.addNotification("success", "Successfully deleted SASL Mapping");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.loadConfig();

        _this7.closeConfirmDelete();

        _this7.props.addNotification("error", "Error deleting SASL Mapping - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this8 = this;

      // Start spinning
      this.setState({
        configLoading: true
      }); // Build up the command list

      var cmd = ['dsconf', '-j', this.props.serverId, 'config', 'replace'];
      var mech_str_new = this.state.allowedMechs.join(' ');

      var mech_str_orig = this.state._allowedMechs.join(' ');

      if (mech_str_orig != mech_str_new) {
        cmd.push("nsslapd-allowed-sasl-mechanisms=" + mech_str_new);
      }

      if (this.state._mappingFallback != this.state.mappingFallback) {
        var value = "off";

        if (this.state.mappingFallback) {
          value = "on";
        }

        cmd.push("nsslapd-sasl-mapping-fallback=" + value);
      }

      if (this.state._maxBufSize != this.state.maxBufSize) {
        cmd.push("nsslapd-sasl-max-buffer-size=" + this.state.maxBufSize);
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveConfig", "Applying SASL config change", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this8.loadConfig();

        _this8.props.addNotification("success", "Successfully updated SASL configuration.  These " + "changes require the server to be restarted to take effect.");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.loadConfig();

        _this8.props.addNotification("error", "Error updating SASL configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this9 = this;

      var configSpinner = "";
      var tableSpinner = " ";
      var body = "";

      if (this.state.tableLoading) {
        tableSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          size: "sm"
        });
      }

      if (this.state.configLoading) {
        configSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      if (!this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading SASL configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      } else {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-left-sm"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3,
          className: "ds-word-wrap"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], {
          className: "ds-suffix-header ds-margin-top-lg"
        }, "SASL Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh SASL configuration",
          onClick: function onClick() {
            _this9.loadConfig();
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 1,
          className: "ds-margin-top-lg"
        }, configSpinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The maximum SASL buffer size in bytes (nsslapd-sasl-max-buffer-size).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 3
        }, "Max SASL Buffer Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "maxBufSize",
          type: "number",
          min: "-1",
          max: "2147483647",
          value: this.state.maxBufSize,
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "A list of SASL mechanisms the server will only accept (nsslapd-allowed-sasl-mechanisms).  The default is all mechanisms are allowed.",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 3
        }, "Allowed SASL Mechanisms"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_7__["Typeahead"], {
          id: "allowedMechs",
          onChange: function onChange(value) {
            _this9.handleChange(value);
          },
          multiple: true,
          options: this.state.supportedMechs,
          selected: this.state.allowedMechs,
          placeholder: "Type SASL mechanism to allow",
          ref: function ref(typeahead) {
            _this9.typeahead = typeahead;
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "Check all sasl mappings until one succeeds or they all fail (nsslapd-sasl-mapping-fallback).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
          checked: this.state.mappingFallback,
          id: "mappingFallback",
          onChange: this.handleChange,
          className: "ds-margin-left-sm"
        }, "Allow SASL Mapping Fallback"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
          disabled: this.state.saveDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: this.saveConfig
        }, "Save Settings"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", {
          className: "ds-center ds-logo-style"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, "SASL Mappings"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-left-indent ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], null, tableSpinner)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_serverTables_jsx__WEBPACK_IMPORTED_MODULE_5__["SASLTable"], {
          rows: this.state.mappings,
          editMapping: this.showEditMapping,
          deleteMapping: this.showConfirmDelete,
          className: "ds-margin-top"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: this.showCreateMapping
        }, "Create New Mapping"));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-sasl-page"
      }, body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_serverModals_jsx__WEBPACK_IMPORTED_MODULE_6__["SASLMappingModal"], {
        showModal: this.state.showMappingModal,
        testBtnDisabled: this.state.testBtnDisabled,
        saveDisabled: this.state.saveMappingDisabled,
        closeHandler: this.closeMapping,
        handleChange: this.state.saslModalType == "Create" ? this.handleModalAddChange : this.handleModalChange,
        handleTestRegex: this.handleTestRegex,
        saveHandler: this.state.saslModalType == "Create" ? this.createMapping : this.editMapping,
        error: this.state.saslErrObj,
        type: this.state.saslModalType,
        name: this.state.saslMapName,
        regex: this.state.saslMapRegex,
        testText: this.state.saslTestText,
        base: this.state.saslBase,
        filter: this.state.saslFilter,
        priority: this.state.saslPriority,
        spinning: this.state.tableLoading
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__["DoubleConfirmModal"], {
        showModal: this.state.showConfirmDelete,
        closeHandler: this.closeConfirmDelete,
        handleChange: this.handleModalChange,
        actionHandler: this.deleteMapping,
        item: this.state.saslMapName,
        checked: this.state.modalChecked,
        spinning: this.state.tableLoading,
        mTitle: "Delete SASL Mapping",
        mMsg: "Are you sure you want to delete this SASL mapping?",
        mSpinningMsg: "Deleting SASL Mapping ...",
        mBtnName: "Delete Mapping"
      }));
    }
  }]);

  return ServerSASL;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);

/***/ }),

/***/ "./src/lib/server/serverModals.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/serverModals.jsx ***!
  \*****************************************/
/*! exports provided: SASLMappingModal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SASLMappingModal", function() { return SASLMappingModal; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }




var SASLMappingModal = /*#__PURE__*/function (_React$Component) {
  _inherits(SASLMappingModal, _React$Component);

  var _super = _createSuper(SASLMappingModal);

  function SASLMappingModal() {
    _classCallCheck(this, SASLMappingModal);

    return _super.apply(this, arguments);
  }

  _createClass(SASLMappingModal, [{
    key: "render",
    value: function render() {
      var _this = this;

      var title = this.props.type;
      var btnText = "Create";
      var spinning = "";

      if (title != "Create") {
        btnText = "Save";
      }

      if (this.props.spinning) {
        spinning = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"], {
        show: this.props.showModal,
        onHide: this.props.closeHandler
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
        className: "ds-no-horizontal-scrollbar"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Header, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", {
        className: "close",
        onClick: this.props.closeHandler,
        "aria-hidden": "true",
        "aria-label": "Close"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Icon"], {
        type: "pf",
        name: "close"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Title, null, title, " SASL Mapping")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Body, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Form"], {
        horizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "SASL Mapping entry name"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "SASL Mapping Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslMapName",
        type: "text",
        onChange: this.props.handleChange,
        className: this.props.error.saslMapName ? "ds-input-bad" : "",
        defaultValue: this.props.name
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "SASL mapping Regular Expression"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "SASL Mapping Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslMapRegex",
        type: "text",
        onChange: this.props.handleChange,
        className: this.props.error.saslMapRegex ? "ds-input-bad" : "",
        defaultValue: this.props.regex
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Test Regular Expression"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("font", {
        size: "2"
      }, "* Test Regex")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslTestText",
        type: "text",
        onChange: this.props.handleChange,
        defaultValue: this.props.testText,
        placeholder: "Enter text to test regex"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        disabled: this.props.testBtnDisabled,
        bsStyle: "primary",
        onClick: this.props.handleTestRegex
      }, "Test It"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "The search base or a specific entry DN to match against the constructed DN"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "SASL Mapping Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslBase",
        type: "text",
        onChange: this.props.handleChange,
        className: this.props.error.saslBase ? "ds-input-bad" : "",
        defaultValue: this.props.base
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "SASL mapping search filter"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "SASL Mapping Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslFilter",
        type: "text",
        onChange: this.props.handleChange,
        className: this.props.error.saslFilter ? "ds-input-bad" : "",
        defaultValue: this.props.filter
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Row"], {
        className: "ds-margin-top",
        title: "Set the mapping priority for which mappins should be tried first"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["ControlLabel"],
        sm: 5
      }, "SASL Mapping Priority"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Col"], {
        sm: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["FormControl"], {
        id: "saslPriority",
        type: "number",
        min: "1",
        max: "100",
        value: this.props.priority,
        onChange: this.props.handleChange,
        className: this.props.error.saslPriority ? "ds-input-bad" : ""
      })))), spinning), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Modal"].Footer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "default",
        className: "btn-cancel",
        onClick: this.props.closeHandler
      }, "Cancel"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["Button"], {
        bsStyle: "primary",
        disabled: this.props.saveDisabled,
        onClick: function onClick() {
          _this.props.saveHandler(_this.props.name);
        }
      }, btnText, " Mapping"))));
    }
  }]);

  return SASLMappingModal;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); // Types and defaults

SASLMappingModal.propTypes = {
  showModal: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  testBtnDisabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  saveDisabled: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
  closeHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  handleTestRegex: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  saveHandler: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  error: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object,
  name: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  regex: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  testText: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  base: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  filter: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  priority: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string,
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};
SASLMappingModal.defaultProps = {
  showModal: false,
  testBtnDisabled: true,
  saveDisabled: true,
  closeHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleChange: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  handleTestRegex: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  saveHandler: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  error: {},
  name: "",
  regex: "",
  testText: "",
  base: "",
  filter: "",
  priority: "",
  spinning: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool
};

/***/ }),

/***/ "./src/lib/server/serverTables.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/serverTables.jsx ***!
  \*****************************************/
/*! exports provided: SASLTable */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SASLTable", function() { return SASLTable; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dsTable.jsx */ "./src/lib/dsTable.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





var SASLTable = /*#__PURE__*/function (_React$Component) {
  _inherits(SASLTable, _React$Component);

  var _super = _createSuper(SASLTable);

  function SASLTable(props) {
    var _this;

    _classCallCheck(this, SASLTable);

    _this = _super.call(this, props);
    _this.state = {
      rowKey: "cn",
      columns: [{
        property: "cn",
        header: {
          label: "Mapping Name",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nssaslmapregexstring",
        header: {
          label: "Regular Expression",
          props: {
            index: 1,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nssaslmapbasedntemplate",
        header: {
          label: "Search Base DN",
          props: {
            index: 2,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 2
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nssaslmapfiltertemplate",
        header: {
          label: "Search Filter",
          props: {
            index: 3,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 3
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "nssaslmappriority",
        header: {
          label: "Priority",
          props: {
            index: 4,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 4
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }, {
        property: "actions",
        header: {
          props: {
            index: 5,
            rowSpan: 1,
            colSpan: 1
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["actionHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 5
          },
          formatters: [function (value, _ref) {
            var rowData = _ref.rowData;
            return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td", {
              key: rowData.cn[0]
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["DropdownButton"], {
              id: rowData.cn[0],
              className: "ds-action-button",
              bsStyle: "primary",
              title: "Actions"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "1",
              onClick: function onClick() {
                _this.props.editMapping(rowData.cn[0], rowData.nssaslmapregexstring[0], rowData.nssaslmapbasedntemplate[0], rowData.nssaslmapfiltertemplate[0], rowData.nssaslmappriority[0]);
              }
            }, "Edit Mapping"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              divider: true
            }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_1__["MenuItem"], {
              eventKey: "2",
              onClick: function onClick() {
                _this.props.deleteMapping(rowData.cn[0]);
              }
            }, "Delete Mapping")))];
          }]
        }
      }]
    };
    _this.getColumns = _this.getColumns.bind(_assertThisInitialized(_this));
    _this.getSingleColumn = _this.getSingleColumn.bind(_assertThisInitialized(_this));
    return _this;
  } // Constructor


  _createClass(SASLTable, [{
    key: "getColumns",
    value: function getColumns() {
      return this.state.columns;
    }
  }, {
    key: "getSingleColumn",
    value: function getSingleColumn() {
      return [{
        property: "msg",
        header: {
          label: "SASL Mappings",
          props: {
            index: 0,
            rowSpan: 1,
            colSpan: 1,
            sort: true
          },
          transforms: [],
          formatters: [],
          customFormatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["sortableHeaderCellFormatter"]]
        },
        cell: {
          props: {
            index: 0
          },
          formatters: [patternfly_react__WEBPACK_IMPORTED_MODULE_1__["tableCellFormatter"]]
        }
      }];
    }
  }, {
    key: "render",
    value: function render() {
      var SASLTable;

      if (this.props.rows.length == 0) {
        SASLTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSShortTable"], {
          getColumns: this.getSingleColumn,
          rowKey: "msg",
          rows: [{
            msg: "No Mappings"
          }]
        });
      } else {
        SASLTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_dsTable_jsx__WEBPACK_IMPORTED_MODULE_2__["DSTable"], {
          noSearchBar: true,
          getColumns: this.getColumns,
          rowKey: this.state.rowKey,
          rows: this.props.rows,
          toolBarPagination: [6, 12, 24, 48, 96],
          toolBarPaginationPerPage: 6
        });
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, SASLTable);
    }
  }]);

  return SASLTable;
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
SASLTable.propTypes = {
  rows: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.array,
  editMapping: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func,
  deleteMapping: prop_types__WEBPACK_IMPORTED_MODULE_3___default.a.func
};
SASLTable.defaultProps = {
  rows: [],
  editMapping: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"],
  deleteMapping: patternfly_react__WEBPACK_IMPORTED_MODULE_1__["noop"]
};

/***/ }),

/***/ "./src/lib/server/settings.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/settings.jsx ***!
  \*************************************/
/*! exports provided: ServerSettings */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerSettings", function() { return ServerSettings; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }






var general_attrs = ['nsslapd-port', 'nsslapd-secureport', 'nsslapd-localhost', 'nsslapd-listenhost', 'nsslapd-bakdir', 'nsslapd-ldifdir', 'nsslapd-schemadir', 'nsslapd-certdir'];
var rootdn_attrs = ['nsslapd-rootpwstoragescheme', 'nsslapd-rootpw', 'confirmRootpw'];
var disk_attrs = ['nsslapd-disk-monitoring', 'nsslapd-disk-monitoring-logging-critical', 'nsslapd-disk-monitoring-threshold', 'nsslapd-disk-monitoring-grace-period'];
var adv_attrs = ['nsslapd-allow-anonymous-access', 'nsslapd-entryusn-global', 'nsslapd-ignore-time-skew', 'nsslapd-readonly', 'nsslapd-anonlimitsdn', 'nsslapd-schemacheck', 'nsslapd-syntaxcheck', 'nsslapd-plugin-logging', 'nsslapd-syntaxlogging', 'nsslapd-plugin-binddn-tracking', 'nsslapd-attribute-name-exceptions', 'nsslapd-dn-validate-strict'];
var ServerSettings = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerSettings, _React$Component);

  var _super = _createSuper(ServerSettings);

  function ServerSettings(props) {
    var _this;

    _classCallCheck(this, ServerSettings);

    _this = _super.call(this, props);
    _this.state = {
      loading: true,
      activeKey: 1,
      attrs: _this.props.attrs,
      // Setting lists
      configSaveDisabled: true,
      configReloading: false,
      errObjConfig: {},
      rootDNReloading: false,
      rootDNSaveDisabled: true,
      errObjRootDN: {},
      diskMonReloading: false,
      diskMonSaveDisabled: true,
      errObjDiskMon: {},
      advSaveDisabled: true,
      advReloading: false,
      errObjAdv: {}
    };
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleConfigChange = _this.handleConfigChange.bind(_assertThisInitialized(_this));
    _this.handleRootDNChange = _this.handleRootDNChange.bind(_assertThisInitialized(_this));
    _this.handleDiskMonChange = _this.handleDiskMonChange.bind(_assertThisInitialized(_this));
    _this.handleAdvChange = _this.handleAdvChange.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.saveRootDN = _this.saveRootDN.bind(_assertThisInitialized(_this));
    _this.reloadRootDN = _this.reloadRootDN.bind(_assertThisInitialized(_this));
    _this.saveDiskMonitoring = _this.saveDiskMonitoring.bind(_assertThisInitialized(_this));
    _this.reloadDiskMonitoring = _this.reloadDiskMonitoring.bind(_assertThisInitialized(_this));
    _this.saveAdvanced = _this.saveAdvanced.bind(_assertThisInitialized(_this));
    _this.reloadAdvanced = _this.reloadAdvanced.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerSettings, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Loading config
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleConfigChange",
    value: function handleConfigChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObjConfig; // Check if a setting was changed, if so enable the save button

      var _iterator = _createForOfIteratorHelper(general_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var general_attr = _step.value;

          if (attr == general_attr && this.state['_' + general_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(general_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _general_attr = _step2.value;

          if (attr != _general_attr && this.state['_' + _general_attr] != this.state[_general_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      if (attr != 'nsslapd-listenhost' && value == "") {
        // Only listenhost is allowed to be blank
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, "configSaveDisabled", disableSaveBtn), _defineProperty(_this$setState, "errObjConfig", errObj), _this$setState));
    }
  }, {
    key: "handleRootDNChange",
    value: function handleRootDNChange(e) {
      var _this$setState2;

      var value = e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObjRootDN; // Check if a setting was changed, if so enable the save button

      var _iterator3 = _createForOfIteratorHelper(rootdn_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var rootdn_attr = _step3.value;

          if (attr == rootdn_attr && this.state['_' + rootdn_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var _iterator4 = _createForOfIteratorHelper(rootdn_attrs),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var _rootdn_attr = _step4.value;

          if (attr != _rootdn_attr && this.state['_' + _rootdn_attr] != this.state[_rootdn_attr]) {
            disableSaveBtn = false;
            break;
          }
        } // Handle validating passwords are in sync

      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      if (attr == 'nsslapd-rootpw') {
        if (value != this.state.confirmRootpw) {
          disableSaveBtn = true;
          errObj['nsslapd-rootpw'] = true;
        } else {
          errObj['nsslapd-rootpw'] = false;
        }
      }

      if (attr == 'confirmRootpw') {
        if (value != this.state['nsslapd-rootpw']) {
          disableSaveBtn = true;
          errObj['confirmRootpw'] = true;
        } else {
          errObj['confirmRootpw'] = false;
        }
      }

      if (value == "") {
        disableSaveBtn = true;
        valueErr = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, attr, value), _defineProperty(_this$setState2, "rootDNSaveDisabled", disableSaveBtn), _defineProperty(_this$setState2, "errObjRootDN", errObj), _this$setState2));
    }
  }, {
    key: "handleDiskMonChange",
    value: function handleDiskMonChange(e) {
      var _this$setState3;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObjDiskMon; // Check if a setting was changed, if so enable the save button

      var _iterator5 = _createForOfIteratorHelper(disk_attrs),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var disk_attr = _step5.value;

          if (attr == disk_attr && this.state['_' + disk_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var _iterator6 = _createForOfIteratorHelper(disk_attrs),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var _disk_attr = _step6.value;

          if (attr != _disk_attr && this.state['_' + _disk_attr] != this.state[_disk_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      if (value == "" && e.target.type !== 'checkbox') {
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState3 = {}, _defineProperty(_this$setState3, attr, value), _defineProperty(_this$setState3, "diskMonSaveDisabled", disableSaveBtn), _defineProperty(_this$setState3, "errObjDiskMon", errObj), _this$setState3));
    }
  }, {
    key: "handleAdvChange",
    value: function handleAdvChange(e) {
      var _this$setState4;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObjAdv; // Check if a setting was changed, if so enable the save button

      var _iterator7 = _createForOfIteratorHelper(adv_attrs),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var adv_attr = _step7.value;

          if (attr == adv_attr && this.state['_' + adv_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      var _iterator8 = _createForOfIteratorHelper(adv_attrs),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var _adv_attr = _step8.value;

          if (attr != _adv_attr && this.state['_' + _adv_attr] != this.state[_adv_attr]) {
            disableSaveBtn = false;
            break;
          }
        } // Handle special cases for anon limit dn

      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      if (attr == 'nsslapd-anonlimitsdn' && !Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["valid_dn"])(value)) {
        errObj[attr] = true;
      }

      if (value == "" && attr != 'nsslapd-anonlimitsdn' && e.target.type !== 'checkbox') {
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState4 = {}, _defineProperty(_this$setState4, attr, value), _defineProperty(_this$setState4, "advSaveDisabled", disableSaveBtn), _defineProperty(_this$setState4, "errObjAdv", errObj), _this$setState4));
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var attrs = this.state.attrs; // Handle the checkbox values

      var diskMonitoring = false;
      var diskLogCritical = false;
      var schemaCheck = false;
      var syntaxCheck = false;
      var pluginLogging = false;
      var syntaxLogging = false;
      var bindDNTracking = false;
      var nameExceptions = false;
      var dnValidate = false;
      var usnGlobal = false;
      var ignoreSkew = false;
      var readOnly = false;
      var listenhost = "";

      if (attrs['nsslapd-entryusn-global'][0] == "on") {
        usnGlobal = true;
      }

      if (attrs['nsslapd-ignore-time-skew'][0] == "on") {
        ignoreSkew = true;
      }

      if (attrs['nsslapd-readonly'][0] == "on") {
        readOnly = true;
      }

      if (attrs['nsslapd-disk-monitoring'][0] == "on") {
        diskMonitoring = true;
      }

      if (attrs['nsslapd-disk-monitoring-logging-critical'][0] == "on") {
        diskLogCritical = true;
      }

      if (attrs['nsslapd-schemacheck'][0] == "on") {
        schemaCheck = true;
      }

      if (attrs['nsslapd-syntaxcheck'][0] == "on") {
        syntaxCheck = true;
      }

      if (attrs['nsslapd-plugin-logging'][0] == "on") {
        pluginLogging = true;
      }

      if (attrs['nsslapd-syntaxlogging'][0] == "on") {
        syntaxLogging = true;
      }

      if (attrs['nsslapd-plugin-binddn-tracking'][0] == "on") {
        bindDNTracking = true;
      }

      if (attrs['nsslapd-attribute-name-exceptions'][0] == "on") {
        nameExceptions = true;
      }

      if (attrs['nsslapd-dn-validate-strict'][0] == "on") {
        dnValidate = true;
      }

      if ('nsslapd-listenhost' in attrs) {
        listenhost = attrs['nsslapd-listenhost'][0];
      }

      this.setState({
        loaded: true,
        loading: false,
        // Settings
        'nsslapd-port': attrs['nsslapd-port'][0],
        'nsslapd-secureport': attrs['nsslapd-secureport'][0],
        'nsslapd-localhost': attrs['nsslapd-localhost'][0],
        'nsslapd-listenhost': listenhost,
        'nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
        'nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
        'nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
        'nsslapd-certdir': attrs['nsslapd-certdir'][0],
        'nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
        'nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
        'confirmRootpw': attrs['nsslapd-rootpw'][0],
        'nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
        'nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
        'nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
        'nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
        'nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
        'nsslapd-disk-monitoring': diskMonitoring,
        'nsslapd-disk-monitoring-logging-critical': diskLogCritical,
        'nsslapd-schemacheck': schemaCheck,
        'nsslapd-syntaxcheck': syntaxCheck,
        'nsslapd-plugin-logging': pluginLogging,
        'nsslapd-syntaxlogging': syntaxLogging,
        'nsslapd-plugin-binddn-tracking': bindDNTracking,
        'nsslapd-attribute-name-exceptions': nameExceptions,
        'nsslapd-dn-validate-strict': dnValidate,
        'nsslapd-entryusn-global': usnGlobal,
        'nsslapd-ignore-time-skew': ignoreSkew,
        'nsslapd-readonly': readOnly,
        // Record original values
        '_nsslapd-port': attrs['nsslapd-port'][0],
        '_nsslapd-secureport': attrs['nsslapd-secureport'][0],
        '_nsslapd-localhost': attrs['nsslapd-localhost'][0],
        '_nsslapd-listenhost': listenhost,
        '_nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
        '_nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
        '_nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
        '_nsslapd-certdir': attrs['nsslapd-certdir'][0],
        '_nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
        '_nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
        '_confirmRootpw': attrs['nsslapd-rootpw'][0],
        '_nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
        '_nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
        '_nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
        '_nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
        '_nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
        '_nsslapd-disk-monitoring': diskMonitoring,
        '_nsslapd-disk-monitoring-logging-critical': diskLogCritical,
        '_nsslapd-schemacheck': schemaCheck,
        '_nsslapd-syntaxcheck': syntaxCheck,
        '_nsslapd-plugin-logging': pluginLogging,
        '_nsslapd-syntaxlogging': syntaxLogging,
        '_nsslapd-plugin-binddn-tracking': bindDNTracking,
        '_nsslapd-attribute-name-exceptions': nameExceptions,
        '_nsslapd-dn-validate-strict': dnValidate,
        '_nsslapd-entryusn-global': usnGlobal,
        '_nsslapd-ignore-time-skew': ignoreSkew,
        '_nsslapd-readonly': readOnly
      }, this.props.enableTree);
    }
  }, {
    key: "saveRootDN",
    value: function saveRootDN() {
      var _this2 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

      var _iterator9 = _createForOfIteratorHelper(rootdn_attrs),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var attr = _step9.value;

          if (attr != 'confirmRootpw' && this.state['_' + attr] != this.state[attr]) {
            cmd.push(attr + "=" + this.state[attr]);
          }
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveRootDN", "Saving changes to root DN", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.reloadRootDN();

        _this2.props.addNotification("success", "Successfully updated Directory Manager configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.reloadRootDN();

        _this2.props.addNotification("error", "Error updating Directory Manager configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadRootDN",
    value: function reloadRootDN() {
      var _this3 = this;

      this.setState({
        rootDNReloading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "Reload Directory Manager configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;

        _this3.setState(function () {
          return {
            rootDNReloading: false,
            'nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
            'nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
            'confirmRootpw': attrs['nsslapd-rootpw'][0],
            'nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
            // Record original values
            '_nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
            '_nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
            '_confirmRootpw': attrs['nsslapd-rootpw'][0],
            '_nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
            rootDNSaveDisabled: true
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this3.setState({
          rootDNReloading: false
        });

        _this3.props.addNotification("error", "Error reloading Directory Manager configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "saveDiskMonitoring",
    value: function saveDiskMonitoring() {
      var _this4 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

      var _iterator10 = _createForOfIteratorHelper(disk_attrs),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var attr = _step10.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveRootDN", "Saving changes to Disk Monitoring", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this4.reloadDiskMonitoring();

        _this4.props.addNotification("success", "Successfully updated Disk Monitoring configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this4.reloadDiskMonitoring();

        _this4.props.addNotification("error", "Error updating Disk Monitoring configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadDiskMonitoring",
    value: function reloadDiskMonitoring() {
      var _this5 = this;

      this.setState({
        diskMonReloading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadDiskMonitoring", "Reload Disk Monitoring configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs; // Handle the checkbox values

        var diskMonitoring = false;
        var diskLogCritical = false;

        if (attrs['nsslapd-disk-monitoring'][0] == "on") {
          diskMonitoring = true;
        }

        if (attrs['nsslapd-disk-monitoring-logging-critical'][0] == "on") {
          diskLogCritical = true;
        }

        _this5.setState(function () {
          return {
            diskMonReloading: false,
            'nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
            'nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
            'nsslapd-disk-monitoring': diskMonitoring,
            'nsslapd-disk-monitoring-logging-critical': diskLogCritical,
            // Record original values
            '_nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
            '_nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
            '_nsslapd-disk-monitoring': diskMonitoring,
            '_nsslapd-disk-monitoring-logging-critical': diskLogCritical,
            diskMonSaveDisabled: true
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.setState({
          diskMonReloading: false
        });

        _this5.props.addNotification("error", "Error reloading Disk Monitoring configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "saveAdvanced",
    value: function saveAdvanced() {
      var _this6 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

      var _iterator11 = _createForOfIteratorHelper(adv_attrs),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var attr = _step11.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveAdvanced", "Saving Advanced configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this6.reloadAdvanced();

        _this6.props.addNotification("success", "Successfully updated Advanced configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this6.reloadAdvanced();

        _this6.props.addNotification("error", "Error updating Advanced configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadAdvanced",
    value: function reloadAdvanced() {
      var _this7 = this;

      this.setState({
        advReloading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadAdvanced", "Reload Advanced configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs; // Handle the checkbox values

        var schemaCheck = false;
        var syntaxCheck = false;
        var pluginLogging = false;
        var syntaxLogging = false;
        var bindDNTracking = false;
        var nameExceptions = false;
        var dnValidate = false;
        var usnGlobal = false;
        var ignoreSkew = false;
        var readOnly = false;

        if (attrs['nsslapd-entryusn-global'][0] == "on") {
          usnGlobal = true;
        }

        if (attrs['nsslapd-ignore-time-skew'][0] == "on") {
          ignoreSkew = true;
        }

        if (attrs['nsslapd-readonly'][0] == "on") {
          readOnly = true;
        }

        if (attrs['nsslapd-schemacheck'][0] == "on") {
          schemaCheck = true;
        }

        if (attrs['nsslapd-syntaxcheck'][0] == "on") {
          syntaxCheck = true;
        }

        if (attrs['nsslapd-plugin-logging'][0] == "on") {
          pluginLogging = true;
        }

        if (attrs['nsslapd-syntaxlogging'][0] == "on") {
          syntaxLogging = true;
        }

        if (attrs['nsslapd-plugin-binddn-tracking'][0] == "on") {
          bindDNTracking = true;
        }

        if (attrs['nsslapd-attribute-name-exceptions'][0] == "on") {
          nameExceptions = true;
        }

        if (attrs['nsslapd-dn-validate-strict'][0] == "on") {
          dnValidate = true;
        }

        _this7.setState(function () {
          return {
            'nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
            'nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
            'nsslapd-schemacheck': schemaCheck,
            'nsslapd-syntaxcheck': syntaxCheck,
            'nsslapd-plugin-logging': pluginLogging,
            'nsslapd-syntaxLogging': syntaxLogging,
            'nsslapd-plugin-binddn-tracking': bindDNTracking,
            'nsslapd-attribute-name-exceptions': nameExceptions,
            'nsslapd-dn-validate-strict': dnValidate,
            'nsslapd-entryusn-global': usnGlobal,
            'nsslapd-ignore-time-skew': ignoreSkew,
            'nsslapd-readonly': readOnly,
            // Record original values
            '_nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
            '_nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
            '_nsslapd-schemacheck': schemaCheck,
            '_nsslapd-syntaxcheck': syntaxCheck,
            '_nsslapd-plugin-logging': pluginLogging,
            '_nsslapd-syntaxLogging': syntaxLogging,
            '_nsslapd-plugin-binddn-tracking': bindDNTracking,
            '_nsslapd-attribute-name-exceptions': nameExceptions,
            '_nsslapd-dn-validate-strict': dnValidate,
            '_nsslapd-entryusn-global': usnGlobal,
            '_nsslapd-ignore-time-skew': ignoreSkew,
            '_nsslapd-readonly': readOnly,
            advReloading: false,
            advSaveDisabled: true
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this7.props.addNotification("error", "Error loading Advanced configuration - ".concat(errMsg.desc));

        _this7.setState({
          advReloading: false
        });
      });
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this8 = this;

      // Build up the command list
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

      var _iterator12 = _createForOfIteratorHelper(general_attrs),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var attr = _step12.value;

          if (this.state['_' + attr] != this.state[attr]) {
            cmd.push(attr + "=" + this.state[attr]);
          }
        }
      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("saveConfig", "Applying server config change", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        // Continue with the next mod
        _this8.reloadConfig();

        _this8.props.addNotification("success", "Successfully updated server configuration.  These " + "changes require the server to be restarted to take effect.");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.reloadConfig();

        _this8.props.addNotification("error", "Error updating server configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      var _this9 = this;

      this.setState({
        configReloading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "Reload server configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        var listenhost = "";

        if ('nsslapd-listenhost' in attrs) {
          listenhost = attrs['nsslapd-listenhost'][0];
        }

        _this9.setState(function () {
          return {
            configReloading: false,
            configSaveDisabled: true,
            'nsslapd-port': attrs['nsslapd-port'][0],
            'nsslapd-secureport': attrs['nsslapd-secureport'][0],
            'nsslapd-localhost': attrs['nsslapd-localhost'][0],
            'nsslapd-listenhost': listenhost,
            'nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
            'nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
            'nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
            'nsslapd-certdir': attrs['nsslapd-certdir'][0],
            // Record original values
            '_nsslapd-port': attrs['nsslapd-port'][0],
            '_nsslapd-secureport': attrs['nsslapd-secureport'][0],
            '_nsslapd-localhost': attrs['nsslapd-localhost'][0],
            '_nsslapd-listenhost': listenhost,
            '_nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
            '_nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
            '_nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
            '_nsslapd-certdir': attrs['nsslapd-certdir'][0]
          };
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this9.props.addNotification("error", "Error reloading server configuration - ".concat(errMsg.desc));

        _this9.setState({
          configReloading: false
        });
      });
    }
  }, {
    key: "render",
    value: function render() {
      var body = "";
      var reloadSpinner = "";
      var diskMonitor = "";

      if (this.state['nsslapd-disk-monitoring']) {
        diskMonitor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          horizontal: true,
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The available disk space, in bytes, that will trigger the shutdown process. Default is 2mb. Once below half of the threshold then we enter the shutdown mode. (nsslapd-disk-monitoring-threshold)"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Disk Monitoring Threshold"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-disk-monitoring-threshold",
          type: "text",
          value: this.state['nsslapd-disk-monitoring-threshold'],
          onChange: this.handleDiskMonChange,
          className: this.state.errObjDiskMon.diskThreshold ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "How many minutes to wait to allow an admin to clean up disk space before shutting slapd down. The default is 60 minutes. (nsslapd-disk-monitoring-grace-period)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Disk Monitoring Grace Period"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-disk-monitoring-grace-period",
          type: "text",
          value: this.state['nsslapd-disk-monitoring-grace-period'],
          onChange: this.handleDiskMonChange,
          className: this.state.errObjDiskMon.diskGracePeriod ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "When disk space gets critically low do not remove logs to free up disk space (nsslapd-disk-monitoring-logging-critical)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Server Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-disk-monitoring-logging-critical",
          defaultChecked: this.state['nsslapd-disk-monitoring-logging-critical'],
          onChange: this.handleDiskMonChange
        }, "Preserve Logs Even If Disk Space Gets Low"))));
      }

      if (this.state.configReloading || this.state.rootDNReloading || this.state.diskMonReloading || this.state.advReloading) {
        reloadSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      if (this.state.loading) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading Server Settings ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      } else {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
          className: "ds-suffix-header ds-margin-top-lg ds-margin-left-sm"
        }, "Server Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh configuration settings",
          onClick: this.reloadConfig
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 8,
          className: "ds-margin-top-lg"
        }, reloadSpinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: this.state.loading ? 'ds-fadeout' : 'ds-fadein ds-margin-left'
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContainer"], {
          id: "server-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'General Settings'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Directory Manager'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Disk Monitoring'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["NavItem"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Advanced Settings'
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabContent"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The server's local hostname (nsslapd-localhost).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Server Hostname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-localhost",
          type: "text",
          value: this.state['nsslapd-localhost'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-localhost'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The server's port number (nsslapd-port).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "LDAP Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-port",
          type: "number",
          min: "0",
          max: "65535",
          value: this.state['nsslapd-port'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-port'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The server's secure port number (nsslapd-port).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "LDAPS Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-secureport",
          type: "number",
          min: "1",
          max: "65535",
          value: this.state['nsslapd-secureport'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-secureport'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "This parameter can be used to restrict the Directory Server instance to a single IP interface (hostname, or IP address).  Requires restart. (nsslapd-listenhost).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Listen Host Address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-listenhost",
          type: "text",
          value: this.state['nsslapd-listenhost'],
          onChange: this.handleConfigChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The location where database backups are stored (nsslapd-bakdir).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Database Backup Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-bakdir",
          type: "text",
          value: this.state['nsslapd-bakdir'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-bakdir'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The location where the server's LDIF files are located (nsslapd-ldifdir).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "LDIF File Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-ldifdir",
          type: "text",
          value: this.state['nsslapd-ldifdir'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-ldifdir'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The location for the servers custom schema files. (nsslapd-schemadir).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Schema Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-schemadir",
          type: "text",
          value: this.state['nsslapd-schemadir'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-schemadir'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The location of the server's certificates (nsslapd-certdir).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "TLS Certificate Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 6
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-certdir",
          type: "text",
          value: this.state['nsslapd-certdir'],
          onChange: this.handleConfigChange,
          className: this.state.errObjConfig['nsslapd-certdir'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.configSaveDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: this.saveConfig
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top-lg",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The DN of the unrestricted directory manager (nsslapd-rootdn).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Directory Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          disabled: true,
          type: "text",
          value: this.state['nsslapd-rootdn']
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The Directory Manager password (nsslapd-rootpw).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Directory Manager Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-rootpw",
          type: "password",
          value: this.state['nsslapd-rootpw'],
          onChange: this.handleRootDNChange,
          className: this.state.errObjRootDN['nsslapd-rootpw'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "The Directory Manager password (nsslapd-rootpw).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "confirmRootpw",
          type: "password",
          value: this.state.confirmRootpw,
          onChange: this.handleRootDNChange,
          className: this.state.errObjRootDN.confirmRootpw ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "Set the Directory Manager password storage scheme (nsslapd-rootpwstoragescheme).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 4
        }, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "nsslapd-rootpwstoragescheme",
          onChange: this.handleRootDNChange,
          value: this.state['nsslapd-rootpwstoragescheme']
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "PBKDF2_SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA384"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSHA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SMD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-MD5"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA512"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT-SHA256"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CRYPT"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "CLEAR")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          bsStyle: "primary",
          className: "ds-margin-top-med",
          disabled: this.state.rootDNSaveDisabled,
          onClick: this.saveRootDN
        }, "Save"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-left ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          title: "Enable disk space monitoring (nsslapd-disk-monitoring).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-disk-monitoring",
          checked: this.state['nsslapd-disk-monitoring'],
          onChange: this.handleDiskMonChange
        }, "Enable Disk Space Monitoring"))), diskMonitor, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.diskMonSaveDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-med",
          onClick: this.saveDiskMonitoring
        }, "Save")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TabPane"], {
          eventKey: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-top ds-margin-left",
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-schemacheck",
          defaultChecked: this.state['nsslapd-schemacheck'],
          onChange: this.handleAdvChange,
          title: "Enable schema checking (nsslapd-schemacheck)."
        }, "Enable Schema Checking")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-syntaxcheck",
          defaultChecked: this.state['nsslapd-syntaxcheck'],
          onChange: this.handleAdvChange,
          title: "Enable attribute syntax checking (nsslapd-syntaxcheck)."
        }, "Enable Attribute Syntax Checking"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-plugin-logging",
          defaultChecked: this.state['nsslapd-plugin-logging'],
          onChange: this.handleAdvChange,
          title: "Enable plugins to log access and audit events.  (nsslapd-plugin-logging)."
        }, "Enable Plugin Logging")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-syntaxlogging",
          defaultChecked: this.state['nsslapd-syntaxlogging'],
          onChange: this.handleAdvChange,
          title: "Enable syntax logging (nsslapd-syntaxlogging)."
        }, "Enable Attribute Syntax Logging"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-plugin-binddn-tracking",
          defaultChecked: this.state['nsslapd-plugin-binddn-tracking'],
          onChange: this.handleAdvChange,
          title: "Enabling this feature will write new operational attributes to the modified entry: internalModifiersname & internalCreatorsname. These new attributes contain the plugin DN, while modifiersname will be the original binding entry that triggered the update. (nsslapd-plugin-binddn-tracking)."
        }, "Enable Plugin Bind DN Tracking")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-attribute-name-exceptions",
          defaultChecked: this.state['nsslapd-attribute-name-exceptions'],
          onChange: this.handleAdvChange,
          title: "Allows non-standard characters in attribute names to be used for backwards compatibility with older servers (nsslapd-attribute-name-exceptions)."
        }, "Allow Attribute Naming Exceptions"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-dn-validate-strict",
          defaultChecked: this.state['nsslapd-dn-validate-strict'],
          onChange: this.handleAdvChange,
          title: "Enables strict syntax validation for DNs, according to section 3 in RFC 4514 (nsslapd-dn-validate-strict)."
        }, "Strict DN Syntax Validation")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-entryusn-global",
          defaultChecked: this.state['nsslapd-entryusn-global'],
          onChange: this.handleAdvChange,
          title: "For USN plugin - maintain unique USNs across all back end databases (nsslapd-entryusn-global)."
        }, "Maintain Unique USNs Across All Backends"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-ignore-time-skew",
          defaultChecked: this.state['nsslapd-ignore-time-skew'],
          onChange: this.handleAdvChange,
          title: "Ignore replication time skew when acquiring a replica to start a replciation session (nsslapd-ignore-time-skew)."
        }, "Ignore CSN Time Skew")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 5
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Checkbox"], {
          id: "nsslapd-readonly",
          defaultChecked: this.state['nsslapd-readonly'],
          onChange: this.handleAdvChange,
          title: "Make entire server read-only (nsslapd-readonly)"
        }, "Server Read-Only")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Form"], {
          className: "ds-margin-left"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top-xlg",
          title: "Allow anonymous binds to the server (nsslapd-allow-anonymous-access)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Allow Anonymous Access"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
          className: "btn btn-default dropdown",
          id: "nsslapd-allow-anonymous-access",
          onChange: this.handleAdvChange,
          value: this.state['nsslapd-allow-anonymous-access']
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "on"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "off"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
          title: "Allows anonymous search and read access to search the root DSE itself, but restricts access to all other directory entries. "
        }, "rootdse")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], {
          className: "ds-margin-top",
          title: "The DN of a template entry containing the resource limits to apply to anonymous connections (nsslapd-anonlimitsdn)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"],
          sm: 5
        }, "Anonymous Resource Limits DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["FormControl"], {
          id: "nsslapd-anonlimitsdn",
          type: "text",
          value: this.state['nsslapd-anonlimitsdn'],
          onChange: this.handleAdvChange,
          className: this.state.errObjAdv.anonLimitsDN ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Button"], {
          disabled: this.state.advSaveDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg",
          onClick: this.saveAdvanced
        }, "Save"))))))));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "server-settings-page"
      }, body);
    }
  }]);

  return ServerSettings;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerSettings.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.object
};
ServerSettings.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/tuning.jsx":
/*!***********************************!*\
  !*** ./src/lib/server/tuning.jsx ***!
  \***********************************/
/*! exports provided: ServerTuning */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerTuning", function() { return ServerTuning; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../customCollapse.jsx */ "./src/lib/customCollapse.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }







var tuning_attrs = ['nsslapd-ndn-cache-enabled', 'nsslapd-ignore-virtual-attrs', 'nsslapd-connection-nocanon', 'nsslapd-enable-turbo-mode', 'nsslapd-threadnumber', 'nsslapd-maxdescriptors', 'nsslapd-timelimit', 'nsslapd-sizelimit', 'nsslapd-pagedsizelimit', 'nsslapd-idletimeout', 'nsslapd-ioblocktimeout', 'nsslapd-outbound-ldap-io-timeout', 'nsslapd-maxbersize', 'nsslapd-maxsasliosize', 'nsslapd-listen-backlog-size', 'nsslapd-max-filter-nest-level', 'nsslapd-ndn-cache-max-size'];
var ServerTuning = /*#__PURE__*/function (_React$Component) {
  _inherits(ServerTuning, _React$Component);

  var _super = _createSuper(ServerTuning);

  function ServerTuning(props) {
    var _this;

    _classCallCheck(this, ServerTuning);

    _this = _super.call(this, props);
    _this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveDisabled: true,
      errObj: {},
      attrs: _this.props.attrs
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.loadConfig = _this.loadConfig.bind(_assertThisInitialized(_this));
    _this.saveConfig = _this.saveConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(ServerTuning, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (!this.state.loaded) {
        this.loadConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var attr = e.target.id;
      var disableSaveBtn = true;
      var valueErr = false;
      var errObj = this.state.errObj; // Check if a setting was changed, if so enable the save button

      var _iterator = _createForOfIteratorHelper(tuning_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var tuning_attr = _step.value;

          if (attr == tuning_attr && this.state['_' + tuning_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(tuning_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _tuning_attr = _step2.value;

          if (attr != _tuning_attr && this.state['_' + _tuning_attr] != this.state[_tuning_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      if (value == "" && e.target.type !== 'checkbox') {
        valueErr = true;
        disableSaveBtn = true;
      }

      errObj[attr] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, attr, value), _defineProperty(_this$setState, "saveDisabled", disableSaveBtn), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "loadConfig",
    value: function loadConfig(reloading) {
      if (reloading) {
        this.setState({
          loading: true
        });
      }

      var attrs = this.state.attrs;
      var ndnEnabled = false;
      var ignoreVirtAttrs = false;
      var connNoCannon = false;
      var turboMode = false;

      if (attrs['nsslapd-ndn-cache-enabled'][0] == "on") {
        ndnEnabled = true;
      }

      if (attrs['nsslapd-ignore-virtual-attrs'][0] == "on") {
        ignoreVirtAttrs = true;
      }

      if (attrs['nsslapd-connection-nocanon'][0] == "on") {
        connNoCannon = true;
      }

      if (attrs['nsslapd-enable-turbo-mode'][0] == "on") {
        turboMode = true;
      }

      this.setState({
        loaded: true,
        loading: false,
        // Settings
        'nsslapd-ndn-cache-enabled': ndnEnabled,
        'nsslapd-ignore-virtual-attrs': ignoreVirtAttrs,
        'nsslapd-connection-nocanon': connNoCannon,
        'nsslapd-enable-turbo-mode': turboMode,
        'nsslapd-threadnumber': attrs['nsslapd-threadnumber'][0],
        'nsslapd-maxdescriptors': attrs['nsslapd-maxdescriptors'][0],
        'nsslapd-timelimit': attrs['nsslapd-timelimit'][0],
        'nsslapd-sizelimit': attrs['nsslapd-sizelimit'][0],
        'nsslapd-pagedsizelimit': attrs['nsslapd-pagedsizelimit'][0],
        'nsslapd-idletimeout': attrs['nsslapd-idletimeout'][0],
        'nsslapd-ioblocktimeout': attrs['nsslapd-ioblocktimeout'][0],
        'nsslapd-outbound-ldap-io-timeout': attrs['nsslapd-outbound-ldap-io-timeout'][0],
        'nsslapd-maxbersize': attrs['nsslapd-maxbersize'][0],
        'nsslapd-maxsasliosize': attrs['nsslapd-maxsasliosize'][0],
        'nsslapd-listen-backlog-size': attrs['nsslapd-listen-backlog-size'][0],
        'nsslapd-max-filter-nest-level': attrs['nsslapd-max-filter-nest-level'][0],
        'nsslapd-ndn-cache-max-size': attrs['nsslapd-ndn-cache-max-size'][0],
        // Record original values
        '_nsslapd-ndn-cache-enabled': ndnEnabled,
        '_nsslapd-ignore-virtual-attrs': ignoreVirtAttrs,
        '_nsslapd-connection-nocanon': connNoCannon,
        '_nsslapd-enable-turbo-mode': turboMode,
        '_nsslapd-threadnumber': attrs['nsslapd-threadnumber'][0],
        '_nsslapd-maxdescriptors': attrs['nsslapd-maxdescriptors'][0],
        '_nsslapd-timelimit': attrs['nsslapd-timelimit'][0],
        '_nsslapd-sizelimit': attrs['nsslapd-sizelimit'][0],
        '_nsslapd-pagedsizelimit': attrs['nsslapd-pagedsizelimit'][0],
        '_nsslapd-idletimeout': attrs['nsslapd-idletimeout'][0],
        '_nsslapd-ioblocktimeout': attrs['nsslapd-ioblocktimeout'][0],
        '_nsslapd-outbound-ldap-io-timeout': attrs['nsslapd-outbound-ldap-io-timeout'][0],
        '_nsslapd-maxbersize': attrs['nsslapd-maxbersize'][0],
        '_nsslapd-maxsasliosize': attrs['nsslapd-maxsasliosize'][0],
        '_nsslapd-listen-backlog-size': attrs['nsslapd-listen-backlog-size'][0],
        '_nsslapd-max-filter-nest-level': attrs['nsslapd-max-filter-nest-level'][0],
        '_nsslapd-ndn-cache-max-size': attrs['nsslapd-ndn-cache-max-size'][0]
      }, this.props.enableTree());
    }
  }, {
    key: "saveConfig",
    value: function saveConfig() {
      var _this2 = this;

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

      var _iterator3 = _createForOfIteratorHelper(tuning_attrs),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var attr = _step3.value;

          if (this.state['_' + attr] != this.state[attr]) {
            var val = this.state[attr];

            if (typeof val === "boolean") {
              if (val) {
                val = "on";
              } else {
                val = "off";
              }
            }

            cmd.push(attr + "=" + val);
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      Object(_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("saveConfig", "Saving Tuning configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        "err": "message"
      }).done(function (content) {
        _this2.loadConfig(1);

        _this2.props.addNotification("success", "Successfully updated Advanced configuration");
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.loadConfig(1);

        _this2.props.addNotification("error", "Error updating Advanced configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var reloadSpinner = "";
      var body = "";

      if (this.state.loading) {
        reloadSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          loading: true,
          size: "md"
        });
      }

      if (!this.state.loaded) {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-margin-top ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading tuning configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
          className: "ds-margin-top",
          loading: true,
          size: "md"
        }));
      } else {
        body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"], {
          className: "ds-suffix-header ds-margin-top-lg ds-margin-left-sm"
        }, "Tuning & Limits", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh tuning settings",
          onClick: function onClick() {
            _this3.loadConfig(1);
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 8,
          className: "ds-margin-top-lg"
        }, reloadSpinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The number of worker threads that handle database operations (nsslapd-threadnumber).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Number Of Worker Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-threadnumber",
          type: "number",
          min: "-1",
          max: "1048576",
          value: this.state['nsslapd-threadnumber'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-threadnumber'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The maximum number of file descriptors the server will use (nsslapd-maxdescriptors).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Maximum File Descriptors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-maxdescriptors",
          type: "number",
          min: "1024",
          max: "1048576",
          value: this.state['nsslapd-maxdescriptors'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-maxdescriptors'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The maximum number of seconds allocated for a search request (nsslapd-timelimit).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Search Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-timelimit",
          type: "number",
          min: "-1",
          max: "2147483647",
          value: this.state['nsslapd-timelimit'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-timelimit'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The maximum number of entries to return from a search operation (nsslapd-sizelimit).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Search Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-sizelimit",
          type: "number",
          min: "-1",
          max: "2147483647",
          value: this.state['nsslapd-sizelimit'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-sizelimit'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "The maximum number of entries to return from a paged search operation (nsslapd-pagedsizelimit).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Paged Search Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-pagedsizelimit",
          type: "number",
          min: "-1",
          max: "2147483647",
          value: this.state['nsslapd-pagedsizelimit'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-pagedsizelimit'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "Sets the amount of time in seconds after which an idle LDAP client connection is closed by the server (nsslapd-idletimeout).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Idle Connection Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-idletimeout",
          type: "number",
          min: "0",
          max: "2147483647",
          value: this.state['nsslapd-idletimeout'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-idletimeout'] ? "ds-input-bad" : ""
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          title: "Sets the amount of time in milliseconds after which the connection to a stalled LDAP client is closed (nsslapd-ioblocktimeout).",
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "I/O Block Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-ioblocktimeout",
          type: "number",
          min: "0",
          max: "2147483647",
          value: this.state['nsslapd-ioblocktimeout'],
          onChange: this.handleChange,
          className: this.state.errObj['nsslapd-ioblocktimeout'] ? "ds-input-bad" : ""
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_customCollapse_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
          className: "ds-margin-left-sm ds-margin-right"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Form"], {
          horizontal: true
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top",
          title: "Sets the I/O wait time for all outbound LDAP connections (nsslapd-outbound-ldap-io-timeout)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Outbound IO Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          type: "number",
          min: "0",
          max: "2147483647",
          id: "nsslapd-outbound-ldap-io-timeout",
          value: this.state['nsslapd-outbound-ldap-io-timeout'],
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top",
          title: "The maximum size in bytes allowed for an incoming message (nsslapd-maxbersize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Maximum BER Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          type: "number",
          min: "1",
          max: "2147483647",
          id: "nsslapd-maxbersize",
          value: this.state['nsslapd-maxbersize'],
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top",
          title: "The maximum allowed SASL IO packet size that the server will accept (nsslapd-maxsasliosize)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Maximum SASL IO Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          type: "number",
          min: "-1",
          max: "2147483647",
          id: "nsslapd-maxsasliosize",
          value: this.state['nsslapd-maxsasliosize'],
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top",
          title: "The maximum length for how long the connection queue for the socket can grow before refusing connections (nsslapd-listen-backlog-size)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Listen Backlog Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          type: "number",
          min: "64",
          id: "nsslapd-listen-backlog-size",
          value: this.state['nsslapd-listen-backlog-size'],
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top",
          title: "Sets how deep a nested search filter is analysed (nsslapd-max-filter-nest-level)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4
        }, "Maximum Nested Filter Level"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          type: "number",
          min: "0",
          id: "nsslapd-max-filter-nest-level",
          value: this.state['nsslapd-max-filter-nest-level'],
          onChange: this.handleChange
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top-xlg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          sm: 4,
          title: "Enable the normalized DN cache.  Each thread has its own cache (nsslapd-ndn-cache-enabled)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
          checked: this.state['nsslapd-ndn-cache-enabled'],
          id: "nsslapd-ndn-cache-enabled",
          onChange: this.handleChange
        }, "Enable Normalized DN Cache")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["FormControl"], {
          id: "nsslapd-ndn-cache-max-size",
          type: "number",
          min: "1048576",
          max: "2147483647",
          className: "ds-input-right",
          value: this.state['nsslapd-ndn-cache-max-size'],
          onChange: this.handleChange,
          title: "Per thread NDN cache size in bytes (nsslapd-ndn-cache-max-size)."
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-inline ds-left-margin ds-lower-field"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("font", {
          size: "2"
        }, "bytes")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4,
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          title: "Disable DNS reverse entries for outgoing connections (nsslapd-connection-nocanon)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
          id: "nsslapd-connection-nocanon",
          defaultChecked: this.state['nsslapd-connection-nocanon'],
          onChange: this.handleChange
        }, "Disable Reverse DNS Lookups"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4,
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          title: "Sets the worker threads to continuously read a connection without passing it back to the polling mechanism. (nsslapd-enable-turbo-mode)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
          id: "nsslapd-enable-turbo-mode",
          defaultChecked: this.state['nsslapd-enable-turbo-mode'],
          onChange: this.handleChange
        }, "Enable Connection Turbo Mode"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
          sm: 4,
          componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["ControlLabel"],
          title: "Disable the virtual attribute lookup in a search entry (nsslapd-ignore-virtual-attrs)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Checkbox"], {
          id: "nsslapd-ignore-virtual-attrs",
          defaultChecked: this.state['nsslapd-ignore-virtual-attrs'],
          onChange: this.handleChange
        }, "Disable Virtual Attribute Lookups")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Button"], {
          disabled: this.state.saveDisabled,
          bsStyle: "primary",
          className: "ds-margin-top-lg ds-margin-left",
          onClick: this.saveConfig
        }, "Save"));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        id: "tuning-content"
      }, body);
    }
  }]);

  return ServerTuning;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

ServerTuning.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.string,
  attrs: prop_types__WEBPACK_IMPORTED_MODULE_5___default.a.object
};
ServerTuning.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/tools.jsx":
/*!***************************!*\
  !*** ./src/lib/tools.jsx ***!
  \***************************/
/*! exports provided: searchFilter, log_cmd, get_date_string, get_date_diff, bad_file_name, valid_port, valid_dn */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "searchFilter", function() { return searchFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log_cmd", function() { return log_cmd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get_date_string", function() { return get_date_string; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get_date_diff", function() { return get_date_diff; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bad_file_name", function() { return bad_file_name; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valid_port", function() { return valid_port; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "valid_dn", function() { return valid_dn; });
function searchFilter(searchFilterValue, columnsToSearch, rows) {
  if (searchFilterValue && rows && rows.length) {
    var filteredRows = [];
    rows.forEach(function (row) {
      var rowToSearch = [];

      if (columnsToSearch && columnsToSearch.length) {
        columnsToSearch.forEach(function (column) {
          if (column in row) {
            if (row[column] != null) {
              rowToSearch.push(row[column]);
            }
          }
        });
      } else {
        rowToSearch = row;
      }

      var match = Object.values(rowToSearch).some(function (value) {
        return value.join().toLowerCase().includes(searchFilterValue.toLowerCase());
      });

      if (match) {
        filteredRows.push(row);
      }
    });
    return filteredRows;
  }

  return rows;
}
function log_cmd(js_func, desc, cmd_array) {
  if (console) {
    var pw_args = ["--passwd", "--bind-pw", "--nsslapd-rootpw"];
    var cmd_list = [];
    var converted_pw = false;

    for (var idx in cmd_array) {
      var cmd = cmd_array[idx];
      converted_pw = false;

      for (var arg_idx in pw_args) {
        if (cmd.startsWith(pw_args[arg_idx])) {
          // We are setting a password, if it has a value we need to hide it
          var arg_len = cmd.indexOf("=");
          var arg = cmd.substring(0, arg_len);

          if (cmd.length != arg_len + 1) {
            // We are setting a password value...
            cmd_list.push(arg + "=**********");
            converted_pw = true;
          }

          break;
        }
      }

      if (!converted_pw) {
        cmd_list.push(cmd);
      }
    }

    console.log("CMD: " + js_func + ": " + desc + " ==> " + cmd_list.join(" "));
  }
} // Convert DS timestamp to a friendly string: 20180921142257Z -> 10/21/2018, 2:22:57 PM

function get_date_string(timestamp) {
  var year = timestamp.substr(0, 4);
  var month = timestamp.substr(4, 2);
  var day = timestamp.substr(6, 2);
  var hour = timestamp.substr(8, 2);
  var minute = timestamp.substr(10, 2);
  var sec = timestamp.substr(12, 2);
  var date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec));
  return date.toLocaleString();
} // Take two directory server tiemstamps and get the elapsed time

function get_date_diff(start, end) {
  // Get the server's start up date
  var year = start.substr(0, 4);
  var month = start.substr(4, 2);
  var day = start.substr(6, 2);
  var hour = start.substr(8, 2);
  var minute = start.substr(10, 2);
  var sec = start.substr(12, 2);
  var startDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Get the servers current date

  year = end.substr(0, 4);
  month = end.substr(4, 2);
  day = end.substr(6, 2);
  hour = end.substr(8, 2);
  minute = end.substr(10, 2);
  sec = end.substr(12, 2);
  var currDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Generate pretty elapsed time string

  var seconds = Math.floor((currDate - startDate) / 1000);
  var minutes = Math.floor(seconds / 60);
  var hours = Math.floor(minutes / 60);
  var days = Math.floor(hours / 24);
  hours = hours - days * 24;
  minutes = minutes - days * 24 * 60 - hours * 60;
  seconds = seconds - days * 24 * 60 * 60 - hours * 60 * 60 - minutes * 60;
  return "".concat(days, " days, ").concat(hours, " hours, ").concat(minutes, " minutes, and ").concat(seconds, " seconds");
}
function bad_file_name(file_name) {
  // file_name must be a string, and not a location/directory
  if (file_name.includes("/")) {
    return true;
  }

  return false;
}
function valid_port(val) {
  // Validate value is a number and between 1 and 65535
  var result = !isNaN(val);

  if (result) {
    if (val < 1 || val > 65535) {
      result = false;
    }
  }

  return result;
}
function valid_dn(dn) {
  // Validate value is a valid DN (sanity validation)
  if (dn.endsWith(",")) {
    return false;
  }

  var dn_regex = new RegExp("^([A-Za-z])+=\\S.*");
  var result = dn_regex.test(dn);
  return result;
}

/***/ }),

/***/ "./src/monitor.jsx":
/*!*************************!*\
  !*** ./src/monitor.jsx ***!
  \*************************/
/*! exports provided: Monitor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Monitor", function() { return Monitor; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _lib_monitor_snmpMonitor_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/monitor/snmpMonitor.jsx */ "./src/lib/monitor/snmpMonitor.jsx");
/* harmony import */ var _lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/monitor/serverMonitor.jsx */ "./src/lib/monitor/serverMonitor.jsx");
/* harmony import */ var _lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/monitor/dbMonitor.jsx */ "./src/lib/monitor/dbMonitor.jsx");
/* harmony import */ var _lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/monitor/suffixMonitor.jsx */ "./src/lib/monitor/suffixMonitor.jsx");
/* harmony import */ var _lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/monitor/chainingMonitor.jsx */ "./src/lib/monitor/chainingMonitor.jsx");
/* harmony import */ var _lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/monitor/accesslog.jsx */ "./src/lib/monitor/accesslog.jsx");
/* harmony import */ var _lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/monitor/auditlog.jsx */ "./src/lib/monitor/auditlog.jsx");
/* harmony import */ var _lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/monitor/auditfaillog.jsx */ "./src/lib/monitor/auditfaillog.jsx");
/* harmony import */ var _lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/monitor/errorlog.jsx */ "./src/lib/monitor/errorlog.jsx");
/* harmony import */ var _lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/monitor/replMonitor.jsx */ "./src/lib/monitor/replMonitor.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
















var treeViewContainerStyles = {
  width: '295px'
};
var Monitor = /*#__PURE__*/function (_React$Component) {
  _inherits(Monitor, _React$Component);

  var _super = _createSuper(Monitor);

  function Monitor(props) {
    var _this;

    _classCallCheck(this, Monitor);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      nodes: [],
      node_name: "",
      node_text: "",
      node_type: "",
      loaded: false,
      snmpData: {},
      ldbmData: {},
      serverData: {},
      disks: [],
      loadingMsg: "",
      disableTree: false,
      // Suffix
      suffixLoading: false,
      serverLoading: false,
      ldbmLoading: false,
      snmpLoading: false,
      chainingLoading: false,
      // replication
      replLoading: false,
      replInitLoaded: false,
      replSuffix: "",
      replRole: "",
      replRid: "",
      replicatedSuffixes: [],
      // Access log
      accesslogLocation: "",
      accesslogData: "",
      accessReloading: false,
      accesslog_cont_refresh: "",
      accessRefreshing: false,
      accessLines: "50",
      // Audit log
      auditlogLocation: "",
      auditlogData: "",
      auditReloading: false,
      auditlog_cont_refresh: "",
      auditRefreshing: false,
      auditLines: "50",
      // Audit Fail log
      auditfaillogLocation: "",
      auditfaillogData: "",
      auditfailReloading: false,
      auditfaillog_cont_refresh: "",
      auditfailRefreshing: false,
      auditfailLines: "50",
      // Error log
      errorlogLocation: "",
      errorlogData: "",
      errorReloading: false,
      errorlog_cont_refresh: "",
      errorRefreshing: false,
      errorSevLevel: "Everything",
      errorLines: "50"
    }; // Build the log severity sev_levels

    var sev_emerg = " - EMERG - ";
    var sev_crit = " - CRIT - ";
    var sev_alert = " - ALERT - ";
    var sev_err = " - ERR - ";
    var sev_warn = " - WARN - ";
    var sev_notice = " - NOTICE - ";
    var sev_info = " - INFO - ";
    var sev_debug = " - DEBUG - ";
    _this.sev_levels = {
      "Emergency": sev_emerg,
      "Critical": sev_crit,
      "Alert": sev_alert,
      "Error": sev_err,
      "Warning": sev_warn,
      "Notice": sev_notice,
      "Info": sev_info,
      "Debug": sev_debug
    };
    _this.sev_all_errs = [sev_emerg, sev_crit, sev_alert, sev_err];
    _this.sev_all_info = [sev_warn, sev_notice, sev_info, sev_debug]; // Bindings

    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_this));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_this));
    _this.update_tree_nodes = _this.update_tree_nodes.bind(_assertThisInitialized(_this));
    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_this));
    _this.loadMonitorSuffix = _this.loadMonitorSuffix.bind(_assertThisInitialized(_this));
    _this.disableSuffixLoading = _this.disableSuffixLoading.bind(_assertThisInitialized(_this));
    _this.loadMonitorLDBM = _this.loadMonitorLDBM.bind(_assertThisInitialized(_this));
    _this.reloadLDBM = _this.reloadLDBM.bind(_assertThisInitialized(_this));
    _this.loadMonitorSNMP = _this.loadMonitorSNMP.bind(_assertThisInitialized(_this));
    _this.reloadSNMP = _this.reloadSNMP.bind(_assertThisInitialized(_this));
    _this.loadMonitorServer = _this.loadMonitorServer.bind(_assertThisInitialized(_this));
    _this.reloadServer = _this.reloadServer.bind(_assertThisInitialized(_this));
    _this.loadMonitorChaining = _this.loadMonitorChaining.bind(_assertThisInitialized(_this));
    _this.loadDiskSpace = _this.loadDiskSpace.bind(_assertThisInitialized(_this));
    _this.reloadDisks = _this.reloadDisks.bind(_assertThisInitialized(_this)); // Replication

    _this.loadMonitorReplication = _this.loadMonitorReplication.bind(_assertThisInitialized(_this));
    _this.loadCleanTasks = _this.loadCleanTasks.bind(_assertThisInitialized(_this));
    _this.loadAbortTasks = _this.loadAbortTasks.bind(_assertThisInitialized(_this));
    _this.loadReplicatedSuffixes = _this.loadReplicatedSuffixes.bind(_assertThisInitialized(_this));
    _this.loadWinsyncAgmts = _this.loadWinsyncAgmts.bind(_assertThisInitialized(_this));
    _this.replSuffixChange = _this.replSuffixChange.bind(_assertThisInitialized(_this));
    _this.reloadReplAgmts = _this.reloadReplAgmts.bind(_assertThisInitialized(_this));
    _this.reloadReplWinsyncAgmts = _this.reloadReplWinsyncAgmts.bind(_assertThisInitialized(_this));
    _this.loadConflicts = _this.loadConflicts.bind(_assertThisInitialized(_this));
    _this.loadGlues = _this.loadGlues.bind(_assertThisInitialized(_this)); // Logging

    _this.loadMonitor = _this.loadMonitor.bind(_assertThisInitialized(_this));
    _this.refreshAccessLog = _this.refreshAccessLog.bind(_assertThisInitialized(_this));
    _this.refreshAuditLog = _this.refreshAuditLog.bind(_assertThisInitialized(_this));
    _this.refreshAuditFailLog = _this.refreshAuditFailLog.bind(_assertThisInitialized(_this));
    _this.refreshErrorLog = _this.refreshErrorLog.bind(_assertThisInitialized(_this));
    _this.handleAccessChange = _this.handleAccessChange.bind(_assertThisInitialized(_this));
    _this.handleAuditChange = _this.handleAuditChange.bind(_assertThisInitialized(_this));
    _this.handleAuditFailChange = _this.handleAuditFailChange.bind(_assertThisInitialized(_this));
    _this.handleErrorChange = _this.handleErrorChange.bind(_assertThisInitialized(_this));
    _this.accessRefreshCont = _this.accessRefreshCont.bind(_assertThisInitialized(_this));
    _this.auditRefreshCont = _this.auditRefreshCont.bind(_assertThisInitialized(_this));
    _this.auditFailRefreshCont = _this.auditFailRefreshCont.bind(_assertThisInitialized(_this));
    _this.errorRefreshCont = _this.errorRefreshCont.bind(_assertThisInitialized(_this));
    _this.handleSevChange = _this.handleSevChange.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Monitor, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.wasActiveList.includes(6)) {
        if (this.state.firstLoad) {
          this.loadMonitor();
        } else {
          if (this.props.serverId !== prevProps.serverId) {
            this.loadSuffixTree(false);
          }
        }
      }
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("getTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = JSON.parse(content);
        var basicData = [{
          text: "Database",
          selectable: true,
          selected: true,
          icon: "fa fa-database",
          state: {
            "expanded": true
          },
          id: "database-monitor",
          type: "database",
          nodes: []
        }, {
          text: "Logging",
          icon: "pficon-catalog",
          selectable: false,
          id: "log-monitor",
          state: {
            "expanded": true
          },
          nodes: [{
            text: "Access Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "access-log-monitor",
            type: "log"
          }, {
            text: "Audit Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "audit-log-monitor",
            type: "log"
          }, {
            text: "Audit Failure Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "auditfail-log-monitor",
            type: "log"
          }, {
            text: "Errors Log",
            icon: "glyphicon glyphicon-book",
            selectable: true,
            id: "error-log-monitor",
            type: "log"
          }]
        }, {
          text: "Replication",
          selectable: true,
          icon: "pficon-topology",
          id: "replication-monitor",
          type: "replication"
        }, {
          text: "Server Statistics",
          icon: "pficon-server",
          selectable: true,
          id: "server-monitor",
          type: "server"
        }, {
          text: "SNMP Counters",
          icon: "glyphicon glyphicon-list-alt",
          selectable: true,
          id: "snmp-monitor",
          type: "snmp"
        }];
        var current_node = _this2.state.node_name;
        var type = _this2.state.node_type;

        if (fullReset) {
          current_node = "database-monitor";
          type = "database";
        }

        basicData[0].nodes = treeData;

        _this2.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node,
            node_type: type
          };
        }, _this2.update_tree_nodes);
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this3 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "database-monitor" || selectedNode.id == "server-monitor" || selectedNode.id == "snmp-monitor") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            bename: ""
          };
        });
      } else if (selectedNode.id == "access-log-monitor") {
        this.refreshAccessLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "audit-log-monitor") {
        this.refreshAuditLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "auditfail-log-monitor") {
        this.refreshAuditFailLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "error-log-monitor") {
        this.refreshErrorLog();
        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else if (selectedNode.id == "replication-monitor") {
        if (!this.state.replInitLoaded) {
          this.loadMonitorReplication();
        }

        this.setState(function (prevState) {
          return {
            nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text
          };
        });
      } else {
        if (selectedNode.id in this.state && ("chainingData" in this.state[selectedNode.id] || "suffixData" in this.state[selectedNode.id])) {
          // This suffix is already cached
          this.setState(function (prevState) {
            return {
              nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              bename: selectedNode.be
            };
          });
        } else {
          // Load this suffix (db, chaining & replication)
          if (selectedNode.type == "dblink") {
            // Chaining
            this.loadMonitorChaining(selectedNode.id);
          } else {
            // Suffix
            this.loadMonitorSuffix(selectedNode.id);
          }

          this.setState(function (prevState) {
            return {
              nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              bename: selectedNode.be
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this4 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread(_objectSpread({}, node), {}, {
            nodes: _this4.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div
      var elements = document.getElementsByClassName('treeitem-row');

      var _iterator = _createForOfIteratorHelper(elements),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var el = _step.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        loaded: true
      });
    }
  }, {
    key: "loadMonitor",
    value: function loadMonitor() {
      var _this5 = this;

      // Load the following componets in a chained fashion:
      //  - log file locations
      //  - LDBM
      //  - Server stats
      //  - SNMP
      //  - Finally load the "tree"
      //
      if (this.state.firstLoad) {
        this.setState({
          firstLoad: false
        });
      }

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-auditlog", "nsslapd-accesslog", "nsslapd-errorlog", "nsslapd-auditfaillog"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadLogLocations", "Get log locations", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this5.setState({
          accesslogLocation: config.attrs['nsslapd-accesslog'][0],
          auditlogLocation: config.attrs['nsslapd-auditlog'][0],
          auditfaillogLocation: config.attrs['nsslapd-auditfaillog'][0],
          errorlogLocation: config.attrs['nsslapd-errorlog'][0]
        });
      }, this.loadReplicatedSuffixes());
    }
  }, {
    key: "loadReplicatedSuffixes",
    value: function loadReplicatedSuffixes() {
      var _this6 = this;

      // Load replicated suffix to populate the dropdown select list
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReplicatedSuffixes", "Load replication suffixes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var replSuffix = "";

        if (config.items.length > 0) {
          replSuffix = config.items[0];
        }

        _this6.setState({
          replicatedSuffixes: config.items,
          replSuffix: replSuffix
        });
      }, this.loadDiskSpace());
    }
  }, {
    key: "loadMonitorLDBM",
    value: function loadMonitorLDBM() {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorLDBM", "Load database monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this7.setState({
          ldbmData: config.attrs
        });
      }, this.loadMonitorServer());
    }
  }, {
    key: "reloadLDBM",
    value: function reloadLDBM() {
      var _this8 = this;

      this.setState({
        ldbmLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadLDBM", "Load database monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this8.setState({
          ldbmLoading: false,
          ldbmData: config.attrs
        });
      });
    }
  }, {
    key: "loadMonitorServer",
    value: function loadMonitorServer() {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorServer", "Load server monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this9.setState({
          serverData: config.attrs
        });
      }, this.loadMonitorSNMP());
    }
  }, {
    key: "reloadServer",
    value: function reloadServer() {
      var _this10 = this;

      this.setState({
        serverLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadServer", "Load server monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this10.setState({
          serverLoading: false,
          serverData: config.attrs
        }, _this10.reloadDisks());
      });
    }
  }, {
    key: "loadMonitorSNMP",
    value: function loadMonitorSNMP() {
      var _this11 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorSNMP", "Load snmp monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this11.setState({
          snmpData: config.attrs
        }, _this11.loadSuffixTree(true));
      });
    }
  }, {
    key: "loadDiskSpace",
    value: function loadDiskSpace() {
      var _this12 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadDiskSpace", "Load disk space info", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var disks = JSON.parse(content);

        var _iterator2 = _createForOfIteratorHelper(disks.items),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var disk = _step2.value;
            disk.used = disk.used + " (" + disk.percent + "%)";
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        _this12.setState({
          disks: disks.items
        });
      }, this.loadMonitorLDBM());
    }
  }, {
    key: "reloadDisks",
    value: function reloadDisks() {
      var _this13 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadDisks", "Reload disk stats", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var disks = JSON.parse(content);

        var _iterator3 = _createForOfIteratorHelper(disks.items),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var disk = _step3.value;
            disk.used = disk.used + " (" + disk.percent + "%)";
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this13.setState({
          disks: disks.items
        });
      });
    }
  }, {
    key: "reloadSNMP",
    value: function reloadSNMP() {
      var _this14 = this;

      this.setState({
        snmpLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadSNMP", "Load snmp monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this14.setState({
          snmpLoading: false,
          snmpData: config.attrs
        });
      });
    }
  }, {
    key: "loadMonitorChaining",
    value: function loadMonitorChaining(suffix) {
      var _this15 = this;

      this.setState({
        chainingLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "chaining", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorChaining", "Load suffix monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this15$setState;

        var config = JSON.parse(content);

        _this15.setState((_this15$setState = {}, _defineProperty(_this15$setState, suffix, _objectSpread(_objectSpread({}, _this15.state[suffix]), {}, {
          chainingData: config.attrs
        })), _defineProperty(_this15$setState, "chainingLoading", false), _this15$setState));
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this15.setState({
          chainingLoading: false
        });
      });
    }
  }, {
    key: "disableSuffixLoading",
    value: function disableSuffixLoading() {
      this.setState({
        suffixLoading: false
      });
    }
  }, {
    key: "loadMonitorSuffix",
    value: function loadMonitorSuffix(suffix) {
      var _this16 = this;

      this.setState({
        suffixLoading: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "backend", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorSuffix", "Load suffix monitor", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this16.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this16.state[suffix]), {}, {
          suffixData: config.attrs
        })), _this16.disableSuffixLoading);
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this16.setState({
          suffixLoading: false
        });
      });
    }
  }, {
    key: "loadCleanTasks",
    value: function loadCleanTasks() {
      var _this17 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-cleanruv-tasks", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadCleanTasks", "Load clean tasks", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this17.setState(_defineProperty({}, _this17.state.replSuffix, _objectSpread(_objectSpread({}, _this17.state[_this17.state.replSuffix]), {}, {
          cleanTasks: config.items
        })), _this17.loadAbortTasks());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this17.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadAbortTasks",
    value: function loadAbortTasks() {
      var _this18 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-abortruv-tasks", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadAbortCleanTasks", "Load abort tasks", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this18.setState(_defineProperty({}, _this18.state.replSuffix, _objectSpread(_objectSpread({}, _this18.state[_this18.state.replSuffix]), {}, {
          abortTasks: config.items
        })), _this18.loadConflicts());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this18.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadConflicts",
    value: function loadConflicts() {
      var _this19 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list", this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadConflicts", "Load conflict entries", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this19.setState(_defineProperty({}, _this19.state.replSuffix, _objectSpread(_objectSpread({}, _this19.state[_this19.state.replSuffix]), {}, {
          conflicts: config.items,
          glues: []
        })), _this19.loadGlues());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this19.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadGlues",
    value: function loadGlues() {
      var _this20 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list-glue", this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadGlues", "Load glue entries", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this20.setState(_defineProperty({}, _this20.state.replSuffix, _objectSpread(_objectSpread({}, _this20.state[_this20.state.replSuffix]), {}, {
          glues: config.items
        })), _this20.setState({
          replLoading: false,
          replInitLoaded: true
        }));
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this20.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadWinsyncAgmts",
    value: function loadWinsyncAgmts() {
      var _this21 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadWinsyncAgmts", "Load winsync agmt status", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this21.setState(_defineProperty({}, _this21.state.replSuffix, _objectSpread(_objectSpread({}, _this21.state[_this21.state.replSuffix]), {}, {
          replWinsyncAgmts: config.items
        })), _this21.loadCleanTasks());
      }).fail(function () {
        // Notification of failure (could only be server down)
        _this21.setState({
          replLoading: false
        });
      });
    }
  }, {
    key: "loadMonitorReplication",
    value: function loadMonitorReplication() {
      var _this22 = this;

      var replSuffix = this.state.replSuffix;

      if (replSuffix != "") {
        this.setState({
          replLoading: true
        }); // Now load the agmts

        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + replSuffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadMonitorReplication", "Load replication agmts", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var config = JSON.parse(content);

          _this22.setState(_defineProperty({}, replSuffix, _objectSpread(_objectSpread({}, _this22.state[replSuffix]), {}, {
            replAgmts: config.items,
            abortTasks: [],
            cleanTasks: [],
            replWinsyncAgmts: []
          })), _this22.loadWinsyncAgmts());
        }).fail(function () {
          // Notification of failure (could only be server down)
          _this22.setState({
            replLoading: false
          });
        });
      } else {
        // We should enable it here because ReplMonitor never will be mounted
        this.enableTree();
      }
    }
  }, {
    key: "reloadReplAgmts",
    value: function reloadReplAgmts() {
      var _this23 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadReplAgmts", "Load replication agmts", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this23.setState(_defineProperty({}, _this23.state.replSuffix, _objectSpread(_objectSpread({}, _this23.state[_this23.state.replSuffix]), {}, {
          replAgmts: config.items
        })));
      });
    }
  }, {
    key: "reloadReplWinsyncAgmts",
    value: function reloadReplWinsyncAgmts() {
      var _this24 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadReplWinsyncAgmts", "Load winysnc agmts", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this24.setState(_defineProperty({}, _this24.state.replSuffix, _objectSpread(_objectSpread({}, _this24.state[_this24.state.replSuffix]), {}, {
          replWinsyncAgmts: config.items
        })));
      });
    }
  }, {
    key: "refreshAccessLog",
    value: function refreshAccessLog() {
      var _this25 = this;

      this.setState({
        accessReloading: true
      });
      var cmd = ["tail", "-" + this.state.accessLines, this.state.accesslogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this25.setState(function () {
          return {
            accesslogData: content,
            accessReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshAuditLog",
    value: function refreshAuditLog() {
      var _this26 = this;

      this.setState({
        auditReloading: true
      });
      var cmd = ["tail", "-" + this.state.auditLines, this.state.auditlogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this26.setState(function () {
          return {
            auditlogData: content,
            auditReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshAuditFailLog",
    value: function refreshAuditFailLog() {
      var _this27 = this;

      this.setState({
        auditfailReloading: true
      });
      var cmd = ["tail", "-" + this.state.auditfailLines, this.state.auditfaillogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        _this27.setState(function () {
          return {
            auditfaillogData: content,
            auditfailReloading: false
          };
        });
      });
    }
  }, {
    key: "refreshErrorLog",
    value: function refreshErrorLog() {
      var _this28 = this;

      this.setState({
        errorReloading: true
      });
      var cmd = ["tail", "-" + this.state.errorLines, this.state.errorlogLocation];
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (data) {
        if (_this28.state.errorSevLevel != "Everything") {
          // Filter Data
          var lines = data.split('\n');
          var new_data = "";

          for (var i = 0; i < lines.length; i++) {
            var line = "";

            if (_this28.state.errorSevLevel == "Error Messages") {
              var _iterator4 = _createForOfIteratorHelper(_this28.sev_all_errs),
                  _step4;

              try {
                for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                  var lev = _step4.value;

                  if (lines[i].indexOf(lev) != -1) {
                    line = lines[i] + "\n";
                  }
                }
              } catch (err) {
                _iterator4.e(err);
              } finally {
                _iterator4.f();
              }
            } else if (_this28.state.errorSevLevel == "Info Messages") {
              var _iterator5 = _createForOfIteratorHelper(_this28.sev_all_info),
                  _step5;

              try {
                for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                  var _lev = _step5.value;

                  if (lines[i].indexOf(_lev) != -1) {
                    line = lines[i] + "\n";
                  }
                }
              } catch (err) {
                _iterator5.e(err);
              } finally {
                _iterator5.f();
              }
            } else if (lines[i].indexOf(_this28.sev_levels[_this28.state.errorSevLevel]) != -1) {
              line = lines[i] + "\n";
            } // Add the filtered line to new data


            new_data += line;
          }

          data = new_data;
        }

        _this28.setState(function () {
          return {
            errorlogData: data,
            errorReloading: false
          };
        });
      });
    }
  }, {
    key: "accessRefreshCont",
    value: function accessRefreshCont(e) {
      if (e.target.checked) {
        this.state.accesslog_cont_refresh = setInterval(this.refreshAccessLog, 2000);
      } else {
        clearInterval(this.state.accesslog_cont_refresh);
      }

      this.setState({
        accessRefreshing: e.target.checked
      });
    }
  }, {
    key: "auditRefreshCont",
    value: function auditRefreshCont(e) {
      if (e.target.checked) {
        this.state.auditlog_cont_refresh = setInterval(this.refreshAuditLog, 2000);
      } else {
        clearInterval(this.state.auditlog_cont_refresh);
      }

      this.setState({
        auditRefreshing: e.target.checked
      });
    }
  }, {
    key: "auditFailRefreshCont",
    value: function auditFailRefreshCont(e) {
      if (e.target.checked) {
        this.state.auditfaillog_cont_refresh = setInterval(this.refreshAuditFailLog, 2000);
      } else {
        clearInterval(this.state.auditfaillog_cont_refresh);
      }

      this.setState({
        auditfailRefreshing: e.target.checked
      });
    }
  }, {
    key: "errorRefreshCont",
    value: function errorRefreshCont(e) {
      if (e.target.checked) {
        this.state.errorlog_cont_refresh = setInterval(this.refreshErrorLog, 2000);
      } else {
        clearInterval(this.state.errorlog_cont_refresh);
      }

      this.setState({
        errorRefreshing: e.target.checked
      });
    }
  }, {
    key: "handleAccessChange",
    value: function handleAccessChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          accessLines: value
        };
      }, this.refreshAccessLog);
    }
  }, {
    key: "handleAuditChange",
    value: function handleAuditChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          auditLines: value
        };
      }, this.refreshAuditLog);
    }
  }, {
    key: "handleAuditFailChange",
    value: function handleAuditFailChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          auditfailLines: value
        };
      }, this.refreshAuditFailLog);
    }
  }, {
    key: "handleErrorChange",
    value: function handleErrorChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          errorLines: value
        };
      }, this.refreshErrorLog);
    }
  }, {
    key: "handleSevChange",
    value: function handleSevChange(e) {
      var value = e.target.value;
      this.setState({
        errorSevLevel: value
      }, this.refreshErrorLog);
    }
  }, {
    key: "replSuffixChange",
    value: function replSuffixChange(e) {
      var value = e.target.value;
      this.setState(function () {
        return {
          replSuffix: value,
          replLoading: true
        };
      }, this.loadMonitorReplication);
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "render",
    value: function render() {
      var _this29 = this;

      var nodes = this.state.nodes;
      var monitorPage = "";
      var monitor_element = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      if (this.state.loaded) {
        if (this.state.node_name == "database-monitor" || this.state.node_name == "") {
          if (this.state.ldbmLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading database monitor information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
              data: this.state.ldbmData,
              reload: this.reloadLDBM,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "server-monitor") {
          if (this.state.serverLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading server monitor information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
              data: this.state.serverData,
              reload: this.reloadServer,
              serverId: this.props.serverId,
              disks: this.state.disks,
              reloadDisks: this.reloadDisks,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "snmp-monitor") {
          if (this.state.snmpLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading SNMP monitor information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_snmpMonitor_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
              data: this.state.snmpData,
              reload: this.reloadSNMP,
              enableTree: this.enableTree
            });
          }
        } else if (this.state.node_name == "access-log-monitor") {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
            data: this.state.accesslogData,
            handleChange: this.handleAccessChange,
            reload: this.refreshAccessLog,
            reloading: this.state.accessReloading,
            refreshing: this.state.accessRefreshing,
            handleRefresh: this.accessRefreshCont,
            lines: this.state.accessLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "audit-log-monitor") {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
            data: this.state.auditlogData,
            handleChange: this.handleAuditChange,
            reload: this.refreshAuditLog,
            reloading: this.state.auditReloading,
            refreshing: this.state.auditRefreshing,
            handleRefresh: this.auditRefreshCont,
            lines: this.state.auditLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "auditfail-log-monitor") {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_12__["default"], {
            data: this.state.auditfaillogData,
            handleChange: this.handleAuditFailChange,
            reload: this.refreshAuditFailLog,
            reloading: this.state.auditfailReloading,
            refreshing: this.state.auditfailRefreshing,
            handleRefresh: this.auditFailRefreshCont,
            lines: this.state.auditfailLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "error-log-monitor") {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_13__["default"], {
            data: this.state.errorlogData,
            handleChange: this.handleErrorChange,
            reload: this.refreshErrorLog,
            reloading: this.state.errorReloading,
            refreshing: this.state.errorRefreshing,
            handleRefresh: this.errorRefreshCont,
            handleSevLevel: this.handleSevChange,
            lines: this.state.errorLines,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "replication-monitor") {
          if (this.state.replLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading replication monitor information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.replicatedSuffixes.length < 1) {
              monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, "There are no suffixes that have been configured for replication"));
            } else {
              var suffixList = this.state.replicatedSuffixes.map(function (suffix) {
                return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", {
                  key: suffix,
                  value: suffix
                }, suffix);
              });
              monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Col"], {
                sm: 12
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["ControlLabel"], {
                className: "ds-header"
              }, "Replication Monitoring"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
                className: "ds-left-indent",
                defaultValue: this.state.replSuffix,
                onChange: this.replSuffixChange
              }, suffixList), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
                className: "ds-left-margin ds-refresh",
                type: "fa",
                name: "refresh",
                title: "Refresh replication monitor",
                onClick: function onClick() {
                  return _this29.loadMonitorReplication();
                }
              }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
                className: "ds-margin-top-med"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_14__["default"], {
                suffix: this.state.replSuffix,
                serverId: this.props.serverId,
                data: this.state[this.state.replSuffix],
                addNotification: this.props.addNotification,
                reloadAgmts: this.reloadReplAgmts,
                reloadWinsyncAgmts: this.reloadReplWinsyncAgmts,
                reloadConflicts: this.loadConflicts,
                enableTree: this.enableTree,
                key: this.state.replSuffix
              })));
            }
          }
        } else if (this.state.node_name != "") {
          // suffixes (example)
          if (this.state.suffixLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading suffix monitor information for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else if (this.state.chainingLoading) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading chaining monitor information for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_text, " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.node_type == "dblink") {
              monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
                suffix: this.state.node_text,
                bename: this.state.bename,
                reload: this.loadMonitorChaining,
                data: this.state[this.state.node_text].chainingData,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            } else {
              // Suffix
              monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
                suffix: this.state.node_text,
                bename: this.state.bename,
                reload: this.loadMonitorSuffix,
                data: this.state[this.state.node_text].suffixData,
                enableTree: this.enableTree,
                key: this.state.node_text
              });
            }
          }
        }

        monitorPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "monitor-tree",
          style: treeViewContainerStyles
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode,
          key: this.state.node_text
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, monitor_element)));
      } else {
        monitorPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading monitor information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, monitorPage);
    }
  }]);

  return Monitor;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Monitor.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string
};
Monitor.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: ""
};

/***/ }),

/***/ "./src/patternfly/patternfly-cockpit.scss":
/*!************************************************!*\
  !*** ./src/patternfly/patternfly-cockpit.scss ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin

/***/ }),

/***/ "./src/plugins.jsx":
/*!*************************!*\
  !*** ./src/plugins.jsx ***!
  \*************************/
/*! exports provided: Plugins */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Plugins", function() { return Plugins; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* 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__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var _lib_plugins_pluginModal_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/plugins/pluginModal.jsx */ "./src/lib/plugins/pluginModal.jsx");
/* harmony import */ var _lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/plugins/pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/plugins/accountPolicy.jsx */ "./src/lib/plugins/accountPolicy.jsx");
/* harmony import */ var _lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/plugins/attributeUniqueness.jsx */ "./src/lib/plugins/attributeUniqueness.jsx");
/* harmony import */ var _lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/plugins/autoMembership.jsx */ "./src/lib/plugins/autoMembership.jsx");
/* harmony import */ var _lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/plugins/dna.jsx */ "./src/lib/plugins/dna.jsx");
/* harmony import */ var _lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/plugins/linkedAttributes.jsx */ "./src/lib/plugins/linkedAttributes.jsx");
/* harmony import */ var _lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/plugins/managedEntries.jsx */ "./src/lib/plugins/managedEntries.jsx");
/* harmony import */ var _lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/plugins/memberOf.jsx */ "./src/lib/plugins/memberOf.jsx");
/* harmony import */ var _lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/plugins/passthroughAuthentication.jsx */ "./src/lib/plugins/passthroughAuthentication.jsx");
/* harmony import */ var _lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/plugins/referentialIntegrity.jsx */ "./src/lib/plugins/referentialIntegrity.jsx");
/* harmony import */ var _lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lib/plugins/retroChangelog.jsx */ "./src/lib/plugins/retroChangelog.jsx");
/* harmony import */ var _lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./lib/plugins/rootDNAccessControl.jsx */ "./src/lib/plugins/rootDNAccessControl.jsx");
/* harmony import */ var _lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./lib/plugins/usn.jsx */ "./src/lib/plugins/usn.jsx");
/* harmony import */ var _lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./lib/plugins/winsync.jsx */ "./src/lib/plugins/winsync.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }





















var cmd;
var Plugins = /*#__PURE__*/function (_React$Component) {
  _inherits(Plugins, _React$Component);

  var _super = _createSuper(Plugins);

  _createClass(Plugins, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.wasActiveList.includes(5)) {
        if (this.state.firstLoad) {
          this.pluginList();
        } else {
          if (this.props.serverId !== prevProps.serverId) {
            this.pluginList();
          }
        }
      }
    }
  }]);

  function Plugins() {
    var _this;

    _classCallCheck(this, Plugins);

    _this = _super.call(this);
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_this));
    _this.openPluginModal = _this.openPluginModal.bind(_assertThisInitialized(_this));
    _this.closePluginModal = _this.closePluginModal.bind(_assertThisInitialized(_this));
    _this.pluginList = _this.pluginList.bind(_assertThisInitialized(_this));
    _this.onChangeTab = _this.onChangeTab.bind(_assertThisInitialized(_this));
    _this.savePlugin = _this.savePlugin.bind(_assertThisInitialized(_this));
    _this.toggleLoading = _this.toggleLoading.bind(_assertThisInitialized(_this));
    _this.state = {
      firstLoad: true,
      loading: false,
      showPluginModal: false,
      currentPluginTab: "",
      rows: [],
      // Plugin attributes
      currentPluginName: "",
      currentPluginType: "",
      currentPluginEnabled: false,
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: ""
    };
    return _this;
  }

  _createClass(Plugins, [{
    key: "onChangeTab",
    value: function onChangeTab(event) {
      this.setState({
        currentPluginTab: event.target.value
      });
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      this.setState(_defineProperty({}, e.target.id, e.target.value));
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      this.setState({
        currentPluginEnabled: !value
      });
    }
  }, {
    key: "closePluginModal",
    value: function closePluginModal() {
      this.setState({
        showPluginModal: false
      });
    }
  }, {
    key: "toggleLoading",
    value: function toggleLoading() {
      this.setState(function (prevState) {
        return {
          loading: !prevState.loading
        };
      });
    }
  }, {
    key: "openPluginModal",
    value: function openPluginModal(rowData) {
      var pluginEnabled;

      if (rowData["nsslapd-pluginEnabled"][0] === "on") {
        pluginEnabled = true;
      } else if (rowData["nsslapd-pluginEnabled"][0] === "off") {
        pluginEnabled = false;
      } else {
        console.error("openPluginModal failed", "wrong nsslapd-pluginenabled attribute value", rowData["nsslapd-pluginEnabled"][0]);
      }

      this.setState({
        currentPluginName: rowData.cn[0],
        currentPluginType: rowData["nsslapd-pluginType"][0],
        currentPluginEnabled: pluginEnabled,
        currentPluginPath: rowData["nsslapd-pluginPath"][0],
        currentPluginInitfunc: rowData["nsslapd-pluginInitfunc"][0],
        currentPluginId: rowData["nsslapd-pluginId"][0],
        currentPluginVendor: rowData["nsslapd-pluginVendor"][0],
        currentPluginVersion: rowData["nsslapd-pluginVersion"][0],
        currentPluginDescription: rowData["nsslapd-pluginDescription"][0],
        currentPluginDependsOnType: rowData["nsslapd-plugin-depends-on-type"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-type"][0],
        currentPluginDependsOnNamed: rowData["nsslapd-plugin-depends-on-named"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-named"][0],
        currentPluginPrecedence: rowData["nsslapd-pluginprecedence"] === undefined ? "" : rowData["nsslapd-pluginprecedence"][0],
        showPluginModal: true
      });
    }
  }, {
    key: "pluginList",
    value: function pluginList() {
      var _this2 = this;

      cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("pluginList", "Get plugins for table rows", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        if (_this2.state.firstLoad) {
          _this2.setState(function (prevState) {
            return {
              pluginTabs: _objectSpread(_objectSpread({}, prevState.pluginTabs), {}, {
                basicConfig: true
              }),
              rows: myObject.items,
              firstLoad: false
            };
          });
        } else {
          _this2.setState({
            rows: myObject.items
          });
        }
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.props.addNotification("error", "".concat(errMsg.desc, " error during plugin loading"));
      });
    }
  }, {
    key: "savePlugin",
    value: function savePlugin(data) {
      var _this3 = this;

      var nothingToSetErr = false;
      var basicPluginSuccess = false;
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "set", data.name, "--type", data.type || "delete", "--path", data.path || "delete", "--initfunc", data.initfunc || "delete", "--id", data.id || "delete", "--vendor", data.vendor || "delete", "--version", data.version || "delete", "--description", data.description || "delete", "--depends-on-type", data.dependsOnType || "delete", "--depends-on-named", data.dependsOnNamed || "delete", "--precedence", data.precedence || "delete"];

      if ("enabled" in data) {
        cmd = [].concat(_toConsumableArray(cmd), ["--enabled", data.enabled ? "on" : "off"]);
      }

      this.toggleLoading();
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("savePlugin", "Edit the plugin", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("savePlugin", "Result", content);
        basicPluginSuccess = true;

        _this3.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));

        _this3.pluginList();

        _this3.closePluginModal();

        _this3.toggleLoading();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (errMsg.desc.indexOf("nothing to set") >= 0) {
          nothingToSetErr = true;
        } else {
          _this3.props.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
        }

        _this3.closePluginModal();

        _this3.toggleLoading();
      }).always(function () {
        if ("specificPluginCMD" in data && data.specificPluginCMD.length != 0) {
          _this3.toggleLoading();

          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__["log_cmd"])("savePlugin", "Edit the plugin from the plugin config tab", data.specificPluginCMD);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(data.specificPluginCMD, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            // Notify success only one time
            if (!basicPluginSuccess) {
              _this3.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));
            }

            _this3.pluginList();

            _this3.toggleLoading();

            console.info("savePlugin", "Result", content);
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            if (errMsg.desc.indexOf("nothing to set") >= 0 && nothingToSetErr || errMsg.desc.indexOf("nothing to set") < 0) {
              if (basicPluginSuccess) {
                _this3.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));

                _this3.pluginList();
              }

              _this3.props.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
            }

            _this3.toggleLoading();
          });
        } else {
          _this3.pluginList();
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      var selectPlugins = {
        allPlugins: {
          name: "All Plugins",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_6__["PluginTable"], {
            rows: this.state.rows,
            loadModalHandler: this.openPluginModal
          })
        },
        accountPolicy: {
          name: "Account Policy",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        attributeUniqueness: {
          name: "Attribute Uniqueness",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        linkedAttributes: {
          name: "Linked Attributes",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        dna: {
          name: "DNA",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        autoMembership: {
          name: "Auto Membership",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        memberOf: {
          name: "MemberOf",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_13__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        managedEntries: {
          name: "Managed Entries",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_12__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        passthroughAuthentication: {
          name: "Passthrough Authentication",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_14__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        winsync: {
          name: "Posix Winsync",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_19__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        referentialIntegrity: {
          name: "Referential Integrity",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_15__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        retroChangelog: {
          name: "Retro Changelog",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_16__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        },
        rootDnaAccessControl: {
          name: "RootDN Access Control",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_17__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading
          })
        },
        usn: {
          name: "USN",
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_18__["default"], {
            rows: this.state.rows,
            serverId: this.props.serverId,
            savePluginHandler: this.savePlugin,
            pluginListHandler: this.pluginList,
            addNotification: this.props.addNotification,
            toggleLoadingHandler: this.toggleLoading,
            wasActiveList: this.props.wasActiveList,
            key: this.props.wasActiveList
          })
        }
      };
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "container-fluid"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-loading-spinner ds-center",
        hidden: !this.state.firstLoad
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading plugins ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        className: "ds-margin-top",
        loading: true,
        size: "md"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        hidden: this.state.firstLoad
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "clearfix"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Spinner"], {
        className: "ds-float-left ds-plugin-spinner",
        loading: this.state.loading,
        size: "md"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Container, {
        id: "left-tabs-example",
        defaultActiveKey: Object.keys(selectPlugins)[0]
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Row"], {
        className: "clearfix"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Nav"], {
        bsStyle: "pills",
        stacked: true
      }, Object.entries(selectPlugins).map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
            id = _ref2[0],
            item = _ref2[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["NavItem"], {
          key: id,
          eventKey: id
        }, item.name);
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Col"], {
        sm: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Content, {
        animation: false
      }, Object.entries(selectPlugins).map(function (_ref3) {
        var _ref4 = _slicedToArray(_ref3, 2),
            id = _ref4[0],
            item = _ref4[1];

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_4__["Tab"].Pane, {
          key: id,
          eventKey: id
        }, item.component);
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_plugins_pluginModal_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
        handleChange: this.handleFieldChange,
        handleSwitchChange: this.handleSwitchChange,
        pluginData: {
          currentPluginName: this.state.currentPluginName,
          currentPluginType: this.state.currentPluginType,
          currentPluginEnabled: this.state.currentPluginEnabled,
          currentPluginPath: this.state.currentPluginPath,
          currentPluginInitfunc: this.state.currentPluginInitfunc,
          currentPluginId: this.state.currentPluginId,
          currentPluginVendor: this.state.currentPluginVendor,
          currentPluginVersion: this.state.currentPluginVersion,
          currentPluginDescription: this.state.currentPluginDescription,
          currentPluginDependsOnType: this.state.currentPluginDependsOnType,
          currentPluginDependsOnNamed: this.state.currentPluginDependsOnNamed,
          currentPluginPrecedence: this.state.currentPluginPrecedence
        },
        closeHandler: this.closePluginModal,
        showModal: this.state.showPluginModal,
        savePluginHandler: this.savePlugin
      })));
    }
  }]);

  return Plugins;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
Plugins.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.string
};
Plugins.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_4__["noop"],
  serverId: ""
};

/***/ }),

/***/ "./src/replication.jsx":
/*!*****************************!*\
  !*** ./src/replication.jsx ***!
  \*****************************/
/*! exports provided: Replication, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Replication", function() { return Replication; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/replication/replSuffix.jsx */ "./src/lib/replication/replSuffix.jsx");
/* harmony import */ var _lib_replication_replChangelog_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/replication/replChangelog.jsx */ "./src/lib/replication/replChangelog.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }








var treeViewContainerStyles = {
  width: '295px'
};
var Replication = /*#__PURE__*/function (_React$Component) {
  _inherits(Replication, _React$Component);

  var _super = _createSuper(Replication);

  function Replication(props) {
    var _this;

    _classCallCheck(this, Replication);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      errObj: {},
      nodes: [],
      node_name: "",
      node_text: "",
      node_type: "",
      node_replicated: false,
      disableTree: true,
      // Changelog
      clLoading: false,
      clDir: "",
      clMaxEntries: "",
      clMaxAge: "",
      clCompactInt: "",
      clTrimInt: "",
      clEncrypt: false,
      // Suffix
      suffixLoading: false,
      attributes: [],
      role: "",
      rid: "0",
      bindDNs: [],
      bindDNGroup: "",
      agmtRows: [],
      winsyncRows: [],
      ruvRows: [],
      suffixSpinning: false,
      disabled: false,
      suffixKey: 0,
      showDisableConfirm: false,
      loaded: false
    }; // General

    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_this));
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.disableTree = _this.disableTree.bind(_assertThisInitialized(_this));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    _this.reloadAgmts = _this.reloadAgmts.bind(_assertThisInitialized(_this));
    _this.reloadWinsyncAgmts = _this.reloadWinsyncAgmts.bind(_assertThisInitialized(_this));
    _this.reloadRUV = _this.reloadRUV.bind(_assertThisInitialized(_this));
    _this.loadAttrs = _this.loadAttrs.bind(_assertThisInitialized(_this));
    _this.loadReplication = _this.loadReplication.bind(_assertThisInitialized(_this));
    _this.loadReplSuffix = _this.loadReplSuffix.bind(_assertThisInitialized(_this));
    _this.reloadChangelog = _this.reloadChangelog.bind(_assertThisInitialized(_this));
    _this.loadSuffixTree = _this.loadSuffixTree.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Replication, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.wasActiveList.includes(3)) {
        if (this.state.firstLoad) {
          this.loadReplication();

          if (!this.state.loaded) {
            this.loadAttrs();
          }
        } else {
          if (this.props.serverId !== prevProps.serverId) {
            this.loadSuffixTree(true);
          }
        }
      }
    }
  }, {
    key: "loadReplication",
    value: function loadReplication() {
      var _this2 = this;

      if (this.state.firstLoad) {
        this.setState({
          firstLoad: false
        });
      } // Load the changelog, and build the suffix tree


      this.setState({
        loaded: false
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog'];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReplication", "Load the replication info", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var clDir = "";
        var clMaxEntries = "";
        var clMaxAge = "";
        var clCompactInt = "";
        var clTrimInt = "";
        var clEncrypt = false;

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "nsslapd-changelogdir") {
            clDir = val;
          }

          if (attr == "nsslapd-changelogmaxentries") {
            clMaxEntries = val;
          }

          if (attr == "nsslapd-changelogmaxage") {
            clMaxAge = val;
          }

          if (attr == "nsslapd-changelogcompactdb-interval") {
            clCompactInt = val;
          }

          if (attr == "nsslapd-changelogtrim-interval") {
            clTrimInt = val;
          }

          if (attr == "nsslapd-encryptionalgorithm") {
            clEncrypt = true;
          }
        }

        _this2.setState({
          clDir: clDir,
          clMaxEntries: clMaxEntries,
          clMaxAge: clMaxAge,
          clCompactInt: clCompactInt,
          clTrimInt: clTrimInt,
          clEncrypt: clEncrypt
        }, _this2.loadSuffixTree(true));
      }).fail(function () {
        _this2.setState({
          clDir: "",
          clMaxEntries: "",
          clMaxAge: "",
          clCompactInt: "",
          clTrimInt: "",
          clEncrypt: false
        }, _this2.loadSuffixTree(true));
      });
    }
  }, {
    key: "reloadChangelog",
    value: function reloadChangelog() {
      var _this3 = this;

      // Refresh the changelog
      this.setState({
        clLoading: true
      });
      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog'];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadChangelog", "Reload the changelog", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var clDir = "";
        var clMaxEntries = "";
        var clMaxAge = "";
        var clCompactInt = "";
        var clTrimInt = "";
        var clEncrypt = false;

        for (var attr in config['attrs']) {
          var val = config['attrs'][attr][0];

          if (attr == "nsslapd-changelogdir") {
            clDir = val;
          }

          if (attr == "nsslapd-changelogmaxentries") {
            clMaxEntries = val;
          }

          if (attr == "nsslapd-changelogmaxage") {
            clMaxAge = val;
          }

          if (attr == "nsslapd-changelogcompactdb-interval") {
            clCompactInt = val;
          }

          if (attr == "nsslapd-changelogtrim-interval") {
            clTrimInt = val;
          }

          if (attr == "nsslapd-encryptionalgorithm") {
            clEncrypt = true;
          }
        }

        _this3.setState({
          clDir: clDir,
          clMaxEntries: clMaxEntries,
          clMaxAge: clMaxAge,
          clCompactInt: clCompactInt,
          clTrimInt: clTrimInt,
          clEncrypt: clEncrypt,
          clLoading: false
        });
      }).fail(function () {
        _this3.setState({
          clDir: "",
          clMaxEntries: "",
          clMaxAge: "",
          clCompactInt: "",
          clTrimInt: "",
          clEncrypt: false,
          clLoading: false
        });
      });
    }
  }, {
    key: "processBranch",
    value: function processBranch(treeBranch) {
      if (treeBranch.length == 0) {
        return;
      }

      for (var sub in treeBranch) {
        if (!treeBranch[sub].type.endsWith("suffix")) {
          // Not a suffix, skip it
          treeBranch.splice(sub, 1);
          continue;
        } else if (treeBranch[sub].replicated) {
          treeBranch[sub].icon = "fa fa-clone";
          treeBranch[sub].replicated = true;
        }

        this.processBranch(treeBranch[sub].nodes);
      }
    }
  }, {
    key: "loadSuffixTree",
    value: function loadSuffixTree(fullReset) {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSuffixTree", "Start building the suffix tree", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var treeData = [];

        if (content != "") {
          treeData = JSON.parse(content);
        }

        var basicData = [{
          text: "Replication Changelog",
          selectable: true,
          selected: false,
          icon: "pficon-catalog",
          id: "changelog"
        }, {
          text: "Suffixes",
          icon: "pficon-topology",
          state: {
            "expanded": true
          },
          selectable: false,
          id: "repl-suffixes",
          nodes: []
        }];
        var current_node = _this4.state.node_name;
        var current_type = _this4.state.node_type;
        var replicated = _this4.state.node_replicated;

        if (fullReset && treeData.length > 0) {
          var found = false;

          for (var i = 0; i < treeData.length; i++) {
            if (treeData[i].replicated) {
              treeData[i].icon = "fa fa-clone";
              replicated = true;

              if (!found) {
                // Load the first replicated suffix we find
                treeData[i].selected = true;
                current_node = treeData[i].id;
                current_type = treeData[i].type;

                _this4.loadReplSuffix(treeData[i].id);

                found = true;
              }
            }

            _this4.processBranch(treeData[i].nodes);
          }

          if (!found) {
            // No replicated suffixes, load the first one
            treeData[0].selected = true;
            current_node = treeData[0].id;
            current_type = treeData[0].type;

            _this4.loadReplSuffix(treeData[0].id);
          }
        } else if (treeData.length > 0) {
          // Reset current suffix
          var _iterator = _createForOfIteratorHelper(treeData),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var suffix = _step.value;

              _this4.processBranch(suffix.nodes);

              if (suffix.id == current_node) {
                suffix.selected = true;
                replicated = suffix.replicated;
              }

              if (suffix.replicated) {
                suffix.icon = "fa fa-clone";
              }
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          _this4.loadReplSuffix(current_node);
        }

        basicData[1].nodes = treeData;

        _this4.setState(function () {
          return {
            nodes: basicData,
            node_name: current_node,
            node_type: current_type,
            node_replicated: replicated
          };
        }, _this4.update_tree_nodes);
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this5 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });

      if (selectedNode.id == "changelog") {
        // Nothing special to do, these configurations have already been loaded
        this.setState(function (prevState) {
          return {
            nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
            node_name: selectedNode.id,
            node_text: selectedNode.text,
            node_type: selectedNode.id
          };
        });
      } else {
        if (selectedNode.id in this.state) {
          // This suffix is already cached, just use what we have...
          this.setState(function (prevState) {
            return {
              nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              node_replicated: selectedNode.replicated,
              disableTree: false,
              suffixKey: new Date()
            };
          });
        } else {
          // Suffix/subsuffix
          this.loadReplSuffix(selectedNode.id);
          this.setState(function (prevState) {
            return {
              nodes: _this5.nodeSelector(prevState.nodes, selectedNode),
              node_name: selectedNode.id,
              node_text: selectedNode.text,
              node_type: selectedNode.type,
              node_replicated: selectedNode.replicated,
              suffixKey: new Date()
            };
          });
        }
      }
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this6 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread(_objectSpread({}, node), {}, {
            nodes: _this6.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "update_tree_nodes",
    value: function update_tree_nodes() {
      // Set title to the text value of each suffix node.  We need to do this
      // so we can read long suffixes in the UI tree div.  This is the last
      // step of loading the page, so mark it loaded!
      var elements = document.getElementsByClassName('treeitem-row');

      var _iterator2 = _createForOfIteratorHelper(elements),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var el = _step2.value;
          el.setAttribute('title', el.innerText);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState({
        loaded: true
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var _this$setState;

      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState = {}, _defineProperty(_this$setState, e.target.id, value), _defineProperty(_this$setState, "errObj", errObj), _this$setState));
    }
  }, {
    key: "closeSuffixModal",
    value: function closeSuffixModal() {
      this.setState({
        showSuffixModal: false
      });
    }
  }, {
    key: "reloadAgmts",
    value: function reloadAgmts(suffix) {
      var _this7 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadAgmts", "get repl agreements", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this7$setState;

        var obj = JSON.parse(content);
        var rows = [];

        for (var idx in obj['items']) {
          var agmt_attrs = obj['items'][idx]['attrs'];
          var state = "Enabled";
          var update_status = "";
          var agmt_init_status = ""; // Compute state (enabled by default)

          if ('nsds5replicaenabled' in agmt_attrs) {
            if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
              state = "Disabled";
            }
          } // Check for status msgs


          if ('nsds5replicalastupdatestatus' in agmt_attrs) {
            update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
          }

          if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
            agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

            if (agmt_init_status == "Error (0) Total update in progress" || agmt_init_status == "Error (0)") {
              agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } else if (agmt_init_status == "Error (0) Total update succeeded") {
              agmt_init_status = "Initialized";
              agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
            } else {
              agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, agmt_init_status);
            }
          } else if (agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
            agmt_init_status = "Not initialized";
            agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not Initialized"));
          } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
            agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
              loading: true,
              size: "sm"
            }));
          } // Update table


          rows.push({
            'name': agmt_attrs['cn'],
            'host': agmt_attrs['nsds5replicahost'],
            'port': agmt_attrs['nsds5replicaport'],
            'state': [state],
            'status': [update_status],
            'initstatus': [agmt_init_status]
          });
        } // Set agmt


        _this7.setState((_this7$setState = {}, _defineProperty(_this7$setState, suffix, _objectSpread(_objectSpread({}, _this7.state[suffix]), {}, {
          agmtRows: rows
        })), _defineProperty(_this7$setState, "suffixSpinning", false), _defineProperty(_this7$setState, "disabled", false), _this7$setState));
      }).fail(function () {
        _this7.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadWinsyncAgmts",
    value: function reloadWinsyncAgmts(suffix) {
      var _this8 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadWinsyncAgmts", "Get Winsync Agreements", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this8$setState;

        var obj = JSON.parse(content);
        var ws_rows = [];

        for (var idx in obj['items']) {
          var state = "Enabled";
          var update_status = "";
          var ws_agmt_init_status = "Initialized";
          var agmt_attrs = obj['items'][idx]['attrs']; // let agmt_name = agmt_attrs['cn'][0];
          // Compute state (enabled by default)

          if ('nsds5replicaenabled' in agmt_attrs) {
            if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
              state = "Disabled";
            }
          }

          if ('nsds5replicalastupdatestatus' in agmt_attrs) {
            update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
          }

          if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
            ws_agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

            if (ws_agmt_init_status == "Error (0) Total update in progress" || ws_agmt_init_status == "Error (0)") {
              ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } else if (ws_agmt_init_status == "Error (0) Total update succeeded") {
              ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
            } else {
              ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, ws_agmt_init_status);
            }
          } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
            ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
          } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
            ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
              key: agmt_attrs['cn']
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
              loading: true,
              size: "sm"
            }));
          } // Update table


          ws_rows.push({
            'name': agmt_attrs['cn'],
            'host': agmt_attrs['nsds5replicahost'],
            'port': agmt_attrs['nsds5replicaport'],
            'state': [state],
            'status': [update_status],
            'initstatus': [ws_agmt_init_status]
          });
        } // Set winsync agmts


        _this8.setState((_this8$setState = {}, _defineProperty(_this8$setState, suffix, _objectSpread(_objectSpread({}, _this8.state[suffix]), {}, {
          winsyncRows: ws_rows
        })), _defineProperty(_this8$setState, "suffixSpinning", false), _defineProperty(_this8$setState, "disabled", false), _this8$setState));
      }).fail(function () {
        _this8.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig(suffix) {
      var _this9 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("reloadConfig", "Reload suffix repl config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this9$setState;

        var config = JSON.parse(content);
        var current_role = "";
        var nsds5replicaprecisetombstonepurging = false;

        if ('nsds5replicaprecisetombstonepurging' in config['attrs']) {
          if (config['attrs']['nsds5replicaprecisetombstonepurging'][0].toLowerCase() == "on") {
            nsds5replicaprecisetombstonepurging = true;
          }
        } // Set the replica role


        if (config['attrs']['nsds5replicatype'][0] == "3") {
          current_role = "Master";
        } else {
          if (config['attrs']['nsds5flags'][0] == "1") {
            current_role = "Hub";
          } else {
            current_role = "Consumer";
          }
        }

        _this9.setState((_this9$setState = {}, _defineProperty(_this9$setState, suffix, {
          role: current_role,
          nsds5flags: config['attrs']['nsds5flags'][0],
          nsds5replicatype: config['attrs']['nsds5replicatype'][0],
          nsds5replicaid: 'nsds5replicaid' in config['attrs'] ? config['attrs']['nsds5replicaid'][0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config['attrs'] ? config['attrs']['nsds5replicabinddn'] : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config['attrs'] ? config['attrs']['nsds5replicabinddngroup'][0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config['attrs'] ? config['attrs']['nsds5replicabinddngroupcheckinterval'][0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config['attrs'] ? config['attrs']['nsds5replicareleasetimeout'][0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config['attrs'] ? config['attrs']['nsds5replicapurgedelay'][0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config['attrs'] ? config['attrs']['nsds5replicatombstonepurgeinterval'][0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config['attrs'] ? config['attrs']['nsds5replicaprotocoltimeout'][0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config['attrs'] ? config['attrs']['nsds5replicabackoffmin'][0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config['attrs'] ? config['attrs']['nsds5replicabackoffmax'][0] : ""
        }), _defineProperty(_this9$setState, "suffixSpinning", false), _defineProperty(_this9$setState, "disabled", false), _defineProperty(_this9$setState, "suffixKey", new Date()), _this9$setState));
      }).fail(function () {
        _this9.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "reloadRUV",
    value: function reloadRUV(suffix) {
      var _this10 = this;

      this.setState({
        suffixSpinning: true,
        disabled: true
      }); // Load suffix RUV

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('reloadRUV', 'Get the suffix RUV', cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var _this10$setState;

        var ruvs = JSON.parse(content);
        var ruv_rows = [];

        for (var idx in ruvs['items']) {
          var ruv = ruvs['items'][idx]; // Update table

          ruv_rows.push({
            'rid': ruv['rid'],
            'url': ruv['url'],
            'csn': ruv['csn'],
            'raw_csn': ruv['raw_csn'],
            'maxcsn': ruv['maxcsn'],
            'raw_maxcsn': ruv['raw_maxcsn']
          });
        }

        _this10.setState((_this10$setState = {}, _defineProperty(_this10$setState, suffix, _objectSpread(_objectSpread({}, _this10.state[suffix]), {}, {
          ruvRows: ruv_rows
        })), _defineProperty(_this10$setState, "suffixSpinning", false), _defineProperty(_this10$setState, "disabled", false), _this10$setState));
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        if (errMsg.desc != "No such object") {
          _this10.props.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
        }

        _this10.setState({
          suffixSpinning: false,
          disabled: false
        });
      });
    }
  }, {
    key: "loadReplSuffix",
    value: function loadReplSuffix(suffix) {
      var _this11 = this;

      // Load everything, we must nest cockpit promise so we can proper set
      // the loading is finished.
      // - Get Suffix config
      // - Get Repl agmts
      // - Get Winsync Agmts
      // - Get RUV's
      this.setState(_defineProperty({
        activeKey: 1,
        suffixLoading: true
      }, suffix, {}));
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReplSuffix", "Load suffix repl config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var current_role = "";
        var nsds5replicaprecisetombstonepurging = false;

        if ('nsds5replicaprecisetombstonepurging' in config['attrs']) {
          if (config['attrs']['nsds5replicaprecisetombstonepurging'][0].toLowerCase() == "on") {
            nsds5replicaprecisetombstonepurging = true;
          }
        } // Set the replica role


        if (config['attrs']['nsds5replicatype'][0] == "3") {
          current_role = "Master";
        } else {
          if (config['attrs']['nsds5flags'][0] == "1") {
            current_role = "Hub";
          } else {
            current_role = "Consumer";
          }
        }

        _this11.setState(_defineProperty({}, suffix, {
          role: current_role,
          nsds5flags: config['attrs']['nsds5flags'][0],
          nsds5replicatype: config['attrs']['nsds5replicatype'][0],
          nsds5replicaid: 'nsds5replicaid' in config['attrs'] ? config['attrs']['nsds5replicaid'][0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config['attrs'] ? config['attrs']['nsds5replicabinddn'] : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config['attrs'] ? config['attrs']['nsds5replicabinddngroup'][0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config['attrs'] ? config['attrs']['nsds5replicabinddngroupcheckinterval'][0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config['attrs'] ? config['attrs']['nsds5replicareleasetimeout'][0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config['attrs'] ? config['attrs']['nsds5replicapurgedelay'][0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config['attrs'] ? config['attrs']['nsds5replicatombstonepurgeinterval'][0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config['attrs'] ? config['attrs']['nsds5replicaprotocoltimeout'][0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config['attrs'] ? config['attrs']['nsds5replicabackoffmin'][0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config['attrs'] ? config['attrs']['nsds5replicabackoffmax'][0] : ""
        })); // Now load agmts, then the winsync agreement, and finally the RUV


        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this11.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReplSuffix", "get repl agreements", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var obj = JSON.parse(content);
          var rows = [];

          for (var idx in obj['items']) {
            var agmt_attrs = obj['items'][idx]['attrs'];
            var state = "Enabled";
            var update_status = "";
            var agmt_init_status = ""; // Compute state (enabled by default)

            if ('nsds5replicaenabled' in agmt_attrs) {
              if (agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
                state = "Disabled";
              }
            } // Check for status msgs


            if ('nsds5replicalastupdatestatus' in agmt_attrs) {
              update_status = agmt_attrs['nsds5replicalastupdatestatus'][0];
            }

            if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
              agmt_init_status = agmt_attrs['nsds5replicalastinitstatus'][0];

              if (agmt_init_status == "Error (0) Total update in progress" || agmt_init_status == "Error (0)") {
                agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                  loading: true,
                  size: "sm"
                }));
              } else if (agmt_init_status == "Error (0) Total update succeeded") {
                agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
              } else {
                agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: agmt_attrs['cn']
                }, agmt_init_status);
              }
            } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
              agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
            } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
              agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                key: agmt_attrs['cn']
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                loading: true,
                size: "sm"
              }));
            } // Update table


            rows.push({
              'name': agmt_attrs['cn'],
              'host': agmt_attrs['nsds5replicahost'],
              'port': agmt_attrs['nsds5replicaport'],
              'state': [state],
              'status': [update_status],
              'initstatus': [agmt_init_status]
            });
          } // Set agmt


          _this11.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this11.state[suffix]), {}, {
            agmtRows: rows
          }))); // Load winsync agreements


          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this11.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
          Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadReplSuffix", "Get Winsync Agreements", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(function (content) {
            var obj = JSON.parse(content);
            var ws_rows = [];

            for (var idx in obj['items']) {
              var _state = "Enabled";
              var _update_status = "";
              var ws_agmt_init_status = "Initialized";
              var _agmt_attrs = obj['items'][idx]['attrs']; // let agmt_name = agmt_attrs['cn'][0];
              // Compute state (enabled by default)

              if ('nsds5replicaenabled' in _agmt_attrs) {
                if (_agmt_attrs['nsds5replicaenabled'][0].toLowerCase() == 'off') {
                  _state = "Disabled";
                }
              }

              if ('nsds5replicalastupdatestatus' in _agmt_attrs) {
                _update_status = _agmt_attrs['nsds5replicalastupdatestatus'][0];
              }

              if ('nsds5replicalastinitstatus' in _agmt_attrs && _agmt_attrs['nsds5replicalastinitstatus'][0] != "") {
                ws_agmt_init_status = _agmt_attrs['nsds5replicalastinitstatus'][0];

                if (ws_agmt_init_status == "Error (0) Total update in progress" || ws_agmt_init_status == "Error (0)") {
                  ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                    loading: true,
                    size: "sm"
                  }));
                } else if (ws_agmt_init_status == "Error (0) Total update succeeded") {
                  ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initialized"));
                } else {
                  ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                    key: _agmt_attrs['cn']
                  }, ws_agmt_init_status);
                }
              } else if ('nsds5replicalastinitstart' in _agmt_attrs && _agmt_attrs['nsds5replicalastinitstart'][0] == "19700101000000Z") {
                ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: _agmt_attrs['cn']
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Not initialized"));
              } else if ('nsds5beginreplicarefresh' in _agmt_attrs) {
                ws_agmt_init_status = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("td", {
                  key: _agmt_attrs['cn']
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("i", null, "Initializing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
                  loading: true,
                  size: "sm"
                }));
              } // Update table


              ws_rows.push({
                'name': _agmt_attrs['cn'],
                'host': _agmt_attrs['nsds5replicahost'],
                'port': _agmt_attrs['nsds5replicaport'],
                'state': [_state],
                'status': [_update_status],
                'initstatus': [ws_agmt_init_status]
              });
            } // Set winsync agmts


            _this11.setState(_defineProperty({}, suffix, _objectSpread(_objectSpread({}, _this11.state[suffix]), {}, {
              winsyncRows: ws_rows
            }))); // Load suffix RUV


            var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + _this11.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
            Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])('loadReplSuffix', 'Get the suffix RUV', cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
              superuser: true,
              err: "message"
            }).done(function (content) {
              var _this11$setState4;

              var ruvs = JSON.parse(content);
              var ruv_rows = [];

              for (var _idx in ruvs['items']) {
                var ruv = ruvs['items'][_idx]; // Update table

                ruv_rows.push({
                  'rid': ruv['rid'],
                  'url': ruv['url'],
                  'csn': ruv['csn'],
                  'raw_csn': ruv['raw_csn'],
                  'maxcsn': ruv['maxcsn'],
                  'raw_maxcsn': ruv['raw_maxcsn']
                });
              }

              _this11.setState((_this11$setState4 = {}, _defineProperty(_this11$setState4, suffix, _objectSpread(_objectSpread({}, _this11.state[suffix]), {}, {
                ruvRows: ruv_rows
              })), _defineProperty(_this11$setState4, "suffixLoading", false), _defineProperty(_this11$setState4, "disableTree", false), _this11$setState4));
            }).fail(function (err) {
              var errMsg = JSON.parse(err);

              if (errMsg.desc != "No such object") {
                _this11.props.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
              }

              _this11.setState({
                suffixLoading: false,
                disableTree: false
              });
            });
          }).fail(function (err) {
            var errMsg = JSON.parse(err);

            _this11.props.addNotification("error", "Error loading winsync agreements - ".concat(errMsg.desc));

            _this11.setState({
              suffixLoading: false,
              disableTree: false
            });
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this11.props.addNotification("error", "Error loading replication agreements configuration - ".concat(errMsg.desc));

          _this11.setState({
            suffixLoading: false,
            disableTree: false
          });
        });
      }).fail(function () {
        _this11.setState({
          suffixLoading: false,
          disableTree: false,
          node_replicated: false
        });
      });
    }
  }, {
    key: "loadAttrs",
    value: function loadAttrs() {
      var _this12 = this;

      // Now get the schema that various tabs use
      var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("Suffixes", "Get attrs", attr_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(attr_cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var attrContent = JSON.parse(content);
        var attrs = [];

        var _iterator3 = _createForOfIteratorHelper(attrContent['items']),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _content = _step3.value;
            attrs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this12.setState({
          attributes: attrs
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this12.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "disableTree",
    value: function disableTree() {
      this.setState({
        disableTree: true
      });
    }
  }, {
    key: "render",
    value: function render() {
      var nodes = this.state.nodes;
      var repl_page = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      var repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "There are currently no databases to configure for replication");

      if (this.state.loaded) {
        // We have a suffix, or database link
        if (this.state.node_type == "suffix" || this.state.node_type == "subsuffix") {
          if (this.state.suffixLoading) {
            repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
              className: "ds-margin-top ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading replication configuration for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("b", null, this.state.node_name, " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
              className: "ds-margin-top-lg",
              loading: true,
              size: "md"
            }));
          } else {
            if (this.state.node_name in this.state) {
              repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplSuffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_name,
                role: this.state[this.state.node_name].role,
                data: this.state[this.state.node_name],
                addNotification: this.props.addNotification,
                agmtRows: this.state[this.state.node_name].agmtRows,
                winsyncRows: this.state[this.state.node_name].winsyncRows,
                ruvRows: this.state[this.state.node_name].ruvRows,
                reloadAgmts: this.reloadAgmts,
                reloadWinsyncAgmts: this.reloadWinsyncAgmts,
                reloadRUV: this.reloadRUV,
                reloadConfig: this.reloadConfig,
                reload: this.loadSuffixTree,
                attrs: this.state.attributes,
                replicated: this.state.node_replicated,
                enableTree: this.enableTree,
                disableTree: this.disableTree,
                key: this.state.suffixKey,
                disabled: this.state.disabled,
                spinning: this.state.suffixSpinning
              }));
            } else {
              // Suffix is not replicated
              repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__["ReplSuffix"], {
                serverId: this.props.serverId,
                suffix: this.state.node_name,
                role: "",
                data: "",
                addNotification: this.props.addNotification,
                disableWSAgmtTable: this.state.disableWSAgmtTable,
                disableAgmtTable: this.state.disableAgmtTable,
                reloadAgmts: this.reloadAgmts,
                reloadWinsyncAgmts: this.reloadWinsyncAgmts,
                reloadRUV: this.reloadRUV,
                reloadConfig: this.reloadConfig,
                reload: this.loadSuffixTree,
                attrs: this.state.attributes,
                replicated: this.state.node_replicated,
                enableTree: this.enableTree,
                disableTree: this.disableTree,
                spinning: this.state.suffixSpinning,
                disabled: this.state.disabled,
                key: this.state.node_name
              });
            }
          }
        } else if (this.state.node_type == "changelog") {
          repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_replication_replChangelog_jsx__WEBPACK_IMPORTED_MODULE_4__["Changelog"], {
            serverId: this.props.serverId,
            clDir: this.state.clDir,
            clMaxEntries: this.state.clMaxEntries,
            clMaxAge: this.state.clMaxAge,
            clCompactInt: this.state.clCompactInt,
            clTrimInt: this.state.clTrimInt,
            clEncrypt: this.state.clEncrypt,
            addNotification: this.props.addNotification,
            enableTree: this.enableTree,
            reload: this.reloadChangelog,
            loading: this.state.clLoading,
            key: this.state.clDir
          });
        }

        repl_page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "repl-tree",
          style: treeViewContainerStyles
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, repl_element)));
      } else {
        repl_page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading Replication Information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_5__["Spinner"], {
          className: "ds-margin-top-lg",
          loading: true,
          size: "md"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, repl_page);
    }
  }]);

  return Replication;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Replication.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_6___default.a.string
};
Replication.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_5__["noop"],
  serverId: ""
};
/* harmony default export */ __webpack_exports__["default"] = (Replication);

/***/ }),

/***/ "./src/schema.jsx":
/*!************************!*\
  !*** ./src/schema.jsx ***!
  \************************/
/*! exports provided: Schema, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Schema", function() { return Schema; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/schema/schemaTables.jsx */ "./src/lib/schema/schemaTables.jsx");
/* harmony import */ var _lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/schema/schemaModals.jsx */ "./src/lib/schema/schemaModals.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }









var Schema = /*#__PURE__*/function (_React$Component) {
  _inherits(Schema, _React$Component);

  var _super = _createSuper(Schema);

  _createClass(Schema, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.wasActiveList.includes(4)) {
        if (this.state.firstLoad) {
          this.loadSyntaxesFirst();
        } else {
          if (this.props.serverId !== prevProps.serverId) {
            this.loadSyntaxesFirst();
          }
        }
      }
    }
  }]);

  function Schema(props) {
    var _this;

    _classCallCheck(this, Schema);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      loading: false,
      activeKey: 1,
      objectclassRows: [],
      filteredObjectclassRows: [],
      attributesRows: [],
      filteredAttributesRows: [],
      matchingrulesRows: [],
      syntaxes: [],
      attributes: [],
      objectclasses: [],
      matchingrules: [],
      deleteName: "",
      ocModalViewOnly: false,
      ocName: "",
      ocDesc: "",
      ocOID: "",
      ocParent: [],
      ocKind: "",
      ocMust: [],
      ocMay: [],
      ocUserDefined: false,
      objectclassModalShow: false,
      newOcEntry: true,
      ocTableLoading: false,
      ocModalLoading: false,
      atName: "",
      atDesc: "",
      atOID: "",
      atParent: [],
      atSyntax: [],
      atUsage: "userApplications",
      atMultivalued: false,
      atNoUserMod: false,
      atAlias: [],
      atEqMr: [],
      atOrder: [],
      atSubMr: [],
      atUserDefined: false,
      atModalViewOnly: false,
      attributeModalShow: false,
      newAtEntry: true,
      atTableLoading: false,
      atModalLoading: false
    };
    _this.handleFieldChange = _this.handleFieldChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_this));
    _this.loadSchemaData = _this.loadSchemaData.bind(_assertThisInitialized(_this));
    _this.loadSyntaxesFirst = _this.loadSyntaxesFirst.bind(_assertThisInitialized(_this));
    _this.toggleLoading = _this.toggleLoading.bind(_assertThisInitialized(_this));
    _this.showViewObjectclassModal = _this.showViewObjectclassModal.bind(_assertThisInitialized(_this));
    _this.showEditObjectclassModal = _this.showEditObjectclassModal.bind(_assertThisInitialized(_this));
    _this.showAddObjectclassModal = _this.showAddObjectclassModal.bind(_assertThisInitialized(_this));
    _this.openObjectclassModal = _this.openObjectclassModal.bind(_assertThisInitialized(_this));
    _this.closeObjectclassModal = _this.closeObjectclassModal.bind(_assertThisInitialized(_this));
    _this.doDeleteOC = _this.doDeleteOC.bind(_assertThisInitialized(_this));
    _this.addObjectclass = _this.addObjectclass.bind(_assertThisInitialized(_this));
    _this.editObjectclass = _this.editObjectclass.bind(_assertThisInitialized(_this));
    _this.cmdOperationObjectclass = _this.cmdOperationObjectclass.bind(_assertThisInitialized(_this));
    _this.showConfirmOCDelete = _this.showConfirmOCDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmOCDelete = _this.closeConfirmOCDelete.bind(_assertThisInitialized(_this));
    _this.showViewAttributeModal = _this.showViewAttributeModal.bind(_assertThisInitialized(_this));
    _this.showEditAttributeModal = _this.showEditAttributeModal.bind(_assertThisInitialized(_this));
    _this.showAddAttributeModal = _this.showAddAttributeModal.bind(_assertThisInitialized(_this));
    _this.openAttributeModal = _this.openAttributeModal.bind(_assertThisInitialized(_this));
    _this.closeAttributeModal = _this.closeAttributeModal.bind(_assertThisInitialized(_this));
    _this.doDeleteAttr = _this.doDeleteAttr.bind(_assertThisInitialized(_this));
    _this.addAttribute = _this.addAttribute.bind(_assertThisInitialized(_this));
    _this.editAttribute = _this.editAttribute.bind(_assertThisInitialized(_this));
    _this.cmdOperationAttribute = _this.cmdOperationAttribute.bind(_assertThisInitialized(_this));
    _this.showConfirmAttrDelete = _this.showConfirmAttrDelete.bind(_assertThisInitialized(_this));
    _this.closeConfirmAttrDelete = _this.closeConfirmAttrDelete.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Schema, [{
    key: "toggleLoading",
    value: function toggleLoading(item) {
      if (item == "allSchema") {
        this.setState(function (prevState) {
          return {
            loading: !prevState.loading
          };
        });
      } else if (item == "ocTable") {
        this.setState(function (prevState) {
          return {
            ocTableLoading: !prevState.ocTableLoading
          };
        });
      } else if (item == "ocModal") {
        this.setState(function (prevState) {
          return {
            ocModalLoading: !prevState.ocModalLoading
          };
        });
      } else if (item == "atTable") {
        this.setState(function (prevState) {
          return {
            atTableLoading: !prevState.atTableLoading
          };
        });
      } else if (item == "atModal") {
        this.setState(function (prevState) {
          return {
            atModalLoading: !prevState.atModalLoading
          };
        });
      }
    }
  }, {
    key: "loadSyntaxesFirst",
    value: function loadSyntaxesFirst() {
      var _this2 = this;

      if (this.state.firstLoad) {
        this.setState({
          firstLoad: false
        });
      }

      this.toggleLoading("allSchema");
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "get_syntaxes"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSyntaxes", "Get syntaxes for attributetypes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);

        _this2.setState({
          syntaxes: myObject.items
        });

        _this2.loadSchemaData(true);
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("loadSyntaxes failed: ", errMsg.desc);
        }
      });
    }
  }, {
    key: "loadSchemaData",
    value: function loadSchemaData(initialLoading) {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadSchemaData", "Get schema objects in one batch", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var myObject = JSON.parse(content);
        var attrs = [];
        var ocs = [];
        var mrs = [];

        var _iterator = _createForOfIteratorHelper(myObject.attributetypes.items),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _content = _step.value;
            attrs.push({
              id: _content.name[0],
              label: _content.name[0]
            });
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        var _iterator2 = _createForOfIteratorHelper(myObject.objectclasses.items),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var _content2 = _step2.value;
            ocs.push({
              id: _content2.name[0],
              label: _content2.name[0]
            });
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        var _iterator3 = _createForOfIteratorHelper(myObject.matchingrules.items),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _content3 = _step3.value;
            mrs.push({
              id: _content3.name[0],
              label: _content3.name[0]
            });
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        _this3.setState({
          objectclassRows: myObject.objectclasses.items,
          attributesRows: myObject.attributetypes.items,
          matchingrulesRows: myObject.matchingrules.items,
          attributes: attrs,
          matchingrules: mrs,
          objectclasses: ocs
        });

        if (_this3.state.ocUserDefined) {
          _this3.setState({
            filteredObjectclassRows: Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["searchFilter"])("user defined", ["x_origin"], myObject.objectclasses.items)
          });
        } else {
          _this3.setState({
            filteredObjectclassRows: myObject.objectclasses.items
          });
        }

        if (_this3.state.atUserDefined) {
          _this3.setState({
            filteredAttributesRows: Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["searchFilter"])("user defined", ["x_origin"], myObject.attributetypes.items)
          });
        } else {
          _this3.setState({
            filteredAttributesRows: myObject.attributetypes.items
          });
        }

        if (initialLoading) {
          _this3.toggleLoading("allSchema");
        }
      }).fail(function (err) {
        if (err != 0) {
          var errMsg = JSON.parse(err);
          console.log("loadSchemaData failed: ", errMsg.desc);
        }

        if (initialLoading) {
          _this3.toggleLoading("allSchema");
        }
      });
    }
  }, {
    key: "showViewObjectclassModal",
    value: function showViewObjectclassModal(rowData) {
      this.setState({
        ocModalViewOnly: true
      });
      this.openObjectclassModal(rowData.name[0]);
    }
  }, {
    key: "showEditObjectclassModal",
    value: function showEditObjectclassModal(rowData) {
      this.setState({
        ocModalViewOnly: false
      });
      this.openObjectclassModal(rowData.name[0]);
    }
  }, {
    key: "showAddObjectclassModal",
    value: function showAddObjectclassModal(rowData) {
      this.setState({
        ocModalViewOnly: false
      });
      this.openObjectclassModal();
    }
  }, {
    key: "openObjectclassModal",
    value: function openObjectclassModal(name) {
      var _this4 = this;

      if (!name) {
        this.setState({
          ocName: "",
          ocDesc: "",
          ocOID: "",
          ocParent: [],
          ocKind: "",
          ocMust: [],
          ocMay: [],
          objectclassModalShow: true,
          newOcEntry: true
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "query", name];
        this.toggleLoading("ocTable");
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("openObjectclassModal", "Fetch ObjectClass data from schema", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var obj = JSON.parse(content);
          var item = obj.oc;
          var ocMustList = [];
          var ocMayList = [];
          var kindOpts = ["STRUCTURAL", "ABSTRACT", "AUXILIARY"];

          _this4.setState({
            objectclassModalShow: true,
            newOcEntry: false,
            ocName: item["name"] === undefined ? "" : item["name"][0],
            ocDesc: item["desc"] === null ? "" : item["desc"][0],
            ocOID: item["oid"] === undefined ? "" : item["oid"][0],
            ocKind: item["kind"] === undefined ? "" : kindOpts[item["kind"]],
            ocParent: item["sup"].length == 0 ? [] : [{
              id: item["sup"][0],
              label: item["sup"][0]
            }]
          });

          if (item["must"] === undefined) {
            _this4.setState({
              ocMust: []
            });
          } else {
            var _iterator4 = _createForOfIteratorHelper(item["must"]),
                _step4;

            try {
              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                var value = _step4.value;
                ocMustList = [].concat(_toConsumableArray(ocMustList), [{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _iterator4.e(err);
            } finally {
              _iterator4.f();
            }

            _this4.setState({
              ocMust: ocMustList
            });
          }

          if (item["may"] === undefined) {
            _this4.setState({
              ocMay: []
            });
          } else {
            var _iterator5 = _createForOfIteratorHelper(item["may"]),
                _step5;

            try {
              for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                var _value = _step5.value;
                ocMayList = [].concat(_toConsumableArray(ocMayList), [{
                  id: _value,
                  label: _value
                }]);
              }
            } catch (err) {
              _iterator5.e(err);
            } finally {
              _iterator5.f();
            }

            _this4.setState({
              ocMay: ocMayList
            });
          }

          _this4.toggleLoading("ocTable");
        }).fail(function (_) {
          _this4.setState({
            ocName: "",
            ocDesc: "",
            ocOID: "",
            ocParent: [],
            ocKind: "",
            ocMust: [],
            ocMay: [],
            objectclassModalShow: true,
            newOcEntry: true
          });

          _this4.toggleLoading("ocTable");
        });
      }
    }
  }, {
    key: "closeObjectclassModal",
    value: function closeObjectclassModal() {
      this.setState({
        objectclassModalShow: false
      });
    }
  }, {
    key: "closeConfirmOCDelete",
    value: function closeConfirmOCDelete() {
      // call doDeleteOC
      this.setState({
        showConfirmDeleteOC: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "showConfirmOCDelete",
    value: function showConfirmOCDelete(oc_name) {
      this.setState({
        showConfirmDeleteOC: true,
        modalChecked: false,
        modalSpinning: false,
        deleteName: oc_name
      });
    }
  }, {
    key: "doDeleteOC",
    value: function doDeleteOC() {
      var _this5 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "remove", this.state.deleteName];
      this.setState({
        modalSpinning: true
      });
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteObjectclass", "Delete ObjectClass from schema", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteObjectclass", "Result", content);

        _this5.props.addNotification("success", "ObjectClass ".concat(_this5.state.deleteName, " was successfully deleted"));

        _this5.loadSchemaData();

        _this5.closeConfirmOCDelete();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this5.props.addNotification("error", "Error during ObjectClass removal operation - ".concat(errMsg.desc));

        _this5.loadSchemaData();

        _this5.closeConfirmOCDelete();
      });
    }
  }, {
    key: "addObjectclass",
    value: function addObjectclass() {
      this.cmdOperationObjectclass("add");
    }
  }, {
    key: "editObjectclass",
    value: function editObjectclass() {
      this.cmdOperationObjectclass("replace");
    }
  }, {
    key: "cmdOperationObjectclass",
    value: function cmdOperationObjectclass(action) {
      var _this6 = this;

      var _this$state = this.state,
          ocName = _this$state.ocName,
          ocDesc = _this$state.ocDesc,
          ocOID = _this$state.ocOID,
          ocParent = _this$state.ocParent,
          ocKind = _this$state.ocKind,
          ocMust = _this$state.ocMust,
          ocMay = _this$state.ocMay;

      if (ocName == "") {
        this.props.addNotification("warning", "ObjectClass Name is required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", action, ocName]; // Process and validate parameters

        if (ocOID != "") {
          cmd = [].concat(_toConsumableArray(cmd), ["--oid", ocOID]);
        }

        if (ocParent.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), ["--sup", ocParent[0].label]);
        }

        if (ocKind != "") {
          cmd = [].concat(_toConsumableArray(cmd), ["--kind", ocKind]);
        }

        if (ocDesc != "") {
          cmd = [].concat(_toConsumableArray(cmd), ["--desc", ocDesc]);
        }

        if (ocMust.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), ["--must"]);

          var _iterator6 = _createForOfIteratorHelper(ocMust),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var value = _step6.value;
              cmd = [].concat(_toConsumableArray(cmd), [value.label]);
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }
        }

        if (ocMay.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), ["--may"]);

          var _iterator7 = _createForOfIteratorHelper(ocMay),
              _step7;

          try {
            for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
              var _value2 = _step7.value;
              cmd = [].concat(_toConsumableArray(cmd), [_value2.label]);
            }
          } catch (err) {
            _iterator7.e(err);
          } finally {
            _iterator7.f();
          }
        }

        this.toggleLoading("ocModal");
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("cmdOperationObjectclass", "Do the ".concat(action, " operation on ObjectClass"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("cmdOperationObjectclass", "Result", content);

          _this6.props.addNotification("success", "ObjectClass ".concat(ocName, " - ").concat(action, " operation was successfull"));

          _this6.loadSchemaData();

          _this6.closeObjectclassModal();

          _this6.toggleLoading("ocModal");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this6.props.addNotification("error", "Error during the ObjectClass ".concat(action, " operation - ").concat(errMsg.desc));

          _this6.loadSchemaData();

          _this6.closeObjectclassModal();

          _this6.toggleLoading("ocModal");
        });
      }
    }
  }, {
    key: "showViewAttributeModal",
    value: function showViewAttributeModal(rowData) {
      this.setState({
        atModalViewOnly: true
      });
      this.openAttributeModal(rowData.name[0]);
    }
  }, {
    key: "showEditAttributeModal",
    value: function showEditAttributeModal(rowData) {
      this.setState({
        atModalViewOnly: false
      });
      this.openAttributeModal(rowData.name[0]);
    }
  }, {
    key: "showAddAttributeModal",
    value: function showAddAttributeModal(rowData) {
      this.setState({
        atModalViewOnly: false
      });
      this.openAttributeModal();
    }
  }, {
    key: "openAttributeModal",
    value: function openAttributeModal(name) {
      var _this7 = this;

      if (!name) {
        this.setState({
          atName: "",
          atDesc: "",
          atOID: "",
          atParent: [],
          atSyntax: [],
          atUsage: "userApplications",
          atMultivalued: false,
          atNoUserMod: false,
          atAlias: [],
          atEqMr: [],
          atOrder: [],
          atSubMr: [],
          attributeModalShow: true,
          newAtEntry: true
        });
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "query", name];
        this.toggleLoading("atTable");
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("openAttributeModal", "Fetch Attribute data from schema", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          var obj = JSON.parse(content);
          var item = obj.at;
          var atAliasList = [];
          var atUsageOpts = ["userApplications", "directoryOperation", "distributedOperation", "dSAOperation"];

          _this7.setState({
            attributeModalShow: true,
            newAtEntry: false,
            atName: item["name"] === undefined ? "" : item["name"][0],
            atDesc: item["desc"] === null ? "" : item["desc"][0],
            atOID: item["oid"] === undefined ? "" : item["oid"][0],
            atParent: item["sup"].length == 0 ? [] : [{
              id: item["sup"][0],
              label: item["sup"][0]
            }],
            atSyntax: item["syntax"] === undefined ? [] : [{
              id: item["syntax"][0],
              label: _this7.state.syntaxes.filter(function (attr) {
                return attr.id === item["syntax"][0];
              })[0]["label"]
            }],
            atUsage: item["usage"] === undefined ? "" : atUsageOpts[item["usage"]],
            atMultivalued: !item["single_value"],
            atNoUserMod: item["no_user_mod"],
            atEqMr: item["equality"] === null ? [] : [{
              id: item["equality"][0],
              label: item["equality"][0]
            }],
            atOrder: item["ordering"] === null ? [] : [{
              id: item["ordering"][0],
              label: item["ordering"][0]
            }],
            atSubMr: item["substr"] === null ? [] : [{
              id: item["substr"][0],
              label: item["substr"][0]
            }]
          });

          if (item["aliases"] === null) {
            _this7.setState({
              atAlias: []
            });
          } else {
            var _iterator8 = _createForOfIteratorHelper(item["aliases"]),
                _step8;

            try {
              for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
                var value = _step8.value;
                atAliasList = [].concat(_toConsumableArray(atAliasList), [{
                  id: value,
                  label: value
                }]);
              }
            } catch (err) {
              _iterator8.e(err);
            } finally {
              _iterator8.f();
            }

            _this7.setState({
              atAlias: atAliasList
            });
          }

          _this7.toggleLoading("atTable");
        }).fail(function (_) {
          _this7.setState({
            atName: "",
            atDesc: "",
            atOID: "",
            atParent: [],
            atSyntax: [],
            atUsage: "userApplications",
            atMultivalued: false,
            atNoUserMod: false,
            atAlias: [],
            atEqMr: [],
            atOrder: [],
            atSubMr: [],
            attributeModalShow: true,
            newAtEntry: true
          });

          _this7.toggleLoading("atTable");
        });
      }
    }
  }, {
    key: "closeAttributeModal",
    value: function closeAttributeModal() {
      this.setState({
        attributeModalShow: false
      });
    }
  }, {
    key: "closeConfirmAttrDelete",
    value: function closeConfirmAttrDelete() {
      this.setState({
        showConfirmAttrDelete: false,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }, {
    key: "showConfirmAttrDelete",
    value: function showConfirmAttrDelete(attr_name) {
      this.setState({
        showConfirmAttrDelete: true,
        modalChecked: false,
        modalSpinning: false,
        deleteName: attr_name
      });
    }
  }, {
    key: "doDeleteAttr",
    value: function doDeleteAttr() {
      var _this8 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "remove", this.state.deleteName];
      this.setState({
        modalSpinning: true
      });
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("deleteAttribute", "Delete Attribute from schema", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        console.info("deleteAttribute", "Result", content);

        _this8.props.addNotification("success", "Attribute ".concat(_this8.state.deleteName, " was successfully deleted"));

        _this8.loadSchemaData();

        _this8.closeConfirmAttrDelete();
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this8.props.addNotification("error", "Error during Attribute removal operation - ".concat(errMsg.desc));

        _this8.loadSchemaData();

        _this8.closeConfirmAttrDelete();
      });
    }
  }, {
    key: "addAttribute",
    value: function addAttribute() {
      this.cmdOperationAttribute("add");
    }
  }, {
    key: "editAttribute",
    value: function editAttribute() {
      this.cmdOperationAttribute("replace");
    }
  }, {
    key: "cmdOperationAttribute",
    value: function cmdOperationAttribute(action) {
      var _this9 = this;

      var _this$state2 = this.state,
          atName = _this$state2.atName,
          atDesc = _this$state2.atDesc,
          atOID = _this$state2.atOID,
          atParent = _this$state2.atParent,
          atSyntax = _this$state2.atSyntax,
          atUsage = _this$state2.atUsage,
          atMultivalued = _this$state2.atMultivalued,
          atNoUserMod = _this$state2.atNoUserMod,
          atAlias = _this$state2.atAlias,
          atEqMr = _this$state2.atEqMr,
          atOrder = _this$state2.atOrder,
          atSubMr = _this$state2.atSubMr;

      if (atName == "" || atSyntax.length == 0) {
        this.props.addNotification("warning", "Attribute Name and Syntax are required.");
      } else {
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", action, atName];
        cmd = [].concat(_toConsumableArray(cmd), ["--syntax", atSyntax[0].id]);

        if (atAlias.length != 0) {
          cmd = [].concat(_toConsumableArray(cmd), ["--aliases"]);

          var _iterator9 = _createForOfIteratorHelper(atAlias),
              _step9;

          try {
            for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
              var value = _step9.value;
              cmd = [].concat(_toConsumableArray(cmd), [value.label]);
            }
          } catch (err) {
            _iterator9.e(err);
          } finally {
            _iterator9.f();
          }
        }

        if (atMultivalued) {
          cmd = [].concat(_toConsumableArray(cmd), ["--multi-value"]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["--single-value"]);
        }

        if (atNoUserMod) {
          cmd = [].concat(_toConsumableArray(cmd), ["--no-user-mod"]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), ["--user-mod"]);
        }

        cmd = [].concat(_toConsumableArray(cmd), ["--oid", atOID]);
        cmd = [].concat(_toConsumableArray(cmd), ["--usage", atUsage]);
        cmd = [].concat(_toConsumableArray(cmd), ["--desc", atDesc]);
        cmd = [].concat(_toConsumableArray(cmd), ["--sup"]);

        if (atParent != "") {
          cmd = [].concat(_toConsumableArray(cmd), [atParent[0].label]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        }

        cmd = [].concat(_toConsumableArray(cmd), ["--equality"]);

        if (atEqMr != "") {
          cmd = [].concat(_toConsumableArray(cmd), [atEqMr[0].label]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        }

        cmd = [].concat(_toConsumableArray(cmd), ["--substr"]);

        if (atSubMr != "") {
          cmd = [].concat(_toConsumableArray(cmd), [atSubMr[0].label]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        }

        cmd = [].concat(_toConsumableArray(cmd), ["--ordering"]);

        if (atOrder != "") {
          cmd = [].concat(_toConsumableArray(cmd), [atOrder[0].label]);
        } else {
          cmd = [].concat(_toConsumableArray(cmd), [""]);
        }

        this.toggleLoading("atModal");
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("cmdOperationAttribute", "Do the ".concat(action, " operation on Attribute"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(function (content) {
          console.info("cmdOperationAttribute", "Result", content);

          _this9.props.addNotification("success", "Attribute ".concat(atName, " - ").concat(action, " operation was successfull"));

          _this9.loadSchemaData();

          _this9.closeAttributeModal();

          _this9.toggleLoading("atModal");
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this9.props.addNotification("error", "Error during the Attribute ".concat(action, " operation - ").concat(errMsg.desc));

          _this9.loadSchemaData();

          _this9.closeAttributeModal();

          _this9.toggleLoading("atModal");
        });
      }
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(state, values) {
      this.setState(_defineProperty({}, state, values));
    }
  }, {
    key: "handleFieldChange",
    value: function handleFieldChange(e) {
      var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;

      if (e.target.id == "ocUserDefined" && value) {
        this.setState({
          filteredObjectclassRows: Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["searchFilter"])("user defined", ["x_origin"], this.state.objectclassRows)
        });
      } else {
        this.setState({
          filteredObjectclassRows: this.state.objectclassRows
        });
      }

      if (e.target.id == "atUserDefined" && value) {
        this.setState({
          filteredAttributesRows: Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["searchFilter"])("user defined", ["x_origin"], this.state.attributesRows)
        });
      } else {
        this.setState({
          filteredAttributesRows: this.state.attributesRows
        });
      }

      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "render",
    value: function render() {
      var schemaPage = "";

      if (this.state.loading) {
        schemaPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading schema information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        schemaPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tab-table"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContainer"], {
          id: "basic-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: "Objectclasses"
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: "Attributes"
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["NavItem"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: "Matching Rules"
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-indent"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "ocUserDefined",
          checked: this.state.ocUserDefined,
          title: "Show only the objectclasses that are defined by a user",
          onChange: this.handleFieldChange
        }, "Only Non-standard Schema (objectClasses with X-ORIGIN: \"user defined\")"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__["ObjectClassesTable"], {
          rows: this.state.filteredObjectclassRows,
          viewModalHandler: this.showViewObjectclassModal,
          editModalHandler: this.showEditObjectclassModal,
          deleteHandler: this.showConfirmOCDelete,
          loading: this.state.ocTableLoading
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          className: "ds-margin-top",
          bsStyle: "primary",
          onClick: this.showAddObjectclassModal
        }, "Add ObjectClass"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__["ObjectClassModal"], {
          addHandler: this.addObjectclass,
          editHandler: this.editObjectclass,
          newOcEntry: this.state.newOcEntry,
          ocModalViewOnly: this.state.ocModalViewOnly,
          handleTypeaheadChange: this.handleTypeaheadChange,
          handleFieldChange: this.handleFieldChange,
          objectclasses: this.state.objectclasses,
          attributes: this.state.attributes,
          ocName: this.state.ocName,
          ocDesc: this.state.ocDesc,
          ocOID: this.state.ocOID,
          ocParent: this.state.ocParent,
          ocKind: this.state.ocKind,
          ocMust: this.state.ocMust,
          ocMay: this.state.ocMay,
          objectclassModalShow: this.state.objectclassModalShow,
          closeModal: this.closeObjectclassModal,
          loading: this.state.ocModalLoading
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-indent"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Checkbox"], {
          id: "atUserDefined",
          checked: this.state.atUserDefined,
          title: "Show only the attributes that are defined by a user",
          onChange: this.handleFieldChange
        }, "Only Non-standard Schema (attributes with X-ORIGIN: \"user defined\")"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__["AttributesTable"], {
          rows: this.state.filteredAttributesRows,
          viewModalHandler: this.showViewAttributeModal,
          editModalHandler: this.showEditAttributeModal,
          deleteHandler: this.showConfirmAttrDelete,
          syntaxes: this.state.syntaxes,
          loading: this.state.atTableLoading
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["Button"], {
          className: "ds-margin-top",
          bsStyle: "primary",
          onClick: this.showAddAttributeModal
        }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__["AttributeTypeModal"], {
          addHandler: this.addAttribute,
          editHandler: this.editAttribute,
          newAtEntry: this.state.newAtEntry,
          atModalViewOnly: this.state.atModalViewOnly,
          handleTypeaheadChange: this.handleTypeaheadChange,
          handleFieldChange: this.handleFieldChange,
          objectclasses: this.state.objectclasses,
          attributes: this.state.attributes,
          matchingrules: this.state.matchingrules,
          syntaxes: this.state.syntaxes,
          atName: this.state.atName,
          atDesc: this.state.atDesc,
          atOID: this.state.atOID,
          atParent: this.state.atParent,
          atSyntax: this.state.atSyntax,
          atUsage: this.state.atUsage,
          atMultivalued: this.state.atMultivalued,
          atNoUserMod: this.state.atNoUserMod,
          atAlias: this.state.atAlias,
          atEqMr: this.state.atEqMr,
          atOrder: this.state.atOrder,
          atSubMr: this.state.atSubMr,
          attributeModalShow: this.state.attributeModalShow,
          closeModal: this.closeAttributeModal,
          loading: this.state.atModalLoading
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_6__["TabPane"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-indent"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__["MatchingRulesTable"], {
          rows: this.state.matchingrulesRows
        }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["DoubleConfirmModal"], {
          showModal: this.state.showConfirmDeleteOC,
          closeHandler: this.closeConfirmOCDelete,
          handleChange: this.handleFieldChange,
          actionHandler: this.doDeleteOC,
          spinning: this.state.modalSpinning,
          item: this.state.deleteName,
          checked: this.state.modalChecked,
          mTitle: "Delete An Objectclass",
          mMsg: "Are you sure you want to delete this Objectclass?",
          mSpinningMsg: "Deleting objectclass ...",
          mBtnName: "Delete Objectclass"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__["DoubleConfirmModal"], {
          showModal: this.state.showConfirmAttrDelete,
          closeHandler: this.closeConfirmAttrDelete,
          handleChange: this.handleFieldChange,
          actionHandler: this.doDeleteAttr,
          spinning: this.state.modalSpinning,
          item: this.state.deleteName,
          checked: this.state.modalChecked,
          mTitle: "Delete An Attribute",
          mMsg: "Are you sure you want to delete this Attribute?",
          mSpinningMsg: "Deleting attribute ...",
          mBtnName: "Delete Attribute"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, schemaPage);
    }
  }]);

  return Schema;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Props and defaultProps

Schema.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_7___default.a.string
};
Schema.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_6__["noop"],
  serverId: ""
};
/* harmony default export */ __webpack_exports__["default"] = (Schema);

/***/ }),

/***/ "./src/security.jsx":
/*!**************************!*\
  !*** ./src/security.jsx ***!
  \**************************/
/*! exports provided: Security, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Security", function() { return Security; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react_switch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-switch */ "./node_modules/react-switch/index.js");
/* harmony import */ var react_switch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_switch__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-bootstrap-typeahead */ "./node_modules/react-bootstrap-typeahead/lib/index.js");
/* harmony import */ var react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/security/certificateManagement.jsx */ "./src/lib/security/certificateManagement.jsx");
/* harmony import */ var _lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/security/securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var _lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/security/ciphers.jsx */ "./src/lib/security/ciphers.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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 _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }












var Security = /*#__PURE__*/function (_React$Component) {
  _inherits(Security, _React$Component);

  var _super = _createSuper(Security);

  function Security(props) {
    var _this;

    _classCallCheck(this, Security);

    _this = _super.call(this, props);
    _this.state = {
      loaded: false,
      saving: false,
      activeKey: 1,
      errObj: {},
      showConfirmDisable: false,
      showSecurityEnableModal: false,
      primaryCertName: '',
      serverCertNames: [],
      serverCerts: [],
      // Ciphers
      supportedCiphers: [],
      enabledCiphers: [],
      // Config settings
      securityEnabled: false,
      requireSecureBinds: false,
      secureListenhost: false,
      clientAuth: false,
      checkHostname: false,
      validateCert: '',
      sslVersionMin: '',
      sslVersionMax: '',
      allowWeakCipher: false,
      nssslpersonalityssl: '',
      nstlsallowclientrenegotiation: true,
      // Original config Settings
      _securityEnabled: false,
      _requireSecureBinds: false,
      _secureListenhost: false,
      _clientAuth: false,
      _checkHostname: false,
      _validateCert: '',
      _sslVersionMin: '',
      _sslVersionMax: '',
      _allowWeakCipher: false,
      _nssslpersonalityssl: '',
      _nstlsallowclientrenegotiation: true
    };
    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
    _this.handleNavSelect = _this.handleNavSelect.bind(_assertThisInitialized(_this));
    _this.handleSwitchChange = _this.handleSwitchChange.bind(_assertThisInitialized(_this));
    _this.handleTypeaheadChange = _this.handleTypeaheadChange.bind(_assertThisInitialized(_this));
    _this.loadSecurityConfig = _this.loadSecurityConfig.bind(_assertThisInitialized(_this));
    _this.loadEnabledCiphers = _this.loadEnabledCiphers.bind(_assertThisInitialized(_this));
    _this.loadSupportedCiphers = _this.loadSupportedCiphers.bind(_assertThisInitialized(_this));
    _this.loadCerts = _this.loadCerts.bind(_assertThisInitialized(_this));
    _this.loadCACerts = _this.loadCACerts.bind(_assertThisInitialized(_this));
    _this.closeConfirmDisable = _this.closeConfirmDisable.bind(_assertThisInitialized(_this));
    _this.enableSecurity = _this.enableSecurity.bind(_assertThisInitialized(_this));
    _this.disableSecurity = _this.disableSecurity.bind(_assertThisInitialized(_this));
    _this.saveSecurityConfig = _this.saveSecurityConfig.bind(_assertThisInitialized(_this));
    _this.closeSecurityEnableModal = _this.closeSecurityEnableModal.bind(_assertThisInitialized(_this));
    _this.reloadConfig = _this.reloadConfig.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Security, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (!this.state.loaded) {
        this.setState({
          securityEnabled: true
        }, this.setState({
          securityEnabled: false
        }));
        this.loadSecurityConfig();
      } else {
        this.props.enableTree();
      }
    }
  }, {
    key: "reloadConfig",
    value: function reloadConfig() {
      this.setState({
        loaded: false
      }, this.loadSecurityConfig);
    }
  }, {
    key: "loadSupportedCiphers",
    value: function loadSupportedCiphers() {
      var _this2 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--supported"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadSupportedCiphers", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this2.setState({
          supportedCiphers: config.items
        }, _this2.loadEnabledCiphers);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this2.props.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadEnabledCiphers",
    value: function loadEnabledCiphers() {
      var _this3 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--enabled"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadEnabledCiphers", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);

        _this3.setState({
          enabledCiphers: config.items
        }, _this3.loadCerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this3.props.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadCACerts",
    value: function loadCACerts() {
      var _this4 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadCACerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);

        _this4.setState(function () {
          return {
            CACerts: certs,
            loaded: true
          };
        }, _this4.props.enableTree());
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this4.props.addNotification("error", "Error loading CA certificates - ".concat(msg));
      });
    }
  }, {
    key: "loadCerts",
    value: function loadCerts() {
      var _this5 = this;

      // Set loaded: true
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadCerts", "Load certificates", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var certs = JSON.parse(content);
        var certNames = [];

        var _iterator = _createForOfIteratorHelper(certs),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var cert = _step.value;
            certNames.push(cert.attrs['nickname']);
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        _this5.setState(function () {
          return {
            serverCerts: certs,
            serverCertNames: certNames
          };
        }, _this5.loadCACerts);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this5.props.addNotification("error", "Error loading server certificates - ".concat(msg));
      });
    }
  }, {
    key: "loadRSAConfig",
    value: function loadRSAConfig() {
      var _this6 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "rsa", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadRSAConfig", "Load the RSA configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var nickname = config.items['nssslpersonalityssl'];

        _this6.setState(function () {
          return {
            nssslpersonalityssl: nickname,
            _nssslpersonalityssl: nickname
          };
        }, _this6.loadSupportedCiphers);
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this6.props.addNotification("error", "Error loading security RSA configuration - ".concat(msg));
      });
    }
  }, {
    key: "loadSecurityConfig",
    value: function loadSecurityConfig(saving) {
      var _this7 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("loadSecurityConfig", "Load the security configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.items;
        var secEnabled = false;
        var secReqSecBinds = false;
        var clientAuth = "allowed";
        var validateCert = "warn";
        var cipherPref = "default";
        var allowWeak = false;
        var renegot = true;

        if ('nstlsallowclientrenegotiation' in config.items) {
          if (config.items['nstlsallowclientrenegotiation'] == "off") {
            renegot = false;
          }
        }

        if ('nsslapd-security' in attrs) {
          if (attrs['nsslapd-security'].toLowerCase() == "on") {
            secEnabled = true;
          }
        }

        if ('nsslapd-require-secure-binds' in attrs) {
          if (attrs['nsslapd-require-secure-binds'].toLowerCase() == "on") {
            secReqSecBinds = true;
          }
        }

        if ('nssslclientauth' in attrs) {
          if (attrs['nssslclientauth'] != "") {
            clientAuth = attrs['nssslclientauth'];
          }
        }

        if ('nsslapd-validate-cert' in attrs) {
          if (attrs['nsslapd-validate-cert'] != "") {
            validateCert = attrs['nsslapd-validate-cert'].toLowerCase();
          }
        }

        if ('allowweakcipher' in attrs) {
          if (attrs['allowweakcipher'].toLowerCase() == "on") {
            allowWeak = true;
          }
        }

        if ('nsssl3ciphers' in attrs) {
          if (attrs['nsssl3ciphers'] != "") {
            cipherPref = attrs['nsssl3ciphers'];
          }
        }

        _this7.setState(function () {
          return {
            securityEnabled: secEnabled,
            requireSecureBinds: secReqSecBinds,
            secureListenhost: attrs['nsslapd-securelistenhost'],
            clientAuth: clientAuth,
            checkHostname: attrs['nsslapd-ssl-check-hostname'],
            validateCert: validateCert,
            sslVersionMin: attrs['sslversionmin'],
            sslVersionMax: attrs['sslversionmax'],
            allowWeakCipher: allowWeak,
            cipherPref: cipherPref,
            nstlsallowclientrenegotiation: renegot,
            _nstlsallowclientrenegotiation: renegot,
            _securityEnabled: secEnabled,
            _requireSecureBinds: secReqSecBinds,
            _secureListenhost: attrs['nsslapd-securelistenhost'],
            _clientAuth: clientAuth,
            _checkHostname: attrs['nsslapd-ssl-check-hostname'],
            _validateCert: validateCert,
            _sslVersionMin: attrs['sslversionmin'],
            _sslVersionMax: attrs['sslversionmax'],
            _allowWeakCipher: allowWeak
          };
        }, function () {
          if (!saving) {
            this.loadRSAConfig();
          }
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this7.props.addNotification("error", "Error loading security configuration - ".concat(msg));
      });
    }
  }, {
    key: "handleNavSelect",
    value: function handleNavSelect(key) {
      this.setState({
        activeKey: key
      });
    }
  }, {
    key: "handleSwitchChange",
    value: function handleSwitchChange(value) {
      if (!value) {
        // We are disabling security, ask for confirmation
        this.setState({
          showConfirmDisable: true
        });
      } else {
        // Check if we have certs, if we do make the user choose one from dropdown list, otherwise reject the
        // enablement
        if (this.state.serverCerts.length > 0) {
          this.setState({
            primaryCertName: this.state.nssslpersonalityssl,
            showSecurityEnableModal: true
          });
        } else {
          this.props.addNotification("error", "There must be at least one server certificate present in the security database to enable security");
        }
      }
    }
  }, {
    key: "closeSecurityEnableModal",
    value: function closeSecurityEnableModal() {
      this.setState({
        showSecurityEnableModal: false
      });
    }
  }, {
    key: "handleSecEnableChange",
    value: function handleSecEnableChange(e) {
      var value = e.target.value.trim();
      this.setState({
        primaryCertName: value
      });
    }
  }, {
    key: "closeConfirmDisable",
    value: function closeConfirmDisable() {
      this.setState({
        showConfirmDisable: false
      });
    }
  }, {
    key: "enableSecurity",
    value: function enableSecurity() {
      var _this8 = this;

      /* start the spinner */
      this.setState({
        secEnableSpinner: true
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "enable"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("enableSecurity", "Enable security", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this8.props.addNotification("success", "Successfully enabled security.");

        _this8.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");

        _this8.setState({
          securityEnabled: true,
          secEnableSpinner: false,
          showSecurityEnableModal: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this8.props.addNotification("error", "Error enabling security - ".concat(msg));

        _this8.setState({
          secEnableSpinner: false,
          showSecurityEnableModal: false
        });
      });
    }
  }, {
    key: "disableSecurity",
    value: function disableSecurity() {
      var _this9 = this;

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "disable"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("disableSecurity", "Disable security", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function () {
        _this9.props.addNotification("success", "Successfully disabled security.");

        _this9.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");

        _this9.setState({
          securityEnabled: false
        });
      }).fail(function (err) {
        var errMsg = JSON.parse(err);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        _this9.props.addNotification("error", "Error disabling security - ".concat(msg));
      });
    }
  }, {
    key: "saveSecurityConfig",
    value: function saveSecurityConfig() {
      var _this10 = this;

      // Validate some setting first
      var sslMin = this.state._sslVersionMin;
      var sslMax = this.state._sslVersionMax;

      if (this.state._sslVersionMin != this.state.sslVersionMin) {
        sslMin = this.state.sslVersionMin;
      }

      if (this.state._sslVersionMax != this.state.sslVersionMax) {
        sslMax = this.state.sslVersionMax;
      }

      if (sslMin > sslMax) {
        this.props.addNotification("error", "The TLS minimum version must be less than or equal to the TLS maximum version"); // Reset page

        this.loadSecurityConfig();
        return;
      }

      var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'security', 'set'];

      if (this.state._validateCert != this.state.validateCert) {
        cmd.push("--verify-cert-chain-on-startup=" + this.state.validateCert);
      }

      if (this.state._sslVersionMin != this.state.sslVersionMin) {
        cmd.push("--tls-protocol-min=" + this.state.sslVersionMin);
      }

      if (this.state._sslVersionMax != this.state.sslVersionMax) {
        cmd.push("--tls-protocol-max=" + this.state.sslVersionMax);
      }

      if (this.state._clientAuth != this.state.clientAuth) {
        cmd.push("--tls-client-auth=" + this.state.clientAuth);
      }

      if (this.state._secureListenhost != this.state.secureListenhost) {
        cmd.push("--listen-host=" + this.state.secureListenhost);
      }

      if (this.state._allowWeakCipher != this.state.allowWeakCipher) {
        var val = "off";

        if (this.state.allowWeakCipher) {
          val = "on";
        }

        cmd.push("--allow-insecure-ciphers=" + val);
      }

      if (this.state._checkHostname != this.state.checkHostname) {
        var _val = "off";

        if (this.state.checkHostname) {
          _val = "on";
        }

        cmd.push("--check-hostname=" + _val);
      }

      if (this.state._requireSecureBinds != this.state.requireSecureBinds) {
        var _val2 = "off";

        if (this.state.requireSecureBinds) {
          _val2 = "on";
        }

        cmd.push("--require-secure-authentication=" + _val2);
      }

      if (this.state._nstlsallowclientrenegotiation != this.state.nstlsallowclientrenegotiation) {
        var _val3 = "off";

        if (this.state.nstlsallowclientrenegotiation) {
          _val3 = "on";
        }

        cmd.push("--tls-client-renegotiation=" + _val3);
      }

      if (cmd.length > 5) {
        Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_4__["log_cmd"])("saveSecurityConfig", "Applying security config change", cmd);
        var msg = "Successfully updated security configuration.";
        this.setState({
          // Start the spinner
          saving: true
        });
        cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
          superuser: true,
          "err": "message"
        }).done(function (content) {
          _this10.loadSecurityConfig(1);

          _this10.props.addNotification("success", msg);

          _this10.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");

          _this10.setState({
            saving: false
          });
        }).fail(function (err) {
          var errMsg = JSON.parse(err);

          _this10.loadSecurityConfig();

          _this10.setState({
            saving: false
          });

          var msg = errMsg.desc;

          if ('info' in errMsg) {
            msg = errMsg.desc + " - " + errMsg.info;
          }

          _this10.props.addNotification("error", "Error updating security configuration - ".concat(msg));
        });
      }
    }
  }, {
    key: "handleTypeaheadChange",
    value: function handleTypeaheadChange(value) {
      if (value.length == 0) {
        return;
      }

      this.setState({
        nssslpersonalityssl: value[0]
      });
    }
  }, {
    key: "handleChange",
    value: function handleChange(e) {
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState(_defineProperty({}, e.target.id, value));
    }
  }, {
    key: "handleLoginModal",
    value: function handleLoginModal(e) {
      var _this$setState2;

      var value = e.target.value.trim();
      var valueErr = false;
      var errObj = this.state.errObj;

      if (value == "") {
        valueErr = true;
      }

      errObj[e.target.id] = valueErr;
      this.setState((_this$setState2 = {}, _defineProperty(_this$setState2, e.target.id, value), _defineProperty(_this$setState2, "errObj", errObj), _this$setState2));
    }
  }, {
    key: "render",
    value: function render() {
      var _this11 = this;

      var securityPage = "";
      var serverCert = [this.state.nssslpersonalityssl];

      if (this.state.loaded && !this.state.saving) {
        var configPage = "";

        if (this.state.securityEnabled) {
          configPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Form"], {
            horizontal: true
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "This parameter can be used to restrict the Directory Server instance to a single IP interface (hostname, or IP address).  This parameter specifically sets what interface to use for TLS traffic.  Requires restart. (nsslapd-securelistenhost)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Secure Listen Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 8
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["FormControl"], {
            id: "secureListenhost",
            type: "text",
            value: this.state.secureListenhost,
            onChange: this.handleChange
          }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The name, or nickname, of the server certificate inthe NSS datgabase the server should use (nsSSLPersonalitySSL)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Server Certificate Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 8
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_bootstrap_typeahead__WEBPACK_IMPORTED_MODULE_5__["Typeahead"], {
            id: "serverCertNameTypeahead",
            onChange: this.handleTypeaheadChange,
            selected: serverCert,
            emptyLabel: "No matching certificates found",
            options: this.state.serverCertNames,
            newSelectionPrefix: "Select a server certificate",
            placeholder: "Type a sever certificate nickname..."
          }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The minimum SSL/TLS version the server will accept (sslversionmin)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Minimum TLS Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 8
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "sslVersionMin",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.sslVersionMin
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.3"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.2"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.1"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.0"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSL3")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "The maximum SSL/TLS version the server will accept (sslversionmax)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Maximum TLS Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "sslVersionMax",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.sslVersionMax
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.3"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.2"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.1"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "TLS1.0"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "SSL3")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "Sets how the Directory Server enforces TLS client authentication (nsSSLClientAuth)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Client Authentication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "clientAuth",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.clientAuth
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "off"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "allowed"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "required")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top",
            title: "Validate server's certificate expiration date (nsslapd-validate-cert)."
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, "Validate Certificate"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("select", {
            id: "validateCert",
            className: "btn btn-default dropdown ds-select",
            onChange: this.handleChange,
            value: this.state.validateCert
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "warn"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "on"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("option", null, "off")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], {
            className: "ds-margin-top"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "requireSecureBinds",
            defaultChecked: this.state.requireSecureBinds,
            onChange: this.handleChange,
            title: "Require all connections use TLS (nsslapd-require-secure-binds)."
          }, "Require Secure Connections"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "checkHostname",
            defaultChecked: this.state.checkHostname,
            onChange: this.handleChange,
            title: "Verify authenticity of a request by matching the host name against the value assigned to the common name (cn) attribute of the subject name (subjectDN field) in the certificate being presented. (nsslapd-ssl-check-hostname)."
          }, "Verify Certificate Subject Hostname"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "allowWeakCipher",
            defaultChecked: this.state.allowWeakCipher,
            onChange: this.handleChange,
            title: "Allow weak ciphers (allowWeakCipher)."
          }, "Allow Weak Ciphers"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
            componentClass: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"],
            sm: 4
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Checkbox"], {
            id: "nstlsallowclientrenegotiation",
            defaultChecked: this.state.nstlsallowclientrenegotiation,
            onChange: this.handleChange,
            title: "Allow client-initiated renegotiation (nsTLSAllowClientRenegotiation)."
          }, "Allow Client Renegotiation"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Button"], {
            bsStyle: "primary",
            className: "ds-margin-top-lg",
            onClick: function onClick() {
              _this11.saveSecurityConfig();
            }
          }, "Save Configuration"));
        }

        securityPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"], {
          className: "ds-suffix-header"
        }, "Security Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Icon"], {
          className: "ds-left-margin ds-refresh",
          type: "fa",
          name: "refresh",
          title: "Refresh configuration settings",
          onClick: this.reloadConfig
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tab-table"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabContainer"], {
          id: "basic-tabs-pf",
          onSelect: this.handleNavSelect,
          activeKey: this.state.activeKey
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Nav"], {
          bsClass: "nav nav-tabs nav-tabs-pf"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Security Configuration'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Certificate Management'
          }
        })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["NavItem"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          dangerouslySetInnerHTML: {
            __html: 'Cipher Preferences'
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabContent"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 1
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-xlg ds-indent"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Row"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Col"], {
          sm: 11
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["ControlLabel"], null, "Security Enabled"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_switch__WEBPACK_IMPORTED_MODULE_2___default.a, {
          className: "ds-switch ds-margin-left-sm ds-lower-field",
          onChange: this.handleSwitchChange,
          checked: this.state.securityEnabled,
          height: 20
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), configPage)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 2
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-margin-top-lg"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_6__["CertificateManagement"], {
          serverId: this.props.serverId,
          CACerts: this.state.CACerts,
          ServerCerts: this.state.serverCerts,
          addNotification: this.props.addNotification
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["TabPane"], {
          eventKey: 3
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-indent ds-tab-table"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_8__["Ciphers"], {
          serverId: this.props.serverId,
          supportedCiphers: this.state.supportedCiphers,
          cipherPref: this.state.cipherPref,
          enabledCiphers: this.state.enabledCiphers,
          addNotification: this.props.addNotification
        }))))))));
      } else if (this.state.saving) {
        securityPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Saving security information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
          loading: true,
          size: "md"
        }));
      } else {
        securityPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-loading-spinner ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading security information ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_9__["Spinner"], {
          loading: true,
          size: "md"
        }));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, securityPage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__["ConfirmPopup"], {
        showModal: this.state.showConfirmDisable,
        closeHandler: this.closeConfirmDisable,
        actionFunc: this.disableSecurity,
        msg: "Are you sure you want to disable security?",
        msgContent: "Attention: this requires the server to be restarted to take effect."
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_7__["SecurityEnableModal"], {
        showModal: this.state.showSecurityEnableModal,
        closeHandler: this.closeSecurityEnableModal,
        handleChange: this.handleSecEnableChange,
        saveHandler: this.enableSecurity,
        primaryName: this.state.primaryCertName,
        certs: this.state.serverCerts,
        spinning: this.state.secEnableSpinner
      }));
    }
  }]);

  return Security;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Props and defaultProps

Security.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_10___default.a.string
};
Security.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_9__["noop"],
  serverId: ""
};
/* harmony default export */ __webpack_exports__["default"] = (Security);

/***/ }),

/***/ "./src/server.jsx":
/*!************************!*\
  !*** ./src/server.jsx ***!
  \************************/
/*! exports provided: Server */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Server", function() { return Server; });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var patternfly_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! patternfly-react */ "./node_modules/patternfly-react/dist/esm/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _lib_server_settings_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/server/settings.jsx */ "./src/lib/server/settings.jsx");
/* harmony import */ var _lib_server_tuning_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/server/tuning.jsx */ "./src/lib/server/tuning.jsx");
/* harmony import */ var _lib_server_sasl_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/server/sasl.jsx */ "./src/lib/server/sasl.jsx");
/* harmony import */ var _lib_server_ldapi_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/server/ldapi.jsx */ "./src/lib/server/ldapi.jsx");
/* harmony import */ var _lib_server_accessLog_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/server/accessLog.jsx */ "./src/lib/server/accessLog.jsx");
/* harmony import */ var _lib_server_auditLog_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/server/auditLog.jsx */ "./src/lib/server/auditLog.jsx");
/* harmony import */ var _lib_server_auditfailLog_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/server/auditfailLog.jsx */ "./src/lib/server/auditfailLog.jsx");
/* harmony import */ var _lib_server_errorLog_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/server/errorLog.jsx */ "./src/lib/server/errorLog.jsx");
/* harmony import */ var _security_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./security.jsx */ "./src/security.jsx");
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

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 _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 _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 _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }















var treeViewContainerStyles = {
  width: "295px"
};
var Server = /*#__PURE__*/function (_React$Component) {
  _inherits(Server, _React$Component);

  var _super = _createSuper(Server);

  function Server(props) {
    var _this;

    _classCallCheck(this, Server);

    _this = _super.call(this, props);
    _this.state = {
      firstLoad: true,
      nodes: [],
      node_name: "",
      node_text: "",
      attrs: [],
      loaded: false,
      disableTree: false
    };
    _this.loadTree = _this.loadTree.bind(_assertThisInitialized(_this));
    _this.enableTree = _this.enableTree.bind(_assertThisInitialized(_this));
    _this.selectNode = _this.selectNode.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Server, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.props.wasActiveList.includes(1)) {
        if (this.state.firstLoad) {
          this.loadConfig();
        }
      }
    }
  }, {
    key: "enableTree",
    value: function enableTree() {
      this.setState({
        disableTree: false
      });
    }
  }, {
    key: "loadConfig",
    value: function loadConfig() {
      var _this2 = this;

      this.setState({
        loaded: false,
        firstLoad: false
      });
      var cmd = ["dsconf", "-j", this.props.serverId, "config", "get"];
      Object(_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__["log_cmd"])("loadConfig", "Load server configuration", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default.a.spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(function (content) {
        var config = JSON.parse(content);
        var attrs = config.attrs;

        _this2.setState({
          loaded: true,
          attrs: attrs
        }, _this2.loadTree());
      }).fail(function (err) {
        var errMsg = JSON.parse(err);

        _this2.setState({
          loaded: true
        });

        _this2.props.addNotification("error", "Error loading server configuration - ".concat(errMsg.desc));
      });
    }
  }, {
    key: "loadTree",
    value: function loadTree() {
      var basicData = [{
        text: "Server Settings",
        selectable: true,
        selected: true,
        icon: "pficon-settings",
        state: {
          expanded: true
        },
        id: "settings-config",
        nodes: []
      }, {
        text: "Tuning & Limits",
        selectable: true,
        icon: "fa fa-tachometer",
        id: "tuning-config",
        nodes: []
      }, {
        text: "Security",
        selectable: true,
        icon: "pficon-locked",
        id: "security-config",
        nodes: []
      }, {
        text: "SASL Settings & Mappings",
        selectable: true,
        icon: "glyphicon glyphicon-map-marker",
        id: "sasl-config",
        nodes: []
      }, {
        text: "LDAPI & Autobind",
        selectable: true,
        icon: "glyphicon glyphicon-flash",
        id: "ldapi-config",
        nodes: []
      }, {
        text: "Logging",
        icon: "pficon-catalog",
        selectable: false,
        id: "logging-config",
        state: {
          expanded: true
        },
        nodes: [{
          text: "Access Log",
          icon: "glyphicon glyphicon-book",
          selectable: true,
          id: "access-log-config",
          type: "log"
        }, {
          text: "Audit Log",
          icon: "glyphicon glyphicon-book",
          selectable: true,
          id: "audit-log-config",
          type: "log"
        }, {
          text: "Audit Failure Log",
          icon: "glyphicon glyphicon-book",
          selectable: true,
          id: "auditfail-log-config",
          type: "log"
        }, {
          text: "Errors Log",
          icon: "glyphicon glyphicon-book",
          selectable: true,
          id: "error-log-config",
          type: "log"
        }]
      }];
      this.setState({
        nodes: basicData,
        node_name: this.state.node_name
      });
    }
  }, {
    key: "selectNode",
    value: function selectNode(selectedNode) {
      var _this3 = this;

      if (selectedNode.selected) {
        return;
      }

      this.setState({
        disableTree: true // Disable the tree to allow node to be fully loaded

      });
      this.setState(function (prevState) {
        return {
          nodes: _this3.nodeSelector(prevState.nodes, selectedNode),
          node_name: selectedNode.id,
          node_text: selectedNode.text,
          bename: ""
        };
      });
    }
  }, {
    key: "nodeSelector",
    value: function nodeSelector(nodes, targetNode) {
      var _this4 = this;

      return nodes.map(function (node) {
        if (node.nodes) {
          return _objectSpread(_objectSpread({}, node), {}, {
            nodes: _this4.nodeSelector(node.nodes, targetNode),
            selected: node.id === targetNode.id ? !node.selected : false
          });
        } else if (node.id === targetNode.id) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: !node.selected
          });
        } else if (node.id !== targetNode.id && node.selected) {
          return _objectSpread(_objectSpread({}, node), {}, {
            selected: false
          });
        } else {
          return node;
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      var nodes = this.state.nodes;
      var serverPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
        className: "ds-loading-spinner ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Loading server configuration ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["Spinner"], {
        className: "ds-margin-top-lg",
        loading: true,
        size: "md"
      }));
      var server_element = "";
      var disabled = "tree-view-container";

      if (this.state.disableTree) {
        disabled = "tree-view-container ds-disabled";
      }

      if (this.state.loaded) {
        if (this.state.node_name == "settings-config" || this.state.node_name == "") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_settings_jsx__WEBPACK_IMPORTED_MODULE_5__["ServerSettings"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "tuning-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_tuning_jsx__WEBPACK_IMPORTED_MODULE_6__["ServerTuning"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "sasl-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_sasl_jsx__WEBPACK_IMPORTED_MODULE_7__["ServerSASL"], {
            serverId: this.props.serverId,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "security-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_security_jsx__WEBPACK_IMPORTED_MODULE_13__["Security"], {
            addNotification: this.props.addNotification,
            serverId: this.props.serverId,
            enableTree: this.enableTree
          });
        } else if (this.state.node_name == "ldapi-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_ldapi_jsx__WEBPACK_IMPORTED_MODULE_8__["ServerLDAPI"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "access-log-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_accessLog_jsx__WEBPACK_IMPORTED_MODULE_9__["ServerAccessLog"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "audit-log-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_auditLog_jsx__WEBPACK_IMPORTED_MODULE_10__["ServerAuditLog"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "auditfail-log-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_auditfailLog_jsx__WEBPACK_IMPORTED_MODULE_11__["ServerAuditFailLog"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        } else if (this.state.node_name == "error-log-config") {
          server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_lib_server_errorLog_jsx__WEBPACK_IMPORTED_MODULE_12__["ServerErrorLog"], {
            serverId: this.props.serverId,
            attrs: this.state.attrs,
            enableTree: this.enableTree,
            addNotification: this.props.addNotification
          });
        }

        serverPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "container-fluid"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-container"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: disabled,
          id: "server-tree",
          style: treeViewContainerStyles
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(patternfly_react__WEBPACK_IMPORTED_MODULE_3__["TreeView"], {
          nodes: nodes,
          highlightOnHover: true,
          highlightOnSelect: true,
          selectNode: this.selectNode,
          key: this.state.node_text
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", {
          className: "ds-tree-content"
        }, server_element)));
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", null, serverPage);
    }
  }]);

  return Server;
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component); // Property types and defaults

Server.propTypes = {
  addNotification: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.func,
  serverId: prop_types__WEBPACK_IMPORTED_MODULE_4___default.a.string
};
Server.defaultProps = {
  addNotification: patternfly_react__WEBPACK_IMPORTED_MODULE_3__["noop"],
  serverId: ""
};

/***/ }),

/***/ 0:
/*!*******************************!*\
  !*** multi ./src/./index.es6 ***!
  \*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /build/389-ds-base/src/389-ds-base-389-ds-base-1.4.4.4/src/cockpit/389-console/src/./index.es6 */"./src/index.es6");


/***/ }),

/***/ "cockpit":
/*!**************************!*\
  !*** external "cockpit" ***!
  \**************************/
/*! no static exports found */
/***/ (function(module, exports) {

module.exports = cockpit;

/***/ })

/******/ });
//# sourceMappingURL=index.js.map